xcRegisterToGetChinaPhoneCode method

Future<bool> xcRegisterToGetChinaPhoneCode({
  1. required String phoneNumber,
})

手机号注册-国内手机号获取验证码 phoneNumber手机号 return code:0 回调码 5010

Implementation

Future<bool> xcRegisterToGetChinaPhoneCode({required String phoneNumber}) async {
  final result = await _api.registerToGetChinaPhoneCode(phoneNumber, ApiSeq.instance.getSeq());
  XCloudResponse response = XCloudResponse.fromOriginResponse(result);
  if (!response.success) {
    return Future.error(XCloudAPIException(code: response.code,commandId: result.commandId));
  }
  return Future.value(response.success);
}