where([ 'token'=>$token ])->find(); if($user['tokenOverTime'] < THINK_START_TIME) { return false; } } else if($osType == 3){ $user = Model::with(['userAccount'])->where([ 'tokenPc'=>$token ])->find(); if($user['tokenOverTimePc'] < THINK_START_TIME) { return false; } } else if($osType == 4){ $user = Model::with(['userAccount'])->where([ 'tokenWap'=>$token ])->find(); if($user['tokenOverTimeWap'] < THINK_START_TIME) { return false; } } return $user; } public static function introduceUser($fromUser, $toUser) { //引导奖励 } }