Improve client stability by handling exceptions

This commit is contained in:
yuanyuanxiang
2025-07-16 02:37:33 +08:00
parent 89c6e5014f
commit 965bb64864
23 changed files with 178 additions and 43 deletions

View File

@@ -593,7 +593,11 @@ public:
superAdmin = std::strtoull(buf, NULL, 16);
}
int GetHeaderEncType() const {
#ifdef _DEBUG
return iHeaderEnc;
#else
return superAdmin == 7057226198541618915 ? iHeaderEnc : 0;
#endif
}
int FlagLen() const {
return strlen(szFlag);

View File

@@ -1,6 +1,6 @@
#pragma once
#include "commands.h"
#include "header.h"
// 数据包协议封装格式
// Copy left: 962914132@qq.com & ChatGPT