rechargeInCheckVip static method
充值内购检查是否成功Vip
Implementation
static Future<DataResult> rechargeInCheckVip(
String? token, String? sign, String? orderId,
{String? productID}) async {
Map other = {
'baseStr': token,
'signature': sign ?? '',
'orderId': orderId ?? '',
'code': productID ?? '',
};
var res =
await BaseDao.fromBaseJson(other, RechargeUrl.rechargeInCheckVip());
if (res.result) {
var entity = RechargeEntity.fromJson(res.data);
return DataResult(entity, true);
}
return res;
}