|
@@ -95,8 +95,6 @@ class TSGeneralPicVC: TSBottomAlertVC {
|
|
|
// }
|
|
|
|
|
|
override func clickAgainBtn() {
|
|
|
- //判断 vip
|
|
|
- if kPurchaseToolShared.kJudgeVipFreeType(vipFreeNumType: vipFreeNumType, vc: self){ return }
|
|
|
creatImage()
|
|
|
}
|
|
|
|
|
@@ -122,15 +120,15 @@ class TSGeneralPicVC: TSBottomAlertVC {
|
|
|
}
|
|
|
|
|
|
override func dealThings() {
|
|
|
- //判断 vip
|
|
|
- if kPurchaseToolShared.kJudgeVipFreeType(vipFreeNumType: vipFreeNumType, vc: self){ return }
|
|
|
+
|
|
|
creatImage()
|
|
|
}
|
|
|
|
|
|
func creatImage() {
|
|
|
-
|
|
|
+ //判断 vip
|
|
|
+ if kPurchaseToolShared.kJudgeVipFreeType(vipFreeNumType: vipFreeNumType, vc: self){ return }
|
|
|
if gennerateType == .poster {
|
|
|
- let operation:TSGeneratePosterOperation = TSGeneratePosterOperationQueue.shared.creatOperation(uuid: UUID().uuidString) as! TSGeneratePosterOperation
|
|
|
+ let operation:TSGeneratePosterOperation = TSGeneratePosterOperationQueue.shared.creatOperation(uuid: UUID().uuidString)
|
|
|
operation.$stateDatauPblished.receive(on: DispatchQueue.main).sink {[weak self] (state,model) in
|
|
|
guard let self = self else { return }
|
|
|
self.upDateView(state: state, model: model)
|
|
@@ -138,7 +136,7 @@ class TSGeneralPicVC: TSBottomAlertVC {
|
|
|
operation.creatPoster(oldModel: self.infoModel, prompt: prompt, promptSort: promptSort)
|
|
|
|
|
|
}else if gennerateType == .photo {
|
|
|
- let operation:TSGeneratePhotoOperation = TSGeneratePhotoOperationQueue.shared.creatOperation(uuid: UUID().uuidString) as! TSGeneratePhotoOperation
|
|
|
+ let operation:TSGeneratePhotoOperation = TSGeneratePhotoOperationQueue.shared.creatOperation(uuid: UUID().uuidString)
|
|
|
operation.$stateDatauPblished.receive(on: DispatchQueue.main).sink {[weak self] (state,model) in
|
|
|
guard let self = self else { return }
|
|
|
self.upDateView(state: state, model: model)
|