zjs_project 1 anno fa
parent
commit
8db9c48b6b
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 1 1
      src/services/request.js
  2. 2 2
      src/services/requestConfig.js

+ 1 - 1
src/services/request.js

@@ -35,7 +35,7 @@ axios.interceptors.request.use(function(config) {
 			// config.headers['userId'] = "";
 			// config.headers['ip'] = "";
 		} else {//uploadOss 上传format文件过大时提示不成功,接口500,通过测试与header有关,注释掉上传的header就好了
-			if (!config.url.includes('elab-marketing-sms/aliyun/openapi/uploadOss')
+			if (!config.url.includes('elab-marketing-notify/aliyun/openapi/uploadOss')
 			&& !config.url.includes('/robust_video')){
 				// config.headers['userId'] = mapVue.$route.query.leavePhoneCustomerId || '';
 				// config.headers['openId'] = mapVue.$route.query.openid || '';

+ 2 - 2
src/services/requestConfig.js

@@ -47,7 +47,7 @@ const endpoints = {
 	get_result: 'https://robustvideomatting.elab-plus.com/get_result', // 获取视频上传结果
 	getUserVirtural: 'elab-marketing-file/virtual/getUserVirtural', // 查询用户上传的数字人 
 	addUserVirtural: 'elab-marketing-file/virtual/addUserVirtural', // 修改数字人信息
-	aliyunOpenapiUploadOss: "elab-marketing-sms/aliyun/openapi/uploadOss", // 上传文件到oss
+	aliyunOpenapiUploadOss: "elab-marketing-notify/aliyun/openapi/uploadOss", // 上传文件到oss
 	queryTestcaseSingle: "elab-marketing-content/testcase/queryTestcaseSingle/v2", // 查询单个测试数据
 	add: "elab-marketing-file/browse/records/add", // 是否喜欢
 	send: 'elab-marketing-user/vcode/send/verifyCode', //发送短信验证码
@@ -132,7 +132,7 @@ window.requestConfig = async(endpoint, options, isHideLoading = false, preventDo
 	    requestOptions.headers.sign = encryptedData;
 	}
     if (requestOptions.url.includes('elab-marketing-analyse/heavenlyEye/importLocations') ||
-        requestOptions.url.includes('elab-marketing-sms/aliyun/openapi/uploadOss') ||
+        requestOptions.url.includes('elab-marketing-notify/aliyun/openapi/uploadOss') ||
 		requestOptions.url.includes('/robust_video')) {
         requestOptions.ContentType = 'multipart/form-data';
 		if(uploadProgress && typeof(uploadProgress)==='function'){