src/Leevel/Validate/UniqueRule.php
protected function parseAdditional(Select $select, array $parameter): void
    {
        if (($num = count($parameter)) >= 4) {
            for ($i = 4; $i < $num; $i += 2) {
                if (!isset($parameter[$i + 1])) {
                    $e = 'Unique additional conditions must be paired.';

                    throw new InvalidArgumentException($e);
                }

                if (false !== strpos($parameter[$i], self::SEPARATE)) {
                    list($field, $operator) = explode(self::SEPARATE, $parameter[$i]);
                } else {
                    $field = $parameter[$i];
                    $operator = '=';
                }

                $select->where($field, $operator, $parameter[$i + 1]);
            }
        }
    }
protected function parseAdditional(Select $select, array $parameter): void
    {
        if (($num = count($parameter)) >= 4) {
            for ($i = 4; $i < $num; $i += 2) {
                if (!isset($parameter[$i + 1])) {
                    $e = 'Unique additional conditions must be paired.';

                    throw new InvalidArgumentException($e);
                }

                if (false !== strpos($parameter[$i], self::SEPARATE)) {
                    list($field, $operator) = explode(self::SEPARATE, $parameter[$i]);
                } else {
                    $field = $parameter[$i];
                    $operator = '=';
                }

                $select->where($field, $operator, $parameter[$i + 1]);
            }
        }
    }
额外条件.

@param \Leevel\Database\Ddd\Select $select
@param array                       $parameter