Kaynağa Gözat

给前端时间戳

lizhen_gitee 6 ay önce
ebeveyn
işleme
2f4331460e
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      application/api/controller/Baseconfig.php

+ 3 - 1
application/api/controller/Baseconfig.php

@@ -17,7 +17,9 @@ class Baseconfig extends Api
 
         $config = [
             'kefu_user_ids'            => config('site.kefu_user_ids'),//在线客服人员
-            
+            'nowtime'                  => time(),
+            'nowdate'                  => date('Y-m-d H:i:s'),
+            'nowdate1'                 => date('Y-m-d H:i:s',time()+3600),
         ];
 
         $this->success('success',$config);