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