明树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
a0b615a9
Commit
a0b615a9
authored
Feb 20, 2025
by
yangyajing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
9709626a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
17 deletions
+19
-17
index.js
public/publicAccount/js/index.js
+19
-17
No files found.
public/publicAccount/js/index.js
View file @
a0b615a9
...
...
@@ -17,22 +17,7 @@ $(function () {
$
(
".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"
;
})
// 获取用户信息
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
;
function
getList
()
{
...
...
@@ -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
)
{
if
(
event
.
key
===
"Enter"
||
event
.
keyCode
===
13
)
{
...
...
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