|
|
@@ -749,6 +749,10 @@ public class CmsOrderDonServiceImpl extends ServiceImpl<OrderDonMapper,OrderDon>
|
|
|
if (relation.getRechargeStatus() != null) {
|
|
|
throw BusinessRuntimeException.getInstance("代充账号车票无法更换车票");
|
|
|
}
|
|
|
+ //冻结中 不允许更换车票
|
|
|
+ if (relation.getIsFrozen()) {
|
|
|
+ throw BusinessRuntimeException.getInstance("用户车票冻结中,无法更换车票");
|
|
|
+ }
|
|
|
String key = RedisService.key.NETFLIX_CHANGE_TICKET_KEY.getName() + relationId;
|
|
|
if (!redisService.setNx(key, relationId, RedisService.key.NETFLIX_CHANGE_TICKET_KEY.getTimeout())) {
|
|
|
throw BusinessRuntimeException.getInstance("正在更换车票中..");
|