Compare commits
4 Commits
985778eb03
...
2181149f74
Author | SHA1 | Date |
---|---|---|
tangqian | 2181149f74 | |
tangqian | 3b9484ddaf | |
TianYu | bebd1393a6 | |
TianYu | ca97a7b15d |
|
@ -1502,7 +1502,7 @@ public class StoreOrderServiceImpl extends ServiceImpl<StoreOrderMapper, StoreOr
|
||||||
rechargeGearDOList.forEach(rechargeGearDO -> {
|
rechargeGearDOList.forEach(rechargeGearDO -> {
|
||||||
Boolean flag = phoneRecordService.verifyPhone(request.getUserPhone(), rechargeGearDO.getRefundAmount().intValue() + "");
|
Boolean flag = phoneRecordService.verifyPhone(request.getUserPhone(), rechargeGearDO.getRefundAmount().intValue() + "");
|
||||||
if (flag) {
|
if (flag) {
|
||||||
throw new ServiceException(200, "该挡位:" + rechargeGearDO.getName() + "你已购买,一年内无法再次办理同套餐");
|
throw new ServiceException(200, rechargeGearDO.getName() + ",已办理套餐,一年内无法重复办理");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1516,7 +1516,7 @@ public class StoreOrderServiceImpl extends ServiceImpl<StoreOrderMapper, StoreOr
|
||||||
Map<Long, List<PhoneRecordDO>> collect1 = infoDOS.stream().collect(Collectors.groupingBy(PhoneRecordDO::getRechargeGearId));
|
Map<Long, List<PhoneRecordDO>> collect1 = infoDOS.stream().collect(Collectors.groupingBy(PhoneRecordDO::getRechargeGearId));
|
||||||
orderInfos.forEach(info -> {
|
orderInfos.forEach(info -> {
|
||||||
if (!CollectionUtils.isEmpty(collect1.get(info.getGearId()))) {
|
if (!CollectionUtils.isEmpty(collect1.get(info.getGearId()))) {
|
||||||
throw new ServiceException(200, "该挡位:" + info.getName() + "你已购买,一年内无法再次办理同套餐");
|
throw new ServiceException(200, info.getName() + ",已办理套餐,一年内无法重复办理");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,9 +66,9 @@ const unityPay = (options) => {
|
||||||
_options.aliPaySuccess(payConfig.body)
|
_options.aliPaySuccess(payConfig.body)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
util.Tips({
|
util.Tips({
|
||||||
title: '预下单失败'
|
title: error
|
||||||
})
|
})
|
||||||
}).finally(uni.hideLoading)
|
}).finally(uni.hideLoading)
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
"title": "生产版",
|
"title": "生产版",
|
||||||
"env": {
|
"env": {
|
||||||
"UNI_PLATFORM": "h5",
|
"UNI_PLATFORM": "h5",
|
||||||
"isVConsole": true,
|
"isVConsole": false,
|
||||||
"APP_BASE_URL": "http://api.cyywl.top"
|
"APP_BASE_URL": "http://api.cyywl.top"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue