| | |
| | | UniMPOpenConfiguration uniMPOpenConfiguration = new UniMPOpenConfiguration(); |
| | | uniMPOpenConfiguration.path = path; |
| | | uniMPOpenConfiguration.extraData = jsonObject; |
| | | if(UserConfigManage.getInstance().isBAccount()){ |
| | | uniMPOpenConfiguration.splashClass = BSplashView.class; |
| | | } |
| | | else { |
| | | if (UserConfigManage.getInstance().getUniBottomSafeDistanceBackgroundColor() == 0) { |
| | | uniMPOpenConfiguration.splashClass = CSplashView.class; |
| | | } else { |
| | | uniMPOpenConfiguration.splashClass = BSplashView.class; |
| | | } |
| | | uniMP = DCUniMPSDK.getInstance().openUniMP(mContext, uniAppId, uniMPOpenConfiguration); |
| | | } |
| | |
| | | if (mUniMPCaches.containsKey(uniAppId)) { |
| | | if (mUniMPCaches.get(uniAppId) != null) { |
| | | mUniMPCaches.get(uniAppId).sendUniMPEvent(topic, data); |
| | | HdlLogLogic.print("Android---通知---uni---主题:" + topic + "---发送数据:" + new Gson().toJson(data)); |
| | | // HdlLogLogic.print("Android---通知---uni---主题:" + topic + "---发送数据:" + new Gson().toJson(data)); |
| | | } else { |
| | | HdlLogLogic.print("Android---通知---uni---失败---小程序对象为空:" + uniAppId); |
| | | // HdlLogLogic.print("Android---通知---uni---失败---小程序对象为空:" + uniAppId); |
| | | } |
| | | } else { |
| | | HdlLogLogic.print("Android---通知---uni--->失败---¬小程序对象为空:" + uniAppId); |
| | | // HdlLogLogic.print("Android---通知---uni--->失败---¬小程序对象为空:" + uniAppId); |
| | | } |
| | | |
| | | } |