fix: remove bd center gift permission request

This commit is contained in:
170-carry 2026-04-29 00:10:49 +08:00
parent af4a452e90
commit 6a6414ddc2
2 changed files with 2 additions and 9 deletions

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
<title>BD Center</title>
<link rel="stylesheet" href="./style.css?v=20260429-0140" />
<link rel="stylesheet" href="./style.css?v=20260429-0150" />
</head>
<body>
<div class="bd-center" aria-label="BD Center" data-i18n-aria="page_label" data-loading="true">
@ -126,6 +126,6 @@
<div class="toast" id="toast" role="status" aria-live="polite" hidden></div>
</div>
<script src="./script.js?v=20260429-0140" defer></script>
<script src="./script.js?v=20260429-0150" defer></script>
</body>
</html>

View File

@ -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()
];