From d1ebb94e1a17b7c25d4fcf73d85345d92cc86b5c Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期二, 02 一月 2024 18:41:34 +0800
Subject: [PATCH] 2024年01月02日18:41:32
---
app/src/main/java/com/hdl/photovoltaic/uni/HDLUniMPSDKManager.java | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/app/src/main/java/com/hdl/photovoltaic/uni/HDLUniMPSDKManager.java b/app/src/main/java/com/hdl/photovoltaic/uni/HDLUniMPSDKManager.java
index b6e4a7f..451def7 100644
--- a/app/src/main/java/com/hdl/photovoltaic/uni/HDLUniMPSDKManager.java
+++ b/app/src/main/java/com/hdl/photovoltaic/uni/HDLUniMPSDKManager.java
@@ -12,7 +12,9 @@
import com.hdl.photovoltaic.config.AppConfigManage;
import com.hdl.photovoltaic.other.HdlLogLogic;
import com.hdl.photovoltaic.other.HdlThreadLogic;
+import com.hdl.sdk.link.core.bean.eventbus.BaseEventBus;
+import org.greenrobot.eventbus.EventBus;
import org.json.JSONException;
import org.json.JSONObject;
@@ -111,6 +113,12 @@
if (appid.equals(mCurrentAppId)) {
mCurrentAppId = "";
}
+
+ //灏忕▼搴忚鍏抽棴浜嗛�氱煡缁欏師鐢�
+ BaseEventBus baseEventBus = new BaseEventBus();
+ baseEventBus.setType(HDLUniMP.UNI_EVENT_REPLY_HOME_CLOSE_HOME_DETAILS_PAGE);
+ EventBus.getDefault().post(baseEventBus);
+
}
});
@@ -137,7 +145,7 @@
//鍥炰紶鏁版嵁缁欏皬绋嬪簭
JSONObject params = getAppParams();
callback.invoke(params);
- HdlLogLogic.print( "uni_GetAppParams callback:" + params.toString());
+ HdlLogLogic.print("uni_GetAppParams callback:" + params.toString());
} else {
//闄や簡缁熶竴澶勭悊锛屽墿浣欏叾瀹冪壒瀹氬満鏅殑浜嬩欢閫氱煡
if (onOtherUniMPEventCallBack != null) {
@@ -218,7 +226,7 @@
}
});
} else {
- HdlLogLogic.print( "wgt鍖呮湰鍦颁笉瀛樺湪");
+ HdlLogLogic.print("wgt鍖呮湰鍦颁笉瀛樺湪");
}
}
@@ -253,7 +261,7 @@
public void openUniMP(String uniAppId, String path, JSONObject jsonObject, IOnOtherUniMPEventCallBack callBack) {
if (TextUtils.isEmpty(uniAppId)) {
HdlThreadLogic.toast(mContext, "uni Id null");
- HdlLogLogic.print( "灏忕▼搴廔D 涓嶈兘涓虹┖");
+ HdlLogLogic.print("灏忕▼搴廔D 涓嶈兘涓虹┖");
return;
}
try {
@@ -327,7 +335,7 @@
mUniMPCaches.put(uniMP.getAppid(), uniMP);
} catch (Exception e) {
e.printStackTrace();
- HdlLogLogic.print( "鎵撳紑澶辫触===" + e.getMessage());
+ HdlLogLogic.print("鎵撳紑澶辫触===" + e.getMessage());
}
}
@@ -349,7 +357,7 @@
HdlLogLogic.print("鍙戦�佸け璐ワ紝灏忕▼搴忓璞′负绌猴細" + uniAppId);
}
} else {
- HdlLogLogic.print( "鍙戦�佸け璐ワ紝鎵句笉鍒板搴旂殑灏忕▼搴忥細" + uniAppId);
+ HdlLogLogic.print("鍙戦�佸け璐ワ紝鎵句笉鍒板搴旂殑灏忕▼搴忥細" + uniAppId);
}
}
--
Gitblit v1.8.0