isdata-customer-sdk 0.2.44 → 0.2.45

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.
@@ -29552,6 +29552,7 @@ __webpack_require__.r(__webpack_exports__);
29552
29552
  // EXPORTS
29553
29553
  __webpack_require__.d(__webpack_exports__, {
29554
29554
  ChatClientMgr: function() { return /* reexport */ ChatClientMgr; },
29555
+ SendSms: function() { return /* reexport */ SendSms; },
29555
29556
  addEventAction: function() { return /* reexport */ addEventAction; },
29556
29557
  addIMMapping: function() { return /* reexport */ addIMMapping; },
29557
29558
  addObjectUsedTimes: function() { return /* reexport */ addObjectUsedTimes; },
@@ -34562,6 +34563,27 @@ const dify_extractFilenameFromUrl = url => {
34562
34563
  return "downloaded_file"; // URL 解析失败时的默认文件名
34563
34564
  }
34564
34565
  };
34566
+ ;// ./src/api/sms.js
34567
+
34568
+
34569
+ const SendSms = async (queryData, successCallback, errorCallback) => {
34570
+ let appid = getPoratlAppID();
34571
+ let appCustomData = await getAppCustomData(appid);
34572
+ let smsServerIP = appCustomData?.smsServerIP || "";
34573
+ if (!smsServerIP) {
34574
+ console.error("没有配置短信服务地址,请联系管理员");
34575
+ if (errorCallback) errorCallback("没有配置短信服务地址,请联系管理员");
34576
+ return;
34577
+ }
34578
+ let serverUrl = `${smsServerIP}/sms/SendSms`;
34579
+ request.post(serverUrl, JSON.stringify(queryData)).then(res => {
34580
+ console.log("发送消息成功:", res);
34581
+ if (successCallback) successCallback(res);
34582
+ }).catch(error => {
34583
+ console.error("发送消息失败:", error);
34584
+ if (errorCallback) errorCallback(error);
34585
+ });
34586
+ };
34565
34587
  ;// ./src/main.js
34566
34588
 
34567
34589
 
@@ -34571,6 +34593,7 @@ const dify_extractFilenameFromUrl = url => {
34571
34593
 
34572
34594
 
34573
34595
 
34596
+
34574
34597
  ;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
34575
34598
 
34576
34599