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,