| | |
| | | const ip1 = 'http://47.100.191.150:9005/'; |
| | | // const ip1 = 'http://192.168.1.12:8080/'; |
| | | // const ip2 = 'http://47.100.191.150:9006/'; |
| | | // const ip2 = 'http://192.168.1.14:8080/'; |
| | | const ip2 = 'https://fyami.com.cn/' |
| | | // const ip2 = 'http://192.168.1.6:8080/'; |
| | | const ip2 = 'https://fyami.com.cn/'; |
| | | |
| | | //飞羽监管 |
| | | const $fysp = axios.create({ |
| | |
| | | // 在发送请求之前做些什么 |
| | | console.log('==>请求开始'); |
| | | console.log(`${config.baseURL}${config.url}`); |
| | | if (config.data) { |
| | | console.log('==>请求数据', config.data); |
| | | } |
| | | return config; |
| | | }, |
| | | function (error) { |
| | |
| | | console.log(response); |
| | | console.log('==>请求结束'); |
| | | if (response.status == 200) { |
| | | return response.data |
| | | if (response.data.success != undefined && response.data.success != null) { |
| | | if (response.data.success == true) { |
| | | return response; |
| | | } else { |
| | | return Promise.reject(response.data.message); |
| | | } |
| | | } else { |
| | | return response; |
| | | } |
| | | } else { |
| | | return Promise.reject(response); |
| | | } |