From ec93b1f6c5a695ecca9cf13ec3c7829f3673a05e Mon Sep 17 00:00:00 2001 From: bluesea <307723040@qq.com> Date: Tue, 2 Apr 2024 16:34:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=8D=E5=B0=84=E9=A1=B5=E9=9D=A2=E4=B8=AD,?= =?UTF-8?q?=E5=A6=82=E6=9E=9C=E7=94=A8=E6=88=B7=E6=B2=A1=E6=9C=89=E8=AE=A2?= =?UTF-8?q?=E9=98=85=E4=BA=A7=E5=93=81,=E5=88=99=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E6=8B=8D=E7=85=A7=E5=8A=9F=E8=83=BD=E6=97=B6,=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E5=86=85=E8=B4=AD=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CCSpatialShootController.swift | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/SwiftProject/SwiftProject/Project/Controller/RecordingVideo/CCSpatialShootController.swift b/SwiftProject/SwiftProject/Project/Controller/RecordingVideo/CCSpatialShootController.swift index ef701cd..ded044b 100644 --- a/SwiftProject/SwiftProject/Project/Controller/RecordingVideo/CCSpatialShootController.swift +++ b/SwiftProject/SwiftProject/Project/Controller/RecordingVideo/CCSpatialShootController.swift @@ -574,11 +574,21 @@ class CCSpatialShootController: BaseController { @objc func switchButtonAction(_ sender: UIButton){ if sender.tag == 1001 { - //拍照 - shootingMode = .CCShootingMode_Camera - - shutterPhotoButton.isHidden = false - shutterVideoButton.isHidden = true + if UserInfo.sharedInstance.isMemberShip { + //拍照 + shootingMode = .CCShootingMode_Camera + + shutterPhotoButton.isHidden = false + shutterVideoButton.isHidden = true + changeSwitchstatus() + } + else {//前往内购订阅页面 + let vc:MembershipVC = MembershipVC() + let nav = UINavigationController(rootViewController: vc) + nav.modalTransitionStyle = UIModalTransitionStyle.coverVertical + nav.modalPresentationStyle = .fullScreen + self.present(nav, animated: true) + } }else if sender.tag == 1002 { //录像 @@ -586,9 +596,10 @@ class CCSpatialShootController: BaseController { shutterPhotoButton.isHidden = true shutterVideoButton.isHidden = false + changeSwitchstatus() } - changeSwitchstatus() + }