@ray-js/lamp-schedule-core 1.0.1-beta-3 → 1.0.1-beta-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -68,9 +68,12 @@ export const useScheduleInit = props => {
68
68
  // eslint-disable-next-line consistent-return
69
69
  useEffect(() => {
70
70
  if (_isInit) {
71
+ ScheduleLogger.info('useScheduleInit is already initialized');
71
72
  return null;
72
73
  }
74
+ ScheduleLogger.info('useScheduleInit props: ', props);
73
75
  if (props.devId) {
76
+ ScheduleLogger.info('useScheduleInit registerDeviceListListener devId: ', props.devId);
74
77
  registerDeviceListListener({
75
78
  deviceIdList: [props.devId],
76
79
  success: () => {
@@ -91,13 +94,18 @@ export const useScheduleInit = props => {
91
94
  dps: res === null || res === void 0 ? void 0 : res.dps
92
95
  });
93
96
  });
97
+ },
98
+ fail(err) {
99
+ ScheduleLogger.error('useScheduleInit registerDeviceListListener fail', err);
94
100
  }
95
101
  });
96
102
  }
97
103
  if (props.groupId) {
104
+ ScheduleLogger.info('useScheduleInit registerGroupChange groupId: ', props.groupId);
98
105
  registerGroupChange({
99
106
  groupIdList: [props.groupId],
100
- success: () => {
107
+ success(res) {
108
+ ScheduleLogger.info('useScheduleInit registerGroupChange success: ', res);
101
109
  // 监听dp值变化 并触发
102
110
 
103
111
  if (_isInit) {
@@ -115,6 +123,9 @@ export const useScheduleInit = props => {
115
123
  dps: res === null || res === void 0 ? void 0 : res.dps
116
124
  });
117
125
  });
126
+ },
127
+ fail(err) {
128
+ ScheduleLogger.error('useScheduleInit registerGroupChange fail', err);
118
129
  }
119
130
  });
120
131
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/lamp-schedule-core",
3
- "version": "1.0.1-beta-3",
3
+ "version": "1.0.1-beta-4",
4
4
  "description": "照明计划模块核心能力",
5
5
  "main": "./lib/index.js",
6
6
  "files": [