From d5ae2524c0ecf37b28e6e6935cbb909028c93ea4 Mon Sep 17 00:00:00 2001 From: ldh Date: Tue, 17 Jan 2023 18:36:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E7=BB=91=E8=BF=94=E5=9B=9EProm?= =?UTF-8?q?ise?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sheep/platform/provider/wechat/miniProgram.js | 2 +- sheep/platform/provider/wechat/officialAccount.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } // 获取公众号登陆地址