src/AppBundle/Controller/Admin/AppController.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace AppBundle\Controller\Admin;
use AppBundle\Common\Paginator;
use AppBundle\Common\ArrayToolkit;
use Codeages\PluginBundle\System\PluginRegister;
use Symfony\Component\HttpFoundation\Request;
class AppController extends BaseController
{
public function indexAction()
{
}
public function oldUpgradeCheckAction()
{
return $this->redirect($this->generateUrl('admin_app_upgrades'));
}
public function centerAction(Request $request, $postStatus)
{
$apps = $this->getAppService()->getCenterApps();
if (isset($apps['error'])) {
return $this->render('admin/app/center.html.twig', array('status' => 'error', 'type' => $postStatus));
}
if (!$apps) {
return $this->render('admin/app/center.html.twig', array('status' => 'unlink', 'type' => $postStatus));
}
$theme = array();
$app = array();
foreach ($apps as $key => $value) {
$value['code'] = strtolower($value['code']);
$apps[$key]['code'] = $value['code'];
if ('theme' == $value['type']) {
$theme[] = $value;
} elseif ('app' == $value['type']) {
$app[] = $value;
}
}
$installedApps = $this->getAppService()->findApps(0, 100);
$installedApps = ArrayToolkit::index($installedApps, 'code');
foreach ($installedApps as $key => $value) {
unset($installedApps[$key]);
$key = strtolower($key);
$installedApps[$key] = $value;
}
$showType = $request->query->get('showType');
return $this->render('admin/app/center.html.twig', array(
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。