diff --git a/sheep/platform/provider/wechat/miniProgram.js b/sheep/platform/provider/wechat/miniProgram.js index b2ce37b..dd29804 100644 --- a/sheep/platform/provider/wechat/miniProgram.js +++ b/sheep/platform/provider/wechat/miniProgram.js @@ -76,7 +76,7 @@ const unbind = async () => { const { error } = await third.wechat.unbind({ platform: 'miniProgram', }); - return !error; + return Promise.resolve(!error); }; // 获取最新sessionId diff --git a/sheep/platform/provider/wechat/officialAccount.js b/sheep/platform/provider/wechat/officialAccount.js index 044cd5a..f5f90eb 100644 --- a/sheep/platform/provider/wechat/officialAccount.js +++ b/sheep/platform/provider/wechat/officialAccount.js @@ -60,7 +60,7 @@ async function unbind() { const { error } = await third.wechat.unbind({ platform: 'officialAccount', }); - return !error; + return Promise.resolve(!error); } // 获取公众号登陆地址