规范日志

back_recharge
jiahuiwen 2022-02-20 10:04:18 +08:00
parent af4b08c3d2
commit 7df22af548
1 changed files with 4 additions and 4 deletions

View File

@ -156,7 +156,7 @@ public class BuyGoodsNewLogic {
public static Result sendGoods(int uid, String sdkGoodsId, String openId, String orderId, long orderTime, int amount) throws Exception {
Result resultRes = new Result();
ISession session = OnlineUserManager.getSessionByUid(uid);
LOGGER.info("send to uid={},the goods={},openID={},orderId={},orderTime={},amount={}",uid,sdkGoodsId,openId,orderId,orderTime,amount);
LOGGER.info("sendGoods to uid={},the goods={},openID={},orderId={},orderTime={},amount={}",uid,sdkGoodsId,openId,orderId,orderTime,amount);
int goodsId = 0;
SRechargeCommodityNewConfig config ;
if(isNumeric(sdkGoodsId)){
@ -169,7 +169,7 @@ public class BuyGoodsNewLogic {
if(null == config){
resultRes.setResultCode(0);
resultRes.setResultMsg("good config null");
LOGGER.error("the uid={},the goodId={},good config null",uid,goodsId);
LOGGER.error("sendGoods the uid={},the goodId={},good config null",uid,goodsId);
return resultRes;
}
goodsId = config.getId();
@ -179,7 +179,7 @@ public class BuyGoodsNewLogic {
if(amount!=-999&&!MathUtils.doubleEquals(amount,price * 100)&&!"support-order".equals(orderId)){
resultRes.setResultCode(0);
resultRes.setResultMsg("charge count error");
LOGGER.error("charge count error, uid={},the goodId={}, currentPrice={},realPrice={}",uid,goodsId, amount,price);
LOGGER.error("sendGoods charge count error, uid={},the goodId={}, currentPrice={},realPrice={}",uid,goodsId, amount,price);
return resultRes;
}
@ -188,7 +188,7 @@ public class BuyGoodsNewLogic {
RechargeHandler rechargeHandler = getRechargeHandler(config.getOtype());
AbstractWelfareBag bag = rechargeHandler.getRechargeMap(user).get(goodsId);
if(bag == null || !bag.buy()){
LOGGER.error("购买失败bag是否为空:{}",bag == null);
LOGGER.error("sendGoods uid={} 购买失败bag是否为空:{}", uid, bag == null);
resultRes.setResultCode(1);
return resultRes;
}