소스 검색

微信未安装提示

jsonwang 4 년 전
부모
커밋
802d5d37f5
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      MusicVideoPlus/MusicVideoPlus/Classes/Modules/Login/Controllers/MVLoginController.swift

+ 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)