|
@@ -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;
|