Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
ff854114
Commit
ff854114
authored
Oct 26, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取token地址修改
parent
c588cce3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
ch-core/src/main/resources/application-prod.yml
ch-core/src/main/resources/application-prod.yml
+1
-1
ch-wx-api/src/test/java/com/wwdz/ch/wx/api/ChatApiTest.java
ch-wx-api/src/test/java/com/wwdz/ch/wx/api/ChatApiTest.java
+10
-0
No files found.
ch-core/src/main/resources/application-prod.yml
View file @
ff854114
...
@@ -6,7 +6,7 @@ dts:
...
@@ -6,7 +6,7 @@ dts:
mch-id
:
1538666666
mch-id
:
1538666666
mch-key
:
1538xxxxxx-1538xxxxxx-1538xxxxxx
mch-key
:
1538xxxxxx-1538xxxxxx-1538xxxxxx
notify-url
:
https://test.dtsshop.com/demo/order/dtsNotify
notify-url
:
https://test.dtsshop.com/demo/order/dtsNotify
get-access-token-url
:
POST
https://api.weixin.qq.com/cgi-bin/stable_token
get-access-token-url
:
https://api.weixin.qq.com/cgi-bin/stable_token
#公众号消息点击后跳转到小程序页面的链接
#公众号消息点击后跳转到小程序页面的链接
...
...
ch-wx-api/src/test/java/com/wwdz/ch/wx/api/ChatApiTest.java
View file @
ff854114
...
@@ -13,6 +13,7 @@ import com.wwdz.ch.db.dao.UserDao;
...
@@ -13,6 +13,7 @@ import com.wwdz.ch.db.dao.UserDao;
import
com.wwdz.ch.db.domain.AiAssistant
;
import
com.wwdz.ch.db.domain.AiAssistant
;
import
com.wwdz.ch.db.domain.User
;
import
com.wwdz.ch.db.domain.User
;
import
com.wwdz.ch.db.dto.request.AiAssistantRequestDto
;
import
com.wwdz.ch.db.dto.request.AiAssistantRequestDto
;
import
com.wwdz.ch.wx.manager.WxLoginManager
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -47,6 +48,9 @@ public class ChatApiTest {
...
@@ -47,6 +48,9 @@ public class ChatApiTest {
@Autowired
@Autowired
RedisUtils
redisUtils
;
RedisUtils
redisUtils
;
@Autowired
WxLoginManager
wxLoginManager
;
@Test
@Test
public
void
chatWithModel
()
{
public
void
chatWithModel
()
{
String
question
=
"伟伟伟伟伟伟伟伟伟伟伟伟伟伟伟伟伟伟小伟伟"
;
String
question
=
"伟伟伟伟伟伟伟伟伟伟伟伟伟伟伟伟伟伟小伟伟"
;
...
@@ -141,4 +145,10 @@ public class ChatApiTest {
...
@@ -141,4 +145,10 @@ public class ChatApiTest {
System
.
out
.
println
(
redisUtils
.
getExpire
(
"AI-DEFAULT-QUESTION:269"
));
System
.
out
.
println
(
redisUtils
.
getExpire
(
"AI-DEFAULT-QUESTION:269"
));
}
}
@Test
public
void
gettoken
(){
wxLoginManager
.
refreshAccessToken
();
}
}
}
\ No newline at end of file
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