Skip to content

Commit

Permalink
修正公告和友情链接BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
oiuv committed Dec 29, 2019
1 parent cc603fd commit 7d8d19e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/core/controller/index.app.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private function index()
$topnews = $this->position->getPosNewsList([['AND', 'pcposid = 2']], 1, 10);
$topseminars = $this->position->getPosSeminarList([['AND', 'pcposid = 3']], 1, 10);
$links = $this->content->getContentList([['AND', 'contentcatid = 11']], 1, 10);
$notices = $this->content->getContentList([['AND', 'contentcatid = 26']], 1, 10);
$notices = $this->content->getContentList([['AND', 'contentcatid = 14']], 1, 10);
$this->tpl->assign('notices', $notices);
$this->tpl->assign('links', $links);
$this->tpl->assign('courses', $courses);
Expand Down
2 changes: 1 addition & 1 deletion app/core/controller/index.phone.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private function index()
$topimgs = $this->position->getPosNewsList([['AND', 'pcposid = 4']], 1, 5);
$topnews = $this->position->getPosNewsList([['AND', 'pcposid = 2']], 1, 10);
$links = $this->content->getContentList([['AND', 'contentcatid = 11']], 1, 10);
$notices = $this->content->getContentList([['AND', 'contentcatid = 26']], 1, 10);
$notices = $this->content->getContentList([['AND', 'contentcatid = 14']], 1, 10);
$this->tpl->assign('notices', $notices);
$this->tpl->assign('links', $links);
$this->tpl->assign('courses', $courses);
Expand Down
2 changes: 1 addition & 1 deletion app/core/tpls/app/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
<div class="content-box padding">
<h2 class="title">友情链接</h2>
<ul class="list-unstyled list-txt">
{x2;tree:$links['data'],link,lid}
{x2;tree:$links['data'],content,lid}
<li class="border">
<a target="_blank" href="index.php?content-app-content&contentid={x2;v:content['contentid']}">
{x2;substring:v:content['contenttitle'],45}
Expand Down
10 changes: 7 additions & 3 deletions app/exam/controller/lesson.app.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,15 @@ private function index()
$basic = $this->data['currentbasic'];
$sections = $this->section->getSectionListByArgs([['AND', 'sectionsubjectid = :sectionsubjectid', 'sectionsubjectid', $basic['basicsubjectid']]]);
$knows = [];
foreach ($basic['basicknows'] as $knowsids) {
foreach ($knowsids as $knowsid) {
$knows[$knowsid] = $this->section->getQuestionsByKnows($knowsid);
// dd($basic);
if ($basic['basicknows']) {
foreach ($basic['basicknows'] as $knowsids) {
foreach ($knowsids as $knowsid) {
$knows[$knowsid] = $this->section->getQuestionsByKnows($knowsid);
}
}
}

$record = $this->exer->getExerciseProcessByUser($this->_user['sessionuserid'], $basic['basicid']);
$this->tpl->assign('record', $record);
$this->tpl->assign('basic', $basic);
Expand Down

0 comments on commit 7d8d19e

Please sign in to comment.