Parcourir la source

1. 去掉支付回调地址不需要的参数 2. 新增线上启动地址

gongyan il y a 4 ans
Parent
commit
6e6674f257
2 fichiers modifiés avec 2 ajouts et 24 suppressions
  1. 2 1
      package.json
  2. 0 23
      src/App.vue

+ 2 - 1
package.json

@@ -8,7 +8,8 @@
         "build": "node build/build.js",
         "build:test": "node build/dev.js",
         "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
-        "test": "webpack-dev-server --inline --progress --config build/webpack.test.conf.js"
+        "test": "webpack-dev-server --inline --progress --config build/webpack.test.conf.js",
+        "test:prod": "webpack-dev-server --inline --progress --config build/webpack.test.prod.conf.js"
     },
     "dependencies": {
         "@nutui/nutui": "^2.2.13",

+ 0 - 23
src/App.vue

@@ -137,21 +137,10 @@ export default {
       const { appid } = this;
       const returnUrlLeft =
         window.location.origin + window.location.pathname + "#/counter?";
-      // 1. 拿到所有的当前路由的参数
       const allQuery = this.$utils.getAllQueryString();
       // 2. 将需要的参数拼接
       const queryString = this.$utils.queryStringUtil({
         amount,
-        appid,
-        cp_order_id,
-        goods_id,
-        goods_name,
-        platform: allQuery.platform,
-        role_name,
-        role_id,
-        server_id,
-        server_name,
-        pay_type,
         pay_platform,
         pay: "game",
       });
@@ -203,21 +192,9 @@ export default {
       const returnUrlLeft =
         window.location.origin + window.location.pathname + "#/counter?";
 
-      // 1. 拿到所有的当前路由的参数
-      const allQuery = this.$utils.getAllQueryString();
       // 2. 将需要的参数拼接
       const queryString = this.$utils.queryStringUtil({
         amount,
-        appid,
-        cp_order_id,
-        goods_id,
-        goods_name,
-        platform: allQuery.platform,
-        role_name,
-        role_id,
-        server_id,
-        server_name,
-        pay_type,
         pay_platform,
         pay: "game",
       });