From e0a5ebeb7ab4480a89cc22bc1093cea71046edd7 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期一, 14 七月 2025 15:22:43 +0800 Subject: [PATCH] 2025年07月14日14:57:30 --- app/src/main/java/com/hdl/photovoltaic/other/HdlResidenceLogic.java | 36 +++++++++++++++++++++++++++++++++--- 1 files changed, 33 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/hdl/photovoltaic/other/HdlResidenceLogic.java b/app/src/main/java/com/hdl/photovoltaic/other/HdlResidenceLogic.java index 0c8f3ff..0c7bf1d 100644 --- a/app/src/main/java/com/hdl/photovoltaic/other/HdlResidenceLogic.java +++ b/app/src/main/java/com/hdl/photovoltaic/other/HdlResidenceLogic.java @@ -4,6 +4,7 @@ import android.graphics.BitmapFactory; import android.os.Build; import android.text.TextUtils; +import android.util.Log; import com.google.gson.Gson; import com.google.gson.JsonObject; @@ -285,7 +286,6 @@ * ascending:鍗囧簭), */ public void getResidenceIdList(String key, String keyValue, CloudCallBeak<List<HouseIdBean>> cloudCallBeak) { - String requestUrl = HttpApi.POST_PowerStation_List; JsonObject json = new JsonObject(); if (!TextUtils.isEmpty(key) && !TextUtils.isEmpty(keyValue)) { @@ -346,7 +346,6 @@ } }); } - } @Override @@ -605,7 +604,7 @@ json.addProperty("installedCapacityMin", installedCapacityMin); } if (!TextUtils.isEmpty(installedCapacityMax)) { - json.addProperty("installedCapacityMin", installedCapacityMax); + json.addProperty("installedCapacityMax", installedCapacityMax); } if (!TextUtils.isEmpty(debugStatus)) { json.addProperty("debugStatus", debugStatus); @@ -1120,6 +1119,37 @@ } + /** + * 鍒犻櫎鎺ㄩ�乀oken + * + * @param cloudCallBeak - + */ + public void pushDel(CloudCallBeak<String> cloudCallBeak) { + String requestUrl = HttpApi.POST_push_del; + JsonObject json = new JsonObject(); + json.addProperty("pushId", UserConfigManage.getInstance().getPushId()); + json.addProperty("pushToken", UserConfigManage.getInstance().getRegistrationID()); + + HttpClient.getInstance().requestHttp(requestUrl, json.toString(), new CloudCallBeak<String>() { + @Override + public void onSuccess(String jsonStr) { + if (cloudCallBeak != null) { + cloudCallBeak.onSuccess(jsonStr); + } + + } + + @Override + public void onFailure(HDLException e) { + if (cloudCallBeak != null) { + cloudCallBeak.onFailure(e); + } + } + }); + + + } + public static class HouseBeanClass { //鎬绘潯鏁� -- Gitblit v1.8.0