'待审核', self::AUDIT_STATUS_PASS => '审核通过', self::AUDIT_STATUS_REFUSE => '审核拒绝', ]; if(true === $from){ return $desc; } return $desc[$from] ?? ''; } /** * @notes 审核状态 * @param $value * @param $data * @return string|string[] * @author suny * @date 2021/7/13 6:37 下午 */ public static function getAuditStatusAttr($value, $data){ return self::getAuditStatus($data['audit_status']); } }