@ray-js/ray-ipc-utils 1.1.9 → 1.1.10
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.
- package/lib/service/index.js +3 -12
- package/package.json +1 -1
package/lib/service/index.js
CHANGED
|
@@ -339,15 +339,6 @@ export const updateCollectionPointsInfo = async (deviceId, id, name) => {
|
|
|
339
339
|
export const delCollectionPointsInfo = async (deviceId, pointData) => {
|
|
340
340
|
// 1. 先获取巡航状态,如果正在巡航,提示停止巡航
|
|
341
341
|
const cruiseSwitchInfo = await getDpStateValue(deviceId, 'cruise_switch');
|
|
342
|
-
if ((cruiseSwitchInfo === null || cruiseSwitchInfo === void 0 ? void 0 : cruiseSwitchInfo.code) === -1) {
|
|
343
|
-
ty.showToast({
|
|
344
|
-
title: cruiseSwitchInfo.msg
|
|
345
|
-
});
|
|
346
|
-
return {
|
|
347
|
-
code: -1,
|
|
348
|
-
msg: cruiseSwitchInfo.msg
|
|
349
|
-
};
|
|
350
|
-
}
|
|
351
342
|
if (cruiseSwitchInfo.data) {
|
|
352
343
|
ty.showToast({
|
|
353
344
|
title: Strings.getLang('ipc_utils_cruise_ing_tip')
|
|
@@ -359,13 +350,13 @@ export const delCollectionPointsInfo = async (deviceId, pointData) => {
|
|
|
359
350
|
}
|
|
360
351
|
// 2. 下发DP删除收藏点 dpCode: memory_point_set
|
|
361
352
|
const memoryPointSetDpId = await getDpIdByCode(deviceId, 'memory_point_set');
|
|
362
|
-
if (
|
|
353
|
+
if (cruiseSwitchInfo.data) {
|
|
363
354
|
ty.showToast({
|
|
364
|
-
title:
|
|
355
|
+
title: Strings.getLang('ipc_utils_cruise_ing_tip')
|
|
365
356
|
});
|
|
366
357
|
return {
|
|
367
358
|
code: -1,
|
|
368
|
-
msg:
|
|
359
|
+
msg: Strings.getLang('ipc_utils_cruise_ing_tip')
|
|
369
360
|
};
|
|
370
361
|
}
|
|
371
362
|
const publishResult = publishDps(deviceId, {
|