소스 검색

给前端时间戳

lizhen_gitee 6 달 전
부모
커밋
2f4331460e
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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);