38 lines
1.2 KiB
C#
38 lines
1.2 KiB
C#
using SuperSocket.SocketBase.Command;
|
|
using SuperSocket.SocketBase.Protocol;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using WX.CRM.Common;
|
|
|
|
namespace WX.CRM.DataSynServer.Socket.Command
|
|
{
|
|
public class XT : CommandBase<ZxSession, StringRequestInfo>
|
|
{
|
|
public override void ExecuteCommand(ZxSession session, StringRequestInfo requestInfo)
|
|
{
|
|
var body = requestInfo.Body;
|
|
//LogHelper.Info(body);
|
|
if (string.IsNullOrEmpty(body)) return;
|
|
//var data = body.ToObject<string>();
|
|
LogHelper.Info("data:" + body);
|
|
//session.Send(body + "}}");
|
|
//session.Send(requestInfo.Body);
|
|
//if (requestInfo.Parameters.Count() == 1)
|
|
//{
|
|
// LogHelper.Info(requestInfo.Parameters[0]);
|
|
// if (requestInfo.Parameters[0] == "&")
|
|
// {
|
|
// session.Send("$");
|
|
// //if (!session.isLogin || string.IsNullOrWhiteSpace(session.SN))
|
|
// // session.Send("no check\r\n");
|
|
// //else
|
|
// // session.Send("$\r\n");
|
|
// }
|
|
//}
|
|
}
|
|
}
|
|
}
|