調整 IP port 寫入 20250603

This commit is contained in:
allen.yan 2025-06-03 18:08:47 +08:00
parent 78772d86a5
commit 826ae92c3b

View File

@ -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();