Selaa lähdekoodia

'修改线上服务器全等兼容性问题'

Ethan 6 vuotta sitten
vanhempi
commit
3a2a78f4e3

+ 2 - 2
application/admin/controller/Robot.php

@@ -33,14 +33,14 @@ class Robot extends Base
             $result = model('Robot')->selectJoin($field, $join, $where, $offset, $limit);
             foreach ($result as $key => $vo) {
                 // 优化显示状态.
-                if(1 === $vo['robot_status']) {
+                if(1 == $vo['robot_status']) {
                     $result[$key]['robot_status'] = '<span style="color: #2fbe1b">启用</span>';
                 } else {
                     $result[$key]['robot_status'] = '<span style="color: red">禁用</span>';
                 }
 
                 // 优化显示热点问题.
-                if (1 === $vo['robot_host']) {
+                if (1 == $vo['robot_host']) {
                     $result[$key]['robot_host'] = '<span style="color: #2fbe1b">是</span>';
                 } else {
                     $result[$key]['robot_host'] = '<span style="color: red">否</span>';

+ 1 - 1
application/admin/controller/Sensitivec.php

@@ -25,7 +25,7 @@ class Sensitivec extends Base
 
             foreach ($result as $key => $vo) {
                 // 优化显示状态.
-                if(1 === $vo['sensitivewords_status']) {
+                if(1 == $vo['sensitivewords_status']) {
                     $result[$key]['sensitivewords_status'] = '<span style="color: #2fbe1b">启用</span>';
                 } else {
                     $result[$key]['sensitivewords_status'] = '<span style="color: red">禁用</span>';

+ 1 - 1
application/index/controller/Alarm.php

@@ -30,7 +30,7 @@ class Alarm extends Common
             $type                   = input('get.type');
             $where['servicelog_id'] = $conversationId;
             // 获取数据.
-            if ($type === '1') {
+            if ($type == '1') {
                 $field = ['alarm_userSensitive'];
                 $alarm = model('Alarm')->findAlarm($field, $where);
                 // 修改或新增数据.

+ 3 - 3
application/service/controller/History.php

@@ -84,7 +84,7 @@ class History extends Common
             $evaluate        = model('Evaluate')->getEvaluate();
             foreach ($serviceLog as $k => $v) {
                 foreach ($evaluate as $va) {
-                    if ($v->evaluate_id === $va->evaluate_id) {
+                    if ($v->evaluate_id == $va->evaluate_id) {
                         $serviceLog[$k]->evaluate_name = $va->evaluate_name;
                     }
                 }
@@ -153,13 +153,13 @@ class History extends Common
             // 会话超时.
             $cvtOvertime = 0;
             foreach ($systemconfig as $v) {
-                if ($v['systemconfig_enName'] === 'verifyReturnTime') {
+                if ($v['systemconfig_enName'] == 'verifyReturnTime') {
                     if ($v['systemconfig_data'] < $alarm['alarm_corresponding']) {
                         $verifyReturnTime = 1;
                     }
                 }
 
-                if ($v['systemconfig_enName'] === 'verifyAllTime') {
+                if ($v['systemconfig_enName'] == 'verifyAllTime') {
                     if ($v['systemconfig_data'] < $alarm['alarm_cvtOvertime']) {
                         $cvtOvertime = 1;
                     }

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

@@ -80,7 +80,7 @@ class Events
         }
 
         // 定时统计数据
-        if (0 === $worker->id) {
+        if (0 == $worker->id) {
 
             self::writeLogKfStatus(0, 0, 0);