v1.1 充值-校验金额-google用amount,payermax用localAmount

This commit is contained in:
2022-10-24 17:28:46 +08:00
parent 179cca1e1b
commit fad8e6d42e

View File

@@ -313,7 +313,8 @@ public class ChargeService extends BaseService {
if (payCenterService.isTarotLowChargeAmountOpen()) {
realAmount = realAmount * 100;
}
Long amount = chargeRecord.getLocalAmount();
Long amount = Constant.ChargeChannel.google_play_billing.equals(chargeRecord.getChannel())?
chargeRecord.getAmount(): chargeRecord.getLocalAmount();
String orderNo = chargeRecord.getChargeRecordId();
if (realAmount != amount) {
// 充值金額與實際價格不一致 (amount以分為單位)