|
|
@@ -80,11 +80,17 @@ public class AfDianRechargeServiceImpl implements AfDianRechargeService {
|
|
|
try {
|
|
|
afDianCardKeyResp = afDianValidateCardKey(gptCardKey);
|
|
|
} catch (Exception e) {
|
|
|
- throw BusinessRuntimeException.getInstance("系统繁忙,请重试");
|
|
|
+ if (cmsUser == null) {
|
|
|
+ throw BusinessRuntimeException.getInstance("系统繁忙,请重试");
|
|
|
+ }
|
|
|
+ throw BusinessRuntimeException.getInstance("卡密:{0}错误", gptCardKey);
|
|
|
}
|
|
|
if (afDianCardKeyResp.getUsed()) {
|
|
|
log.error("卡密:{}已被使用", gptCardKey);
|
|
|
- throw BusinessRuntimeException.getInstance("系统繁忙,请重试");
|
|
|
+ if (cmsUser == null) {
|
|
|
+ throw BusinessRuntimeException.getInstance("系统繁忙,请重试");
|
|
|
+ }
|
|
|
+ throw BusinessRuntimeException.getInstance("卡密:{0}已被使用", gptCardKey);
|
|
|
}
|
|
|
String accessToken = relation.getGptToken();
|
|
|
String rechargeAccount = relation.getAccount();
|