明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
D
deepseek_wechat_chat
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zengfanpei
deepseek_wechat_chat
Commits
9709626a
Commit
9709626a
authored
Feb 20, 2025
by
yangyajing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
0be1122c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
index.js
public/publicAccount/js/index.js
+8
-11
No files found.
public/publicAccount/js/index.js
View file @
9709626a
$
(
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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment