修改协议工具

This commit is contained in:
2025-07-27 23:46:43 +08:00
parent 743c1d2baa
commit be33e12b35
112 changed files with 1021 additions and 1119 deletions

View File

@@ -0,0 +1,19 @@
using Fantasy;
namespace NB.Authentication.Jwt;
public static class AuthenticationJwtHelper
{
/// <summary>
/// 获取一个新的令牌
/// </summary>
/// <param name="scene"></param>
/// <param name="aId">AccountId</param>
/// <param name="address">目标服务器的地址</param>
/// <param name="sceneId">分配的Scene的Id</param>
/// <returns></returns>
public static string GetToken(Scene scene, long aId, string address, uint sceneId)
{
return scene.GetComponent<AuthenticationJwtComponent>().GetToken(aId, address, sceneId);
}
}