@7365admin1/core 3.129.3-staging.439 → 3.129.3-staging.440
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/dist/index.js
CHANGED
|
@@ -67164,7 +67164,8 @@ function useRobotCloudService(credentials, options = {}) {
|
|
|
67164
67164
|
async function getRobotLog(robotId, sceneId, timeFrom, timeTo) {
|
|
67165
67165
|
return post(
|
|
67166
67166
|
ROBOT_CLOUD_PATHS.robotLog,
|
|
67167
|
-
|
|
67167
|
+
// Numbers: the document shows strings, but the portal refuses them ("bad json string", prod 2026-09-30).
|
|
67168
|
+
{ robotId, sceneId, timeFrom, timeTo, key: "", pageNo: 1, pageSize: 50 },
|
|
67168
67169
|
"logList"
|
|
67169
67170
|
);
|
|
67170
67171
|
}
|
|
@@ -67784,13 +67785,25 @@ var ACTION_WORDS = {
|
|
|
67784
67785
|
\u56DE\u5145: "Sent back to charge",
|
|
67785
67786
|
\u7ED3\u675F\u6E05\u6D01: "Ended the cleaning job",
|
|
67786
67787
|
\u5F00\u673A: "Switched on",
|
|
67787
|
-
\u5173\u673A: "Switched off"
|
|
67788
|
+
\u5173\u673A: "Switched off",
|
|
67789
|
+
\u8C03\u8BD5\u6A21\u5F0F: "Debug mode",
|
|
67790
|
+
\u6E05\u626B: "Started cleaning",
|
|
67791
|
+
\u5B9A\u65F6\u4EFB\u52A1\u8BBE\u7F6E: "Changed the schedule",
|
|
67792
|
+
\u6682\u505C\u6E05\u626B: "Paused cleaning",
|
|
67793
|
+
\u5F00\u59CB\u56DE\u5145: "Sent back to charge"
|
|
67788
67794
|
};
|
|
67795
|
+
var ACTION_PREFIX_WORDS = [
|
|
67796
|
+
[/^编辑机器人保存成功[,,]\s*别名[::]\s*/, "Changed the robot's nickname"],
|
|
67797
|
+
[/^编辑机器人保存成功[,,]\s*名称[::]\s*/, "Changed the robot's name"],
|
|
67798
|
+
[/^设置当前楼层[::]\s*/, "Set the current floor"]
|
|
67799
|
+
];
|
|
67789
67800
|
function ounitechAppAction(a, tz = 480) {
|
|
67790
67801
|
const raw = String(a.actionName ?? "").trim();
|
|
67802
|
+
const pre = ACTION_PREFIX_WORDS.find(([re]) => re.test(raw));
|
|
67803
|
+
const value = pre ? raw.replace(pre[0], "").trim() : "";
|
|
67791
67804
|
return {
|
|
67792
67805
|
at: ounitechTime(a.createTime, tz),
|
|
67793
|
-
action: ACTION_WORDS[raw] ?? (raw ? /[㐀-鿿]/.test(raw) ? `App action: ${raw}` : raw : "App action"),
|
|
67806
|
+
action: pre ? `${pre[1]}${value ? `: ${value}` : ""}` : ACTION_WORDS[raw] ?? (raw ? /[㐀-鿿]/.test(raw) ? `App action: ${raw}` : raw : "App action"),
|
|
67794
67807
|
by: String(a.userName ?? "").trim() || null
|
|
67795
67808
|
};
|
|
67796
67809
|
}
|