Ver Fonte

抽奖时区

bianjunhui há 2 anos atrás
pai
commit
411f70ae89
1 ficheiros alterados com 2 adições e 0 exclusões
  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;
     }