BUG $user 沒有資料造成錯誤 20250604
This commit is contained in:
parent
7c71040ef1
commit
4b617f3882
@ -320,6 +320,7 @@ class RoomControlController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
$mainDomainUrl= $parsed['scheme'] . '://' . $mainDomain;
|
$mainDomainUrl= $parsed['scheme'] . '://' . $mainDomain;
|
||||||
|
$user = User::find(2);
|
||||||
if ($user && $user->api_plain_token) {
|
if ($user && $user->api_plain_token) {
|
||||||
$client = (new ApiClient($mainDomainUrl, $user->api_plain_token));
|
$client = (new ApiClient($mainDomainUrl, $user->api_plain_token));
|
||||||
$response = $client->post($endpoint, $validated);
|
$response = $client->post($endpoint, $validated);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user