['sms_set', 'zhongwang', 'juhedata'], ]; public function get(string $name) { if ($this->configItems == null) { $this->configItems = (json_decode($this->config, true) ?? []); } return $this->configItems[$name] ?? null; } public static function getActiveByGroup($group) { if (!isset(self::$groups[$group])) { return null; } return static::where('status', self::STATUS_OPEN)->whereIn('name', self::$groups[$group])->first(); } }