소스 검색

抽奖时区

bianjunhui 2 년 전
부모
커밋
411f70ae89
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      application/api/controller/Raffle.php

+ 2 - 0
application/api/controller/Raffle.php

@@ -184,6 +184,8 @@ class Raffle extends Api
         if(empty($where['r_id'])){
             $this->error('活动ID不能为空');
         }
+        //洛杉矶时间
+        date_default_timezone_set("America/Los_Angeles");
         $where['create_day'] =date('Y-m-d');
         return $where;
     }