| | |
| | | }, (error) => { |
| | | let response = error.response || '' |
| | | |
| | | if (response && (!response.data || !response.data.errors)) { // 过滤旷视报错信息 |
| | | if (response && response.status) { |
| | | notification.error({ |
| | | className: 'notification-custom-error', |
| | | bottom: 0, |
| | |
| | | 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) |
| | | |