riku
2026-03-05 9465dc404f7e7cd56100e4859ee0946a3fef7b09
service/baserequest.js
@@ -9,15 +9,19 @@
 */
const util = require('../utils/util.js');
// const baseUrl = "http://192.168.0.123:8080"
// const baseUrl = "https://fyami.com.cn:447"
// 小程序后台
// const baseUrl = "http://192.168.1.9:8082"
const baseUrl = 'https://fyami.com.cn';
const bu = 'https://fyami.com.cn';
// const bu = "https://fyami.com.cn:447"
const basePicUrl = `${bu}/images/`;
const baseIconUrl = `${bu}/images/weixin/eplaw/`;
const baseFileUrl = `${bu}/meeting/file/`;
// 飞羽监管系统后台
const spUrl = "https://fyami.com.cn:447"
const spBu = "https://fyami.com.cn:447"
const spPicUrl = `${spBu}/images/`;
// const mode = 'debug';
const mode = 'prod';
@@ -46,6 +50,7 @@
        '|------------------------------------------------------------------------------------------------------------',
      );
      console.log('|--访问: ', fun.url);
      console.log('|--参数: ', fun.data);
      console.log('|--结果: ', res);
    }
@@ -69,8 +74,12 @@
  };
  fun1.fail = function (error) {
    if (mode == 'debug') {
      console.log('--------------请求错误----------------' + fun.url);
      console.log(error);
      console.log(
        '|------------------------------------------------------------------------------------------------------------',
      );
      console.log('|--访问: ', fun.url);
      console.log('|--参数: ', fun.data);
      console.log('|--错误: ', error);
    }
    wx.showToast({
      title: '请求失败',
@@ -98,4 +107,6 @@
  baseUrl: baseUrl,
  baseFileUrl: baseFileUrl,
  baseIconUrl: baseIconUrl,
  spUrl: spUrl,
  spPicUrl: spPicUrl,
};