Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
Overview
Overview
Details
Activity
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
pseer
gxpt_ht
Commits
2f03c536
Commit
2f03c536
authored
Nov 16, 2023
by
YG8999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微信支付商户配置
parent
cf5608e4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
10 deletions
+28
-10
application-prod.yml
share-admin/src/main/resources/application-prod.yml
+17
-2
WeChatConfig.java
...ommon/src/main/java/share/common/config/WeChatConfig.java
+2
-0
Constants.java
...common/src/main/java/share/common/constant/Constants.java
+2
-2
SmsUtil.java
share-common/src/main/java/share/common/utils/SmsUtil.java
+3
-3
application-prod.yml
share-front/src/main/resources/application-prod.yml
+3
-2
OrderRefundServiceImpl.java
...ava/share/system/service/impl/OrderRefundServiceImpl.java
+1
-1
No files found.
share-admin/src/main/resources/application-prod.yml
View file @
2f03c536
...
@@ -14,7 +14,13 @@ ruoyi:
...
@@ -14,7 +14,13 @@ ruoyi:
addressEnabled
:
false
addressEnabled
:
false
# 验证码类型 math 数字计算 char 字符验证
# 验证码类型 math 数字计算 char 字符验证
captchaType
:
char
captchaType
:
char
# 微信相关配置
wechat
:
appId
:
wxdd170b8783edf7a0
appSecret
:
7339f117e85876a0dfe10ea1ed47340e
mchId
:
1658895429
signKey
:
ZEKu56XCezuESfNEdM4zVZEN3cz2PuHz
certPath
:
/var/gxpt/wechat_ssl/apiclient_cert.p12
# 开发环境配置
# 开发环境配置
server
:
server
:
# 服务器的HTTP端口,默认为8080
# 服务器的HTTP端口,默认为8080
...
@@ -138,6 +144,12 @@ spring:
...
@@ -138,6 +144,12 @@ spring:
defaultTopic
:
"
ydlink/#"
defaultTopic
:
"
ydlink/#"
completion-timeout
:
15000
completion-timeout
:
15000
is-subscribe-topic
:
true
is-subscribe-topic
:
true
sms
:
url
:
"
http://121.36.230.249:7862/smsv2"
username
:
"
799243"
password
:
"
RjaI8uA"
extno
:
"
10690"
signature
:
"
【凑角】"
# token配置
# token配置
token
:
token
:
...
@@ -178,7 +190,10 @@ xss:
...
@@ -178,7 +190,10 @@ xss:
excludes
:
/system/notice
excludes
:
/system/notice
# 匹配链接
# 匹配链接
urlPatterns
:
/system/*,/monitor/*,/tool/*
urlPatterns
:
/system/*,/monitor/*,/tool/*
meituan
:
developerId
:
123456
signKey
:
abcdefghijklmnopqrstuvwxyz
appAuthToken
:
abcdefghijklmnopqrstuvwxyz
dianping
:
dianping
:
appKey
:
a59ea57cd1eb4737
appKey
:
a59ea57cd1eb4737
appSecret
:
0caaabb7fda1c1be46636171548dcf510d1fb706
appSecret
:
0caaabb7fda1c1be46636171548dcf510d1fb706
share-common/src/main/java/share/common/config/WeChatConfig.java
View file @
2f03c536
...
@@ -31,4 +31,6 @@ public class WeChatConfig
...
@@ -31,4 +31,6 @@ public class WeChatConfig
private
Integer
wechatJsApiDebug
;
private
Integer
wechatJsApiDebug
;
private
String
certPath
;
}
}
share-common/src/main/java/share/common/constant/Constants.java
View file @
2f03c536
...
@@ -13,8 +13,8 @@ public class Constants
...
@@ -13,8 +13,8 @@ public class Constants
//保洁锁定订单房间状态延迟时间
//保洁锁定订单房间状态延迟时间
public
final
static
Integer
ROOM_LOCK_DELAY_MINUTE
=
30
;
public
final
static
Integer
ROOM_LOCK_DELAY_MINUTE
=
30
;
public
static
final
String
CONFIG_KEY_SITE_URL
=
"
site_url
"
;
//域名
public
static
final
String
CONFIG_KEY_SITE_URL
=
"
https://www.coujio.com
"
;
//域名
public
static
final
String
CONFIG_KEY_API_URL
=
"
api_url
"
;
//admin接口地址
public
static
final
String
CONFIG_KEY_API_URL
=
"
https://www.coujio.com
"
;
//admin接口地址
// 订单取消Key
// 订单取消Key
public
static
final
String
ORDER_AUTO_CANCEL_KEY
=
"order_auto_cancel_key"
;
public
static
final
String
ORDER_AUTO_CANCEL_KEY
=
"order_auto_cancel_key"
;
//测试环境,经测试需要,手机验证码测试环境可以不需要就能登录,value为1,则不验证验证码
//测试环境,经测试需要,手机验证码测试环境可以不需要就能登录,value为1,则不验证验证码
...
...
share-common/src/main/java/share/common/utils/SmsUtil.java
View file @
2f03c536
...
@@ -47,8 +47,8 @@ public class SmsUtil {
...
@@ -47,8 +47,8 @@ public class SmsUtil {
if
(
result
==
null
)
{
if
(
result
==
null
)
{
throw
new
BaseException
(
"短信平台接口异常!"
);
throw
new
BaseException
(
"短信平台接口异常!"
);
}
}
if
(!
SmsConts
.
SUCCESS_CODE
.
equals
(
result
.
getInt
(
"
code
"
)))
{
if
(!
SmsConts
.
SUCCESS_CODE
.
equals
(
result
.
getInt
(
"
status
"
)))
{
throw
new
BaseException
(
"短信平台接口: "
+
result
.
getStr
(
"
message
"
));
throw
new
BaseException
(
"短信平台接口: "
+
result
.
getStr
(
"
status
"
));
}
}
return
result
;
return
result
;
}
}
...
@@ -74,7 +74,7 @@ public class SmsUtil {
...
@@ -74,7 +74,7 @@ public class SmsUtil {
String
content
=
MessageFormat
.
format
(
SmsConts
.
smsCodeTemp
,
code
.
toString
(),
"5"
);
String
content
=
MessageFormat
.
format
(
SmsConts
.
smsCodeTemp
,
code
.
toString
(),
"5"
);
// 发送内容添加短信签名
// 发送内容添加短信签名
String
smsContent
=
StrUtil
.
concat
(
true
,
"【凑角】"
,
content
);
String
smsContent
=
StrUtil
.
concat
(
true
,
"【凑角】"
,
content
);
String
mobile
=
"1
8062577819
"
;
String
mobile
=
"1
3724108012
"
;
JSONObject
param
=
JSONUtil
.
createObj
();
JSONObject
param
=
JSONUtil
.
createObj
();
param
.
put
(
"action"
,
"send"
);
param
.
put
(
"action"
,
"send"
);
param
.
put
(
"account"
,
"799243"
);
param
.
put
(
"account"
,
"799243"
);
...
...
share-front/src/main/resources/application-prod.yml
View file @
2f03c536
...
@@ -18,8 +18,9 @@ ruoyi:
...
@@ -18,8 +18,9 @@ ruoyi:
wechat
:
wechat
:
appId
:
wxdd170b8783edf7a0
appId
:
wxdd170b8783edf7a0
appSecret
:
7339f117e85876a0dfe10ea1ed47340e
appSecret
:
7339f117e85876a0dfe10ea1ed47340e
mchId
:
0
mchId
:
1658895429
signKey
:
0
signKey
:
ZEKu56XCezuESfNEdM4zVZEN3cz2PuHz
certPath
:
/var/gxpt/wechat_ssl/apiclient_cert.p12
# 开发环境配置
# 开发环境配置
server
:
server
:
# 服务器的HTTP端口,默认为8080
# 服务器的HTTP端口,默认为8080
...
...
share-system/src/main/java/share/system/service/impl/OrderRefundServiceImpl.java
View file @
2f03c536
...
@@ -58,7 +58,7 @@ public class OrderRefundServiceImpl extends ServiceImpl<SOrderMapper, SOrder> im
...
@@ -58,7 +58,7 @@ public class OrderRefundServiceImpl extends ServiceImpl<SOrderMapper, SOrder> im
String
appId
=
weChatConfig
.
getAppId
();
String
appId
=
weChatConfig
.
getAppId
();
String
mchId
=
weChatConfig
.
getMchId
();
String
mchId
=
weChatConfig
.
getMchId
();
String
signKey
=
weChatConfig
.
getSignKey
();
String
signKey
=
weChatConfig
.
getSignKey
();
String
path
=
""
;
//TODO 商户证书路径
(待提供)
String
path
=
weChatConfig
.
getCertPath
();
//TODO 商户证书路径p12
(待提供)
String
apiDomain
=
Constants
.
CONFIG_KEY_API_URL
;
String
apiDomain
=
Constants
.
CONFIG_KEY_API_URL
;
//统一下单数据
//统一下单数据
WxRefundVo
wxRefundVo
=
new
WxRefundVo
();
WxRefundVo
wxRefundVo
=
new
WxRefundVo
();
...
...
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