Selaa lähdekoodia

优化门诊指引单二维码日志

lighter 3 vuotta sitten
vanhempi
commit
ef302ed214

+ 1 - 1
src/main/java/thyyxxk/wxservice_server/service/WxApiService.java

@@ -266,7 +266,6 @@ public class WxApiService {
         cny.put("currency", "CNY");
         body.put("amount", cny);
         String reqdata = JSONObject.toJSONString(body);
-        log.info("请求门诊指引单二维码:{}", reqdata);
         HttpPost httpPost = new HttpPost("https://api.mch.weixin.qq.com/v3/pay/transactions/native");
         StringEntity entity = new StringEntity(reqdata, StandardCharsets.UTF_8);
         entity.setContentEncoding("UTF-8");
@@ -280,6 +279,7 @@ public class WxApiService {
         int statusCode = response.getStatusLine().getStatusCode();
         String ret = EntityUtils.toString(response.getEntity());
         httpClient.close();
+        log.info("请求门诊指引单二维码:参数\n:{}\n结果:{}", param, ret);
         if (statusCode == ExceptionEnum.SUCCESS.getCode()) {
             long timesStamp = System.currentTimeMillis() / 1000;
             WxPayOrder order = new WxPayOrder();