Преглед изворни кода

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

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…
Откажи
Сачувај