明树Git Lab

Commit 9709626a authored by yangyajing's avatar yangyajing

modify

parent 0be1122c
$(function () {
// 判断是否已授权
let tokenCode = localStorage.getItem("tokenCode");
let openId = "";
let question = "";
let answer = "";
function checkCode () {
if (!tokenCode) {
let searchCode = new URLSearchParams(location.search).get("code");
if (searchCode) {
localStorage.setItem("tokenCode", searchCode);
tokenCode = searchCode;
} else {
$(".mask-container").show();
}
let searchCode = new URLSearchParams(location.search).get("code");
if (searchCode) {
localStorage.setItem("tokenCode", searchCode);
tokenCode = searchCode;
getUserInfo();
} else {
$(".mask-container").show();
}
}
// tokenCode = "041khhll29re5f4cntnl2hgE3E3khhl6";
checkCode();
$(".mask-container .mask-button").click(() => {
location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0abd4eaaac30fd6b&redirect_uri=http%3A%2F%2Fdeepseek.bridata.com/publicAccount%2F&response_type=code&scope=snsapi_userinfo#wechat_redirect";
......@@ -35,7 +32,7 @@ $(function () {
}
})
}
getUserInfo();
// 获取问答记录
let page = 1;
function getList () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment