Browse Source

🐞 fix: 更改查询修复时的顺序

Pchen. 1 month ago
parent
commit
ba439e250e
1 changed files with 4 additions and 3 deletions
  1. 4 3
      lib/Lepao/Lepao.js

+ 4 - 3
lib/Lepao/Lepao.js

@@ -167,6 +167,9 @@ class Lepao {
                 throw error
             }
 
+             // 临时修复3.12~3.18期间未入库记录,后续可删除
+            await this.fixRecords(uuid, ossData)
+
             // 上传 OSS
             this.logger.info(`${account}开始上传OSS记录`)
             const ossUrl = this.runpy + '/upload_oss_file'
@@ -196,9 +199,7 @@ class Lepao {
                 throw new Error('系统繁忙,请联系客服或稍后再试')
             }
 
-            // 临时修复3.12~3.18期间未入库记录,后续可删除
-            await this.fixRecords(uuid, ossData)
-
+           
             // 扣除乐跑次数
             this.logger.info(`${account}开始扣减乐跑次数`)
             const useLepaoCountSql = 'UPDATE users SET lepao_count = lepao_count - 1 WHERE uuid  = ?'