rechargeFailLog static method

Future<DataResult> rechargeFailLog(
  1. String? token,
  2. String? sign,
  3. String? orderId,
  4. String? errorMsg,
)

充值失败上报

Implementation

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