vali há 6 anos atrás
pai
commit
7348c290b9
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      application/index/controller/Index.php

+ 2 - 2
application/index/controller/Index.php

@@ -111,12 +111,12 @@ class Index extends Common
         $time = date('Y-m-d H:i', $now);
 
         $checkcode = db('platform')->where('platform_code', 'Customer-Service')->find();
-        $chkcode = $checkcode ? $checkcode->platform_status : 1;
+        $chkcode = $checkcode ? $checkcode['platform_status'] : 1;
 
         $settings = db('settings')->where('id', 1)->find();
 
         $ret = [
-            'time' => date('Y-m-d H:i:s', $time),
+            'time' => $time,
             'checkcodeflag' => $chkcode,
             'logo' => $settings['logo'],
             'enterprise_name' => $settings['enterprise_name'],