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