明树Git Lab

Commit a0b615a9 authored by yangyajing's avatar yangyajing

modify

parent 9709626a
...@@ -17,22 +17,7 @@ $(function () { ...@@ -17,22 +17,7 @@ $(function () {
$(".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";
}) })
// 获取用户信息
function getUserInfo () {
$.ajax({
url: "http://deepseek.bridata.com/api/wechat/pa/getUserInfo",
type: "post",
contentType: "application/json",
data: JSON.stringify({
code: tokenCode
}),
dataType: "json",
success: (res) => {
// openId = res
}
})
}
// 获取问答记录 // 获取问答记录
let page = 1; let page = 1;
function getList () { function getList () {
...@@ -63,7 +48,24 @@ $(function () { ...@@ -63,7 +48,24 @@ $(function () {
} }
}) })
} }
// getList(); // 获取用户信息
function getUserInfo () {
$.ajax({
url: "http://deepseek.bridata.com/api/wechat/pa/getUserInfo",
type: "post",
contentType: "application/json",
data: JSON.stringify({
code: tokenCode
}),
dataType: "json",
success: (res) => {
if (res.code === 0) {
openId = res.data.openid;
getList();
}
}
})
}
// 提交问答 // 提交问答
$("#question-input").keypress(function(event) { $("#question-input").keypress(function(event) {
if (event.key === "Enter" || event.keyCode === 13) { if (event.key === "Enter" || event.keyCode === 13) {
......
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