越南金额支付

master_banhao
grimm 2024-08-12 14:16:58 +08:00
parent 568de6e01e
commit c3e5db84b9
2 changed files with 11 additions and 3 deletions

View File

@ -277,9 +277,9 @@ public class BuyGoodsNewLogic {
int goodsId = config.getId();
// 支付金额用分
double price = config.getPrice();
// int cfgType = SSpecialConfig.getIntegerValue(SSpecialConfig.EXCHANGE_FORCE_TYPE);
// double price = priceTemp==0?0: SExchangeRate.doubleIntegerHashMap.get(cfgType).get((int)priceTemp);
double priceTemp = config.getPrice();
int cfgType = SSpecialConfig.getIntegerValue("exchange_focus_type");
double price = priceTemp==0?0: SExchangeRate.doubleIntegerHashMap.get(cfgType).get((int)priceTemp);
if(amount != price*100){
resultRes.setResultMsg("compared amount fail");
LOGGER.error("sendGoods 金额校验失败, uid={}, goodId={}, amount={}, price={}",uid,goodsId, amount, price*100);

View File

@ -28,6 +28,8 @@ public class SExchangeRate implements BaseConfig {
private float price_8;
private float price_9;
public static HashMap<Integer, HashMap<Integer, Double>> doubleIntegerHashMap = new HashMap<>(); //币种 原货币 本货币
@ -103,5 +105,11 @@ public class SExchangeRate implements BaseConfig {
return price_7;
}
public float getPrice_8() {
return price_8;
}
public float getPrice_9() {
return price_9;
}
}