【缺陷修复】绑定推广员
parent
94f8883bd8
commit
9ce6e63ee9
|
|
@ -190,9 +190,10 @@ const bindBrokerageUser = async (val = undefined) => {
|
||||||
if (!shareId) {
|
if (!shareId) {
|
||||||
return;
|
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');
|
uni.removeStorageSync('shareId');
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue