afa 5 月之前
父节点
当前提交
1938e23ed9
共有 1 个文件被更改,包括 4 次插入2 次删除
  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);
                   $income = bcmul($num, config('team_level_inc'), 2);
                   //余额记录
                   //余额记录
                   foreach($paths as $pathId){
                   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;
             return true;