From 07ccc78892b26dabc976363c874c177230f9bbcb Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期三, 07 六月 2023 21:26:57 +0800
Subject: [PATCH] 2023年06月07日21:26:48

---
 app/src/main/java/com/hdl/photovoltaic/other/HdlAccountLogic.java |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 54 insertions(+), 0 deletions(-)

diff --git a/app/src/main/java/com/hdl/photovoltaic/other/HdlAccountLogic.java b/app/src/main/java/com/hdl/photovoltaic/other/HdlAccountLogic.java
index 4238242..63c9ae5 100644
--- a/app/src/main/java/com/hdl/photovoltaic/other/HdlAccountLogic.java
+++ b/app/src/main/java/com/hdl/photovoltaic/other/HdlAccountLogic.java
@@ -1,5 +1,6 @@
 package com.hdl.photovoltaic.other;
 
+
 /**
  * 鐧婚檰鐣岄潰鐨勯�昏緫
  */
@@ -19,4 +20,57 @@
         return sHdlAccountLogic;
     }
 
+
+    /**
+     * 鍒濆鍖栬处鍙风殑Url鍖哄煙鍦板潃(鍙兘鐘舵�佺爜:Sucess  NotAccount  NotNetWork)
+     *
+     * @param i_account
+     * @return
+     */
+    private void InitAccoutRegionInfo(String i_account) {
+//        String regionUrl = this.GetAccoutRegionInfo(i_account);
+//
+//
+//        if (regionUrl == null) {
+//            return AccountStatu.NotNetWork;
+//        }
+//        if (regionUrl == string.Empty) {
+//            return AccountStatu.NotAccount;
+//        }
+//
+//        return AccountStatu.Sucess;
+    }
+
+    /**
+     * 鑾峰彇璐﹀彿鎵�鍦ㄥ尯鍩�
+     *
+     * @param account
+     * @param callBack
+     * @return https://nearest.hdlcontrol.com/smart-footstone/region/regionByUserAccount
+     */
+//    public Disposable regionByAccount(String account, IRegionByAccountCallBack callBack) {
+//        String requestUrl = HDLLinkPMSdk.getInitUrl() + HttpApi.POST_RegionByUserAccount;
+//        return HxHttp.builder()
+//                .url(requestUrl)
+//                .params("account", account)
+//                .build()
+//                .post()
+//                .subscribeWith(new HDLResponse<HDLUserRegionBean>() {
+//                    @Override
+//                    public void onResponse(HDLUserRegionBean response) {
+//                        if (callBack != null) {
+//                            callBack.onSuccess(response);
+//                        }
+//                    }
+//
+//                    @Override
+//                    public void onFailure(HDLException e) {
+//                        HDLExceptionSubmitUtils.submit(requestUrl, account, e);
+//                        if (callBack != null) {
+//                            callBack.onFailure(e);
+//                        }
+//                    }
+//                });
+
+//    }
 }

--
Gitblit v1.8.0