浏览代码

冻结金额

afa 8 月之前
父节点
当前提交
9ddfb3e89e
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      application/api/controller/Airdrop.php
  2. 1 1
      application/common/model/LedgerWalletModel.php

+ 1 - 1
application/api/controller/Airdrop.php

@@ -76,7 +76,7 @@ class Airdrop extends Api
             $userModel::updateUserSuper($this->auth->id, $this->auth->parent_id);
             $userModel::updateUserSuper($this->auth->id, $this->auth->parent_id);
 
 
             //标识为社区长
             //标识为社区长
-            if($row->frozen > 0) LedgerWalletModel::sendUserSubFrozen($this->auth->id, $row->frozen, LedgerWalletModel::Super, '-'); 
+            if($row->frozen > 0) (new LedgerWalletModel)->sendUserSubFrozen($this->auth->id, $row->frozen, LedgerWalletModel::Super, '-'); 
             
             
             //添加茶数量
             //添加茶数量
             $userModel::updateForRwaNum($this->auth->id, $this->auth->parent_id, $row->super_num, '+');
             $userModel::updateForRwaNum($this->auth->id, $this->auth->parent_id, $row->super_num, '+');

+ 1 - 1
application/common/model/LedgerWalletModel.php

@@ -165,7 +165,7 @@ class LedgerWalletModel extends Model
      * @return void
      * @return void
      * @throws Exception
      * @throws Exception
      */
      */
-    public function sendUserSubFrozen(int $uid,  string $amount, int $action, string $icn)
+    public  function sendUserSubFrozen(int $uid,  string $amount, int $action, string $icn)
     {
     {
         $available = $this->getWallet($uid);
         $available = $this->getWallet($uid);
         $ledgerWalletModel  = new LedgerWalletModel();
         $ledgerWalletModel  = new LedgerWalletModel();