fix: 解绑返回Promise

pull/8/head
ldh 2023-01-17 18:36:09 +08:00
parent c6bd290f8e
commit d5ae2524c0
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ const unbind = async () => {
const { error } = await third.wechat.unbind({ const { error } = await third.wechat.unbind({
platform: 'miniProgram', platform: 'miniProgram',
}); });
return !error; return Promise.resolve(!error);
}; };
// 获取最新sessionId // 获取最新sessionId

View File

@ -60,7 +60,7 @@ async function unbind() {
const { error } = await third.wechat.unbind({ const { error } = await third.wechat.unbind({
platform: 'officialAccount', platform: 'officialAccount',
}); });
return !error; return Promise.resolve(!error);
} }
// 获取公众号登陆地址 // 获取公众号登陆地址