Bladeren bron

更换api

sunxf 1 jaar geleden
bovenliggende
commit
72192c28b8
4 gewijzigde bestanden met toevoegingen van 13 en 12 verwijderingen
  1. 1 1
      pages/reading/reading.js
  2. 1 1
      pages/user/myEdit/myEdit.js
  3. 9 8
      utils/const.js
  4. 2 2
      utils/request.js

+ 1 - 1
pages/reading/reading.js

@@ -549,7 +549,7 @@ Page({
         })
         const recordSource = this.data.recordSource;
         wx.uploadFile({
-            url: 'https://reader-api.efunbox.cn//file/upload',
+            url: 'https://reader-api.ai160.com//file/upload',
             filePath: recordSource,
             name: '朗读录音',
             header: {

+ 1 - 1
pages/user/myEdit/myEdit.js

@@ -87,7 +87,7 @@ Page({
                 // tempFilePath可以作为img标签的src属性显示图片
                 const localImage = res.tempFilePaths[0];
                 wx.uploadFile({
-                    url: 'https://reader-api.efunbox.cn/file/upload',
+                    url: 'https://reader-api.ai160.com/file/upload',
                     filePath: localImage,
                     name: '头像',
                     header: {

+ 9 - 8
utils/const.js

@@ -1,10 +1,11 @@
 // 常量列表
 module.exports = {
-  // productApi: 'https://reader.lingjiao.cn/readerProduct/',
-  // productApi: 'https://readertest.lingjiao.cn:442/readerProduct/',
-  productApi:  'https://reader-test.efunbox.cn/readerProduct/',
-  // baseApi: 'https://reader.lingjiao.cn/readerBase/'
-  // baseApi: 'https://readertest.lingjiao.cn:442/readerBase/'
-  baseApi: 'https://reader-api.efunbox.cn/'
-  // baseApi: 'https://reader-api.efunbox.cn/'
-}
+    // productApi: 'https://reader.lingjiao.cn/readerProduct/',
+    // productApi: 'https://readertest.lingjiao.cn:442/readerProduct/',
+    productApi: 'https://reader-test.efunbox.cn/readerProduct/',
+    // baseApi: 'https://reader.lingjiao.cn/readerBase/'
+    // baseApi: 'https://readertest.lingjiao.cn:442/readerBase/'
+    //   baseApi: 'https://reader-api.efunbox.cn/'
+    baseApi: 'https://reader-api.ai160.com/'
+    // https://reader-api.ai160.com/
+}

+ 2 - 2
utils/request.js

@@ -1,5 +1,5 @@
-let baseUrl = 'https://reader-api.efunbox.cn/wx'
-let oldUrl = 'https://reader-api.efunbox.cn'
+let baseUrl = 'https://reader-api.ai160.com/wx'
+let oldUrl = 'https://reader-api.ai160.com'
 
 
 function request(url, method, data, oldBaseUrl = false) {