isdata-customer-sdk 0.2.2 → 0.2.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.
@@ -32686,6 +32686,7 @@ class ChatClientMgr {
32686
32686
  return this.handler.onAIAgentEvent(data, event);
32687
32687
  });
32688
32688
  this.handler.addChatListener(this.makeKey(`sdata_alllife_event_regist`), async (data, event) => {
32689
+ console.log("recive chat regist event data:", data);
32689
32690
  this.appSKID = data.appid;
32690
32691
  this.imType = data.im_type;
32691
32692
  await this.initChatAIs();
@@ -32694,9 +32695,9 @@ class ChatClientMgr {
32694
32695
  singleChatID: this.singleChatID,
32695
32696
  customParams: this.customParams
32696
32697
  };
32697
- // console.log("charParams", charParams);
32698
32698
  this.handler.fireEventToChatWindow(event, this.chartOrigin, this.makeKey("sdata_alllife_initChat"), charParams, result => {
32699
32699
  if (result) {
32700
+ console.log("chat init finished:", result);
32700
32701
  this.handler.onChatInitFinished();
32701
32702
  }
32702
32703
  });
@@ -33103,7 +33104,7 @@ const check = element => {
33103
33104
  if (innerHTML.includes("序号") || innerHTML.includes("Serial No.")) {
33104
33105
  console.log("检查smardaten平台表格 序号 元素:", innerHTML);
33105
33106
  let tempHTMLMatch = {
33106
- oldValue: '$L{PLATFORM_SERIAL_NO}'
33107
+ oldValue: '$L{序号}'
33107
33108
  };
33108
33109
  checkResult.result = true;
33109
33110
  checkResult.innerHTMLMatch = tempHTMLMatch;
@@ -33112,7 +33113,7 @@ const check = element => {
33112
33113
  if (innerHTML.includes("操作")) {
33113
33114
  console.log("检查smardaten平台表格 操作 元素:", innerHTML);
33114
33115
  let tempHTMLMatch = {
33115
- oldValue: '$L{PLATFORM_OPERATE}'
33116
+ oldValue: '$L{操作}'
33116
33117
  };
33117
33118
  checkResult.result = true;
33118
33119
  checkResult.innerHTMLMatch = tempHTMLMatch;
@@ -33125,7 +33126,7 @@ const check = element => {
33125
33126
  if (innerHTML.includes("导出进度") || innerHTML.includes("Export progress")) {
33126
33127
  console.log("检查smardaten平台表格 导出按钮 元素:", innerHTML);
33127
33128
  let tempHTMLMatch = {
33128
- oldValue: '$L{PLATFORM_EXPORT_ALL}'
33129
+ oldValue: '$L{导出进度}'
33129
33130
  };
33130
33131
  checkResult.result = true;
33131
33132
  checkResult.innerHTMLMatch = tempHTMLMatch;
@@ -33147,13 +33148,13 @@ const check = element => {
33147
33148
  }
33148
33149
  let scriptNodes = [{
33149
33150
  nodeType: Node.TEXT_NODE,
33150
- key: 'PLATFORM_TOTAL'
33151
+ key: ''
33151
33152
  }, {
33152
33153
  nodeType: "SCRIPTNODE",
33153
33154
  node: scriptNode
33154
33155
  }, {
33155
33156
  nodeType: Node.TEXT_NODE,
33156
- key: 'PLATFORM_PIECES'
33157
+ key: ''
33157
33158
  }];
33158
33159
  for (let i = 0; i < element.childNodes.length; i++) {
33159
33160
  let childNode = element.childNodes[i];
@@ -33196,13 +33197,13 @@ const check = element => {
33196
33197
  }
33197
33198
  let scriptNodes = [{
33198
33199
  nodeType: Node.TEXT_NODE,
33199
- key: 'PLATFORM_JUNPTO'
33200
+ key: '跳至'
33200
33201
  }, {
33201
33202
  nodeType: "SCRIPTNODE",
33202
33203
  node: scriptNode
33203
33204
  }, {
33204
33205
  nodeType: Node.TEXT_NODE,
33205
- key: 'PLATFORM_PAGE'
33206
+ key: ''
33206
33207
  }];
33207
33208
  for (let i = 0; i < element.childNodes.length; i++) {
33208
33209
  let childNode = element.childNodes[i];
@@ -33237,13 +33238,13 @@ const check = element => {
33237
33238
  if (innerHTML.includes("/") && innerHTML.includes("page") || innerHTML.includes("/") && innerHTML.includes("条") && innerHTML.includes("页")) {
33238
33239
  let oldValue = element.innerHTML;
33239
33240
  if (innerHTML.includes("page")) {
33240
- oldValue = oldValue.replace('page', '$L{PLATFORM_PAGE}');
33241
+ oldValue = oldValue.replace('page', '$L{}');
33241
33242
  }
33242
33243
  if (innerHTML.includes("页")) {
33243
- oldValue = oldValue.replace('页', '$L{PLATFORM_PAGE}');
33244
+ oldValue = oldValue.replace('页', '$L{}');
33244
33245
  }
33245
33246
  if (innerHTML.includes("条")) {
33246
- oldValue = oldValue.replace('条', '$L{PLATFORM_PIECES}');
33247
+ oldValue = oldValue.replace('条', '$L{}');
33247
33248
  }
33248
33249
  let tempHTMLMatch = {
33249
33250
  oldValue: oldValue
@@ -33259,7 +33260,7 @@ const check = element => {
33259
33260
  if (innerHTML.includes("确认执行:") || innerHTML.includes("Confirm Execution:")) {
33260
33261
  console.log("检查smardaten平台删除提问对话框:", innerHTML);
33261
33262
  let tempHTMLMatch = {
33262
- oldValue: '$L{PLATFORM_DELETE_CONFIRM_TITLE}'
33263
+ oldValue: '$L{操作确认:删除?}'
33263
33264
  };
33264
33265
  checkResult.result = true;
33265
33266
  checkResult.innerHTMLMatch = tempHTMLMatch;
@@ -33272,7 +33273,7 @@ const check = element => {
33272
33273
  if (innerHTML.includes("Cancel") || innerHTML.includes("取消")) {
33273
33274
  console.log("检查smardaten平台 Tip提问取消删除按钮:", innerHTML);
33274
33275
  let tempHTMLMatch = {
33275
- oldValue: '$L{PLATFORM_CANCEL}'
33276
+ oldValue: '$L{取消}'
33276
33277
  };
33277
33278
  checkResult.result = true;
33278
33279
  checkResult.innerHTMLMatch = tempHTMLMatch;
@@ -33281,7 +33282,7 @@ const check = element => {
33281
33282
  if (innerHTML.includes("确认") || innerHTML.includes("OK")) {
33282
33283
  console.log("检查smardaten平台 Tip提问确认删除按钮:", innerHTML);
33283
33284
  let tempHTMLMatch = {
33284
- oldValue: '$L{PLATFORM_OK}'
33285
+ oldValue: '$L{确认}'
33285
33286
  };
33286
33287
  checkResult.result = true;
33287
33288
  checkResult.innerHTMLMatch = tempHTMLMatch;