From c2cccc1fa49001f6198b18a6bed4bf1f027ed4fb Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期一, 22 七月 2024 16:18:40 +0800 Subject: [PATCH] 2024年07月22日16:18:37 --- app/src/main/java/com/hdl/photovoltaic/uni/HDLUniMPSDKManager.java | 9 +++++++-- 1 files changed, 7 insertions(+), 2 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 18bbbef..4e17ed0 100644 --- a/app/src/main/java/com/hdl/photovoltaic/uni/HDLUniMPSDKManager.java +++ b/app/src/main/java/com/hdl/photovoltaic/uni/HDLUniMPSDKManager.java @@ -8,9 +8,11 @@ import com.google.gson.Gson; +import com.hdl.linkpm.sdk.user.HDLLinkPMUser; import com.hdl.photovoltaic.HDLApp; import com.hdl.photovoltaic.R; import com.hdl.photovoltaic.config.AppConfigManage; +import com.hdl.photovoltaic.enums.LowerTagType; import com.hdl.photovoltaic.other.HdlLogLogic; import com.hdl.photovoltaic.other.HdlThreadLogic; import com.hdl.sdk.link.core.bean.eventbus.BaseEventBus; @@ -119,7 +121,8 @@ //灏忕▼搴忚鍏抽棴浜嗛�氱煡缁欏師鐢� BaseEventBus baseEventBus = new BaseEventBus(); - baseEventBus.setType(HDLUniMP.UNI_EVENT_REPLY_HOME_CLOSE_HOME_DETAILS_PAGE); + baseEventBus.setTopic(HDLUniMP.UNI_EVENT_REPLY_HOME_CLOSE_HOME_DETAILS_PAGE); + baseEventBus.setType(LowerTagType.power_station.toString()); EventBus.getDefault().post(baseEventBus); } @@ -156,6 +159,8 @@ if (onOtherUniMPEventCallBack != null) { onOtherUniMPEventCallBack.onOtherUniMPEventReceive(appid, event, data, callback); } else { + //鏈夊彲鑳芥槸绯荤粺鍥炴敹鎺塧ctivity鍒扮煡閬撳洖璋冧负null锛岃繖鏍锋儏鍐典笅寮哄埗杩斿洖鐧诲綍鐣岄潰锛� + HDLLinkPMUser.getInstance().logout(0); HdlLogLogic.print("鏀跺埌灏忕▼搴忛�氱煡,鍥炶皟浜嬩欢涓簄ull,鏃犳硶鍥炶皟浜嬩欢骞舵墽琛屼笟鍔¢�昏緫--->event=" + event + "\r\n" + "data=" + data, true); } } @@ -271,7 +276,7 @@ UniMPOpenConfiguration uniMPOpenConfiguration = new UniMPOpenConfiguration(); uniMPOpenConfiguration.path = path; uniMPOpenConfiguration.extraData = jsonObject; - uniMPOpenConfiguration.splashClass=MySplashView.class; + uniMPOpenConfiguration.splashClass = MySplashView.class; uniMP = DCUniMPSDK.getInstance().openUniMP(mContext, uniAppId, uniMPOpenConfiguration); } //android14鏈変簺璁惧鏈夐棶棰橈紝闇�瑕佺瓑寰� -- Gitblit v1.8.0