@ -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 注:如果与两个相邻数字的距离相等,则为上舍入的舍入模式。