Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
374f6736
Commit
374f6736
authored
Nov 10, 2021
by
liyang
Browse files
1.微信退款协议问题解决
2.新增微信小程序消息推送配置
parent
7d79dfc6
Changes
4
Hide whitespace changes
Inline
Side-by-side
litemall-core/src/main/java/org/linlinjava/litemall/core/config/WxConfig.java
View file @
374f6736
...
...
@@ -3,7 +3,7 @@ package org.linlinjava.litemall.core.config;
import
cn.binarywang.wx.miniapp.api.WxMaService
;
import
cn.binarywang.wx.miniapp.api.impl.WxMaServiceImpl
;
import
cn.binarywang.wx.miniapp.config.WxMaConfig
;
import
cn.binarywang.wx.miniapp.config.
WxMaInMemory
Config
;
import
cn.binarywang.wx.miniapp.config.
impl.WxMaDefault
Config
Impl
;
import
com.github.binarywang.wxpay.config.WxPayConfig
;
import
com.github.binarywang.wxpay.service.WxPayService
;
import
com.github.binarywang.wxpay.service.impl.WxPayServiceImpl
;
...
...
@@ -18,9 +18,11 @@ public class WxConfig {
@Bean
public
WxMaConfig
wxMaConfig
()
{
WxMa
InMemory
Config
config
=
new
WxMa
InMemory
Config
();
WxMa
Default
Config
Impl
config
=
new
WxMa
Default
Config
Impl
();
config
.
setAppid
(
properties
.
getAppId
());
config
.
setSecret
(
properties
.
getAppSecret
());
config
.
setToken
(
properties
.
getToken
());
config
.
setAesKey
(
properties
.
getAesKey
());
return
config
;
}
...
...
litemall-core/src/main/java/org/linlinjava/litemall/core/config/WxProperties.java
View file @
374f6736
...
...
@@ -19,6 +19,26 @@ public class WxProperties {
private
String
keyPath
;
private
String
token
;
private
String
aesKey
;
public
String
getToken
()
{
return
token
;
}
public
void
setToken
(
String
token
)
{
this
.
token
=
token
;
}
public
String
getAesKey
()
{
return
aesKey
;
}
public
void
setAesKey
(
String
aesKey
)
{
this
.
aesKey
=
aesKey
;
}
public
String
getNotifyUrl
()
{
return
notifyUrl
;
}
...
...
litemall-core/src/main/resources/application-core.yml
View file @
374f6736
...
...
@@ -9,6 +9,10 @@ litemall:
# 商户证书文件路径
# 请参考“商户证书”一节 https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=4_3
key-path
:
xxxxx
# 消息推送配置token
token
:
# 消息推送配置AesKey
aes-key
:
#通知相关配置
notify
:
...
...
pom.xml
View file @
374f6736
...
...
@@ -98,13 +98,13 @@
<dependency>
<groupId>
com.github.binarywang
</groupId>
<artifactId>
weixin-java-pay
</artifactId>
<version>
3.3
.0
</version>
<version>
4.1
.0
</version>
</dependency>
<dependency>
<groupId>
com.github.binarywang
</groupId>
<artifactId>
weixin-java-miniapp
</artifactId>
<version>
3.3
.0
</version>
<version>
4.1
.0
</version>
</dependency>
<dependency>
...
...
Write
Preview
Supports
Markdown
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