'正常', 2 => '禁用']; const STATUS_NORMAL = 1; const STATUS_DISABLE = 2; public function getStatusTextAttr($value, $data) { return self::STATUS[$data['status']]; } }