起止时间

master
sunke 5 years ago
parent def0b2e374
commit f2265a3cb7

@ -831,9 +831,6 @@ class DownloadController extends BaseController {
* @author sunke * @author sunke
*/ */
public function regist_data_export() { public function regist_data_export() {
if (empty(I('begtime')) || empty(I('endtime'))) {
$this->error('请选择起止时间');
}
$beginTime = strtotime(I('begtime') . ' 00:00:00'); $beginTime = strtotime(I('begtime') . ' 00:00:00');
$endtime = strtotime(I('endtime') . ' 23:59:59'); $endtime = strtotime(I('endtime') . ' 23:59:59');
if (($endtime - $beginTime) > 31 * 24 * 3600) { if (($endtime - $beginTime) > 31 * 24 * 3600) {

Loading…
Cancel
Save