|
|
@@ -20,7 +20,6 @@ import com.cyksj.mapper.renew.RenewUpgradePackageMapper;
|
|
|
import com.cyksj.model.dto.ChatgptUserVerifyDto;
|
|
|
import com.cyksj.model.entity.*;
|
|
|
import com.cyksj.model.request.GeminiOauthReq;
|
|
|
-import com.cyksj.model.response.ConversationLimitResponse;
|
|
|
import com.cyksj.model.response.GeminiConversationCountResponse;
|
|
|
import com.cyksj.model.views.*;
|
|
|
import com.cyksj.service.chatgpt.ChatGptAccountService;
|
|
|
@@ -580,11 +579,11 @@ public class MirrorController {
|
|
|
JSONObject result = new JSONObject();
|
|
|
|
|
|
if (user == null) {
|
|
|
- result.putOpt("code",0);
|
|
|
+ result.putOpt("code",1);
|
|
|
result.putOpt("msg","用户不存在或已过期");
|
|
|
return result.toString();
|
|
|
}
|
|
|
- result.putOpt("code",1);
|
|
|
+ result.putOpt("code",0);
|
|
|
result.putOpt("msg","登陆成功");
|
|
|
result.putOpt("isPro",true);
|
|
|
result.putOpt("usertoken",userToken);
|
|
|
@@ -594,7 +593,7 @@ public class MirrorController {
|
|
|
} catch (Exception e) {
|
|
|
log.error("服务器错误", e);
|
|
|
JSONObject result = new JSONObject();
|
|
|
- result.putOpt("code",0);
|
|
|
+ result.putOpt("code",1);
|
|
|
result.putOpt("msg","服务器错误");
|
|
|
return result.toString();
|
|
|
}
|