json(['success' => true, ...$pageData->details($request)]) ->header('Cache-Control', 'no-store'); } catch (Throwable $exception) { report($exception); return response() ->json([ 'success' => false, 'message' => '管理费用明细暂时无法读取,请稍后重试。', ], 503) ->header('Cache-Control', 'no-store'); } } public function storeSummary(Request $request, ManagementExpensesPageData $pageData): JsonResponse { try { return response() ->json(['success' => true, ...$pageData->storeSummary($request)]) ->header('Cache-Control', 'no-store'); } catch (Throwable $exception) { report($exception); return response() ->json([ 'success' => false, 'message' => '店铺汇总暂时无法读取,请稍后重试。', ], 503) ->header('Cache-Control', 'no-store'); } } }