|
|
@@ -1,7 +1,6 @@
|
|
|
package com.cyksj.web.controller.mirror;
|
|
|
|
|
|
import cn.hutool.core.date.DateTime;
|
|
|
-import cn.hutool.core.date.DateUtil;
|
|
|
import cn.hutool.core.util.RandomUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import cn.hutool.extra.servlet.ServletUtil;
|
|
|
@@ -19,7 +18,6 @@ import com.cyksj.mapper.GroupsRelationMapper;
|
|
|
import com.cyksj.mapper.renew.RenewUpgradePackageMapper;
|
|
|
import com.cyksj.model.dto.ChatgptUserVerifyDto;
|
|
|
import com.cyksj.model.entity.*;
|
|
|
-import com.cyksj.model.request.GrokOauthReq;
|
|
|
import com.cyksj.model.views.*;
|
|
|
import com.cyksj.service.chatgpt.ChatGptAccountService;
|
|
|
import com.cyksj.service.claude.ClaudeService;
|
|
|
@@ -47,7 +45,7 @@ import java.time.LocalDateTime;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
- * /server/镜像服务/claude
|
|
|
+ * /server/镜像服务/grok
|
|
|
*
|
|
|
* @author chan
|
|
|
* @date 2024/3/19 14:41
|
|
|
@@ -567,7 +565,7 @@ public class MirrorController {
|
|
|
*
|
|
|
*/
|
|
|
@GetMapping("/grok/{relationId}/")
|
|
|
- public Result<String> claudeCarLogin(String domain, @PathVariable Long relationId) throws IOException {
|
|
|
+ public Result<String> grokCarLogin(String domain, @PathVariable Long relationId) throws IOException {
|
|
|
Long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
grokService.checkCarAccount(userId, relationId);
|
|
|
String url = grokService.getCarLoginUrl(domain, userId, relationId);
|