Jelajahi Sumber

冻结金额

afa 8 bulan lalu
induk
melakukan
9ddfb3e89e

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

@@ -76,7 +76,7 @@ class Airdrop extends Api
             $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, '+');

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

@@ -165,7 +165,7 @@ class LedgerWalletModel extends Model
      * @return void
      * @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);
         $ledgerWalletModel  = new LedgerWalletModel();