ソースを参照

去掉支付回调不需要的参数

gongyan 4 年 前
コミット
a5b4f588bf
1 ファイル変更2 行追加8 行削除
  1. 2 8
      src/App.vue

+ 2 - 8
src/App.vue

@@ -137,12 +137,9 @@ 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({
-        ...allQuery,
-        pay_type,
+        amount,
         pay_platform,
         pay: "game",
       });
@@ -211,12 +208,9 @@ 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({
-        ...allQuery,
-        pay_type,
+        amount,
         pay_platform,
         pay: "hb",
       });