mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-21 07:39:55 +08:00
打印日志
This commit is contained in:
@@ -247,7 +247,7 @@ public class OrderController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@PostMapping("/uniAppStartChargingSendMsg")
|
@PostMapping("/uniAppStartChargingSendMsg")
|
||||||
public RestApiResponse<?> uniAppStartChargingSendMsg(HttpServletRequest request, @RequestBody WechatSendMsgDTO dto) {
|
public RestApiResponse<?> uniAppStartChargingSendMsg(HttpServletRequest request, @RequestBody WechatSendMsgDTO dto) {
|
||||||
logger.info("微信小程序发送启动充电推送消息 param:{}", JSON.toJSONString(dto));
|
// logger.info("微信小程序发送启动充电推送消息 param:{}", JSON.toJSONString(dto));
|
||||||
RestApiResponse<?> response = null;
|
RestApiResponse<?> response = null;
|
||||||
try {
|
try {
|
||||||
String memberId = getMemberIdByAuthorization(request);
|
String memberId = getMemberIdByAuthorization(request);
|
||||||
@@ -255,10 +255,10 @@ public class OrderController extends BaseController {
|
|||||||
Map<String, String> resultMap = wxAppletRemoteService.startChargingSendMsg(dto);
|
Map<String, String> resultMap = wxAppletRemoteService.startChargingSendMsg(dto);
|
||||||
response = new RestApiResponse<>(resultMap);
|
response = new RestApiResponse<>(resultMap);
|
||||||
} catch (Exception e){
|
} catch (Exception e){
|
||||||
logger.error("微信小程序发送启动充电推送消息 error", e);
|
logger.error("微信小程序发送启动充电推送消息error, param:{}", JSON.toJSONString(dto), e);
|
||||||
response = new RestApiResponse<>("00300001", "微信小程序发送启动充电推送消息异常");
|
response = new RestApiResponse<>("00300001", "微信小程序发送启动充电推送消息异常");
|
||||||
}
|
}
|
||||||
logger.info("微信小程序发送启动充电推送消息 result:{}", response);
|
logger.info("微信小程序发送启动充电推送消息 param:{}, result:{}", JSON.toJSONString(dto), response);
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user