public string LOGIN(Protocol_LOGIN_REQ recvData)
        {
            Protocol_LOGIN_ACK sendData = new Protocol_LOGIN_ACK();
            sendData.nErrorCode = ErrorCode_LOGIN.Success;
            sendData.biUserID = 100000001;
            sendData.szUserName = "******";

            return JsonConvert.SerializeObject(sendData);
        }
Beispiel #2
0
        void On_GET_KEY_USE_PROTOCOL(JsonDotNetMessage message)
        {
            Protocol_GET_KEY_ACK recvData = message.Decode<Protocol_GET_KEY_ACK>();
            Debug.Log("recvData.nErrorCode:" + recvData.nErrorCode);
            Debug.Log("recvData.szKey:" + recvData.szKey);

            Protocol_LOGIN_REQ sendData = new Protocol_LOGIN_REQ();
            sendData.szUdid = SystemInfo.deviceUniqueIdentifier;
            sendData.bPlatform = (byte)Application.platform;
            Send_LOGIN_USE_PROTOCOL(sendData);
        }
Beispiel #3
0
 void Send_LOGIN_USE_PROTOCOL(Protocol_LOGIN_REQ sendData)
 {
     JsonDotNetMessage message = new JsonDotNetMessage(IDTable[MessageID.LOGIN_USE_PROTOCOL]);
     message.Data = sendData;
     session.Send(message);
 }