From 7c8590c4a492db575728cce4ff927c2d58501f43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Mon, 3 Aug 2020 16:37:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=80=83=E8=AF=95=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E5=90=8E=EF=BC=8C=E5=AD=A6=E7=94=9F=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E6=88=90=E7=BB=A9=E6=9F=A5=E8=AF=A2=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/renshi/model/StudentChengji.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/renshi/model/StudentChengji.php b/app/renshi/model/StudentChengji.php index bcaee1f0..86e0424b 100644 --- a/app/renshi/model/StudentChengji.php +++ b/app/renshi/model/StudentChengji.php @@ -38,6 +38,11 @@ class StudentChengji extends BaseModel // 整理数据 $data = array(); foreach ($stuCj as $key => $value) { + if(empty($value->cjKaoshi)) + { + continue; + } + $data[$key] = [ 'kaoshi_id' => $value->kaoshi_id, 'kaoshiTitle' => $value->cjKaoshi->title,