From 9ce6e63ee9098e4377fbe0668c9934f54bfba77c Mon Sep 17 00:00:00 2001 From: puhui999 Date: Tue, 7 Jan 2025 16:43:15 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=BC=BA=E9=99=B7=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E3=80=91=E7=BB=91=E5=AE=9A=E6=8E=A8=E5=B9=BF=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sheep/platform/share.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sheep/platform/share.js b/sheep/platform/share.js index 9b8f1cc5..5f49d1bc 100644 --- a/sheep/platform/share.js +++ b/sheep/platform/share.js @@ -190,9 +190,10 @@ const bindBrokerageUser = async (val = undefined) => { if (!shareId) { return; } - const { data, msg } = await BrokerageApi.bindBrokerageUser({ bindUserId: shareId }); + // 绑定成功返回 true,失败返回 false + const { data } = await BrokerageApi.bindBrokerageUser({ bindUserId: shareId }); // 绑定成功后清除缓存 - if (!!data || msg.includes('不能绑定自己')) { + if (data) { uni.removeStorageSync('shareId'); } } catch (e) {