From f47a9c475873558da086ed28400647a7490f4028 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 20 一月 2021 18:48:47 +0800
Subject: [PATCH] 2021-01-20

---
 src/setupProxy.js |   22 ++++++++++++++++------
 1 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/src/setupProxy.js b/src/setupProxy.js
index e2434ee..f0f93f1 100644
--- a/src/setupProxy.js
+++ b/src/setupProxy.js
@@ -1,6 +1,6 @@
 const proxy = require('http-proxy-middleware')
-const host = 'http://qingqiumarket.cn'
-const service = 'mkwms/'
+const host = 'http://bms-test.kresstools.cn'
+const service = 'oc/'
 
 module.exports = function(app) {
   app.use(proxy('/webapi', { 
@@ -22,7 +22,7 @@
     }
   }))
 
-  app.use(proxy('/Upload', { // 鐧诲綍鎺ュ彛
+  app.use(proxy('/Upload', {
     target: `${host}/${service}zh-CN/Home/Upload`,
     secure: false,
     changeOrigin: true,
@@ -31,12 +31,22 @@
     }
   }))
 
-  app.use(proxy('/local', { 
-    target: 'http://127.0.0.1:8888',
+  app.use(proxy('/wxpay', {
+    target: `${host}/${service}wxpay`,
     secure: false,
     changeOrigin: true,
     pathRewrite: {
-    '^/local': '/'
+    '^/wxpay': '/'
     }
   }))
+
+  app.use(proxy('/Home', { 
+    target: `${host}/Home`,
+    secure: false,
+    changeOrigin: true,
+    pathRewrite: {
+    '^/Home': '/'
+    }
+    // cookieDomainRewrite: "http://localhost:3000"
+  }))
 }
\ No newline at end of file

--
Gitblit v1.8.0