feat: add ERP agent pet bridge and startup guide
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user