充值类型更换
parent
433ef98265
commit
329cb6dcc2
|
@ -110,7 +110,9 @@ public class BuyGoodsLogic {
|
||||||
if(buyCount ==null){
|
if(buyCount ==null){
|
||||||
buyCount = 0;
|
buyCount = 0;
|
||||||
}
|
}
|
||||||
double price =sRechargeCommodityConfig.getPrice();
|
double priceTemp =sRechargeCommodityConfig.getPrice();
|
||||||
|
SExchangeRate sExchangeRate = STableManager.getConfig(SExchangeRate.class).get(priceTemp);
|
||||||
|
double price = sExchangeRate.getPrice_2();
|
||||||
buyCount=buyCount+1;
|
buyCount=buyCount+1;
|
||||||
|
|
||||||
//time check
|
//time check
|
||||||
|
|
|
@ -0,0 +1,67 @@
|
||||||
|
package config;
|
||||||
|
|
||||||
|
import manager.STableManager;
|
||||||
|
import manager.Table;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Table(name ="ExchangeRate")
|
||||||
|
public class SExchangeRate implements BaseConfig {
|
||||||
|
|
||||||
|
private int id;
|
||||||
|
|
||||||
|
private int price_1;
|
||||||
|
|
||||||
|
private float price_2;
|
||||||
|
|
||||||
|
private float price_3;
|
||||||
|
|
||||||
|
private float price_4;
|
||||||
|
|
||||||
|
private float price_5;
|
||||||
|
|
||||||
|
private float price_6;
|
||||||
|
|
||||||
|
private float price_7;
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void init() throws Exception {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public int getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getPrice_1() {
|
||||||
|
return price_1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public float getPrice_2() {
|
||||||
|
return price_2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public float getPrice_3() {
|
||||||
|
return price_3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public float getPrice_4() {
|
||||||
|
return price_4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public float getPrice_5() {
|
||||||
|
return price_5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public float getPrice_6() {
|
||||||
|
return price_6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public float getPrice_7() {
|
||||||
|
return price_7;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue