調整心跳邏輯 20250701
登入後不在提供 room 資訊 改成 分店名稱
This commit is contained in:
parent
4090e27eb7
commit
5ce742da13
@ -104,7 +104,7 @@ class RoomControlController extends Controller
|
||||
$roomType = strtolower($matches[1]); // 'PC' → 'pc'
|
||||
$roomName = $matches[2]; // '101'
|
||||
}
|
||||
$branch=Branch::where('name',$validated['branch_name'])->first();
|
||||
$branch = Branch::first();
|
||||
$room = Room::where('branch_id', $branch->id)
|
||||
->where('name', $roomName)
|
||||
->where('type', $roomType)
|
||||
@ -124,7 +124,7 @@ class RoomControlController extends Controller
|
||||
// 7. 回傳 token 與包廂資料
|
||||
return ApiResponse::success([
|
||||
'token' => $token,
|
||||
'room' => $room,
|
||||
'branch_name' => $branch->name,
|
||||
]);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user