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