vali 6 жил өмнө
parent
commit
f8766753c5

+ 4 - 3
application/admin/controller/System.php

@@ -546,9 +546,9 @@ class System extends Base
     // 历史会话记录详情
     public function detail()
     {
-        $id = input('get.id');
+        $id = intval(input('get.id'));
         $type = input('get.type', '');
-        
+
         $chat = db('chat_log')->where('servicelog_id', $id)->order('time_line')->select();
         $html = '';
         for ($i = 0; $i < count($chat); $i++) {
@@ -575,7 +575,8 @@ class System extends Base
             }
 
         }
-        $redis = new Redis;
+        $redisconfig = require (APP_PATH.'redis.php');
+        $redis = new Redis($redisconfig);
         if ($type === 'onLine') {
             $servicelog = json_decode($redis->handler()->Hget('SERVICELOG', $id), true);
         } else {