zoujiajian 2 سال پیش
والد
کامیت
2d9dc2ab17
1فایلهای تغییر یافته به همراه2 افزوده شده و 4 حذف شده
  1. 2 4
      netflix-web/src/main/java/com/cyksj/web/controller/manage/account/CmsGptCarController.java

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