优化增加第三方【每日推送】原始数据记录日志.log
This commit is contained in:
@@ -93,7 +93,7 @@ class DailyPush extends Backend
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出 Excel(CSV 流式写入,兼容 Excel 打开)
|
||||
* 导出 Excel(XLSX 流式写入)
|
||||
*/
|
||||
public function export(Request $request): Response
|
||||
{
|
||||
@@ -104,12 +104,12 @@ class DailyPush extends Backend
|
||||
|
||||
$fieldsRaw = $request->post('fields', $request->get('fields', []));
|
||||
$fields = is_array($fieldsRaw) ? $fieldsRaw : explode(',', strval($fieldsRaw));
|
||||
$limitRaw = strval($request->post('export_limit', $request->get('export_limit', '1000')));
|
||||
$limitRaw = strval($request->post('export_limit', $request->get('export_limit', '0')));
|
||||
if (!is_numeric($limitRaw)) {
|
||||
return $this->error(__('Parameter error'));
|
||||
}
|
||||
$limit = intval($limitRaw);
|
||||
if ($limit < 1) {
|
||||
if ($limit < 0) {
|
||||
return $this->error(__('Parameter error'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user