Commit bede39ef authored by lmj_521aiau@163.com's avatar lmj_521aiau@163.com

no message

parent 6d626ed9
...@@ -105,24 +105,24 @@ class SHRecordListViewController: SHBaseViewController { ...@@ -105,24 +105,24 @@ class SHRecordListViewController: SHBaseViewController {
}, confirm: "删除", confirmTitleColor: UIColor.red, confirmBlock: { message in }, confirm: "删除", confirmTitleColor: UIColor.red, confirmBlock: { message in
var list = CRUserDefaults.recordList
let deleteModel = self.dataSources[indexPath.row] let deleteModel = self.dataSources[indexPath.row]
for (index, dic) in list!.enumerated(){ if var list = CRUserDefaults.recordList {
for (index, dic) in list.enumerated(){
if dic["pathFile"] as! String == deleteModel.pathFile{ if dic["pathFile"] as! String == deleteModel.pathFile{
// var subDic = dic // var subDic = dic
// subDic["delete"] = true // subDic["delete"] = true
// subDic["deleteDate"] = Date.init() // subDic["deleteDate"] = Date.init()
// list![index] = subDic // list![index] = subDic
list!.remove(at: index) list.remove(at: index)
break break
} }
} }
CRUserDefaults.recordList = list CRUserDefaults.recordList = list
}
let keyValueStore = NSUbiquitousKeyValueStore.default let keyValueStore = NSUbiquitousKeyValueStore.default
list = keyValueStore.object(forKey: "list") as? [Dictionary<String, Any>] let list = keyValueStore.object(forKey: "list") as? [Dictionary<String, Any>]
if var list = list { if var list = list {
for (index, dic) in list.enumerated(){ for (index, dic) in list.enumerated(){
......
...@@ -141,6 +141,11 @@ class SHRecordViewController: SHBaseViewController{ ...@@ -141,6 +141,11 @@ class SHRecordViewController: SHBaseViewController{
return return
} }
if recorder?.isRecording == true {
let s = self.recognitionTaskText.first! + "\n" + (currentTxt ?? "") + "\n"
self.recognitionTaskText[0] = s
}
stopRecord() stopRecord()
save = true save = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment