|
@@ -705,7 +705,7 @@ public class VipServiceImpl implements VipService {
|
|
|
userVip.setPaymentAmount(pkg.getCurrentPrice());
|
|
userVip.setPaymentAmount(pkg.getCurrentPrice());
|
|
|
userVip.setPaymentMethod("微信支付");
|
|
userVip.setPaymentMethod("微信支付");
|
|
|
userVip.setOrderNo(orderNo);
|
|
userVip.setOrderNo(orderNo);
|
|
|
- userVip.setStatus(1); // 0-待支付
|
|
|
|
|
|
|
+ userVip.setStatus(0); // 0-待支付
|
|
|
userVip.setSource("购买");
|
|
userVip.setSource("购买");
|
|
|
userVip.setCreateTime(LocalDateTime.now());
|
|
userVip.setCreateTime(LocalDateTime.now());
|
|
|
userVipMapper.insert(userVip);
|
|
userVipMapper.insert(userVip);
|
|
@@ -824,7 +824,7 @@ public class VipServiceImpl implements VipService {
|
|
|
request.setBody(pkg.getPackageName());
|
|
request.setBody(pkg.getPackageName());
|
|
|
request.setTotalFee(pkg.getCurrentPrice().multiply(new BigDecimal("100")).intValue());
|
|
request.setTotalFee(pkg.getCurrentPrice().multiply(new BigDecimal("100")).intValue());
|
|
|
request.setSpbillCreateIp("127.0.0.1");
|
|
request.setSpbillCreateIp("127.0.0.1");
|
|
|
- request.setNotifyUrl("https://mini.workervip.com/api/vip/notify"); // 回调地址
|
|
|
|
|
|
|
+ request.setNotifyUrl("https://api.zhongruanke.cn/api/vip/notify"); // 回调地址
|
|
|
request.setTradeType("JSAPI");
|
|
request.setTradeType("JSAPI");
|
|
|
request.setOpenid(user.getWechatOpenid());
|
|
request.setOpenid(user.getWechatOpenid());
|
|
|
return request;
|
|
return request;
|
|
@@ -871,7 +871,7 @@ public class VipServiceImpl implements VipService {
|
|
|
payConfig.setAppId(wxConfig.getAppId());
|
|
payConfig.setAppId(wxConfig.getAppId());
|
|
|
payConfig.setMchId(wxConfig.getMchId());
|
|
payConfig.setMchId(wxConfig.getMchId());
|
|
|
payConfig.setMchKey("7f633cbabd894b4d213bc6edffe3b119");
|
|
payConfig.setMchKey("7f633cbabd894b4d213bc6edffe3b119");
|
|
|
- payConfig.setNotifyUrl("https://mini.workervip.com/api/vip/notify");
|
|
|
|
|
|
|
+ payConfig.setNotifyUrl("https://api.zhongruanke.cn/api/vip/notify");
|
|
|
return payConfig;
|
|
return payConfig;
|
|
|
}
|
|
}
|
|
|
|
|
|