| | |
| | | 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(response.config.url) && !/s_special_error_note_log/.test(response.config.url)) { |
| | | 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 (res.mksqls) { |
| | | res.mksqls.forEach(n => { |
| | | n = n.replace(/(UNION ALL\s+)?SELECT obj_name='[\S\s]+sub_field=''\s+/ig, '') |
| | | window.mkInfo(n) |
| | | if (!res.status) { |
| | | window.mkInfo('%c' + n, 'color: #f5222d') |
| | | } else { |
| | | window.mkInfo(n) |
| | | } |
| | | }) |
| | | } |
| | | delete res.mksqls |
| | |
| | | if (res.mksqls) { |
| | | res.mksqls.forEach(n => { |
| | | n = n.replace(/(UNION ALL\s+)?SELECT obj_name='[\S\s]+sub_field=''\s+/ig, '') |
| | | window.mkInfo(n) |
| | | if (!res.status) { |
| | | window.mkInfo('%c' + n, 'color: #f5222d') |
| | | } else { |
| | | window.mkInfo(n) |
| | | } |
| | | }) |
| | | } |
| | | delete res.mksqls |