|
@@ -1831,6 +1831,20 @@ public class AiHookServiceImpl implements AiHookService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ // 客服进行回复后就转人工10分钟
|
|
|
+ if(fastGptChatSession != null){
|
|
|
+ Calendar calendar = Calendar.getInstance();
|
|
|
+ //定时任务会处理10分钟以内的,所以设置20分钟
|
|
|
+ calendar.add(Calendar.MINUTE, 30);
|
|
|
+ Date expireTime = calendar.getTime();
|
|
|
+
|
|
|
+ FastGptChatSession chatSession = new FastGptChatSession();
|
|
|
+ chatSession.setLastTime(expireTime);
|
|
|
+ chatSession.setIsArtificial(1);
|
|
|
+ chatSession.setSessionId(fastGptChatSession.getSessionId());
|
|
|
+
|
|
|
+ fastGptChatSessionMapper.updateFastGptChatSession(chatSession);
|
|
|
+ }
|
|
|
}
|
|
|
return R.ok();
|
|
|
}
|