拍射页面中,如果用户没有订阅产品,则使用拍照功能时,跳转内购页面

This commit is contained in:
bluesea 2024-04-02 16:34:48 +08:00
parent 3e3f368489
commit ec93b1f6c5

View File

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