xcGetDeviceRandomUserInfoNotLogin method

Future<Map> xcGetDeviceRandomUserInfoNotLogin({
  1. required String deviceId,
})

获取随机设备随机密码 不登录

Implementation

Future<Map> xcGetDeviceRandomUserInfoNotLogin(
    {required String deviceId}) async {
  final result = await _api.xcDeviceSystemConfigNotLogin(
      deviceId, 'GetRandomUser', '', 0, 1660, 5000, ApiSeq.instance.getSeq());
  if (kDebugMode) {
    XCloudResponse.fromOriginResponse(result);
  }
  if (result.param1 < 0) {
    return Future.error(
        XCloudAPIException(code: result.param1, commandId: result.commandId));
  }
  if (result.byteStream == null) {
    return {};
  }
  String byteString = XCloudResponse.byteToString(result.byteStream);
  return json.decode(byteString);
}