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
2fb6cc89
Commit
2fb6cc89
authored
Dec 25, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
兼容多个小程序配置3
parent
c990b5c6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
11 deletions
+12
-11
ch-core/src/main/java/com/wwdz/ch/core/api/qiandao/QdWxLoginManager.java
...n/java/com/wwdz/ch/core/api/qiandao/QdWxLoginManager.java
+3
-1
ch-core/src/main/java/com/wwdz/ch/core/config/QdWxConfig.java
...ore/src/main/java/com/wwdz/ch/core/config/QdWxConfig.java
+1
-1
ch-core/src/main/java/com/wwdz/ch/core/config/QdWxProperties.java
...src/main/java/com/wwdz/ch/core/config/QdWxProperties.java
+3
-3
ch-core/src/main/resources/application-dev.yml
ch-core/src/main/resources/application-dev.yml
+5
-6
No files found.
ch-core/src/main/java/com/wwdz/ch/core/api/qiandao/QdWxLoginManager.java
View file @
2fb6cc89
...
...
@@ -13,6 +13,7 @@ import org.apache.commons.lang3.StringUtils;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
...
...
@@ -50,7 +51,8 @@ public class QdWxLoginManager {
// 微信小程序获取短链接地址
private
static
final
String
GET_LINK_URL
=
"https://api.weixin.qq.com/wxa/genwxashortlink?access_token=%s"
;
@Resource
(
name
=
"qdWxMaService"
)
@Autowired
@Qualifier
(
"qdWxMaService"
)
private
WxMaService
qdWxMaService
;
@Autowired
...
...
ch-core/src/main/java/com/wwdz/ch/core/config/QdWxConfig.java
View file @
2fb6cc89
...
...
@@ -24,7 +24,7 @@ public class QdWxConfig {
@Qualifier
(
"qdWxMaConfig"
)
public
WxMaConfig
qdWxMaConfig
()
{
WxMaInMemoryConfig
config
=
new
WxMaInMemoryConfig
();
config
.
setAppid
(
qdWxProperties
.
get
Qd
AppId
());
config
.
setAppid
(
qdWxProperties
.
getAppId
());
config
.
setSecret
(
qdWxProperties
.
getAppSecret
());
return
config
;
}
...
...
ch-core/src/main/java/com/wwdz/ch/core/config/QdWxProperties.java
View file @
2fb6cc89
...
...
@@ -35,12 +35,12 @@ public class QdWxProperties {
this
.
mchKey
=
mchKey
;
}
public
String
get
Qd
AppId
()
{
public
String
getAppId
()
{
return
appId
;
}
public
void
set
QdAppId
(
String
qdA
ppId
)
{
this
.
appId
=
qdA
ppId
;
public
void
set
AppId
(
String
a
ppId
)
{
this
.
appId
=
a
ppId
;
}
public
String
getAppSecret
()
{
...
...
ch-core/src/main/resources/application-dev.yml
View file @
2fb6cc89
...
...
@@ -3,16 +3,15 @@ dts:
#乾岛
app-id
:
wx598b9e95a8b13209
app-secret
:
107406ff0fcc8d7c3a658b90dd938a08
merchant-id
:
123
private-key
:
123
merchant-serial_number
:
123
apiV3Key
:
123123
pay-notify-url
:
123
merchant-id
:
123
4
private-key
:
123
4
merchant-serial_number
:
123
44
apiV3Key
:
123123
4
pay-notify-url
:
123
34
# 开发者应该设置成自己的wx相关信息
# 更换主体要更换id和secret
wx
:
app-id
:
wx5b4409448bf2c72b
app-secret
:
6fee0d7b2197845fed0a3fe8f5a9bd66
merchant-id
:
123
...
...
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