using HybirdFrameworkCore.Autofac.Attribute; using Newtonsoft.Json; using Service.Cloud.Client; using Service.Cloud.Common; using Service.Cloud.Msg.Cloud.Resp; namespace Service.Cloud.Handler; [Scope("InstancePerDependency")] public class SignInRespHandler : IBaseHandler { public void Handle(string t) { SignInResp? signInResp = JsonConvert.DeserializeObject(t); if (signInResp != null) { CloudClientMgr.CloudClient.Authed = signInResp.re == 0; } } public bool CanHandle(string cmd) { return CloudConst.signInRes == cmd; } }