lighter 3 years ago
parent
commit
e2231e4a3f

+ 1 - 1
src/main/java/thyyxxk/wxservice_server/scheduled/QueryOrderStateTask.java

@@ -57,7 +57,7 @@ public class QueryOrderStateTask {
             }
             log.info("定时查询订单支付状态:{}", tradeNos);
             for (TradeNo tradeNo : tradeNos) {
-                if (tradeNo.getQueryStateTimes() >= 60) {
+                if (tradeNo.getQueryStateTimes() >= 30) {
                     WxPayOrder order = new WxPayOrder();
                     order.setTradeNo(tradeNo.getTradeNo());
                     service.closeWxOrder(order);

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

@@ -118,7 +118,6 @@ public class WxApiService {
                 "<sign>" + createOrderSign + "</sign>" +
                 "</xml>";
         String url = "https://api.mch.weixin.qq.com/pay/unifiedorder";
-
         RestTemplate restTemplate = new RestTemplate();
         List<HttpMessageConverter<?>> list = restTemplate.getMessageConverters();
         for (HttpMessageConverter<?> httpMessageConverter : list) {
@@ -225,7 +224,7 @@ public class WxApiService {
         cny.put("currency", "CNY");
         body.put("amount", cny);
         String reqdata = JSONObject.toJSONString(body);
-        log.info("请求微信支付二维码:{}", reqdata);
+        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");

+ 4 - 3
src/main/resources/application.yml

@@ -8,8 +8,8 @@ spring:
   thymeleaf:
     cache: false
   datasource:
-    url: jdbc:jtds:sqlserver://172.16.32.179:1433/thxyhisdb
-#    url: jdbc:jtds:sqlserver://172.16.32.168:1433/thxyhisdb
+#    url: jdbc:jtds:sqlserver://172.16.32.179:1433/thxyhisdb
+    url: jdbc:jtds:sqlserver://172.16.32.168:1433/thxyhisdb
     hikari:
       username: sa
       password:
@@ -31,6 +31,7 @@ mybatis:
   configuration:
     map-underscore-to-camel-case: true
 
-hrgApiUrl: http://172.16.30.33:8089/thmz/api/v1
+#hrgApiUrl: http://172.16.30.33:8089/thmz/api/v1
+hrgApiUrl: http://webhis.thyy.cn:81/thmz/api/v1
 inspectionUrl: http://172.16.32.178:622/pushservice.asmx?wsdl
 production: false