打印日志

This commit is contained in:
2023-08-08 16:47:45 +08:00
parent 90b5762e85
commit 4ddcece893

View File

@@ -1,5 +1,6 @@
package com.jsowell.api.uniapp; package com.jsowell.api.uniapp;
import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONObject; import com.alibaba.fastjson2.JSONObject;
import com.jsowell.adapay.dto.BalancePaymentRequestDTO; import com.jsowell.adapay.dto.BalancePaymentRequestDTO;
import com.jsowell.adapay.service.AdapayMemberService; import com.jsowell.adapay.service.AdapayMemberService;
@@ -193,6 +194,7 @@ public class TempController extends BaseController {
*/ */
@PostMapping("/orderSplittingOperations") @PostMapping("/orderSplittingOperations")
public RestApiResponse<?> orderSplittingOperations(@RequestBody QueryOrderDTO dto) { public RestApiResponse<?> orderSplittingOperations(@RequestBody QueryOrderDTO dto) {
logger.info("手动接口执行订单分账逻辑-param:{}", JSON.toJSONString(dto));
RestApiResponse<?> response = null; RestApiResponse<?> response = null;
try { try {
String startTime = dto.getStartTime(); String startTime = dto.getStartTime();
@@ -207,13 +209,13 @@ public class TempController extends BaseController {
response = new RestApiResponse<>(); response = new RestApiResponse<>();
} catch (BusinessException e) { } catch (BusinessException e) {
logger.warn("运营商分账手动接口warn", e); logger.warn("手动接口执行订单分账逻辑-warn", e);
response = new RestApiResponse<>(e.getCode(), e.getMessage()); response = new RestApiResponse<>(e.getCode(), e.getMessage());
} catch (Exception e) { } catch (Exception e) {
logger.error("运营商分账手动接口error", e); logger.error("手动接口执行订单分账逻辑-error", e);
response = new RestApiResponse<>(ReturnCodeEnum.CODE_WEIXIN_REFUND_ERROR); response = new RestApiResponse<>(ReturnCodeEnum.CODE_WEIXIN_REFUND_ERROR);
} }
logger.info("运营商分账手动接口result:{}", JSONObject.toJSONString(response)); logger.info("手动接口执行订单分账逻辑-result:{}", JSONObject.toJSONString(response));
return response; return response;
} }