@ray-js/ray-ipc-utils 1.1.4 → 1.1.5
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 +2 -13
- package/package.json +1 -1
package/lib/service/index.js
CHANGED
|
@@ -112,7 +112,6 @@ export const getCameraConfigInfo = async function (deviceId) {
|
|
|
112
112
|
const {
|
|
113
113
|
isVirtualDevice
|
|
114
114
|
} = devInfo === null || devInfo === void 0 ? void 0 : devInfo.data;
|
|
115
|
-
console.log(isVirtualDevice, 'isVirtualDevice----');
|
|
116
115
|
ipcTTTOperatorLog(`Utils: config info isVirtualDevice status: ${isVirtualDevice}`);
|
|
117
116
|
// 配置默认值
|
|
118
117
|
const defaultResolution = ClarityType.HD;
|
|
@@ -141,10 +140,10 @@ export const getCameraConfigInfo = async function (deviceId) {
|
|
|
141
140
|
|
|
142
141
|
const nativeStorageInfo = await Promise.all([`${deviceId}_resolution`, `${deviceId}_intercom`, `${deviceId}_microphone`, `${deviceId}_maxZoomSettings`].map(key => getNativeStorage(key)));
|
|
143
142
|
ipcTTTOperatorLog(`Utils: nativeStorageInfo: ${nativeStorageInfo}`);
|
|
144
|
-
console.log(nativeStorageInfo, 'dsahdsahkdh');
|
|
145
143
|
const [resolutionStorage, intercomStorage, microphoneStorage, maxZoomSettingsStorage] = nativeStorageInfo;
|
|
146
144
|
// 任意缓存为空,则请求接口
|
|
147
145
|
|
|
146
|
+
console.log(nativeStorageInfo, 'nativeStorageInfo');
|
|
148
147
|
const noCache = nativeStorageInfo.some(item => {
|
|
149
148
|
var _item$data;
|
|
150
149
|
return !(item !== null && item !== void 0 && (_item$data = item.data) !== null && _item$data !== void 0 && _item$data.data);
|
|
@@ -405,16 +404,6 @@ export const addCollectionPointsInfo = async (deviceId, name) => {
|
|
|
405
404
|
};
|
|
406
405
|
}
|
|
407
406
|
const cruiseSwitchInfo = await getDpStateValue(deviceId, 'cruise_switch');
|
|
408
|
-
if ((cruiseSwitchInfo === null || cruiseSwitchInfo === void 0 ? void 0 : cruiseSwitchInfo.code) === -1) {
|
|
409
|
-
ty.showToast({
|
|
410
|
-
icon: 'error',
|
|
411
|
-
title: cruiseSwitchInfo.msg
|
|
412
|
-
});
|
|
413
|
-
return {
|
|
414
|
-
code: -1,
|
|
415
|
-
msg: cruiseSwitchInfo.msg
|
|
416
|
-
};
|
|
417
|
-
}
|
|
418
407
|
if (cruiseSwitchInfo.data) {
|
|
419
408
|
ty.showToast({
|
|
420
409
|
icon: 'error',
|
|
@@ -425,7 +414,7 @@ export const addCollectionPointsInfo = async (deviceId, name) => {
|
|
|
425
414
|
msg: Strings.getLang('ipc_utils_cruise_ing_tip')
|
|
426
415
|
};
|
|
427
416
|
}
|
|
428
|
-
// 2.
|
|
417
|
+
// 2. 获取收藏点 dpCode: memory_point_set
|
|
429
418
|
const memoryPointSetDpId = await getDpIdByCode(deviceId, 'memory_point_set');
|
|
430
419
|
if ((cruiseSwitchInfo === null || cruiseSwitchInfo === void 0 ? void 0 : cruiseSwitchInfo.code) === -1) {
|
|
431
420
|
ty.showToast({
|