api/src/Topxia/Api/Util/MobileSchoolUtil.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace Topxia\Api\Util;
use Biz\System\Service\SettingService;
use Topxia\Service\Common\ServiceKernel;
class MobileSchoolUtil
{
private function getSchoolApps()
{
$mobile = $this->getSettingService()->get('mobile');
$site = $this->getSettingService()->get('site');
$apps[1] = array(
'id' => "1",
'code' => 'global',
'name' => '网校公告',
'title' => empty($site['slogan']) ? '' : $site['slogan'],
'about' => empty($mobile['about']) ? '' : $mobile['about'],
'avatar' => empty($mobile['logo']) ? '' : $mobile['logo'],
'callback' => '/mobileschools/announcements'
);
$apps[2] = array(
'id' => "2",
'code' => 'news',
'name' => '资讯',
'title' => '网校资讯服务',
'about' => '',
'avatar' => 'img/mobile/article_app_icon.jpg',
'callback' => ''
);
return $apps;
}
public function searchSchoolApps($conditions = array())
{
return array_values($this->getSchoolApps());
}
public function findSchoolAppById($id)
{
$apps = $this->getSchoolApps();
return isset($apps[$id]) ? $apps[$id] : array();
}
public function getArticleApp()
{
$apps = $this->getSchoolApps();
return $apps[2];
}
public function getAnnouncementApp()
{
$apps = $this->getSchoolApps();
return $apps[1];
}
/**
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。