|
|
@@ -418,6 +418,9 @@ public class ClaudeCodeServiceImpl implements ClaudeCodeService {
|
|
|
if (sku.getIsCodex()) {
|
|
|
parmas.put("openai_daily_limit", sku.getOpenaiDailyLimit());
|
|
|
parmas.put("openai_quota", sku.getOpenaiQuota());
|
|
|
+ } else {
|
|
|
+ parmas.put("openai_daily_limit", 0);
|
|
|
+ parmas.put("openai_quota", 0);
|
|
|
}
|
|
|
parmas.put("expire_time", DateUtil.format(expiryTime, "yyyy-MM-dd HH:mm:ss"));
|
|
|
String planUrl = String.format(Constant.CLAUDE_CODE_API_PREFIX + "api/users/%s/plan", userId);
|
|
|
@@ -435,6 +438,8 @@ public class ClaudeCodeServiceImpl implements ClaudeCodeService {
|
|
|
.openaiQuota(sku.getOpenaiQuota())
|
|
|
.expiryTime(expiryTime).build();
|
|
|
codexService.createOrUpdateUserPackage(codexPackageReq);
|
|
|
+ } else {
|
|
|
+ codexService.delCodexUser(userId, relationId);
|
|
|
}
|
|
|
}
|
|
|
return claudeCodeResp;
|