sendSmsCode method

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

发送验证码

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

Implementation

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