afa 8 månader sedan
förälder
incheckning
9a8d810f1f
1 ändrade filer med 2 tillägg och 2 borttagningar
  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) {