$key])->first(); if(empty($device)){ return '设备设置缺失!'; } $url = env('APP_URL').'/test_op?id='.$device->device_name; $html = << Script; return $html; } }