|
|
@@ -1,7 +1,6 @@
|
|
|
package com.cyksj.web.controller.mirror;
|
|
|
|
|
|
import cn.hutool.json.JSONObject;
|
|
|
-import com.baomidou.mybatisplus.extension.api.R;
|
|
|
import com.cyksj.common.exception.BusinessRuntimeException;
|
|
|
import com.cyksj.common.task.GlobalThreadPoolTaskExecutor;
|
|
|
import com.cyksj.common.util.IoKit;
|
|
|
@@ -61,10 +60,9 @@ public class MirrorController {
|
|
|
* @param relationId 车票id
|
|
|
*/
|
|
|
@GetMapping("/chatGptMirror/{relationId}")
|
|
|
- public void chatGptMirror(@PathVariable Long relationId) throws IOException {
|
|
|
+ public Result<String> chatGptMirror(@PathVariable Long relationId) throws IOException {
|
|
|
Long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
-
|
|
|
- response.sendRedirect(chatGptAccountService.getLoginUrl(userId, relationId));
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(chatGptAccountService.getLoginUrl(userId, relationId));
|
|
|
}
|
|
|
|
|
|
/**
|