zoujiajian hai 1 ano
pai
achega
cbe8ae6633

+ 3 - 0
netflix-service/src/main/java/com/cyksj/service/mange/gpt/impl/GptRechargeServiceImpl.java

@@ -270,6 +270,9 @@ public class GptRechargeServiceImpl implements GptRechargeService {
 		relation.setRechargeNum(months > num ? months : num);
 		relation.setRechargeRemainNum(num);
 		GroupsTrips groupsTrips = groupsMapper.selectById(relation.getGroupsId());
+		if (groupsTrips.getAccountId() == null) {
+			throw BusinessRuntimeException.getInstance("该订单车队未配置账号");
+		}
 		Account account = accountMapper.selectById(groupsTrips.getGoodsId());
 		//代充账号设置
 		relation.setAccount(account.getAccount());