优化时间戳

master
chenzhi 5 years ago
parent b3f2069e94
commit f6f47748bc

1
.gitignore vendored

@ -6,3 +6,4 @@ Application/Common/Conf/pay_config.php
Application/Sdk/OrderNo/
.idea/
Uploads/
.vscode

@ -138,8 +138,9 @@ class FinanceController extends ThinkController
$this->error('月份不能为空');
}
$startTime = strtotime(date("Y-m-01",strtotime($month)));
$endTime = strtotime(date("Y-m-t",strtotime($month)));
$tarry = explode('-',$month);
$startTime=mktime(0,0,0,$tarry[1],1,$tarry[0]);
$endTime =mktime(0,0,0,$tarry[1]-0+1,1,$tarry[0])-1;
$map['pay_time'] = array('between',array($startTime,$endTime));
$map['pay_status'] = 1;

Loading…
Cancel
Save