riku
2026-03-05 9465dc404f7e7cd56100e4859ee0946a3fef7b09
service/baserequest.js
@@ -10,7 +10,7 @@
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/`;
@@ -50,6 +50,7 @@
        '|------------------------------------------------------------------------------------------------------------',
      );
      console.log('|--访问: ', fun.url);
      console.log('|--参数: ', fun.data);
      console.log('|--结果: ', res);
    }
@@ -73,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: '请求失败',