浏览代码

微信未安装提示

jsonwang 4 年之前
父节点
当前提交
802d5d37f5

+ 5 - 0
MusicVideoPlus/MusicVideoPlus/Classes/Modules/Login/Controllers/MVLoginController.swift

@@ -226,6 +226,11 @@ extension MVLoginController: TYAttributedLabelDelegate {
 
 extension MVLoginController: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
     @objc func wechatLoginAction() {
+        
+        if !PQSingletoWXApiUtil.shared.isInstallWX() {
+            cShowHUB(superView: nil, msg: "您还未安装微信客户端!")
+            return
+        }
         PQSingletoWXApiUtil.shared.authorize().wxApiUtilHander = { [weak self] userData, errorMsg in
             if userData == nil {
                 // cShowHUB(superView:nil, msg: errorMsg)