【程序目录】更新

This commit is contained in:
吴昊天 2025-12-17 15:23:56 +08:00
parent 57b9093716
commit e1abe849a0

View File

@ -68,6 +68,12 @@ class FlowStatistic extends AuthController
['type', 'day'],
['time', '']
]);
// 当$where['time']不为空,且格式不是2025/12/01-2025/12/15时,重置$where['time']为空
if ($where['time'] != '' && !preg_match('/^\d{4}\/\d{2}\/\d{2}-\d{4}\/\d{2}\/\d{2}$/', $where['time'])) {
$where['time'] = '';
}
$data = $this->services->getFlowRecord($where);
return app('json')->success($data);
}