소스 검색

时间格式

lizhen_gitee 1 년 전
부모
커밋
3ea65a12d5
2개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 0
      application/api/controller/Usercenter.php
  2. 2 2
      application/index/controller/Index.php

+ 3 - 0
application/api/controller/Usercenter.php

@@ -270,6 +270,9 @@ class Usercenter extends Api
             }
             $order['coach_text'] = substr($coach_text,0,-1);
 
+            //时间
+            $order['showtime_text'] = date('Y-m-d H:i',$order['starttime']);
+
             //放入支付套餐
             /*if($order['paytype'] == 1){
                 $package_order = Db::name('package_order')->alias('order')

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

@@ -21,8 +21,8 @@ class Index extends Controller
             exit;
         }
 
-        $request = Request::instance();
-        $lang = $request->header('lang','zh-cn');
+
+        $lang = input('lang','zh-cn');
 
         $content = Db::name('basedata')->where('key',$key)->find();