Example #1
0
 public function __construct()
 {
     parent::__construct();
     $this->fromtime = date('Ymd', time()) . '000000';
     //当天凌晨0点
     $this->totime = date('Ymd', time()) . '235959';
     //当天晚上24点
     $this->fromMonth = date('Ym', time()) . '00000000';
     //当天凌晨0点
     //计算当月天数
     $yuefen = date('m', time());
     if ($yuefen == 2) {
         $month = date('Y', time()) % 4 == 0 ? 29 : 28;
     } elseif (in_array($yuefen, [1, 3, 5, 7, 8, 10, 12])) {
         $month = 31;
     } elseif (in_array($yuefen, [4, 6, 9, 11])) {
         $month = 30;
     }
     $month = isset($month) && $month ? $month : 30;
     $this->toMonth = date('Ym', time()) . $month . '235959';
     //当天晚上24点
     $this->model = new UserSignModel();
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
     $this->model = new UserParamsModel();
 }
Example #4
0
 public function __construct()
 {
     parent::__construct();
     $this->model = new MessageModel();
 }
Example #5
0
 public function __construct()
 {
     parent::__construct();
     $this->goodsModel = new GoodsModel();
     $this->productModel = new ProductModel();
 }