Skip to content

获取场景配置bug #1

@HeroHw

Description

@HeroHw
    public function getConfig(string $scene): array
    {
        if ($scene === 'default') {
            return $this->config->get($this->getConfigKey());
        }
        return Arr::merge(
            $this->config->get($this->getConfigKey()),
            $this->config->get($this->getConfigKey($scene))
        );
    }

这样才对吧?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions