'提交代码'

dev-discount
= 3 years ago
parent 7c51254bdd
commit f0641b56a3
  1. 1
      hai-cweb/src/main/java/com/cweb/config/AuthConfig.java
  2. 6
      hai-cweb/src/main/java/com/cweb/controller/OutRechargeOrderController.java
  3. 4
      hai-cweb/src/main/java/com/cweb/controller/pay/OrderController.java
  4. 4
      hai-service/src/main/java/com/hai/service/impl/HighUserServiceImpl.java

@ -111,6 +111,7 @@ public class AuthConfig implements WebMvcConfigurer {
.excludePathPatterns("/test/*")
.excludePathPatterns("/cmsContent/*")
.excludePathPatterns("/highGas/*")
.excludePathPatterns("/outRechargeOrder/*")
.excludePathPatterns("/wechat/*")
.excludePathPatterns("/tuanyou/*")
.excludePathPatterns("/highGas/*")

@ -412,8 +412,8 @@ public class OutRechargeOrderController {
param.put("mch_id", "1289663601");
param.put("sub_mch_id" , "1609882817"); // 个体户黎杨珍
param.put("nonce_str" , WxUtils.makeNonStr());
param.put("transaction_id" , "4200001148202106176001512773");
param.put("out_order_no" , "HF2021061710360517203");
param.put("transaction_id" , "4200001158202108094442626740");
param.put("out_order_no" , "30000408682021080916082519929");
param.put("description" , "系统自动完结分账");
String signStr = WxUtils.generateSignature(param, "Skufk5oi85wDFGl888i6wsRSTkdd5df5" , WXPayConstants.SignType.HMACSHA256);
param.put("sign" , signStr);
@ -437,7 +437,7 @@ public class OutRechargeOrderController {
Map<String,String> param = new LinkedHashMap<>();
param.put("mch_id", "1289663601");
//param.put("sub_mch_id" , "1609882817"); // 个体户黎杨珍
param.put("transaction_id" , "4200001152202106114622919776");
param.put("transaction_id" , "4200001175202108102870717911");
///param.put("out_order_no" , String.valueOf(new Date().getTime()));
param.put("nonce_str" , WxUtils.makeNonStr());
String signStr = WxUtils.generateSignature(param, "Skufk5oi85wDFGl888i6wsRSTkdd5df5" , WXPayConstants.SignType.HMACSHA256);

@ -262,8 +262,8 @@ public class OrderController {
HighCoupon coupon = highCouponService.getCouponById(childOrder.getGoodsId());
// 支付类型:1.微信支付 2.金币支付
if (coupon.getPayType() != 2) {
log.error("OrderController --> orderToPay() ERROR", "只支持金币支持");
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, coupon.getCouponName() + ",只支持金币支付");
log.error("OrderController --> orderToPay() ERROR", "只支持积分支付");
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, coupon.getCouponName() + ",只支持积分支付");
}
}
}

@ -163,12 +163,12 @@ public class HighUserServiceImpl implements HighUserService {
} else if (goldType == 2) {
if (goldNum > user.getGold()) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "金币数量不足");
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "积分数量不足");
}
user.setGold(user.getGold() - goldNum);
} else {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "用户金币处理异常");
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "用户积分处理异常");
}
highUserMapper.updateByPrimaryKey(user);

Loading…
Cancel
Save