Commit ca022a7e by pierce

审核需要,就算没有安装微信,也需要可以登录

parent 97e6a434
...@@ -168,11 +168,10 @@ class GDSocialPlatCenter: BaseViewModel { ...@@ -168,11 +168,10 @@ class GDSocialPlatCenter: BaseViewModel {
switch model.plat { switch model.plat {
case .wechat: case .wechat:
if let wechatOpenUrl = URL(string: "weixin://"), UIApplication.shared.canOpenURL(wechatOpenUrl) == true { if let wechatOpenUrl = URL(string: "weixin://"), UIApplication.shared.canOpenURL(wechatOpenUrl) == true {
GDPlat.WeChat.login(delegate: self, currentVc: vc)
} else { } else {
currentLoginModel?.completionHandler?(false, "请先安装微信", [:]) FTIndicator.dismissProgress()
currentLoginModel = nil
} }
GDPlat.WeChat.login(delegate: self, currentVc: vc)
case .qq: case .qq:
let success = tencentAuth!.authorize(GDPlat.QQ.permission, localAppId: GDSDK.gd_QQAppId) let success = tencentAuth!.authorize(GDPlat.QQ.permission, localAppId: GDSDK.gd_QQAppId)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment