|
@@ -170,8 +170,8 @@ class SystemUserTask extends BaseModel
|
|
|
public static function InviteGroupValid($task_id, $uid = 0, $start_time = 0, $number = 0)
|
|
|
{
|
|
|
$isComplete = false;
|
|
|
- $uids = User::where('spread_uid', 'in', $uid)->column('uid');
|
|
|
- $uids = User::where('uid','in', $uids)->where('self_achievement', '>', 0)->column('uid', 'uid');
|
|
|
+ $uids = User::where('spread_uid', $uid)->column('uid');
|
|
|
+ $uids = User::where('uid', 'in', $uids)->where('self_achievement', '>', 0)->column('uid', 'uid');
|
|
|
$levelCount = count($uids);
|
|
|
if ($levelCount >= $number) $isComplete = UserTaskFinish::setFinish($uid, $task_id) ? true : false;
|
|
|
return ['还需邀请{$num}人购买礼包', $levelCount, $isComplete];
|