isdata-customer-sdk 0.2.44 → 0.2.46

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.umd.js CHANGED
@@ -29656,6 +29656,7 @@ __webpack_require__.d(__webpack_exports__, {
29656
29656
  removeWindowTrustedOrigin: function() { return /* reexport */ removeWindowTrustedOrigin; },
29657
29657
  savePortalI18nText: function() { return /* reexport */ savePortalI18nText; },
29658
29658
  sendPostToAIAgent: function() { return /* reexport */ sendPostToAIAgent; },
29659
+ sendSms: function() { return /* reexport */ sendSms; },
29659
29660
  sendWindowMessage: function() { return /* reexport */ sendWindowMessage; },
29660
29661
  setPortalPageConfig: function() { return /* reexport */ setPortalPageConfig; },
29661
29662
  switchPortalLogin: function() { return /* reexport */ switchPortalLogin; },
@@ -34580,6 +34581,27 @@ const dify_extractFilenameFromUrl = url => {
34580
34581
  return "downloaded_file"; // URL 解析失败时的默认文件名
34581
34582
  }
34582
34583
  };
34584
+ ;// ./src/api/sms.js
34585
+
34586
+
34587
+ const sendSms = async (queryData, successCallback, errorCallback) => {
34588
+ let appid = getPoratlAppID();
34589
+ let appCustomData = await getAppCustomData(appid);
34590
+ let smsServerIP = appCustomData?.smsServerIP || "";
34591
+ if (!smsServerIP) {
34592
+ console.error("没有配置短信服务地址,请联系管理员");
34593
+ if (errorCallback) errorCallback("没有配置短信服务地址,请联系管理员");
34594
+ return;
34595
+ }
34596
+ let serverUrl = `${smsServerIP}/sms/SendSms`;
34597
+ request.post(serverUrl, JSON.stringify(queryData)).then(res => {
34598
+ console.log("发送消息成功:", res);
34599
+ if (successCallback) successCallback(res);
34600
+ }).catch(error => {
34601
+ console.error("发送消息失败:", error);
34602
+ if (errorCallback) errorCallback(error);
34603
+ });
34604
+ };
34583
34605
  ;// ./src/main.js
34584
34606
 
34585
34607
 
@@ -34589,6 +34611,7 @@ const dify_extractFilenameFromUrl = url => {
34589
34611
 
34590
34612
 
34591
34613
 
34614
+
34592
34615
  ;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
34593
34616
 
34594
34617