src/AppBundle/Controller/My/GroupController.php
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace AppBundle\Controller\My;
use AppBundle\Controller\BaseController;
use Symfony\Component\HttpFoundation\Request;
use AppBundle\Common\ArrayToolkit;
use AppBundle\Common\Paginator;
class GroupController extends BaseController
{
public function memberCenterAction()
{
$user = $this->getUser();
$groupsCount = $this->getGroupService()->countMembers(array('userId' => $user['id']));
$members = $this->getGroupService()->searchMembers(array('userId' => $user['id']), array('createdTime' => 'DESC'), 0,
9);
$groupIds = ArrayToolkit::column($members, 'groupId');
$groups = $this->getGroupService()->getGroupsByIds($groupIds);
$ownThreads = $this->getThreadService()->searchThreads(array('userId' => $user['id']), array('createdTime' => 'DESC'), 0, 10);
$groupIds = ArrayToolkit::column($ownThreads, 'groupId');
$threadsCount = $this->getThreadService()->countThreads(array('userId' => $user['id']));
$groupsAsOwnThreads = $this->getGroupService()->getGroupsByIds($groupIds);
$userIds = ArrayToolkit::column($ownThreads, 'lastPostMemberId');
$lastPostMembers = $this->getUserService()->findUsersByIds($userIds);
$collectThreadsIds = $this->getThreadService()->searchThreadCollects(array('userId' => $user['id']), array('id' => 'DESC'), 0, 10);
$collectThreads = array();
foreach ($collectThreadsIds as $collectThreadsId) {
$collectThreads[] = $this->getThreadService()->getThread($collectThreadsId['threadId']);
}
$collectCount = $this->getThreadService()->countThreadCollects(array('userId' => $user['id']));
$groupIdsAsCollectThreads = ArrayToolkit::column($collectThreads, 'groupId');
$groupsAsCollectThreads = $this->getGroupService()->getGroupsByIds($groupIdsAsCollectThreads);
$userIds = ArrayToolkit::column($collectThreads, 'lastPostMemberId');
$collectLastPostMembers = $this->getUserService()->findUsersByIds($userIds);
$userIds = ArrayToolkit::column($ownThreads, 'lastPostMemberId');
$lastPostMembers = $this->getUserService()->findUsersByIds($userIds);
$postThreadsIds = $this->getThreadService()->searchPostsThreadIds(array('userId' => $user['id']), array('id' => 'DESC'), 0, 10);
$threads = array();
foreach ($postThreadsIds as $postThreadsId) {
$threads[] = $this->getThreadService()->getThread($postThreadsId['threadId']);
}
$postsCount = $this->getThreadService()->countPostsThreadIds(array('userId' => $user['id']));
$groupIdsAsPostThreads = ArrayToolkit::column($threads, 'groupId');
$groupsAsPostThreads = $this->getGroupService()->getGroupsByIds($groupIdsAsPostThreads);
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。