Commit fb40ec57 by liimin

优化代码

1 parent 9a2ce81d
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: limin * @Author: limin
* @Date: 2025-01-02 18:49:17 * @Date: 2025-01-02 18:49:17
* @LastEditors: limin * @LastEditors: limin
* @LastEditTime: 2025-01-06 19:37:32 * @LastEditTime: 2025-01-15 22:01:56
* @FilePath: \gl_tape\utils\recordManager\TempRecord.js * @FilePath: \gl_tape\utils\recordManager\TempRecord.js
*/ */
import utils from '../utils' import utils from '../utils'
...@@ -53,6 +53,7 @@ class TempRecord { ...@@ -53,6 +53,7 @@ class TempRecord {
} }
async save(record = this.record) { async save(record = this.record) {
try { try {
if(!record) throw new Error('记录对象为空')
uni.$logger.local.info('〖接待记录Record〗 == 开始持久化记录 ==' + JSON.stringify(record)) uni.$logger.local.info('〖接待记录Record〗 == 开始持久化记录 ==' + JSON.stringify(record))
this.clearLoopTimer() this.clearLoopTimer()
await this.saveTempFile(record) await this.saveTempFile(record)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!