verifySmsCode method

Future<BoolEntity?> verifySmsCode({
  1. required String phone,
  2. required String captcha,
  3. String ctcode = '86',
})

验证验证码

phone 手机号(必填) captcha 手机号(必填) ctcode 国家代码(可选,默认为 '86')

Implementation

Future<BoolEntity?> verifySmsCode({
  required String phone,
  required String captcha,
  String ctcode = '86',
}) async {
  final data = {
    'cellphone': phone,
    'captcha': captcha,
    'ctcode': ctcode,
  };
  return await BujuanMusicManager()
      .post<BoolEntity>(url: Api.verifySmsCode, options: createOption(), data: data);
}