Browse Source

✨ feat: 次数扣除时增加备注

Pchen0 1 week ago
parent
commit
154c9b8543
1 changed files with 4 additions and 2 deletions
  1. 4 2
      lib/Lepao/Worker.js

+ 4 - 2
lib/Lepao/Worker.js

@@ -797,7 +797,8 @@ class Worker {
                     balanceBefore: beforeCount,
                     balanceAfter: beforeCount - 1,
                     bizType: 'run_consume',
-                    bizId: consumeKey
+                    bizId: consumeKey,
+                    remark: `${account || uuid}乐跑扣除`
                 })
 
                 await conn.commit()
@@ -866,7 +867,8 @@ class Worker {
                     balanceBefore: beforeCount,
                     balanceAfter: beforeCount + 1,
                     bizType: 'run_refund',
-                    bizId: refundKey
+                    bizId: refundKey,
+                    remark: `${account || uuid}乐跑失败返还`
                 })
 
                 await conn.commit()