소스 검색

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

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


불러오는 중...
취소
저장