Commit ff15c0e7 by 周晓航

增加日志打印

Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent d1baacf3
...@@ -12,10 +12,10 @@ import cn.freemud.enums.ResponseResult; ...@@ -12,10 +12,10 @@ import cn.freemud.enums.ResponseResult;
import cn.freemud.interceptor.ServiceException; import cn.freemud.interceptor.ServiceException;
import cn.freemud.redis.RedisCache; import cn.freemud.redis.RedisCache;
import cn.freemud.service.thirdparty.EcologyAdminApplicationClient; import cn.freemud.service.thirdparty.EcologyAdminApplicationClient;
import cn.freemud.utils.AppLogUtil;
import cn.freemud.utils.ResponseUtil; import cn.freemud.utils.ResponseUtil;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.freemud.application.sdk.api.log.ApiLog;
import com.freemud.application.sdk.api.ordercenter.entities.v1.OrderBeanV1; import com.freemud.application.sdk.api.ordercenter.entities.v1.OrderBeanV1;
import com.freemud.application.sdk.api.ordercenter.entities.v1.ProductBeanV1; import com.freemud.application.sdk.api.ordercenter.entities.v1.ProductBeanV1;
import com.freemud.application.sdk.api.ordercenter.enums.OrderClientType; import com.freemud.application.sdk.api.ordercenter.enums.OrderClientType;
...@@ -90,7 +90,7 @@ public class WeChatLiveMsgHandle { ...@@ -90,7 +90,7 @@ public class WeChatLiveMsgHandle {
accessToken = this.refreshAccessToken(orderBean.getAppId(), orderBean.getParentCode()); accessToken = this.refreshAccessToken(orderBean.getAppId(), orderBean.getParentCode());
weChatBaseResponse = weChatClient.orderApply(accessToken, request, WeChatConstant.OrderMethod.ORDER_PAY); weChatBaseResponse = weChatClient.orderApply(accessToken, request, WeChatConstant.OrderMethod.ORDER_PAY);
} }
ApiLog.printLog("视频直播订单数据上报", JSON.toJSONString(request), JSON.toJSONString(weChatBaseResponse), accessToken); AppLogUtil.printLog("视频直播订单数据上报", JSON.toJSONString(request), JSON.toJSONString(weChatBaseResponse));
if ("0".equals(weChatBaseResponse.getErrcode())) { if ("0".equals(weChatBaseResponse.getErrcode())) {
if (flag == 0) { if (flag == 0) {
...@@ -100,7 +100,7 @@ public class WeChatLiveMsgHandle { ...@@ -100,7 +100,7 @@ public class WeChatLiveMsgHandle {
requestVO.setOpenid(Objects.isNull(openid) ? "" : openid.toString()); requestVO.setOpenid(Objects.isNull(openid) ? "" : openid.toString());
requestVO.setFinish_all_delivery(0); requestVO.setFinish_all_delivery(0);
weChatBaseResponse = weChatClient.orderApply(accessToken, request, WeChatConstant.OrderMethod.ORDER_SEND); weChatBaseResponse = weChatClient.orderApply(accessToken, request, WeChatConstant.OrderMethod.ORDER_SEND);
ApiLog.printLog("视频直播发货数据上报", JSON.toJSONString(requestVO), JSON.toJSONString(weChatBaseResponse), accessToken); AppLogUtil.printLog("视频直播发货数据上报", JSON.toJSONString(requestVO), JSON.toJSONString(weChatBaseResponse));
} }
} }
} }
...@@ -130,7 +130,7 @@ public class WeChatLiveMsgHandle { ...@@ -130,7 +130,7 @@ public class WeChatLiveMsgHandle {
// 调用失败 // 调用失败
return ResponseUtil.error(ResponseResult.SYSTEM_BUSINESS_ERROR.getCode(), "错误码" + ResponseResult.SYSTEM_BUSINESS_ERROR.getCode() + ",创建视频号订单异常,请稍后再试。"); return ResponseUtil.error(ResponseResult.SYSTEM_BUSINESS_ERROR.getCode(), "错误码" + ResponseResult.SYSTEM_BUSINESS_ERROR.getCode() + ",创建视频号订单异常,请稍后再试。");
} }
ApiLog.printLog("视频直播订单创建", JSON.toJSONString(requestVO), JSON.toJSONString(weChatBaseResponse), accessToken); AppLogUtil.printLog("视频直播订单创建", JSON.toJSONString(requestVO), JSON.toJSONString(weChatBaseResponse));
if ("0".equals(weChatBaseResponse.getErrcode())) { if ("0".equals(weChatBaseResponse.getErrcode())) {
// 调用成功 // 调用成功
OrderCreateResponseVO data = weChatBaseResponse.getData(); OrderCreateResponseVO data = weChatBaseResponse.getData();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment