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.
 
 
 
 
 
 

52 lines
1.6 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Sog;
using ProtoCSStruct;
using SMWebServer;
using SMWebServer;
namespace SMWebServer
{
public class RecordReqMgr : Singleton<RecordReqMgr>
{
/// <summary>
/// 查询账号信息回包
/// </summary>
/// <param name="serverID"></param>
/// <param name="packet"></param>
public void OnUserRoleInfoRes(uint serverID, StructPacket packet)
{
HttpRequestInfo m_request = null;
try
{
ref var res = ref packet.GetMessage<SSGmQueryUserRoletInfoRes>();
var id = res.Id;
TraceLog.Debug("PRecordReqMgr OnUserAccountInfoRes uid {0} ", id);
m_request = Program.m_httpService.m_requestList.Find(f => f.Http.id == id);
LitJson.JsonData builder = new LitJson.JsonData();
HttpQueryParams queryParams = new HttpQueryParams(m_request.Http.httpRequest.Url);
//select_role.OnResMsg(id, builder, m_request.Http.httpResponse, m_request.Http.httpRequest, queryParams, ref res);
m_request.Http.httpResponse.ContentAsUTF8 = builder.ToJson();
}
catch (Exception ex)
{
TraceLog.Error("RecordReqMgr OnUserAccountInfoRes Error Msg {0}", ex.Message);
}
finally
{
if (m_request != null)
{
m_request.ProcessEnd = true;
}
}
}
}
}