src/Leevel/Database/Condition.php
protected function setConditionItem($items, string $type = ''): void
    {
        $typeAndLogic = $this->getTypeAndLogic();

        // 字符串类型
        if ($type) {
            // 支持嵌套的 string
            if (':string' === $type) {
                if (empty($this->options[$typeAndLogic[0]][$type])) {
                    $this->options[$typeAndLogic[0]][] = $typeAndLogic[1];
                    $this->options[$typeAndLogic[0]][$type] = [];
                }
                $this->options[$typeAndLogic[0]][$type][] = $items;
            } elseif (':stringSimple' === $type) {
                $this->options[$typeAndLogic[0]][$type][] = $typeAndLogic[1];
                $this->options[$typeAndLogic[0]][$type][] = $items;
            }
        } else {
            // 格式化时间
            if (($inTimeCondition = $this->getInTimeCondition())) {
                $items[1] = '@'.$inTimeCondition.' '.$items[1];
            }

            $this->options[$typeAndLogic[0]][] = $typeAndLogic[1];
            $this->options[$typeAndLogic[0]][] = $items;
        }
    }
protected function setConditionItem($items, string $type = ''): void
    {
        $typeAndLogic = $this->getTypeAndLogic();

        // 字符串类型
        if ($type) {
            // 支持嵌套的 string
            if (':string' === $type) {
                if (empty($this->options[$typeAndLogic[0]][$type])) {
                    $this->options[$typeAndLogic[0]][] = $typeAndLogic[1];
                    $this->options[$typeAndLogic[0]][$type] = [];
                }
                $this->options[$typeAndLogic[0]][$type][] = $items;
            } elseif (':stringSimple' === $type) {
                $this->options[$typeAndLogic[0]][$type][] = $typeAndLogic[1];
                $this->options[$typeAndLogic[0]][$type][] = $items;
            }
        } else {
            // 格式化时间
            if (($inTimeCondition = $this->getInTimeCondition())) {
                $items[1] = '@'.$inTimeCondition.' '.$items[1];
            }

            $this->options[$typeAndLogic[0]][] = $typeAndLogic[1];
            $this->options[$typeAndLogic[0]][] = $items;
        }
    }
设置条件的一项.

@param array|string $items
@param string       $type