소스 검색

自助建站-ai会话-获取消息列表

FengR 2 달 전
부모
커밋
d7d92e2f3e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/JsonRpc/PublicRpcService.php

+ 1 - 1
app/JsonRpc/PublicRpcService.php

@@ -4248,7 +4248,7 @@ class PublicRpcService implements PublicRpcServiceInterface
         }
         $aichat = Aichat::where('user_id',$data['user_id'])
         ->where('session_id',$data['session_id'])
-        ->orderBy('send_time','desc')
+        ->orderBy('send_time')
         ->get()->all();
         if(empty($aichat)){
             return Result::error('消息不存在!');