打印日志

This commit is contained in:
Guoqs
2024-06-18 11:08:57 +08:00
parent 188be6d7ad
commit 1e05c0288e

View File

@@ -247,7 +247,7 @@ public class OrderController extends BaseController {
*/
@PostMapping("/uniAppStartChargingSendMsg")
public RestApiResponse<?> uniAppStartChargingSendMsg(HttpServletRequest request, @RequestBody WechatSendMsgDTO dto) {
logger.info("微信小程序发送启动充电推送消息 param:{}", JSON.toJSONString(dto));
// logger.info("微信小程序发送启动充电推送消息 param:{}", JSON.toJSONString(dto));
RestApiResponse<?> response = null;
try {
String memberId = getMemberIdByAuthorization(request);
@@ -255,10 +255,10 @@ public class OrderController extends BaseController {
Map<String, String> resultMap = wxAppletRemoteService.startChargingSendMsg(dto);
response = new RestApiResponse<>(resultMap);
} catch (Exception e){
logger.error("微信小程序发送启动充电推送消息 error", e);
logger.error("微信小程序发送启动充电推送消息error, param:{}", JSON.toJSONString(dto), e);
response = new RestApiResponse<>("00300001", "微信小程序发送启动充电推送消息异常");
}
logger.info("微信小程序发送启动充电推送消息 result:{}", response);
logger.info("微信小程序发送启动充电推送消息 param:{}, result:{}", JSON.toJSONString(dto), response);
return response;
}