From 3ca91a731665962918a026f521c556f4745ebf35 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 16 十一月 2020 19:20:19 +0800
Subject: [PATCH] 2020-11-16

---
 src/setupProxy.js |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/src/setupProxy.js b/src/setupProxy.js
index f358dbc..96428c2 100644
--- a/src/setupProxy.js
+++ b/src/setupProxy.js
@@ -1,8 +1,10 @@
 const proxy = require('http-proxy-middleware')
+const host = 'http://qingqiumarket.cn'
+const service = 'mkwms/'
 
 module.exports = function(app) {
   app.use(proxy('/webapi', { 
-    target: 'http://qingqiumarket.cn/MKWMS/webapi',
+    target: `${host}/${service}webapi`,
     secure: false,
     changeOrigin: true,
     pathRewrite: {
@@ -12,7 +14,7 @@
   }))
   
   app.use(proxy('/zh-CN', { // 鐧诲綍鎺ュ彛
-    target: 'http://qingqiumarket.cn/MKWMS/zh-CN',
+    target: `${host}/${service}zh-CN`,
     secure: false,
     changeOrigin: true,
     pathRewrite: {
@@ -20,21 +22,21 @@
     }
   }))
 
-  app.use(proxy('/mksepc', { 
-    target: 'http://minkesoft.com/mksepc',
+  app.use(proxy('/Upload', {
+    target: `${host}/${service}zh-CN/Home/Upload`,
     secure: false,
     changeOrigin: true,
     pathRewrite: {
-    '^/mksepc': '/'
+    '^/Upload': '/'
     }
   }))
 
-  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': '/'
     }
   }))
 }
\ No newline at end of file

--
Gitblit v1.8.0