vali před 6 roky
rodič
revize
aedec8b3ee
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      application/index/controller/Index.php

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

@@ -52,7 +52,8 @@ class Index extends Controller
 
     public function systime()
     {
-        $time = strtotime(date('Y-m-d'));
+        $now = time();
+        $time = strtotime(date('Y-m-d', $now)) . ',' . date('Y-m-d H:i', $now);
         return json(['code' => 1, 'data' => ['time' => $time], 'msg' => '成功']);
     }