From 25fc972833cb9f2d3d00196e9b07144dc65e8496 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Fri, 6 Dec 2024 15:10:14 +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=E8=87=AA=E5=B7=B1=E6=9F=A5=E7=9C=8B=E8=87=AA=E5=B7=B1?= =?UTF-8?q?=E7=9A=84=E5=88=86=E4=BA=AB=E6=97=B6=E7=A7=BB=E9=99=A4=20shareI?= =?UTF-8?q?d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sheep/platform/share.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sheep/platform/share.js b/sheep/platform/share.js index 21c530f0..7f47213c 100644 --- a/sheep/platform/share.js +++ b/sheep/platform/share.js @@ -189,12 +189,12 @@ const bindBrokerageUser = async (val = undefined) => { if (!shareId) { return; } - const { data } = await BrokerageApi.bindBrokerageUser({ bindUserId: shareId }); - if (!data) { - return; - } + const { data, msg } = await BrokerageApi.bindBrokerageUser({ bindUserId: shareId }); // 绑定成功后清除缓存 - uni.removeStorageSync('shareId'); + if (!!data || msg.includes('不能绑定自己')) { + uni.removeStorageSync('shareId'); + } + } catch (e) { console.error(e); }