mac
2024-05-13 f2f8a06618f986ef4657687213334b6696ae6f1c
app/src/main/java/com/hdl/photovoltaic/uni/HDLUniMP.java
@@ -97,8 +97,9 @@
    /*********Wifi模块*********/ //卫锦定义
    public final static String UNI_EVENT_REPLY_WIFI_MODEL = "uni_wifi_model";//wifi模块(大类)
    public final static String UNI_EVENT_REPLY_WIFI_LIST = "list";//获取wifi列表
    public final static String UNI_EVENT_REPLY_WIFI_INFO = "info";//获取当前wifi信息
    public final static String UNI_EVENT_REPLY_WIFI_CONNECT = "connect";//连接wifi
    public final static String UNI_EVENT_REPLY_WIFI_PHONE_INFO = "wifi_phone_info";//获取当前wifi信息
    public final static String UNI_EVENT_REPLY_WIFI_SET_DEVICE = "wifi_set_device";//设置wifi给设备
    public final static String UNI_EVENT_REPLY_OPEN_WIFI_SETTINGS = "open_wifi_settings";//调用打开手机Wifi设置界面
    //endregion
    //region --------【原生】主动发送到【小程序】--------
@@ -107,6 +108,7 @@
    public final static String UNI_EVENT_NOTIFICATION_DEVICE_REFRESH_USERINFO = "refresh_userinfo";//刷新用户信息
    public final static String UNI_EVENT_NOTIFICATION_DEVICE_REFRESH_TEMPERATURE = "temperature_format_changed";//刷新单位温度
    public final static String UNI_EVENT_NOTIFICATION_DEVICE_REFRESH_REFRESH_UNREAD_NUMBER = "refresh_unread_messages_number";//刷新未读消息数量
    public final static String UNI_EVENT_NOTIFICATION_MQTT_CONNECT_SUCCESS= "mqtt_connect_success";//通知mqtt连接成功
    public final static String UNI_EVENT_NOTIFICATION_REMOVE_VIEW = "remove_view";//通知uni移除界面
    public final static String UNI_EVENT_NOTIFICATION_DEVICE_ADD = "add";//设备添加
    public final static String UNI_EVENT_NOTIFICATION_DEVICE_DEL = "del";//设备删除
@@ -135,18 +137,18 @@
    public static class UniCallBackBaseBean implements Serializable {
        private int code;//状态码
        private String mes;//信息描述
        private String msg;//信息描述
        private String type;//功能类型
        private Object data;//附加json数据
        public UniCallBackBaseBean(int code, String mes) {
        public UniCallBackBaseBean(int code, String msg) {
            this.code = code;
            this.mes = mes;
            this.msg = msg;
        }
        public UniCallBackBaseBean() {
            this.code = 0;
            this.mes = "成功";
            this.msg = "成功";
        }
@@ -158,12 +160,12 @@
            this.code = code;
        }
        public String getMes() {
            return mes == null ? "" : mes;
        public String getMsg() {
            return msg == null ? "" : msg;
        }
        public void setMes(String mes) {
            this.mes = mes;
        public void setMsg(String msg) {
            this.msg = msg;
        }
        public Object getData() {