提交代码

dev-discount
胡锐 3 years ago
parent 5e8a27ef34
commit c55d911de1
  1. 5
      hai-cweb/src/main/java/com/cweb/controller/HighOrderController.java
  2. 1
      hai-service/src/main/java/com/hai/common/exception/ErrorCode.java
  3. 2
      hai-service/src/main/java/com/hai/service/pay/impl/GoodsOrderServiceImpl.java

@ -86,6 +86,11 @@ public class HighOrderController {
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, "");
}
if (StringUtils.isBlank(userInfoModel.getHighUser().getPhone())) {
log.error("HighOrderController --> addOrder() error!", "未绑定手机号");
throw ErrorHelp.genException(SysCode.System, ErrorCode.NO_BIND_PHONE, "");
}
HighDiscountUserRel highDiscountUserRel = null;
if (highOrder.getMemDiscountId() != null) {
// 卡优惠券信息

@ -114,6 +114,7 @@ public enum ErrorCode {
NOT_SET_USER_PAY_PWD("2130","未设置支付密码"),
NOT_ENTER_USER_PAY_PWD("2131","未输入支付密码"),
USER_PAY_PWD_ERROR("2132","支付密码错误"),
NO_BIND_PHONE("2133","未绑定手机号"),
STATUS_ERROR("3000","状态错误"),

@ -267,7 +267,7 @@ public class GoodsOrderServiceImpl implements PayService {
new Thread(() -> {
try {
Thread.sleep(60*1000);
Thread.sleep(120*1000);
BigDecimal rake = new BigDecimal("0.01");
// 计算微信收取的手续费 支付金额 * 0.002 注:如果与两个相邻数字的距离相等,则为上舍入的舍入模式。

Loading…
Cancel
Save