mac
2023-11-03 9e875b253959eff8f6af567308ad804fe69d0a62
app/src/main/java/com/hdl/photovoltaic/other/HdlUniLogic.java
@@ -191,9 +191,9 @@
                }
            }
            HdlLogLogic.print("uni===原生接收uni发来的数据", event + "\r\n" + data);
            HdlLogLogic.print("uni===原生接收uni发来的数据===" + event + "\r\n" + data, false);
        } catch (Exception e) {
            HdlLogLogic.print("uni===原生接收uni发来的数据", e.getMessage());
            HdlLogLogic.print("uni===原生接收uni发来的数据===" + e.getMessage(), false);
        }
    }
@@ -208,7 +208,7 @@
    public void openUniMP(String path, JSONObject jsonObject) {
        JSONObject json = this.createdJsonDate(jsonObject, true);
        HdlLogLogic.print("uni===组装uni发送数据格式", json.toString());
        HdlLogLogic.print("uni===组装uni发送数据格式===" + json, false);
        HDLUniMPSDKManager.getInstance().openUniMP(HDLUniMP.UNI_APP_ID, path, json, HdlUniLogic.this);
    }
@@ -223,7 +223,7 @@
        try {
            HDLUniMPSDKManager.getInstance().sendUniMPEvent(HDLUniMP.UNI_APP_ID, topic, getJSONObject(callBackBaseBean));
        } catch (Exception e) {
            HdlLogLogic.print("uni===原生主动向小程序发送通知事件", e.getMessage());
            HdlLogLogic.print("uni===原生主动向小程序发送通知事件===" + e.getMessage(), false);
        }
    }
@@ -471,7 +471,7 @@
    void sendModBus(Object data, DCUniMPJSCallback callback) {
        String tempData = getKeyValue("data", data);
        if (TextUtils.isEmpty(tempData)) {
            HdlLogLogic.print("data内容为空");
            HdlLogLogic.print("data内容为空", false);
            return;
        }
        ModBusBean modBusBean = new Gson().fromJson(tempData, ModBusBean.class);
@@ -482,7 +482,7 @@
//            modBusBean.setOid("0101050217BBC400");
//        }
        if (modBusBean.getMac() == null || modBusBean.getData() == null) {
            HdlLogLogic.print("内容为空,oid=" + modBusBean.getMac() + " data=" + Arrays.toString(modBusBean.getData()));
            HdlLogLogic.print("内容为空===oid=" + modBusBean.getMac() + " data=" + Arrays.toString(modBusBean.getData()), false);
            return;
        }
@@ -526,7 +526,7 @@
            uniCallBackBaseBean.setData(data);
            return getJSONObject(uniCallBackBaseBean);
        } catch (Exception e) {
            HdlLogLogic.print("uni===组装uni发送数据格式", e.getMessage());
            HdlLogLogic.print("uni===组装uni发送数据格式===" + e.getMessage(), false);
        }
        return new JSONObject();
    }
@@ -553,7 +553,7 @@
            }
        } catch (Exception e) {
            HdlLogLogic.print("uni===组装uni发送数据格式", e.getMessage());
            HdlLogLogic.print("uni===组装uni发送数据格式===" + e.getMessage(), false);
        }