瀏覽代碼

[卡券][修复]:领取条件不符的提示

release_toaliyun_real
hupeng 7 年之前
父節點
當前提交
a3e913a4b7
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      mallinkCApi/src/main/java/com/iformall/controller/WxOrderController.java

+ 3
- 3
mallinkCApi/src/main/java/com/iformall/controller/WxOrderController.java 查看文件

@@ -111,13 +111,13 @@ public class WxOrderController extends BaseController {
int min = jo.getIntValue("min");

if (max!=0 && min ==0 && user.getScore() > max) {
return new ResultData(ErrorCode.COUPON_ONLY_FOR_NEW_MEMBER);
return new ResultData(ErrorCode.COUPON_SCORE_NOT_IN_RANGE);
}
if (max==0 && min !=0 && user.getScore() < min) {
return new ResultData(ErrorCode.COUPON_ONLY_FOR_NEW_MEMBER);
return new ResultData(ErrorCode.COUPON_SCORE_NOT_IN_RANGE);
}
if (max!=0 && min !=0 && (user.getScore() < min || user.getScore() > max)) {
return new ResultData(ErrorCode.COUPON_ONLY_FOR_NEW_MEMBER);
return new ResultData(ErrorCode.COUPON_SCORE_NOT_IN_RANGE);
}
}
}


Loading…
取消
儲存