feat: add ERP agent pet bridge and startup guide

This commit is contained in:
郎速科技
2026-08-14 14:28:28 +08:00
parent a803070819
commit 4c08f4c948
252 changed files with 134752 additions and 72 deletions
@@ -0,0 +1,27 @@
using System;
namespace Lskj.CommandKernel
{
/// <summary>
/// The legacy ERP treats the display name "管理员" as privileged in many
/// places. Agent operations require the exact built-in account identity so
/// a renamed or duplicate display-name account cannot inherit that bypass.
/// </summary>
public static class AdministratorIdentity
{
public const string BuiltInUserId = "1";
public const string BuiltInUserName = "管理员";
public static bool IsBuiltIn(string userId, string userName)
{
return string.Equals(
userId,
BuiltInUserId,
StringComparison.Ordinal)
&& string.Equals(
userName,
BuiltInUserName,
StringComparison.Ordinal);
}
}
}