| | |
| | | |
| | | |
| | | 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; |
| | |
| | | if (onOtherUniMPEventCallBack != null) { |
| | | onOtherUniMPEventCallBack.onOtherUniMPEventReceive(appid, event, data, callback); |
| | | } else { |
| | | //有可能是系统回收掉activity到知道回调为null,这样情况下强制返回登录界面; |
| | | HDLLinkPMUser.getInstance().logout(0); |
| | | HdlLogLogic.print("收到小程序通知,回调事件为null,无法回调事件并执行业务逻辑--->event=" + event + "\r\n" + "data=" + data, true); |
| | | } |
| | | } |
| | |
| | | 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有些设备有问题,需要等待 |