修改考试设置中跨年级错误问题。
This commit is contained in:
1 parent
2bcd5be997
commit
7db7caf83b
3 files changed
+18
-5
No files matched your search
@@ -40,15 +40,20 @@ function getCategoryTitle($id)
|
||||
}
|
||||
|
||||
|
||||
function nianjiList()
|
||||
function nianjiList($riqi=0)
|
||||
{
|
||||
// 定义学年时间节点日期为每年的8月10日
|
||||
// $yd = '8-10';
|
||||
$jiedian = strtotime(date('Y').'-8-1');
|
||||
|
||||
$time = new think\helper\Time();
|
||||
if($riqi == 0)
|
||||
{
|
||||
$jiedian = strtotime(date('Y').'-8-1');
|
||||
$thisday = $time->today();
|
||||
}else{
|
||||
$jiedian = strtotime(date('Y',$riqi).'-8-1');
|
||||
$thisday = $riqi;
|
||||
}
|
||||
|
||||
$thisday = $time->today();
|
||||
|
||||
if($thisday[0]<=$jiedian)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user