|
@@ -6,7 +6,39 @@
|
|
|
//
|
|
|
import ObjectMapper
|
|
|
|
|
|
+func kHandleTSHistory(){
|
|
|
+ for model in TSAIRintoneHistory.listModelArray {
|
|
|
+ if model.modelType != .example {
|
|
|
+ switch model.actionStatus {
|
|
|
+ case .pending,.running:
|
|
|
+ TSGenerateRintoneOperationQueue.shared.creatOperation(uuid: model.uuid).getActionInfo(oldModel: model)
|
|
|
+ default:break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ for model in TSPosterHistory.listModelArray {
|
|
|
+ if model.modelType != .example {
|
|
|
+ switch model.actionStatus {
|
|
|
+ case .pending,.running:
|
|
|
+ TSGeneratePosterOperationQueue.shared.creatOperation(uuid: model.uuid).getActionInfo(oldModel: model)
|
|
|
+ default:break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ for model in TSPhotoHistory.listModelArray {
|
|
|
+ if model.modelType != .example {
|
|
|
+ switch model.actionStatus {
|
|
|
+ case .pending,.running:
|
|
|
+ TSGeneratePhotoOperationQueue.shared.creatOperation(uuid: model.uuid).getActionInfo(oldModel: model)
|
|
|
+ default:break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
+}
|
|
|
//海报历史记录
|
|
|
class TSPosterHistory{
|
|
|
@UserDefault(key: "kPosterTextPicHistoryListString", defaultValue: "")
|
|
@@ -45,12 +77,7 @@ class TSPosterHistory{
|
|
|
dePrint("TSPosterHistory.listModel ArrayModel not found")
|
|
|
}
|
|
|
dePrint("TSPosterHistory.listModelArray.count=\(TSAIRintoneHistory.listModelArray.count)")
|
|
|
-
|
|
|
- if newModel.status == "success" ||
|
|
|
- newModel.status == "failed" {
|
|
|
- self.saveHistoryString()
|
|
|
- }
|
|
|
-
|
|
|
+ self.saveHistoryString()
|
|
|
}
|
|
|
|
|
|
static func removeIndex(index:Int){
|
|
@@ -127,12 +154,7 @@ class TSPhotoHistory{
|
|
|
dePrint("TSPhotoHistory.listModel ArrayModel not found")
|
|
|
}
|
|
|
dePrint("TSPhotoHistory.listModelArray.count=\(TSAIRintoneHistory.listModelArray.count)")
|
|
|
-
|
|
|
- if newModel.status == "success" ||
|
|
|
- newModel.status == "failed" {
|
|
|
- self.saveHistoryString()
|
|
|
- }
|
|
|
-
|
|
|
+ self.saveHistoryString()
|
|
|
}
|
|
|
|
|
|
static func saveHistoryString(){
|
|
@@ -206,12 +228,7 @@ class TSAIRintoneHistory{
|
|
|
dePrint("TSAIRintoneHistory.listModel ArrayModel not found")
|
|
|
}
|
|
|
dePrint("TSAIRintoneHistory.listModelArray.count=\(TSAIRintoneHistory.listModelArray.count)")
|
|
|
-
|
|
|
- if newModel.status == "success" ||
|
|
|
- newModel.status == "failed" {
|
|
|
- self.saveHistoryString()
|
|
|
- }
|
|
|
-
|
|
|
+ self.saveHistoryString()
|
|
|
}
|
|
|
|
|
|
static func removeIndex(index:Int){
|