From 87f6bb4bcb2446b9c9065b58391ae400cd358b77 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期二, 09 八月 2022 17:39:42 +0800
Subject: [PATCH] 智能咨询搜索界面
---
service/baserequest.js | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/service/baserequest.js b/service/baserequest.js
index e05ce6b..073c4f9 100644
--- a/service/baserequest.js
+++ b/service/baserequest.js
@@ -11,10 +11,11 @@
const originProperties = ['url', 'data', 'header', 'method', 'success', 'fail', 'complete'];
// const baseUrl = "http://127.0.0.1:8080"
-const baseUrl = "http://192.168.0.116:8080"
-// const baseUrl = "https://fyami.com.cn:447/"
-const basePicUrl = baseUrl + "images/"
-const baseFileUrl = baseUrl + "meeting/file/"
+const baseUrl = "http://192.168.0.106:8080"
+// const baseUrl = "https://fyami.com.cn:447"
+// const basePicUrl = baseUrl + "/images/"
+const basePicUrl = "https://fyami.com.cn:447/images/"
+const baseFileUrl = baseUrl + "/meeting/file/"
function request(fun) {
if (fun.params != undefined) {
@@ -50,11 +51,15 @@
// }
}
fun1.fail = function (error) {
+ console.log("--------------璇锋眰閿欒----------------" + fun.url);
+ console.log(error);
wx.showToast({
title: '缃戠粶杩炴帴澶辫触',
icon: 'none'
})
- fun.fail(error)
+ if (fun.fail) {
+ fun.fail(error)
+ }
}
fun1.complete = fun.complete
wx.request(fun1)
--
Gitblit v1.9.3