調整 IP port 寫入 20250603
This commit is contained in:
parent
78772d86a5
commit
826ae92c3b
@ -193,10 +193,8 @@ class RoomControlController extends Controller
|
||||
$validated['status']= 'error';
|
||||
if($room){
|
||||
$validated['status']= 'online';
|
||||
if($room->internal_ip != $validated['ip']){
|
||||
$room->internal_ip = $validated['ip'];
|
||||
$validated['status']='error';
|
||||
}
|
||||
$room->internal_ip = $validated['ip'];
|
||||
$room->port = 1000;
|
||||
$room->is_online=1;
|
||||
$room->touch(); // 更新 updated_at
|
||||
$room->save();
|
||||
|
Loading…
x
Reference in New Issue
Block a user