vali преди 6 години
родител
ревизия
aedec8b3ee
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  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' => '成功']);
     }