记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
fc6b18a4
Commit
fc6b18a4
authored
Aug 14, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
token test
parent
151b273e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
WechatMaConfigure.java
...com/liquidnet/service/sweet/config/WechatMaConfigure.java
+11
-1
SweetWechatService.java
...uidnet/service/sweet/service/impl/SweetWechatService.java
+1
-0
No files found.
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/config/WechatMaConfigure.java
View file @
fc6b18a4
...
@@ -3,8 +3,12 @@ package com.liquidnet.service.sweet.config;
...
@@ -3,8 +3,12 @@ package com.liquidnet.service.sweet.config;
import
cn.binarywang.wx.miniapp.api.WxMaService
;
import
cn.binarywang.wx.miniapp.api.WxMaService
;
import
cn.binarywang.wx.miniapp.api.impl.WxMaServiceImpl
;
import
cn.binarywang.wx.miniapp.api.impl.WxMaServiceImpl
;
import
cn.binarywang.wx.miniapp.config.impl.WxMaDefaultConfigImpl
;
import
cn.binarywang.wx.miniapp.config.impl.WxMaDefaultConfigImpl
;
import
cn.binarywang.wx.miniapp.config.impl.WxMaRedisBetterConfigImpl
;
import
me.chanjar.weixin.common.redis.RedisTemplateWxRedisOps
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.data.redis.core.StringRedisTemplate
;
import
javax.annotation.PostConstruct
;
import
javax.annotation.PostConstruct
;
...
@@ -67,11 +71,17 @@ public class WechatMaConfigure {
...
@@ -67,11 +71,17 @@ public class WechatMaConfigure {
private
WxMaService
wxMaAppletFiveService
;
private
WxMaService
wxMaAppletFiveService
;
private
WxMaService
wxMaAppletMdskService
;
private
WxMaService
wxMaAppletMdskService
;
@Autowired
private
StringRedisTemplate
stringRedisTemplate
;
@PostConstruct
@PostConstruct
public
void
init
()
{
public
void
init
()
{
wxMaAppletZhengzaiService
=
new
WxMaServiceImpl
()
{
wxMaAppletZhengzaiService
=
new
WxMaServiceImpl
()
{
{
{
WxMaDefaultConfigImpl
wxMaDefaultConfig
=
new
WxMaDefaultConfigImpl
();
RedisTemplateWxRedisOps
redisTemplateWxRedisOps
=
new
RedisTemplateWxRedisOps
(
stringRedisTemplate
);
WxMaRedisBetterConfigImpl
wxMaDefaultConfig
=
new
WxMaRedisBetterConfigImpl
(
redisTemplateWxRedisOps
,
"sweet:answer:ZhengzaiAccessToken:"
);
// WxMaDefaultConfigImpl wxMaDefaultConfig = new WxMaDefaultConfigImpl();
wxMaDefaultConfig
.
setAppid
(
appletAppidZhengzai
);
wxMaDefaultConfig
.
setAppid
(
appletAppidZhengzai
);
wxMaDefaultConfig
.
setSecret
(
appletSecretZhengzai
);
wxMaDefaultConfig
.
setSecret
(
appletSecretZhengzai
);
wxMaDefaultConfig
.
setMsgDataFormat
(
"JSON"
);
wxMaDefaultConfig
.
setMsgDataFormat
(
"JSON"
);
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/impl/SweetWechatService.java
View file @
fc6b18a4
...
@@ -32,4 +32,5 @@ public class SweetWechatService {
...
@@ -32,4 +32,5 @@ public class SweetWechatService {
WxMaService
wxMaService
=
wechatMaConfigure
.
getWxMaService
(
anum
);
WxMaService
wxMaService
=
wechatMaConfigure
.
getWxMaService
(
anum
);
return
wxMaService
.
getUserService
().
getPhoneNoInfo
(
sessionKey
,
encryptedData
,
iv
);
return
wxMaService
.
getUserService
().
getPhoneNoInfo
(
sessionKey
,
encryptedData
,
iv
);
}
}
}
}
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