zs há 1 ano atrás
pai
commit
ccbb3e91ee
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      common/api.js
  2. 1 1
      pagesHome/customer/common/submit_1.vue

+ 1 - 1
common/api.js

@@ -51,7 +51,7 @@ export const requestApp = async (uri, method = 'GET', data, type) => {
 	});
 };
 export const requestFile = (uri, method, data, type) => {
-	let baseUrl = getDomain(uri, method, type);
+	let baseUrl = `http://192.168.1.197${uri}`;
 	return new Promise((resolve, reject) => {
 		uni.uploadFile({
 			url: baseUrl,

+ 1 - 1
pagesHome/customer/common/submit_1.vue

@@ -80,7 +80,7 @@
 					success: async function(res) {
 						that.$emit('choseImg', true);
 						let tempFile = JSON.parse(JSON.stringify(res.tempFilePaths));
-						const arr = await that.$apifile(`/travel/applet/upload`, 'file', tempFile[0], 'file');
+						const arr = await that.$apifile(`/files/notarization/chat/upload`, 'file', tempFile[0], 'file');
 						if (arr.errcode == '0') {
 							let filePaths = serverUrl + arr.uri
 							that.send(filePaths, '1')