fix buygood logic
parent
a04ab6ee5a
commit
bf9bf974c6
|
@ -71,10 +71,10 @@ public class BuyGoodsLogic {
|
|||
if(isDiscount!=0){
|
||||
price=(int)(sRechargeCommodityConfig.getPrice() * (10 + isDiscount)/10f);
|
||||
}
|
||||
if(!openId.equals("gm-test")&&price*10!=amount){
|
||||
if(!openId.equals("gm-test")&&price*100!=amount){
|
||||
resultRes.setResultCode(0);
|
||||
resultRes.setResultMsg("amount is wrong");
|
||||
LOGGER.info("the uid={},shuld pay={},amount={}",uid,price,amount);
|
||||
LOGGER.info("the uid={},should pay={},amount={}",uid,price*100,amount);
|
||||
return resultRes;
|
||||
}
|
||||
buyCount=buyCount+1;
|
||||
|
|
Loading…
Reference in New Issue