king
2023-08-11 fbe91f6f07f6296bbf6c30029c7f36014fe66e79
src/api/index.js
@@ -61,7 +61,7 @@
}, (error) => {
  let response = error.response || ''
  if (response && (!response.data || !response.data.errors)) { // 过滤旷视报错信息
  if (response && response.status) {
    notification.error({
      className: 'notification-custom-error',
      bottom: 0,
@@ -507,18 +507,18 @@
    param.LoginUID = param.LoginUID || sessionStorage.getItem('LoginUID') || ''
    param.appkey = param.appkey || window.GLOB.appkey
    let url = '/webapi/dostars'
    if (window.GLOB.mkHS && options.cloudServiceApi) { // HS下,且存在云端地址
      url = options.cloudServiceApi
      param.userid = sessionStorage.getItem('CloudUserID') || ''
      param.LoginUID = sessionStorage.getItem('CloudLoginUID') || ''
    } else if (window.GLOB.mainSystemApi) {
      if (!window.GLOB.transfer) {
        url = window.GLOB.mainSystemApi
      } else {
        param.rduri = window.GLOB.mainSystemApi
      }
    }
    let url = '/webapi/dostarst'
    // if (window.GLOB.mkHS && options.cloudServiceApi) { // HS下,且存在云端地址
    //   url = options.cloudServiceApi
    //   param.userid = sessionStorage.getItem('CloudUserID') || ''
    //   param.LoginUID = sessionStorage.getItem('CloudLoginUID') || ''
    // } else if (window.GLOB.mainSystemApi) {
    //   if (!window.GLOB.transfer) {
    //     url = window.GLOB.mainSystemApi
    //   } else {
    //     param.rduri = window.GLOB.mainSystemApi
    //   }
    // }
    param = this.encryptParam(param)