소스 검색

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({
     platform: 'miniProgram',
   });
-  return !error;
+  return Promise.resolve(!error);
 };
 
 // 获取最新sessionId

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