|
|
@@ -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();
|
|
|
|