1
0
Fork 0
Jing Li 2023-09-07 17:18:04 +08:00
parent dbfef0a792
commit 2fdecf8154
1 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,11 @@ class LinkosCallbackController extends Controller
case 'online_state_change':
$this->handleDeviceStateNotify($request);
break;
default:
if ($request->filled('device_id')) {
Device::where('sn', $request->input('device_id'))->update(['status' => Device::STATE_ONLINE]);
}
}
}