JhGameRequestData.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using GFGGame;
  2. namespace ET
  3. {
  4. public class JhGameRequestData
  5. {
  6. public string order_id { get; set; }
  7. public string amount { get; set; }
  8. public string role_id { get; set; }
  9. public string server_id { get; set; }
  10. public string status { get; set; }
  11. public string time { get; set; }
  12. public string user_id { get; set; }
  13. public string is_test { get; set; }
  14. public string extra { get; set; }
  15. public string cp_order_id { get; set; }
  16. public string cp_product_id { get; set; }
  17. public string sign { get; set; }
  18. // public OrderInfo ToOrderInfo()
  19. // {
  20. // var orderInfo = new OrderInfo();
  21. // orderInfo.ChannelId = (int)ChannelID.H5;
  22. //
  23. // // 解析透传参数extra,格式为"订单ID|gfg|角色ID"
  24. // string[] otherArrStr = this.extra.Split("|gfg|");
  25. // long gameOrderId = long.Parse(otherArrStr[0]);
  26. // long gameRoleId = long.Parse(otherArrStr[1]);
  27. //
  28. // orderInfo.Id = gameOrderId;
  29. // orderInfo.ChannelOrderNo = this.order_id;
  30. // orderInfo.RoleId = gameRoleId;
  31. // orderInfo.OrderTime = long.Parse(this.time) * 1000;
  32. // orderInfo.Amount = long.Parse(this.amount);
  33. // orderInfo.Coin = long.Parse(this.amount) / 100; // 假设1分=1金币
  34. // orderInfo.ChannelUid = this.user_id;
  35. // orderInfo.PaymentChannelName = "WanShiJing";
  36. // orderInfo.IsTest = this.is_test == "1";
  37. //
  38. // return orderInfo;
  39. // }
  40. }
  41. }