zoujiajian 6 miesięcy temu
rodzic
commit
9d8825ef70

+ 4 - 1
netflix-service/src/main/java/com/cyksj/service/recharge/impl/ChongAfDianRechargeServiceImpl.java

@@ -86,7 +86,10 @@ public class ChongAfDianRechargeServiceImpl implements ChongAfDianRechargeServic
 			}
 			throw BusinessRuntimeException.getInstance("卡密:{0}错误", gptCardKey);
 		}
-		if (!chongAfDianCardKeyResp.getExists() || !chongAfDianCardKeyResp.getValid()) {
+		if (!chongAfDianCardKeyResp.getExists()) {
+			throw BusinessRuntimeException.getInstance("卡密:{}不存在", gptCardKey);
+		}
+		if (!chongAfDianCardKeyResp.getValid()) {
 			log.error("卡密:{}已被使用", gptCardKey);
 			if (cmsUser == null) {
 				throw BusinessRuntimeException.getInstance("系统繁忙,请重试");