wjc
2025-05-23 971a24a9e58a21bc306897fd3ad63012a399f7db
app/src/main/java/com/hdl/photovoltaic/uni/HDLUniMPSDKManager.java
@@ -117,9 +117,10 @@
        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);
@@ -144,8 +145,8 @@
            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);
@@ -319,6 +320,7 @@
     * 初始化UniMPSDK 小程序SDK
     */
    public void initDCUniMPSDK(Context mContext) {
        HdlLogLogic.print("UniMPSDK状态---" + DCUniMPSDK.getInstance().isInitialize(), true);
        if (DCUniMPSDK.getInstance().isInitialize()) {
            return;
        }