فهرست منبع

[功能修复]修复dtp

liuf 1 سال پیش
والد
کامیت
1afb4cb010
2فایلهای تغییر یافته به همراه4 افزوده شده و 5 حذف شده
  1. 3 4
      src/main/java/com/tmzn/devicelinkykc/frameMsg/TransMoney.java
  2. 1 1
      src/main/resources/application-prod.yml

+ 3 - 4
src/main/java/com/tmzn/devicelinkykc/frameMsg/TransMoney.java

@@ -63,7 +63,6 @@ public class TransMoney {
      * @param billingModel
      * @param startTime
      * @param endTime
-     * @param retMap
      * @return
      */
     public Map<String,BigDecimal> compute(int port,BillingModel billingModel,Long startTime,Long endTime) throws Exception{
@@ -83,8 +82,8 @@ public class TransMoney {
         map.put("endTime",(endTime+5*1000)/1000);
         JSONObject jsonObject = new JSONObject(map);
         String s = jsonObject.toString();
-        String billUrl = "http://wetiandi.com/app/index.php?i=1&j=1&c=auth&a=calculate_cost_new&do=compute_elec_all";
-        log.info("后台计费请求参数>>>>{}"+s,billUrl);
+//        String billUrl = "http://wetiandi.com/app/index.php?i=1&j=1&c=auth&a=calculate_cost_new&do=compute_elec_all";
+        log.info("后台计费请求参数>>>>{}"+s,url);
         //String url = "http://your-api-url.com/post";
 //        og.info("后台计费请求参数>>>>"+json);
         //final String url = "http://your-api-url.com/post"; // 替换成您的API URL
@@ -102,7 +101,7 @@ public class TransMoney {
 
         // 创建请求
         Request request = new Request.Builder()
-                .url(billUrl)
+                .url(url)
                 .post(formBuilder.build())
                 .build();
 

+ 1 - 1
src/main/resources/application-prod.yml

@@ -18,7 +18,7 @@ redisMsgChanel: redisMsgChanel
 #本地
 msgService: http://172.16.187.37:8051
 #后台计费地址
-billingInterface: http://wetiandi.com/app/index.php?i=1&j=1&c=auth&a=calculate_cost_new&do=compute_elec_all
+billingInterface: http://w.weguyun.com/app/index.php?i=1&j=1&c=auth&a=calculate_cost_new&do=compute_elec_all
 #集测IP
 #ip: 114.55.7.88