Merge branch 'master' of http://60.1.1.230/backend/jieling_server
commit
4970f48e9d
|
@ -71,10 +71,10 @@ public class BuyGoodsLogic {
|
||||||
if(isDiscount!=0){
|
if(isDiscount!=0){
|
||||||
price=(int)(sRechargeCommodityConfig.getPrice() * (10 + isDiscount)/10f);
|
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.setResultCode(0);
|
||||||
resultRes.setResultMsg("amount is wrong");
|
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;
|
return resultRes;
|
||||||
}
|
}
|
||||||
buyCount=buyCount+1;
|
buyCount=buyCount+1;
|
||||||
|
|
Loading…
Reference in New Issue