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.common.js +23 -0
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +23 -0
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -29638,6 +29638,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29638
29638
|
removeWindowTrustedOrigin: function() { return /* reexport */ removeWindowTrustedOrigin; },
|
|
29639
29639
|
savePortalI18nText: function() { return /* reexport */ savePortalI18nText; },
|
|
29640
29640
|
sendPostToAIAgent: function() { return /* reexport */ sendPostToAIAgent; },
|
|
29641
|
+
sendSms: function() { return /* reexport */ sendSms; },
|
|
29641
29642
|
sendWindowMessage: function() { return /* reexport */ sendWindowMessage; },
|
|
29642
29643
|
setPortalPageConfig: function() { return /* reexport */ setPortalPageConfig; },
|
|
29643
29644
|
switchPortalLogin: function() { return /* reexport */ switchPortalLogin; },
|
|
@@ -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
|
|