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