修改班级获取器

This commit is contained in:
巴掌 committed 2020-07-20 09:57:13 +08:00
1 parent e170abfdb4
commit b34b7ac989
15 files changed
+149 -92

No files matched your search

-3
View File
@@ -17,6 +17,3 @@ default_lang = zh-cn
[SESSION]
EXPIRE = 1200
[SHANGMA]
CLASSMAX = 25
+2 -12
View File
@@ -23,11 +23,11 @@
}
function nianJiNameList($riqi=0)
function nianJiNameList($value = 'str', $riqi = 0)
{
// 实例化年级控制器
$bj = new \app\teach\model\Banji;
$njList= $bj->gradeName($riqi);
$njList= $bj->gradeName($value, $riqi);
return $njList;
}
@@ -42,16 +42,6 @@
}
/**
* $date是时间戳
* $type为1的时候是虚岁,2的时候是周岁
*/
function getAgeByBirth($date = 0, $type = 1){
$tearch = new \app\teacher\model\Tearcher;
$age = $tearch->fBirth($data, $type);
return $age;
}
// EXCEL表格列名
function excelColumnName()
+2
View File
@@ -93,6 +93,8 @@ class Index extends BaseController
// 课题数
$con = new \app\keti\model\KetiInfo;
$list['keti'] = $con->count();
// 缓存时间
$list['cacheExpire'] = config('cache.stores.file.expire') . 's';
$view = app('view');
// 模版赋值
Loaded 3 of 15 files, more files were not shown because too many files have changed in this diff. Show more