修改中间件名称
This commit is contained in:
1 parent
335984deac
commit
41c2ea2f92
5 files changed
+27
-20
No files matched your search
@@ -329,3 +329,26 @@ function array_cover( $cover = array(), $covered = array() )
|
||||
}
|
||||
return $covered;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据考试ID值,判断考试是否已经结束
|
||||
* $kaoshiid 考试ID
|
||||
* 返回 $data
|
||||
* */
|
||||
function enddate($kaoshiid)
|
||||
{
|
||||
$ks = new app\kaoshi\model\Kaoshi;
|
||||
$enddate = $ks->where('id',$kaoshiid)->value('enddate');
|
||||
|
||||
$thistime = time();
|
||||
if($enddate<time())
|
||||
{
|
||||
$data = true;
|
||||
}else{
|
||||
$data = false;
|
||||
}
|
||||
|
||||
return $data;
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user