浏览代码

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

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);
}
}
}


正在加载...
取消
保存