src/AppBundle/Controller/DefaultController.php
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace AppBundle\Controller;
use AppBundle\Common\ArrayToolkit;
use Biz\Theme\Service\ThemeService;
use Biz\Content\Service\BlockService;
use Biz\Course\Service\CourseService;
use Biz\CloudPlatform\CloudAPIFactory;
use Biz\System\Service\SettingService;
use Biz\Course\Service\CourseSetService;
use Biz\CloudPlatform\Service\AppService;
use Biz\Taxonomy\Service\CategoryService;
use Biz\Content\Service\NavigationService;
use Biz\Classroom\Service\ClassroomService;
use Symfony\Component\HttpFoundation\Request;
use Biz\User\Service\BatchNotificationService;
use Symfony\Component\HttpFoundation\Response;
class DefaultController extends BaseController
{
public function indexAction(Request $request)
{
$user = $this->getCurrentUser();
if (!empty($user['id'])) {
$this->getBatchNotificationService()->checkoutBatchNotification($user['id']);
}
$custom = $this->isCustom();
$friendlyLinks = $this->getNavigationService()->getOpenedNavigationsTreeByType('friendlyLink');
return $this->render('default/index.html.twig', array('friendlyLinks' => $friendlyLinks, 'custom' => $custom));
}
public function appDownloadAction()
{
$meCount = $this->getMeCount();
$mobileCode = (empty($meCount['mobileCode']) ? 'edusohov3' : $meCount['mobileCode']);
if ($this->getWebExtension()->isMicroMessenger() && 'edusohov3' == $mobileCode) {
$url = 'http://a.app.qq.com/o/simple.jsp?pkgname=com.edusoho.kuozhi';
} else {
$url = $this->generateUrl('mobile_download', array('from' => 'qrcode', 'code' => $mobileCode), true);
}
return $this->render('mobile/app-download.html.twig', array(
'url' => $url,
));
}
public function promotedTeacherBlockAction()
{
$teacher = $this->getUserService()->findLatestPromotedTeacher(0, 1);
if ($teacher) {
$teacher = $teacher[0];
$teacher = array_merge(
$teacher,
$this->getUserService()->getUserProfile($teacher['id'])
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。