|
@@ -238,10 +238,12 @@ public class ConsumptionRecordServiceImpl extends ServiceImpl<ConsumptionRecordM
|
|
|
Object code = commonCacheOperator.get(consumptionRecordAddParam.getPhoneNumber());
|
|
|
if(ObjectUtil.isNotEmpty(code)){
|
|
|
if(!StringUtils.equals(code.toString(),consumptionRecordAddParam.getPhoneCode())){
|
|
|
- //throw new CommonException("验证码不正确!");
|
|
|
+ throw new CommonException("验证码不正确!");
|
|
|
}else{
|
|
|
commonCacheOperator.remove(consumptionRecordAddParam.getPhoneNumber());
|
|
|
}
|
|
|
+ }else{
|
|
|
+ throw new CommonException("短信验证码已过期");
|
|
|
}
|
|
|
}
|
|
|
//判断当前消费金额是否大于代金券金额,优先扣减代金券金额
|