mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 19:45:09 +08:00
update 打印日志
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package com.jsowell.api.uniapp;
|
||||
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.jsowell.common.annotation.Anonymous;
|
||||
import com.jsowell.common.core.controller.BaseController;
|
||||
@@ -89,7 +89,7 @@ public class PayController extends BaseController {
|
||||
PaymentScenarioDTO paymentScenarioDTO = new PaymentScenarioDTO();
|
||||
paymentScenarioDTO.setType(ScenarioEnum.BALANCE.getValue());
|
||||
paymentScenarioDTO.setMemberId(memberId);
|
||||
dto.setAttach(JSONObject.toJSONString(paymentScenarioDTO));
|
||||
dto.setAttach(JSON.toJSONString(paymentScenarioDTO));
|
||||
dto.setDescription("会员充值余额");
|
||||
Map<String, Object> weixinMap = orderService.weixinPayV3(dto);
|
||||
response = new RestApiResponse<>(ImmutableMap.of("weixinMap", weixinMap));
|
||||
@@ -150,7 +150,7 @@ public class PayController extends BaseController {
|
||||
redisCache.unLock(lockKey);
|
||||
}
|
||||
}
|
||||
logger.info("支付订单接口 param:{}, result:{}", JSONObject.toJSONString(dto), JSONObject.toJSONString(response));
|
||||
logger.info("支付订单接口 param:{}, result:{}", JSON.toJSONString(dto), JSON.toJSONString(response));
|
||||
return response;
|
||||
}
|
||||
|
||||
@@ -182,7 +182,7 @@ public class PayController extends BaseController {
|
||||
*/
|
||||
@PostMapping("/wechatPayCallback")
|
||||
public RestApiResponse<?> wechatPayCallback(HttpServletRequest request, @RequestBody WechatPayNotifyParameter body) {
|
||||
logger.info("1----------->微信支付回调开始 body:{}", JSONObject.toJSONString(body));
|
||||
logger.info("1----------->微信支付回调开始 body:{}", JSON.toJSONString(body));
|
||||
RestApiResponse<?> response;
|
||||
try {
|
||||
// orderService.wechatPayCallback(request, body);
|
||||
@@ -205,7 +205,7 @@ public class PayController extends BaseController {
|
||||
*/
|
||||
@PostMapping("/wechatPayRefundCallback")
|
||||
public RestApiResponse<?> wechatPayRefundCallback(HttpServletRequest request, @RequestBody WechatPayNotifyParameter body) {
|
||||
logger.info("微信退款回调接口 body:{}", JSONObject.toJSONString(body));
|
||||
logger.info("微信退款回调接口 body:{}", JSON.toJSONString(body));
|
||||
RestApiResponse<?> response;
|
||||
try {
|
||||
orderService.wechatPayRefundCallback(request, body);
|
||||
@@ -255,7 +255,7 @@ public class PayController extends BaseController {
|
||||
*/
|
||||
@PostMapping("/rechargeBalance")
|
||||
public RestApiResponse<?> rechargeBalance(HttpServletRequest request, @RequestBody WeixinPayDTO dto) {
|
||||
logger.info("adapay会员充值余额 param:{}", JSONObject.toJSONString(dto));
|
||||
logger.info("adapay会员充值余额 param:{}", JSON.toJSONString(dto));
|
||||
RestApiResponse<?> response;
|
||||
try {
|
||||
if (StringUtils.isBlank(dto.getCode()) || StringUtils.isBlank(dto.getAmount())) {
|
||||
@@ -393,7 +393,7 @@ public class PayController extends BaseController {
|
||||
redisCache.unLock(lockKey);
|
||||
}
|
||||
}
|
||||
logger.info("支付占桩订单 result:{}", JSONObject.toJSONString(response));
|
||||
logger.info("支付占桩订单 result:{}", JSON.toJSONString(response));
|
||||
return response;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user