修改权限,增加成绩录入权限验证

This commit is contained in:
东宝书记 committed 2021-05-23 10:41:37 +08:00
1 parent 4e94213a81
commit 45fee42b6f
13 files changed
+276 -43

No files matched your search

-4
View File
@@ -62,10 +62,6 @@ class Index extends AdminBase
$src['auth'] = event('mybanji', array());
$src['auth'] = $src['auth'][0];
if(count($src['banji_id']) > 0) # 如果没有获取到班级id,则查询班级id
{
$src['auth']['banji_id'] = array_intersect($src['auth']['banji_id'], $src['banji_id']);
}
// 实例化并查询成绩
$cj = new Chengji;
+4
View File
@@ -221,6 +221,10 @@ class Chengji extends BaseModel
'kaoshi_id' => ''
,'banji_id' => array()
,'searchval' => ''
,'auth' => [
'check' => true
,'banji_id' => array()
]
);
$src = array_cover($srcfrom, $src);
+3
View File
@@ -26,6 +26,9 @@ return [
'mybanji' => [
'\app\listener\MyBanjiIds'
],
'lrfg' => [
'\app\listener\LuruFengong'
],
],
'subscribe' => [
],
Loaded 3 of 13 files, more files were not shown because too many files have changed in this diff. Show more