From 5656daeb79c6d4d3f9fc78f981c7faf96582d2f1 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 11 八月 2022 14:24:29 +0800
Subject: [PATCH] 登录注册模块、

---
 service/baserequest.js |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/service/baserequest.js b/service/baserequest.js
index e05ce6b..cd2c8db 100644
--- a/service/baserequest.js
+++ b/service/baserequest.js
@@ -11,10 +11,12 @@
 
 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.117:8080"
+const baseUrl = "https://fyami.com.cn:447"
+// const basePicUrl = baseUrl + "/images/"
+const basePicUrl = "https://fyami.com.cn:447/images/"
+const baseIconUrl = "https://fyami.com.cn:447/images/weixin/eplaw/"
+const baseFileUrl = baseUrl + "/meeting/file/"
 
 function request(fun) { 
   if (fun.params != undefined) {
@@ -50,11 +52,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)
@@ -71,5 +77,6 @@
   },
   basePicUrl:basePicUrl,
   baseUrl:baseUrl,
-  baseFileUrl:baseFileUrl
+  baseFileUrl:baseFileUrl,
+  baseIconUrl: baseIconUrl
 }
\ No newline at end of file

--
Gitblit v1.9.3