|
|
@@ -50,7 +50,7 @@ class CommonLogic
|
|
|
$userPledge = Loader::model('UserPledge');
|
|
|
foreach ($pathId as $item)
|
|
|
{
|
|
|
- $parent = $userModel::where('parent_id', $item)->find();
|
|
|
+ $parent = $userModel::where('id', $item)->find();
|
|
|
if($parent->team_level_id > 0){
|
|
|
//推广人数
|
|
|
$teamCount = $userModel::where('parent_id', $item)->where('team_level_id', $parent->team_level_id)->count() +1;
|
|
|
@@ -97,7 +97,7 @@ class CommonLogic
|
|
|
$userPledge= Loader::model('UserPledge');
|
|
|
foreach ($pathId as $item)
|
|
|
{
|
|
|
- $parent = $userModel::where('parent_id', $item)->find();
|
|
|
+ $parent = $userModel::where('id', $item)->find();
|
|
|
if($parent->team_level_id > 0){
|
|
|
//推广人数
|
|
|
$teamCount = $userModel::where('parent_id', $item)->where('team_level_id', $parent->team_level_id)->count()-1;
|