|
...
|
...
|
@@ -42,7 +42,7 @@ export class WeChatLoginBridge extends WeChatHostApi implements WXApiEventHandle |
|
|
|
if (this.pendingResult !== null) {
|
|
|
|
result.error(new FlutterError(
|
|
|
|
'wechat_authorization_in_progress',
|
|
|
|
'WeChat authorization is already in progress.',
|
|
|
|
'微信授权进行中',
|
|
|
|
'WeChatError',
|
|
|
|
));
|
|
|
|
return;
|
|
...
|
...
|
@@ -50,7 +50,7 @@ export class WeChatLoginBridge extends WeChatHostApi implements WXApiEventHandle |
|
|
|
if (!this.wxApi.isWXAppInstalled()) {
|
|
|
|
result.error(new FlutterError(
|
|
|
|
'wechat_not_installed',
|
|
|
|
'WeChat is not installed.',
|
|
|
|
'微信未安装',
|
|
|
|
'WeChatError',
|
|
|
|
));
|
|
|
|
return;
|
|
...
|
...
|
@@ -91,7 +91,7 @@ export class WeChatLoginBridge extends WeChatHostApi implements WXApiEventHandle |
|
|
|
}
|
|
|
|
this.finishWithError(
|
|
|
|
'wechat_authorization_cancelled',
|
|
|
|
'WeChat authorization was cancelled.',
|
|
|
|
'微信授权已取消',
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|