1.function:getCollection 增加 排除选项

2.增加 function:getCollections
master 1.0.1
Iwannamaybe 3 years ago
parent b135edc6db
commit 418690ae29

@ -148,7 +148,7 @@ abstract class AbstractValueMultiton extends AbstractMultiton implements ValueMu
$collection = new Collection();
foreach (self::members() as $member) {
if(!in_array($member->value,$exceptValues)) {
$collection->put(['key' => $member->key(), 'value' => $member->value, 'description' => $member->description]);
$collection->push(['key' => $member->key(), 'value' => $member->value, 'description' => $member->description]);
}
}

Loading…
Cancel
Save