verifyCodeCheck static method

Future<DataResult> verifyCodeCheck(
  1. String? email,
  2. String? code
)

验证验证码

Implementation

static Future<DataResult> verifyCodeCheck(String? email, String? code) async {
  Map other = {'email': email, 'verifyCode': code};
  var res = await BaseDao.fromBaseJson(other, Address.verifyCodeCheck());
  if (res.result) {
    var entity = TokenEntity.fromJson(res.data);
    return DataResult(entity, true);
  }
  return res;
}