checkPwd static method
检测原密码
Implementation
static Future<DataResult> checkPwd(String? password) async {
String? encode =
await BaseDao.encryptToBase64(password!, NetConfig.encryptDesPass);
Map other = {'pwd': encode};
var res = await BaseDao.fromBaseJson(other, Address.checkPwd());
if (res.result) {
var entity = TokenEntity.fromJson(res.data);
return DataResult(entity, true);
}
return res;
}