Commit 2f03c536 by YG8999

微信支付商户配置

parent cf5608e4
......@@ -14,7 +14,13 @@ ruoyi:
addressEnabled: false
# 验证码类型 math 数字计算 char 字符验证
captchaType: char
# 微信相关配置
wechat:
appId: wxdd170b8783edf7a0
appSecret: 7339f117e85876a0dfe10ea1ed47340e
mchId: 1658895429
signKey: ZEKu56XCezuESfNEdM4zVZEN3cz2PuHz
certPath: /var/gxpt/wechat_ssl/apiclient_cert.p12
# 开发环境配置
server:
# 服务器的HTTP端口,默认为8080
......@@ -138,6 +144,12 @@ spring:
defaultTopic: "ydlink/#"
completion-timeout: 15000
is-subscribe-topic: true
sms:
url: "http://121.36.230.249:7862/smsv2"
username: "799243"
password: "RjaI8uA"
extno: "10690"
signature: "【凑角】"
# token配置
token:
......@@ -178,7 +190,10 @@ xss:
excludes: /system/notice
# 匹配链接
urlPatterns: /system/*,/monitor/*,/tool/*
meituan:
developerId: 123456
signKey: abcdefghijklmnopqrstuvwxyz
appAuthToken: abcdefghijklmnopqrstuvwxyz
dianping:
appKey: a59ea57cd1eb4737
appSecret: 0caaabb7fda1c1be46636171548dcf510d1fb706
......@@ -31,4 +31,6 @@ public class WeChatConfig
private Integer wechatJsApiDebug;
private String certPath;
}
......@@ -13,8 +13,8 @@ public class Constants
//保洁锁定订单房间状态延迟时间
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_API_URL = "api_url"; //admin接口地址
public static final String CONFIG_KEY_SITE_URL = "https://www.coujio.com"; //域名
public static final String CONFIG_KEY_API_URL = "https://www.coujio.com"; //admin接口地址
// 订单取消Key
public static final String ORDER_AUTO_CANCEL_KEY = "order_auto_cancel_key";
//测试环境,经测试需要,手机验证码测试环境可以不需要就能登录,value为1,则不验证验证码
......
......@@ -47,8 +47,8 @@ public class SmsUtil {
if (result == null) {
throw new BaseException("短信平台接口异常!");
}
if (!SmsConts.SUCCESS_CODE.equals(result.getInt("code"))) {
throw new BaseException("短信平台接口: " + result.getStr("message"));
if (!SmsConts.SUCCESS_CODE.equals(result.getInt("status"))) {
throw new BaseException("短信平台接口: " + result.getStr("status"));
}
return result;
}
......@@ -74,7 +74,7 @@ public class SmsUtil {
String content = MessageFormat.format(SmsConts.smsCodeTemp, code.toString(), "5");
// 发送内容添加短信签名
String smsContent = StrUtil.concat(true, "【凑角】", content);
String mobile = "18062577819";
String mobile = "13724108012";
JSONObject param = JSONUtil.createObj();
param.put("action", "send");
param.put("account", "799243");
......
......@@ -18,8 +18,9 @@ ruoyi:
wechat:
appId: wxdd170b8783edf7a0
appSecret: 7339f117e85876a0dfe10ea1ed47340e
mchId: 0
signKey: 0
mchId: 1658895429
signKey: ZEKu56XCezuESfNEdM4zVZEN3cz2PuHz
certPath: /var/gxpt/wechat_ssl/apiclient_cert.p12
# 开发环境配置
server:
# 服务器的HTTP端口,默认为8080
......
......@@ -58,7 +58,7 @@ public class OrderRefundServiceImpl extends ServiceImpl<SOrderMapper, SOrder> im
String appId = weChatConfig.getAppId();
String mchId = weChatConfig.getMchId();
String signKey = weChatConfig.getSignKey();
String path = "";//TODO 商户证书路径(待提供)
String path = weChatConfig.getCertPath(); //TODO 商户证书路径p12(待提供)
String apiDomain = Constants.CONFIG_KEY_API_URL;
//统一下单数据
WxRefundVo wxRefundVo = new WxRefundVo();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment