zoujiajian há 2 anos atrás
pai
commit
2d9dc2ab17

+ 2 - 4
netflix-web/src/main/java/com/cyksj/web/controller/manage/account/CmsGptCarController.java

@@ -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();
 	}