rechargeInCheck static method

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

充值内购检查是否成功

Implementation

static Future<DataResult> rechargeInCheck(String? token, String? sign,
    {String? productID}) async {
  Map other = {
    'baseStr': token,
    'signature': sign ?? '',
    'code': productID ?? '',
  };
  var res = await BaseDao.fromBaseJson(other, RechargeUrl.rechargeInCheck());
  if (res.result) {
    var entity = RechargeEntity.fromJson(res.data);
    return DataResult(entity, true);
  }
  return res;
}