|
|
@@ -528,7 +528,7 @@ public class ClaudeCodeServiceImpl implements ClaudeCodeService {
|
|
|
.execute();
|
|
|
ClaudeCodeResp resp = Jsons.parseObject(execute.body(), ClaudeCodeResp.class);
|
|
|
if (!Constant.SUCCESS.equals(resp.getMessage())) {
|
|
|
- log.info("claude code GET URL:{}接口返回msg:{}", url, resp.getMessage());
|
|
|
+ log.error("claude code GET URL:{}接口返回msg:{}", url, resp.getMessage());
|
|
|
}
|
|
|
return resp;
|
|
|
} catch (HttpException e) {
|
|
|
@@ -536,7 +536,7 @@ public class ClaudeCodeServiceImpl implements ClaudeCodeService {
|
|
|
}
|
|
|
});
|
|
|
} catch (ExecutionException | RetryException e) {
|
|
|
- log.info("重试调用claude code GET请求url->{}失败,msg->{}", url, StringUtil.getErrorText(e));
|
|
|
+ log.error("重试调用claude code GET请求url->{}失败,msg->{}", url, StringUtil.getErrorText(e));
|
|
|
throw BusinessRuntimeException.getInstance("接口请求失败");
|
|
|
}
|
|
|
}
|
|
|
@@ -557,7 +557,7 @@ public class ClaudeCodeServiceImpl implements ClaudeCodeService {
|
|
|
.execute();
|
|
|
ClaudeCodeResp resp = Jsons.parseObject(execute.body(), ClaudeCodeResp.class);
|
|
|
if (!Constant.SUCCESS.equals(resp.getMessage())) {
|
|
|
- log.info("claude code POST URL:{}接口返回msg:{}", url, resp.getMessage());
|
|
|
+ log.error("claude code POST URL:{}接口返回msg:{}", url, resp.getMessage());
|
|
|
}
|
|
|
return resp;
|
|
|
} catch (Exception e) {
|
|
|
@@ -581,7 +581,7 @@ public class ClaudeCodeServiceImpl implements ClaudeCodeService {
|
|
|
HttpResponse execute = HttpUtil.createRequest(Method.DELETE, url).header(CLAUDE_CODE_HEARD_KEY, CLAUDE_CODE_API_ADMIN_KEY).setConnectionTimeout(CONNECT_MILLISECONDS).execute();
|
|
|
ClaudeCodeResp resp = Jsons.parseObject(execute.body(), ClaudeCodeResp.class);
|
|
|
if (!Constant.SUCCESS.equals(resp.getMessage())) {
|
|
|
- log.info("claude code DELETE URL:{}接口返回msg:{}", url, resp.getMessage());
|
|
|
+ log.error("claude code DELETE URL:{}接口返回msg:{}", url, resp.getMessage());
|
|
|
}
|
|
|
return resp;
|
|
|
} catch (HttpException e) {
|
|
|
@@ -589,7 +589,7 @@ public class ClaudeCodeServiceImpl implements ClaudeCodeService {
|
|
|
}
|
|
|
});
|
|
|
} catch (ExecutionException | RetryException e) {
|
|
|
- log.info("重试调用claude code DELETE请求url->{}失败,msg->{}", url, StringUtil.getErrorText(e));
|
|
|
+ log.error("重试调用claude code DELETE请求url->{}失败,msg->{}", url, StringUtil.getErrorText(e));
|
|
|
throw BusinessRuntimeException.getInstance("接口请求失败");
|
|
|
}
|
|
|
}
|
|
|
@@ -781,7 +781,7 @@ public class ClaudeCodeServiceImpl implements ClaudeCodeService {
|
|
|
creditCardRecord.setCardNumber(cardNumber);
|
|
|
//使用一次
|
|
|
creditCardRecord.setNum(-1);
|
|
|
- creditCardRecord.setUseReason(creditCard.getRemark());
|
|
|
+ creditCardRecord.setUseReason("使用积分卡");
|
|
|
|
|
|
claudeCodeUserCreditCardRecordMapper.insert(creditCardRecord);
|
|
|
|