xcSmsLoginAndGetDevList method
手机号登录
Implementation
Future<Map<String, dynamic>> xcSmsLoginAndGetDevList(
{required String phone,required String verCode}) async {
final result = await _api.xcSmsLoginAndGetDevList(phone, verCode, ApiSeq.instance.getSeq());
XCloudResponse response =
XCloudResponse.fromOriginResponse<Map<String, dynamic>>(result);
if (!response.success) {
return Future.error(XCloudAPIException(code: response.code,commandId: result.commandId));
}
return Future.value(response.data);
}