|
@@ -477,6 +477,11 @@ class PQStuckPointPublicController: PQBaseViewController {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ var isTestSaveFailed = false
|
|
|
+ override func rightBtnClick(sender:UIButton){
|
|
|
+ isTestSaveFailed = true
|
|
|
+ }
|
|
|
|
|
|
override func viewDidLoad() {
|
|
|
super.viewDidLoad()
|
|
@@ -484,6 +489,8 @@ class PQStuckPointPublicController: PQBaseViewController {
|
|
|
addNotification(self, selector: #selector(uploadSuccess(notify:)), name: cUploadSuccessKey, object: nil)
|
|
|
PQNotification.addObserver(self, selector: #selector(didBecomeActiveNotification), name: UIApplication.didBecomeActiveNotification, object: nil)
|
|
|
leftButton(image: nil, tintColor: PQBFConfig.shared.styleTitleColor)
|
|
|
+ // Test
|
|
|
+ rightButtonItem(image: nil, title: "TestSave失败")
|
|
|
navHeadImageView?.backgroundColor = UIColor.clear
|
|
|
lineView?.removeFromSuperview()
|
|
|
view.addSubview(bgTopView)
|
|
@@ -943,7 +950,7 @@ extension PQStuckPointPublicController {
|
|
|
/// - Returns: <#description#>
|
|
|
func saveStuckPointVideo() {
|
|
|
|
|
|
- if(saveMovieLocalURL == nil){
|
|
|
+ if(saveMovieLocalURL == nil || isTestSaveFailed){
|
|
|
BFLog(message: "保存相册的视频导出地址无效!!!")
|
|
|
saveVideoTipsLabel.text = "视频已经保存失败"
|
|
|
saveRetryBtn.isHidden = false
|
|
@@ -1416,6 +1423,7 @@ extension PQStuckPointPublicController {
|
|
|
case 97:
|
|
|
saveRetryBtn.isHidden = true
|
|
|
saveVideoTipsLabel.text = "视频保存中..."
|
|
|
+ isTestSaveFailed = false
|
|
|
self.saveStuckPointVideo()
|
|
|
default:
|
|
|
break
|