|
|
|
@ -18,7 +18,8 @@ class SpendCountSetController extends \Think\Controller
|
|
|
|
|
//初始化
|
|
|
|
|
$this->beginThismonth = mktime(0,0,0,date('m')-1,1,date('Y'));
|
|
|
|
|
$this->endThismonth = mktime(0,0,0,date('m'),1,date('Y'))-1;
|
|
|
|
|
$this->date = date('Y')."-".((date('m')-1) > 9 ? (date('m')-1) : "0".(date('m')-1));
|
|
|
|
|
$temp = strtotime(date('Y-m-01 00:00:00',strtotime('-1 month')));
|
|
|
|
|
$this->date = date('Y',$temp)."-".date('m',$temp);
|
|
|
|
|
$this->nowdata =time();
|
|
|
|
|
$this->model =M();
|
|
|
|
|
$this->usermodel =M("spend_user_count",'tab_');
|
|
|
|
|