Răsfoiți Sursa

fix 车队计算次数

chenbiao 2 ani în urmă
părinte
comite
d52300eb75

+ 2 - 6
netflix-service/src/main/java/com/cyksj/service/chatgpt/impl/ChatGptAccountServiceImpl.java

@@ -383,10 +383,6 @@ public class ChatGptAccountServiceImpl implements ChatGptAccountService {
             }
         }
         ChatgptSession chatgptSession = chatgptSessionMapper.selectOne(wrapper);
-        if(conversationRequest.getCarId() == null && chatgptSession.getIsCar() && chatgptSession.getCarId() != null){
-            conversationRequest.setCarId(chatgptSession.getCarId());
-        }
-        conversationRequest.setCarId(chatgptSession.getCarId());
         ChatgptUserConversationRecord chatgptUserConversationRecord = new ChatgptUserConversationRecord();
         chatgptUserConversationRecord.setUserToken(userToken);
         chatgptUserConversationRecord.setCarId(chatgptSession.getCarId());
@@ -400,8 +396,8 @@ public class ChatGptAccountServiceImpl implements ChatGptAccountService {
         chatgptUserConversationRecord.setModel(conversationRequest.getModel());
         chatgptUserConversationRecordMapper.insert(chatgptUserConversationRecord);
 
-        if(StringUtils.isNotBlank(conversationRequest.getCarId())){
-            updateExperienceAndScore(conversationRequest.getCarId(), !"text-davinci-002-render-sha".equals(conversationRequest.getModel()), System.currentTimeMillis());
+        if(StringUtils.isNotBlank(chatgptSession.getCarId())){
+            updateExperienceAndScore(chatgptSession.getCarId(), !"text-davinci-002-render-sha".equals(conversationRequest.getModel()), System.currentTimeMillis());
         }
 
     }