diff --git a/hai-cweb/src/main/java/com/cweb/controller/HighOrderController.java b/hai-cweb/src/main/java/com/cweb/controller/HighOrderController.java index 33f92e35..65ae2a31 100644 --- a/hai-cweb/src/main/java/com/cweb/controller/HighOrderController.java +++ b/hai-cweb/src/main/java/com/cweb/controller/HighOrderController.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) { // 卡优惠券信息 diff --git a/hai-service/src/main/java/com/hai/common/exception/ErrorCode.java b/hai-service/src/main/java/com/hai/common/exception/ErrorCode.java index f2d7e223..85d9a4d1 100644 --- a/hai-service/src/main/java/com/hai/common/exception/ErrorCode.java +++ b/hai-service/src/main/java/com/hai/common/exception/ErrorCode.java @@ -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","状态错误"), diff --git a/hai-service/src/main/java/com/hai/service/pay/impl/GoodsOrderServiceImpl.java b/hai-service/src/main/java/com/hai/service/pay/impl/GoodsOrderServiceImpl.java index afbe88b3..d6203145 100644 --- a/hai-service/src/main/java/com/hai/service/pay/impl/GoodsOrderServiceImpl.java +++ b/hai-service/src/main/java/com/hai/service/pay/impl/GoodsOrderServiceImpl.java @@ -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 注:如果与两个相邻数字的距离相等,则为上舍入的舍入模式。