Kaynağa Gözat

fix: [build] update product domain

wangyuan 2 yıl önce
ebeveyn
işleme
c9b0d4e0ff
1 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. 3 2
      api/request.js

+ 3 - 2
api/request.js

@@ -1,5 +1,6 @@
 /* wx.request */
-const BASE_API_URL = 'https://itt.chl6zk.store/api'
+const BASE_API_URL = 'https://api.itthealth.com/api'
+const BASE_FILE_API_URL = 'https://file.itthealth.com/api'
 const BASE_API_VERSION = '/v1'
 import itt from '../utils/util'
 const app = getApp()
@@ -61,7 +62,7 @@ export const wxRequest = (url,data) => {
 export const wxUpload = (url, data) => {
   return new Promise((resolve, reject) => {
     wx.uploadFile({
-      url: BASE_API_URL + url + BASE_API_VERSION,
+      url: BASE_FILE_API_URL + url + BASE_API_VERSION,
       filePath: data.filePath,
       name: 'file',
       formData: {