diff --git a/app/index/controller/ClientTicket.php b/app/index/controller/ClientTicket.php index 33beaf8..a654589 100644 --- a/app/index/controller/ClientTicket.php +++ b/app/index/controller/ClientTicket.php @@ -13,9 +13,9 @@ class ClientTicket extends BaseController */ public function getClientTickets(ClientTicketService $ClientTicketService) { - $clientId = Session::get('user_info.id'); // 获取当前登录客户ID + $clientCompanyId = Session::get('user_info.company_id'); // 获取当前登录客户ID try { - $tickets = $ClientTicketService->getClientTickets($clientId); + $tickets = $ClientTicketService->getClientTickets($clientCompanyId); return json(['code' => 200, 'msg' => '获取成功', 'data' => $tickets]); } catch (\Exception $e) { return json(['code' => 400, 'msg' => $e->getMessage(), 'data' => null]);