|
|
@@ -1,6 +1,7 @@
|
|
|
package com.cyksj.web.controller.claude;
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.cyksj.common.constant.Constant;
|
|
|
import com.cyksj.common.exception.BusinessRuntimeException;
|
|
|
@@ -268,8 +269,9 @@ public class ClaudeCodeController {
|
|
|
} else {
|
|
|
Long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
String token = oAuthClaudeCodeService.generateAccessToken(userId, clientId);
|
|
|
- log.info("OAuth授权成功: userId={}, clientId={}, token={}", userId, clientId, token.substring(0, 8) + "...");
|
|
|
-
|
|
|
+ if (StrUtil.isNotBlank(token)) {
|
|
|
+ log.info("OAuth授权成功: userId={}, clientId={}, token={}", userId, clientId, token.substring(0, 8) + "...");
|
|
|
+ }
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(token);
|
|
|
}
|
|
|
}
|