afa 5 months ago
parent
commit
1938e23ed9
1 changed files with 4 additions and 2 deletions
  1. 4 2
      application/api/logic/CommonLogic.php

+ 4 - 2
application/api/logic/CommonLogic.php

@@ -66,8 +66,10 @@ class CommonLogic
                   $income = bcmul($num, config('team_level_inc'), 2);
                   //余额记录
                   foreach($paths as $pathId){
-
-                        Loader::model('LedgerWalletModel')->changeWalletAccount($pathId, $asset, $income, $action, $user_id, true);
+                        if(!empty(Loader::model('UserModel')::getTeamLevelId($pathId))) 
+                        {
+                              Loader::model('LedgerWalletModel')->changeWalletAccount($pathId, $asset, $income, $action, $user_id, true);
+                        }
                   }
             }
             return true;