'有效', 1=>'无效']; return $arr[$data['qualification_one_status']]; } public function getQualificationTwoStatusTextAttr($value,$data){ $arr = [0=>'有效', 1=>'无效']; return $arr[$data['qualification_two_status']]; } public function getAnnexAttr($value) { return !empty($value) ? json_decode($value,true) : ''; } }