| | |
| | | DCUniMPSDK.getInstance().setUniMPOnCloseCallBack(new IUniMPOnCloseCallBack() { |
| | | @Override |
| | | public void onClose(String appid) { |
| | | if (AppConfigManage.isDebug()) { |
| | | HdlLogLogic.print("收到小程序通知 被关闭了"); |
| | | } |
| | | // if (AppConfigManage.isDebug()) { |
| | | // HdlLogLogic.print("收到小程序通知 被关闭了"); |
| | | // } |
| | | HdlLogLogic.print("收到小程序通知 被关闭了", true); |
| | | //小程序被关闭需要对实例缓存删除操作 |
| | | if (mUniMPCaches.containsKey(appid)) { |
| | | mUniMPCaches.remove(appid); |
| | |
| | | public void onUniMPEventReceive(String appid, String event, Object data, DCUniMPJSCallback callback) { |
| | | // handelUniMPEventReceive(appid, event, data, callback); |
| | | HdlLogLogic.print("收到小程序通知 event=" + event); |
| | | String processMessage = Process.myPid() + " "; |
| | | HdlLogLogic.print("进程信息:" + processMessage); |
| | | // String processMessage = Process.myPid() + " "; |
| | | // HdlLogLogic.print("进程信息:" + processMessage); |
| | | //暂时通过这个处理小程序同时多条相同的请求 |
| | | if (data == null) { |
| | | HdlLogLogic.print("收到小程序通知,data数据为null。", true); |
| | |
| | | * 初始化UniMPSDK 小程序SDK |
| | | */ |
| | | public void initDCUniMPSDK(Context mContext) { |
| | | HdlLogLogic.print("UniMPSDK状态---" + DCUniMPSDK.getInstance().isInitialize(), true); |
| | | if (DCUniMPSDK.getInstance().isInitialize()) { |
| | | return; |
| | | } |