//设备信息 void GetGolfMachine() { m2s_getgolfmachine msg = new m2s_getgolfmachine(); msg.mid = GameEntry.GameData.ShopName.ToString(); msg.name = GameEntry.GameData.boxName; M2SInfo m2sInfo = new M2SInfo(msg, GetGolfMachineSuccess, MsgFailureLogin); GameEntry.WebRequestToServerComponent.SendJsonMsg(m2sInfo); }
void GetQRCodeUrl() { m2s_getgolfmachine msg = new m2s_getgolfmachine(); msg.mid = GameEntry.GameData.ShopName.ToString(); msg.name = GameEntry.GameData.boxName; M2SInfo m2sInfo = new M2SInfo(msg, GetQRCodeUrlSuccess, MsgFailureLogin); byte[] jsonDataPost = Utility.Json.ToJsonData(m2sInfo.msg); GameEntry.WebRequest.AddWebRequest("http://47.100.175.248:6077/" + msg.msgName, jsonDataPost, m2sInfo); }