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
847eee50
Commit
847eee50
authored
Oct 10, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关注公众号回调通知
parent
f753ed11
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
ch-core/src/main/resources/application-dev.yml
ch-core/src/main/resources/application-dev.yml
+2
-2
ch-core/src/main/resources/application-prod.yml
ch-core/src/main/resources/application-prod.yml
+2
-2
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/OfficialAccountSubscribeRecordServiceImpl.java
...ch/wx/impl/OfficialAccountSubscribeRecordServiceImpl.java
+2
-2
No files found.
ch-core/src/main/resources/application-dev.yml
View file @
847eee50
...
...
@@ -33,8 +33,8 @@ dts:
# 请参考“商户证书”一节 https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=4_3
key-path
:
xxxxx
#微信公众号服务器配置信息
officialaccount—appid
:
wx
7db8eb146a194083
officialaccount-secret
:
daecb3de53841fe1a787bc9849ac340
6
officialaccount—appid
:
wx
9f0fd13852b2ddda
officialaccount-secret
:
c939b67a6536b3556c9a70fcbe009d8
6
officialaccount-token
:
Uu6GHYOiP1xJ6GaBMyXfnITufAGJTe3Q
officialaccount-key
:
noeN1amYRvzrVmE2GnC5VnsIfgPEmv6bhX54wJOARlM
get-officialaccount-accesstoken-url
:
https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s
...
...
ch-core/src/main/resources/application-prod.yml
View file @
847eee50
...
...
@@ -24,8 +24,8 @@ dts:
# 请参考“商户证书”一节 https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=4_3
key-path
:
xxxxx
#微信公众号服务器配置信息
officialaccount—appid
:
wx
7db8eb146a194083
officialaccount-secret
:
daecb3de53841fe1a787bc9849ac340
6
officialaccount—appid
:
wx
9f0fd13852b2ddda
officialaccount-secret
:
c939b67a6536b3556c9a70fcbe009d8
6
officialaccount-token
:
Uu6GHYOiP1xJ6GaBMyXfnITufAGJTe3Q
officialaccount-key
:
noeN1amYRvzrVmE2GnC5VnsIfgPEmv6bhX54wJOARlM
get-officialaccount-accesstoken-url
:
https://api.weixin.qq.com/cgi-bin/stable_token
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/OfficialAccountSubscribeRecordServiceImpl.java
View file @
847eee50
...
...
@@ -54,9 +54,9 @@ public class OfficialAccountSubscribeRecordServiceImpl implements OfficialAccoun
try
{
boolean
flag
=
officialAccountSubscribeRecordDao
.
isSubscribed
(
unionid
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
//
map.put("isSubscribed", flag);
map
.
put
(
"isSubscribed"
,
flag
);
//暂时先默认为关注
map
.
put
(
"isSubscribed"
,
true
);
//
map.put("isSubscribed", true);
map
.
put
(
"url"
,
OFFICAL_ACCOUNT_URL
);
return
Result
.
success
(
map
);
}
catch
(
Exception
e
)
{
...
...
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