Commit 45ad0127 authored by root's avatar root

m

parent 60cd7894
<?php
namespace Meibuyu\Micro\Driver;
use http\Env;
/**
* nacos 配置中心驱动
* User carlos
*/
class NacosDriver extends \Hyperf\ConfigNacos\NacosDriver
{
protected function updateConfig(array $config)
{
foreach ($config ?? [] as $key => $conf) {
if(!is_array($conf)) $conf = json_decode($conf, true);
foreach ($conf as $item=>$value) {
$this->config->set($key.'_'.$item, $value);
}
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment