明树Git Lab

Commit 9709626a authored by yangyajing's avatar yangyajing

modify

parent 0be1122c
$(function () { $(function () {
// 判断是否已授权 // 判断是否已授权
let tokenCode = localStorage.getItem("tokenCode");
let openId = ""; let openId = "";
let question = ""; let question = "";
let answer = ""; let answer = "";
function checkCode () { function checkCode () {
if (!tokenCode) { let searchCode = new URLSearchParams(location.search).get("code");
let searchCode = new URLSearchParams(location.search).get("code"); if (searchCode) {
if (searchCode) { localStorage.setItem("tokenCode", searchCode);
localStorage.setItem("tokenCode", searchCode); tokenCode = searchCode;
tokenCode = searchCode; getUserInfo();
} else { } else {
$(".mask-container").show(); $(".mask-container").show();
}
} }
} }
// tokenCode = "041khhll29re5f4cntnl2hgE3E3khhl6";
checkCode(); checkCode();
$(".mask-container .mask-button").click(() => { $(".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"; 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 () { ...@@ -35,7 +32,7 @@ $(function () {
} }
}) })
} }
getUserInfo();
// 获取问答记录 // 获取问答记录
let page = 1; let page = 1;
function getList () { 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