zs 2 years ago
parent
commit
f93343799e
2 changed files with 3 additions and 3 deletions
  1. 1 1
      pages/test/index.js
  2. 2 2
      utils/httpUtil.js

+ 1 - 1
pages/test/index.js

@@ -124,7 +124,7 @@ Page({
         // console.log(start);
         // console.log(end);
         // console.log(days);
-        const arr = await app.$get('/user', {}, 'race');
+        const arr = await app.$get('/matchGroup', {}, 'race');
         console.log(arr);
 
     },

+ 2 - 2
utils/httpUtil.js

@@ -2,9 +2,9 @@ let serverUrl = "https://broadcast.waityou24.cn";//http://120.48.146.1    https:
 let wechatUrl = 'https://broadcast.waityou24.cn';
 
 const getDomain = (uri, type) => {
-    console.log(uri);
-    console.log(type);
+
     if (uri.startsWith('/wechat/api')) return wechatUrl;
+    else if (type) return serverUrl + `/newCourt/${type}/v2/api`;
     return serverUrl + '/newCourt/v2/api';
 }