Commit 85b8aee0 authored by Euan游根明's avatar Euan游根明

perf: 优化

parent ce587b0c
......@@ -216,7 +216,7 @@ class Nacos
}
$data = json_decode(
file_get_contents($path),
true,
true
);
if (empty($data)){
return '';
......@@ -238,7 +238,7 @@ class Nacos
}
$data = json_decode(
file_get_contents($path),
true,
true
);
$data[$key] = $value;
return file_put_contents(
......
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