storeBelieveInLight 1 rok temu
rodzic
commit
bdd3f3deb1
2 zmienionych plików z 5 dodań i 5 usunięć
  1. 3 3
      commit/request.js
  2. 2 2
      manifest.json

+ 3 - 3
commit/request.js

@@ -5,8 +5,8 @@ var baseURL = 'https://api.hxxfb.com/gateway/' // API访问的地址
5
  }else if(is==2){
5
  }else if(is==2){
6
 	 // baseURL = 'https://api.hebeiyhc.com/gateway/'; //生产环境
6
 	 // baseURL = 'https://api.hebeiyhc.com/gateway/'; //生产环境
7
 	 // baseURL = 'https://api.hebeiyhc.com/gateway/'; //生产环境
7
 	 // baseURL = 'https://api.hebeiyhc.com/gateway/'; //生产环境
8
-	   // baseURL = 'https://testapi.hxxfb.com/gateway/'; //预生产环境
9
-	   baseURL = '/gateway/'; //预生产环境
8
+	   baseURL = 'https://testapi.hxxfb.com/gateway/'; //预生产环境
9
+	   // baseURL = '/gateway/'; //预生产环境
10
 	
10
 	
11
  }else{
11
  }else{
12
 	  baseURL = 'https://api.hxxfb.com/gateway/'; //预生产环境
12
 	  baseURL = 'https://api.hxxfb.com/gateway/'; //预生产环境
@@ -30,7 +30,7 @@ let bas = Base64.encode(jmi + "," + Fzitem)
30
 export const myRequest = (options) => {
30
 export const myRequest = (options) => {
31
 	return new Promise((resolve, reject) => {
31
 	return new Promise((resolve, reject) => {
32
 		 if(options.apiType === 'php'){
32
 		 if(options.apiType === 'php'){
33
-			baseURL = '/'
33
+			baseURL = '/api/'
34
 			// baseURL = '/'
34
 			// baseURL = '/'
35
 			console.log('url = ',baseURL + options.url,"PHP")
35
 			console.log('url = ',baseURL + options.url,"PHP")
36
 		 }
36
 		 }

+ 2 - 2
manifest.json

@@ -112,12 +112,12 @@
112
     //               "^/api": "/"
112
     //               "^/api": "/"
113
     //             }
113
     //             }
114
     //           },
114
     //           },
115
-			  "/mer":{
115
+			  "/api":{
116
 				  "target": "http://testshop.hxxfb.com/",
116
 				  "target": "http://testshop.hxxfb.com/",
117
 				  "changeOrigin": true,
117
 				  "changeOrigin": true,
118
 				  "pathRewirte": {
118
 				  "pathRewirte": {
119
 				    //路径重写
119
 				    //路径重写
120
-				    "^/mer": "/mer"
120
+				    "^/api": "/"
121
 				  }
121
 				  }
122
 			  },
122
 			  },
123
               "/gateway/api": {
123
               "/gateway/api": {