rechargeInCheckVip static method

Future<DataResult> rechargeInCheckVip(
  1. String? token,
  2. String? sign,
  3. String? orderId, {
  4. String? productID,
})

充值内购检查是否成功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;
}