From 6a6414ddc25b64031faf4dbe83642f5b6bc22057 Mon Sep 17 00:00:00 2001 From: 170-carry Date: Wed, 29 Apr 2026 00:10:49 +0800 Subject: [PATCH] fix: remove bd center gift permission request --- h5/hyapp/bd-center/index.html | 4 ++-- h5/hyapp/bd-center/script.js | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/h5/hyapp/bd-center/index.html b/h5/hyapp/bd-center/index.html index a480650..e8ce0aa 100644 --- a/h5/hyapp/bd-center/index.html +++ b/h5/hyapp/bd-center/index.html @@ -4,7 +4,7 @@ BD Center - +
@@ -126,6 +126,6 @@
- + diff --git a/h5/hyapp/bd-center/script.js b/h5/hyapp/bd-center/script.js index 23ace83..4d9b0ae 100644 --- a/h5/hyapp/bd-center/script.js +++ b/h5/hyapp/bd-center/script.js @@ -176,7 +176,6 @@ profile: "/team/member/profile", identity: "/app/h5/identity", balance: "/wallet/salary-account/balance?salaryType=BD_SALARY", - giftPermission: "/sys/bd/own-permission", agencyBill: "/team/bd/member-bill/list?type=BD", inviteList: "/team/bd/invite-message-own", inviteSearch: (account) => `/user/user-profile/open-search?account=${encodeURIComponent(account)}`, @@ -188,7 +187,6 @@ const state = { profile: null, identity: null, - giftPermission: false, balanceTotal: {}, bill: {}, agencyBill: null, @@ -899,10 +897,6 @@ state.identity = await requestJSON(bdCenterEndpoints.identity); } - async function fetchGiftPermission() { - state.giftPermission = Boolean(await requestJSON(bdCenterEndpoints.giftPermission)); - } - async function fetchBalanceTotal() { state.balanceTotal = await requestJSON(bdCenterEndpoints.balance) || {}; renderBalance(); @@ -1069,7 +1063,6 @@ const tasks = [ fetchProfile(), fetchIdentity(), - fetchGiftPermission(), fetchBalanceTotal(), fetchAgencyBill() ];