| | |
| | | const util = require('../utils/util.js'); |
| | | |
| | | // 小程序后台 |
| | | // const baseUrl = "http://192.168.0.138:8082" |
| | | // const baseUrl = "http://192.168.1.9:8082" |
| | | const baseUrl = 'https://fyami.com.cn'; |
| | | const bu = 'https://fyami.com.cn'; |
| | | const basePicUrl = `${bu}/images/`; |
| | |
| | | fun.url = bUrl + url; |
| | | } |
| | | var fun1 = util.deepCopy(fun); |
| | | if (mode == 'debug') { |
| | | console.log( |
| | | '|------------------------------------------------------------------------------------------------------------', |
| | | ); |
| | | console.log('|--访问: ', fun.url); |
| | | console.log('|--参数: ', fun.data); |
| | | } |
| | | fun1.success = function (res) { |
| | | if (mode == 'debug') { |
| | | console.log( |
| | | '|------------------------------------------------------------------------------------------------------------', |
| | | ); |
| | | console.log('|--访问: ', fun.url); |
| | | console.log('|--参数: ', fun.data); |
| | | console.log('|--结果: ', res); |
| | | } |
| | | |
| | |
| | | }; |
| | | fun1.fail = function (error) { |
| | | if (mode == 'debug') { |
| | | console.log( |
| | | '|------------------------------------------------------------------------------------------------------------', |
| | | ); |
| | | console.log('|--访问: ', fun.url); |
| | | console.log('|--参数: ', fun.data); |
| | | console.log('|--错误: ', error); |
| | | } |
| | | wx.showToast({ |