| | |
| | | placement: 'bottomRight', |
| | | duration: 15 |
| | | }) |
| | | if ([404, 500, 504].includes(response.status) && error.config && error.config.url) { |
| | | if ([500, 504].includes(response.status) && error.config && error.config.url && error.config.data) { |
| | | window.mkInfo(error.config.url) |
| | | error.config.data && window.mkInfo(error.config.data) |
| | | window.mkInfo(error.config.data) |
| | | if (window.GLOB.errorLog && !sessionStorage.getItem('local_error')) { |
| | | let urlReg = new RegExp('^(' + window.GLOB.baseurl + '|/)webapi/(exstars|dostars)', 'ig') |
| | | if (urlReg.test(error.config.url) && !/s_special_error_note_log/.test(error.config.url)) { |
| | | let res = null |
| | | try { |
| | | let data = JSON.parse(error.config.data) |
| | | if (!data.rduri) { |
| | | res = { |
| | | api_url: error.config.url, |
| | | error_code: response.status, |
| | | error_time: moment().format('YYYY-MM-DD HH:mm:ss'), |
| | | api_param: error.config.data |
| | | } |
| | | } |
| | | } catch (e) { |
| | | res = null |
| | | } |
| | | if (res) { |
| | | sessionStorage.setItem('local_error', JSON.stringify(res)) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | // Type: 'X' 时 |
| | | // param.Password = Utils.formatOptions(password) |
| | | |
| | | // positecgroup |
| | | if (window.GLOB.appkey === '202011021844144334E823A3011414082AD77') { |
| | | param.svccode = 'oms' |
| | | } |
| | | |
| | | let url = '/webapi/dologon' |
| | | |
| | | if (isCloud) { |
| | |
| | | resolve({data: null, valid: false}) |
| | | } |
| | | }) |
| | | }) |
| | | } |
| | | |
| | | /** |
| | | * @description 登录二次验证 // positecgroup |
| | | */ |
| | | verifycode (verify) { |
| | | let param = { |
| | | certificate: 'certificate', |
| | | captcha: verify.code, |
| | | token: verify.token, |
| | | ati: verify.ati, |
| | | vid: verify.vid, |
| | | uid: verify.uid, |
| | | shopId: verify.shopId, |
| | | loginId: verify.loginId, |
| | | phone: verify.phone, |
| | | sellerNick: verify.sellerNick, |
| | | isRisk: verify.isRisk, |
| | | requestId: verify.requestId, |
| | | riskNum: verify.riskNum, |
| | | username: verify.username |
| | | } |
| | | |
| | | let url = '/webapi/dologon' |
| | | |
| | | return axios({ |
| | | url, |
| | | method: 'post', |
| | | data: param |
| | | }) |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | let url = '/webapi/dostars' |
| | | if (param.rduri && !window.GLOB.transfer) { |
| | | if (param.rduri && !window.GLOB.transfer) { // positecgroup |
| | | url = param.rduri |
| | | delete param.rduri |
| | | } |