private void onGetBuyList(CEvent evt) { ShoppingEvent e = (ShoppingEvent)evt.eventParams; TinyBuyItemCS[] pp = ConvertTool.ConvertData <TinyBuyItemCS[]>(e.buyList); Debug.Log(JsonConvert.SerializeObject(pp)); // throw new NotImplementedException(); }
private void onGetChargeList(CEvent evt) { ShoppingEvent e = (ShoppingEvent)evt.eventParams; var data = e.chargeList; TinyChargeCS[] pp = ConvertTool.ConvertData <TinyChargeCS[]>(e.chargeList); Debug.Log(JsonConvert.SerializeObject(pp)); }
private void onGetLastChargeTime(CEvent evt) { ShoppingEvent e = (ShoppingEvent)evt.eventParams; var data = e.chargeList; // TinyDrawOutCS[] pp = ConvertTool.ConvertData<TinyDrawOutCS[]>(e.chargeList); // Debug.Log(JsonConvert.SerializeObject(pp)); TinyChargeCS[] pp = ConvertTool.ConvertData <TinyChargeCS[]>(e.chargeList); if (pp.Length > 0) { Debug.Log("上次挖矿充值时间" + pp[0].op_time); } }