瀏覽代碼

fix: 解绑返回Promise

ldh 2 年之前
父節點
當前提交
d5ae2524c0
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      sheep/platform/provider/wechat/miniProgram.js
  2. 1 1
      sheep/platform/provider/wechat/officialAccount.js

+ 1 - 1
sheep/platform/provider/wechat/miniProgram.js

@@ -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

+ 1 - 1
sheep/platform/provider/wechat/officialAccount.js

@@ -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);
 }
 }
 
 
 // 获取公众号登陆地址
 // 获取公众号登陆地址