优化管理后台查询

master
elf 2 years ago
parent 33cb601592
commit 6f0b05fb04

@ -2061,8 +2061,8 @@ class DownloadController extends BaseController
$createTimeBegin = strtotime($createTimeRow[0] . ' 00:00:00');
$createTimeEnd = strtotime($createTimeRow[0] . ' 23:59:59');
}
if (($createTimeEnd - $createTimeBegin) > 7*24*3600) {
$this->error('时间范围不能超过7天');
if (($createTimeEnd - $createTimeBegin) > 31*24*3600) {
$this->error('时间范围不能超过31天');
}
$map['create_time'] = ['between', [$createTimeBegin, $createTimeEnd]];
}

Loading…
Cancel
Save