diff --git a/app/kaohao/controller/Index.php b/app/kaohao/controller/Index.php index aeeb26d9..3809ff15 100644 --- a/app/kaohao/controller/Index.php +++ b/app/kaohao/controller/Index.php @@ -244,11 +244,13 @@ class Index extends AdminBase $id = request()->delete('id'); $id = explode(',', $id); - foreach ($id as $key => $value) { - // 判断考试结束时间是否已过 - $ksid = KH::where('id', $value)->value('kaoshi_id'); + if(isset($id[0])) + { + $ksid = KH::where('id', $id[0])->value('kaoshi_id'); event('kslu', $ksid); $data = KH::destroy($id); + }else{ + $data = false; } // 根据更新结果设置返回提示信息 diff --git a/config/shangma.php b/config/shangma.php index b8411d70..7f6ce916 100644 --- a/config/shangma.php +++ b/config/shangma.php @@ -10,6 +10,6 @@ return [ 'webtitle' => '码蚁成绩管理系统', 'version' => 'v1.3.5', 'weihu' => false, - 'shijian' => '2020-9-2 11:54', + 'shijian' => '2020-9-2 12:47', 'shichang' => '1', ]; diff --git a/database/seeds/Rule.php b/database/seeds/Rule.php index 6db293f7..37becc50 100644 --- a/database/seeds/Rule.php +++ b/database/seeds/Rule.php @@ -168,12 +168,6 @@ class Rule extends Seeder ,'paixu' => 1 ,'pid' => 30201 ], - ['id' => 302010101 - ,'title' => '考试设置' - ,'name' => 'kaoshi/kaoshiset/index' - ,'paixu' => 1 - ,'pid' => 3020101 - ], ['id' => 302010102 ,'title' => '新建' ,'name' => 'kaoshi/kaoshiset/create'