afa 8 月之前
父節點
當前提交
9a8d810f1f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      application/api/controller/Ledger.php

+ 2 - 2
application/api/controller/Ledger.php

@@ -199,9 +199,9 @@ class Ledger extends Api
             if(bccomp($amount, $chabao, 2) > 0) throw new Exception(__("余额不足请前往充值"), 15001);
         
             // 更新USDT和账变
-            $ledgerWalletModel->changeWalletAccount($this->auth->id, Asset::TOKEN, -$amount, $ledgerWalletModel::GiftPay);
+            $ledgerWalletModel->changeWalletAccount($this->auth->id, Asset::TOKEN, -$amount, $ledgerWalletModel::GiftPay, $user['id']);
 
-            $ledgerWalletModel->changeWalletAccount($user['id'], Asset::TOKEN, $real, $ledgerWalletModel::GiftReceipt);
+            $ledgerWalletModel->changeWalletAccount($user['id'], Asset::TOKEN, $real, $ledgerWalletModel::GiftReceipt, $this->auth->id);
             // 提交事务
             Db::commit();
         } catch (Exception $e) {