From e99b6cce0422dc7b67dc89d948f9c2e826d274f2 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Wed, 9 Jul 2025 21:35:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E4=B8=8D=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF=E8=AF=A6?= =?UTF-8?q?=E7=BB=86=E4=BF=A1=E6=81=AF=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app_protocols/appexception/appexception.hpp | 11 ++++++----- appsrc/appconfig/basic/zappversion.hpp | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app_protocols/appexception/appexception.hpp b/app_protocols/appexception/appexception.hpp index 40f3ae7..b0f315d 100644 --- a/app_protocols/appexception/appexception.hpp +++ b/app_protocols/appexception/appexception.hpp @@ -41,16 +41,17 @@ class appexception : public std::exception { } appexception(int32_t ecode, const string &description) { + string descriptionstr; + if (description.empty()) { - this->description = Internationalization::ecode2description(ecode); + descriptionstr = Internationalization::ecode2description(ecode); } else { - this->description = description; + descriptionstr = description; } - this->description = description; this->ecode = ecode; this->traceinfo = printStackTrace(); - whatstr = description; - // thisclass.logger->error(whatstr); + whatstr = descriptionstr; + this->description = descriptionstr; } virtual ~appexception() {} diff --git a/appsrc/appconfig/basic/zappversion.hpp b/appsrc/appconfig/basic/zappversion.hpp index f82f33e..98a7d56 100644 --- a/appsrc/appconfig/basic/zappversion.hpp +++ b/appsrc/appconfig/basic/zappversion.hpp @@ -1,3 +1,3 @@ #pragma once -#define VERSION "3.2.0" +#define VERSION "3.2.1" #define PROJECT_NAME "TRANSMIT_DM" \ No newline at end of file