优化增加第三方【每日推送】原始数据记录日志.log

This commit is contained in:
2026-07-21 16:44:39 +08:00
parent 2fbc07329e
commit 4fbc4500fd
16 changed files with 371 additions and 143 deletions

View File

@@ -93,7 +93,7 @@ class DailyPush extends Backend
}
/**
* 导出 ExcelCSV 流式写入,兼容 Excel 打开
* 导出 ExcelXLSX 流式写入)
*/
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'));
}