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 CarAuthResHandler : IBaseHandler { public bool CanHandle(string cmd) { return CloudConst.carAuthRes == cmd; } public void Handle(string t) { CarAuthRes? resp = JsonConvert.DeserializeObject(t); CloudClientMgr.CloudClient.CarAuth.SetResp(resp); } }