fix: 字符串反转功能失效

This commit is contained in:
Diego
2025-09-01 11:52:03 +08:00
parent 9ea9529a5f
commit 4539d8d198
3 changed files with 4 additions and 6 deletions

View File

@@ -1,9 +1,9 @@
<Project>
<PropertyGroup>
<PluginVersion>10.11.19</PluginVersion>
<ProPluginVersion>10.11.19</ProPluginVersion>
<DefaultVersion>10.11.19</DefaultVersion>
<PluginVersion>10.11.20</PluginVersion>
<ProPluginVersion>10.11.20</ProPluginVersion>
<DefaultVersion>10.11.20</DefaultVersion>
<AuthenticationVersion>10.11.2</AuthenticationVersion>
<SourceGeneratorVersion>10.11.2</SourceGeneratorVersion>
<NET8Version>8.0.19</NET8Version>

View File

@@ -145,7 +145,6 @@ public static class ByteExtensions
// 如果是奇数,自动补齐 0
int evenLen = (len % 2 == 0) ? len : len + 1;
if (evenLen == len) return inBytes;
Span<byte> result = new byte[evenLen];
inBytes.CopyTo(result);
@@ -177,7 +176,6 @@ public static class ByteExtensions
// 如果是奇数,自动补齐 0
int evenLen = (len % 2 == 0) ? len : len + 1;
if (evenLen == len) return inBytes;
byte[] result = new byte[evenLen];
inBytes.CopyTo(result);

View File

@@ -37,7 +37,7 @@ public partial class SqlHistoryAlarm : BusinessBaseWithCacheAlarm
get
{
#if !Management
if (_driverPropertys.BigTextScriptHistoryTable.IsNullOrEmpty())
if (_driverPropertys.VariableAlarmEnable && _driverPropertys.BigTextScriptHistoryTable.IsNullOrEmpty())
return typeof(HistoryAlarmPage);
else
return null;