Browse Source

优化请求门诊指引单二维码

lighter 3 năm trước cách đây
mục cha
commit
964a97be94

+ 3 - 2
src/main/java/thyyxxk/wxservice_server/service/WxApiService.java

@@ -253,6 +253,7 @@ public class WxApiService {
     }
 
     public ResultVo<String> generateMzGuideBillPayQrcode(GenMzPayQrcodeParam param) throws Exception {
+        log.info("【{}】请求门诊指引单二维码入参:{}", param.getHisOrdNum(), param);
         String outTradeNo = SnowFlakeId.instance().nextId();
         JSONObject body = new JSONObject();
         body.put("appid", PropertiesUtil.getProperty("appId"));
@@ -279,7 +280,7 @@ public class WxApiService {
         int statusCode = response.getStatusLine().getStatusCode();
         String ret = EntityUtils.toString(response.getEntity());
         httpClient.close();
-        log.info("请求门诊指引单二维码:参数\n:{}\n结果:{}", param, ret);
+        log.info("【{}】请求门诊指引单二维码结果:{}", param.getHisOrdNum(), ret);
         if (statusCode == ExceptionEnum.SUCCESS.getCode()) {
             long timesStamp = System.currentTimeMillis() / 1000;
             WxPayOrder order = new WxPayOrder();
@@ -301,7 +302,7 @@ public class WxApiService {
             JSONObject retObj = JSONObject.parseObject(ret);
             return ResultVoUtil.success(retObj.getString("code_url"));
         }
-        log.error("请求门诊指引单二维码失败:{}", ret);
+        log.error("【{}】请求门诊指引单二维码失败:{}",param.getHisOrdNum(), ret);
         return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "请求微信支付二维码失败,请联系管理员。");
     }