소스 검색

'修改历史会话'

Ethan 6 년 전
부모
커밋
207f3bc9eb
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      thinkphp/library/think/cache/driver/Redis.php
  2. 1 1
      vendor/GatewayWorker_windows/Applications/whisper/Events.php

+ 2 - 2
thinkphp/library/think/cache/driver/Redis.php

@@ -23,9 +23,9 @@ use think\cache\Driver;
 class Redis extends Driver
 {
     protected $options = [
-        'host'       => '192.168.2.200',
+        'host'       => '192.168.2.220',
         'port'       => 26379,
-        'password'   => '',
+        'password'   => '123456',
         'select'     => 1,
         'timeout'    => 0,
         'expire'     => 0,

+ 1 - 1
vendor/GatewayWorker_windows/Applications/whisper/Events.php

@@ -903,7 +903,7 @@ class Events
 
                 // 查询工单历史会话.
                 $serviceid = $last['servicelog_id'];
-                $chatLog = self::$db->select('*')->from('ws_chat_log')->where("servicelog_id=$serviceid")->orderByDESC(['time_line'])->row();
+                $chatLog = self::$db->query("SELECT * FROM `ws_chat_log` where `servicelog_id`= '$serviceid' order by `time_line`");
                 $toOld_message = [
                     'message_type' => 'toOld',
                     'data' => [