wjc
2025-04-22 ce3b8953780d1cd77c8781befec6bf7dc22b42b1
app/src/main/java/com/hdl/photovoltaic/uni/HDLUniMPSDKManager.java
@@ -158,10 +158,10 @@
                    if (onOtherUniMPEventCallBack != null) {
                        onOtherUniMPEventCallBack.onOtherUniMPEventReceive(appid, event, data, callback);
                    } else {
                        HdlLogLogic.print("收到小程序通知,回调事件为null,无法回调事件并执行业务逻辑--->event=" + event + "\r\n" + "data=" + data, true);
                        HdlLogLogic.print("收到小程序通知,回调事件为null,无法回调事件并执行业务逻辑---event=" + event + "\r\n" + "data=" + data, true);
                        //有可能是系统回收掉activity导致回调为null,这样情况下强制返回登录界面;
                        //todo 长时间没响应将退出登录界面重新登录
                        HdlLogLogic.print("回调事件为null退出登录--->", true);
                        HdlLogLogic.print("回调事件为null退出登录---", true);
                        HDLLinkPMUser.getInstance().logout(0);
                    }
                }
@@ -373,7 +373,7 @@
//                HdlLogLogic.print("Android---通知---uni---失败---小程序对象为空:" + uniAppId);
            }
        } else {
//            HdlLogLogic.print("Android---通知---uni--->失败---¬小程序对象为空:" + uniAppId);
//            HdlLogLogic.print("Android---通知---uni---失败---¬小程序对象为空:" + uniAppId);
        }
    }
@@ -424,6 +424,7 @@
     * @param onOtherUniMPEventCallBack -
     */
    public void checkRemoveOtherUniMPEventCallBack(IOnOtherUniMPEventCallBack onOtherUniMPEventCallBack) {
        HdlLogLogic.print("onOtherUniMPEventCallBack", true);
        if (this.onOtherUniMPEventCallBack == onOtherUniMPEventCallBack) {
            this.onOtherUniMPEventCallBack = null;
            HdlLogLogic.print("onOtherUniMPEventCallBack remove callback", true);