From 96f2b56c103c53b17cf946d2c733d4cb03d2f39d Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期一, 29 一月 2024 15:16:28 +0800 Subject: [PATCH] 2024年01月29日15:16:23 --- app/src/main/java/com/hdl/photovoltaic/uni/HDLUniMPSDKManager.java | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 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 9af7076..8f214c8 100644 --- a/app/src/main/java/com/hdl/photovoltaic/uni/HDLUniMPSDKManager.java +++ b/app/src/main/java/com/hdl/photovoltaic/uni/HDLUniMPSDKManager.java @@ -114,10 +114,10 @@ mCurrentAppId = ""; } -// //灏忕▼搴忚鍏抽棴浜嗛�氱煡缁欏師鐢� -// BaseEventBus baseEventBus = new BaseEventBus(); -// baseEventBus.setType(HDLUniMP.UNI_EVENT_REPLY_HOME_CLOSE_HOME_DETAILS_PAGE); -// EventBus.getDefault().post(baseEventBus); + //灏忕▼搴忚鍏抽棴浜嗛�氱煡缁欏師鐢� + BaseEventBus baseEventBus = new BaseEventBus(); + baseEventBus.setType(HDLUniMP.UNI_EVENT_REPLY_HOME_CLOSE_HOME_DETAILS_PAGE); + EventBus.getDefault().post(baseEventBus); } }); @@ -344,15 +344,15 @@ * 娉ㄦ剰锛氶渶瑕佹彁鍓嶅皬绋嬪簭鍦ㄨ繍琛屾墠鍙垚鍔� * * @param uniAppId 灏忕▼搴忔寚瀹� - * @param event 灏忕▼搴忔寚瀹氫富棰� + * @param topic 灏忕▼搴忔寚瀹氫富棰� * @param data String鎴朖SON */ - public void sendUniMPEvent(String uniAppId, String event, Object data) { + public void sendUniMPEvent(String uniAppId, String topic, Object data) { if (mUniMPCaches.containsKey(uniAppId)) { if (mUniMPCaches.get(uniAppId) != null) { - mUniMPCaches.get(uniAppId).sendUniMPEvent(event, data); - HdlLogLogic.print("鍙戦�侀�氱煡鎴愬姛锛歟vent锛�" + event + " data锛�" + new Gson().toJson(data)); + mUniMPCaches.get(uniAppId).sendUniMPEvent(topic, data); + HdlLogLogic.print("鍙戦�侀�氱煡鎴愬姛锛歟vent锛�" + topic + " data锛�" + new Gson().toJson(data)); } else { HdlLogLogic.print("鍙戦�佸け璐ワ紝灏忕▼搴忓璞′负绌猴細" + uniAppId); } -- Gitblit v1.8.0