From 9022f3830ad1ad06da543b0952a4490aa8127493 Mon Sep 17 00:00:00 2001 From: wyc <1104749580@qq.com> Date: Fri, 21 Aug 2026 17:59:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E7=94=9F=E6=88=90=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Psc_Cpp_Core/Base/JSON.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Psc_Cpp_Core/Base/JSON.h b/src/Psc_Cpp_Core/Base/JSON.h index 69206fa..fdfa86a 100644 --- a/src/Psc_Cpp_Core/Base/JSON.h +++ b/src/Psc_Cpp_Core/Base/JSON.h @@ -498,16 +498,14 @@ void output_field(const T& field, Psc::JSON& ret, const char* name) { return ret; \ } #define PSC_FROM_JSON \ - void from_base_json(const Psc::JSON* that_json, bool not_exist_use_default_value) { \ + void from_base_json(const Psc::JSON* that_json) { \ using T = std::remove_cv_t>; \ boost::pfr::for_each_field( \ *this, [&, names = boost::pfr::names_as_array(), i = std::size_t{}](auto& field) mutable { \ auto name = names[i++].data(); \ std::error_code ec; \ auto t = Psc::assign_field_ec(field, that_json, name, ec); \ - if (!not_exist_use_default_value) { \ - Psc::check_json_assign_field(t, ec, that_json, name); \ - } \ + Psc::check_json_assign_field(t, ec, that_json, name); \ }); \ } #define PSC_USE_JSON \