You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
619 B

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