isdata-customer-sdk 0.2.52 → 0.2.54

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
@@ -33732,9 +33732,7 @@ const logoutAccount = async endside_type => {
33732
33732
  * 服务端解密
33733
33733
  */
33734
33734
  const serverDecrypt = async decryptStr => {
33735
- let home_page = `http://${window.location.hostname}:8280`;
33736
- // let home_page = `http://127.0.0.1:8280`;
33737
- let questUrl = `${home_page}/portal/serverDecrypt`;
33735
+ let questUrl = `/ext/serverDecrypt`;
33738
33736
  let queryData = {
33739
33737
  param: {
33740
33738
  decryptStr: decryptStr
@@ -33767,13 +33765,11 @@ const viewEncrypt = async decryptStr => {
33767
33765
  /**
33768
33766
  * 服务端加密
33769
33767
  */
33770
- const serverEncrypt = async smsCode => {
33771
- let home_page = `http://${window.location.hostname}:8280`;
33772
- // let home_page = `http://127.0.0.1:8280`;
33773
- let questUrl = `${home_page}/sms/validateSMSCode`;
33768
+ const serverEncrypt = async encryptStr => {
33769
+ let questUrl = `/ext/serverEncrypt`;
33774
33770
  let queryData = {
33775
33771
  param: {
33776
- smsCode: smsCode
33772
+ encryptStr: encryptStr
33777
33773
  }
33778
33774
  };
33779
33775
  //保存的正则2级密码
@@ -33834,9 +33830,7 @@ const isSecurityAccount = async (acccountName, group_id) => {
33834
33830
  * @returns
33835
33831
  */
33836
33832
  const loginAccount = async (data, appid) => {
33837
- let home_page = `http://${window.location.hostname}:8280`;
33838
- // let home_page = `http://127.0.0.1:8280`;
33839
- let questUrl = `${home_page}/portal/loginAccount`;
33833
+ let questUrl = `/ext/loginAccount`;
33840
33834
  let password = await viewEncrypt(data.password);
33841
33835
  let queryData = {
33842
33836
  param: {
@@ -34628,8 +34622,7 @@ const dify_extractFilenameFromUrl = url => {
34628
34622
  ;// ./src/api/sms.js
34629
34623
 
34630
34624
  const sendSms = async (queryData, successCallback, errorCallback) => {
34631
- let smsServerIP = `http://${window.location.hostname}:8280/sms/sendSms`;
34632
- // let smsServerIP = `http://127.0.0.1:8280/sms/sendSms`;
34625
+ let smsServerIP = `/ext/sendSms`;
34633
34626
  let options = {
34634
34627
  param: queryData
34635
34628
  };
@@ -34654,8 +34647,7 @@ const sendSms = async (queryData, successCallback, errorCallback) => {
34654
34647
  * @returns
34655
34648
  */
34656
34649
  const isSMSCodeValidate = async (smsCode, sms_service_name_type, beyond_type_id, account_id) => {
34657
- let questUrl = `http://${window.location.hostname}:8280/sms/validateSMSCode`;
34658
- // let questUrl = `http://127.0.0.1:8280/sms/validateSMSCode`;
34650
+ let questUrl = `/ext/validateSMSCode`;
34659
34651
  let queryData = {
34660
34652
  param: {
34661
34653
  smsCode: smsCode,