添加tg链接
This commit is contained in:
parent
be6174e5dc
commit
9d6a712c16
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Title</title>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<a id="login" href="#"><h1>点击登录跳转学习强国app</h1></a>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
<script>
|
||||
function load() {
|
||||
let search = window.location.search
|
||||
search = search.substring(1,search.length)
|
||||
document.getElementById("login").setAttribute("href","dtxuexi://appclient/page/study_feeds?url="+search)
|
||||
}
|
||||
load()
|
||||
|
||||
</script>
|
||||
</html>
|
|
@ -10,6 +10,7 @@ import (
|
|||
"image/jpeg"
|
||||
"image/png"
|
||||
"io"
|
||||
"net/url"
|
||||
"runtime"
|
||||
"time"
|
||||
|
||||
|
@ -180,7 +181,7 @@ func (c *Core) Login() ([]Cookie, error) {
|
|||
matrix := GetPaymentStr(bytes.NewReader(buffer.Bytes()))
|
||||
log.Debugln("已获取到二维码内容:" + matrix.GetText())
|
||||
|
||||
c.Push("text", "https://techxuexi.js.org/jump/techxuexi-20211023.html?"+matrix.GetText())
|
||||
c.Push("text", "https://techxuexi.js.org/jump/techxuexi-20211023.html?"+url.QueryEscape(matrix.GetText()))
|
||||
c.Push("text", matrix.GetText())
|
||||
|
||||
qrcodeTerminal.New2(qrcodeTerminal.ConsoleColors.BrightBlack, qrcodeTerminal.ConsoleColors.BrightWhite, qrcodeTerminal.QRCodeRecoveryLevels.Low).Get(matrix.GetText()).Print()
|
||||
|
|
Loading…
Reference in New Issue