浏览代码

抽奖时区

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;
     }