|
|
@@ -62,11 +62,9 @@ public class CmsGptCarController {
|
|
|
ChatgptSession dbChatSession = chatgptSessionMapper.selectById(id);
|
|
|
if (!ObjectUtil.equal(dbChatSession.getEmail(), chatgptSession.getEmail()) || !ObjectUtil.equal(dbChatSession.getPassword(), chatgptSession.getPassword())) {
|
|
|
String gptSession = chatGptAccountService.getGptSession(dbChatSession.getEmail(), dbChatSession.getPassword());
|
|
|
- dbChatSession.setOfficialSession(gptSession);
|
|
|
- dbChatSession.setEmail(chatgptSession.getEmail());
|
|
|
- dbChatSession.setPassword(chatgptSession.getPassword());
|
|
|
+ chatgptSession.setOfficialSession(gptSession);
|
|
|
}
|
|
|
- chatgptSessionMapper.updateById(dbChatSession);
|
|
|
+ chatgptSessionMapper.updateById(chatgptSession);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
|
|