From 34dae54055bbf7845344479396389d9c4cbfe726 Mon Sep 17 00:00:00 2001 From: cxdbz Date: Mon, 17 Jun 2019 21:46:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=98=BE=E7=A4=BA=E6=88=90?= =?UTF-8?q?=E7=BB=A9=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/kaoshi/model/Kaohao.php | 2 +- database/seeds/Rule.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/kaoshi/model/Kaohao.php b/application/kaoshi/model/Kaohao.php index e505e513..e36807d8 100644 --- a/application/kaoshi/model/Kaohao.php +++ b/application/kaoshi/model/Kaohao.php @@ -166,7 +166,7 @@ class Kaohao extends Base $data[$key]['school'] = $value->cj_school->jiancheng; if($value->cj_student != Null){ $data[$key]['student'] = $value->cj_student->xingming; - $data[$key]['sex'] = $stuinfo->sex; + $data[$key]['sex'] = $value->cj_student->sex; }else{ $stuinfo = $stu::withTrashed() ->where('id',$value->student) diff --git a/database/seeds/Rule.php b/database/seeds/Rule.php index 8ee7ca34..c7651b55 100644 --- a/database/seeds/Rule.php +++ b/database/seeds/Rule.php @@ -97,7 +97,7 @@ class Rule extends Seeder ['title'=>'删除考号','name'=>'kaoshi/Kaohao/delete','paixu'=>2,'pid'=>302], ['title'=>'下载试卷标签信息','name'=>'kaoshi/Kaohao/biaoqian','paixu'=>3,'pid'=>302], ['title'=>'下载成绩采集表','name'=>'kaoshi/Kaohao/caiji','paixu'=>4,'pid'=>302], - ['title'=>'成绩列表','name'=>'Chengji/Index/stuChengjilist','paixu'=>5,'pid'=>302], + ['title'=>'成绩列表','name'=>'Chengji/Index/index','paixu'=>5,'pid'=>302], ['title'=>'录入人信息','name'=>'Chengji/Index/readAdd','paixu'=>6,'pid'=>302], ['title'=>'考号删除','name'=>'Chengji/Index/deletecj','paixu'=>7,'pid'=>302], ['title'=>'成绩状态','name'=>'Chengji/Index/setStatus','paixu'=>8,'pid'=>302],