Kirin před 3 roky
rodič
revize
cf786e5377
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      app/models/system/SystemUserTask.php

+ 2 - 2
app/models/system/SystemUserTask.php

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