IOSRechargeSProxy.cs 742 B

12345678910111213141516171819202122232425
  1. using ET;
  2. namespace GFGGame
  3. {
  4. public class IOSRechargeSProxy
  5. {
  6. public static async ETTask IosVerifyOrder(string OrderId, string TransactionId)
  7. {
  8. S2C_IosVerifyOrder response = (S2C_IosVerifyOrder)await MessageHelper.SendToServer(new C2S_IosVerifyOrder()
  9. {
  10. OrderId = OrderId,
  11. TransactionId = TransactionId,
  12. EnvironmentType = GameConfig.tsServer > 0?0:1
  13. });
  14. if(response != null)
  15. {
  16. if(response.Error == ErrorCode.ERR_Success)
  17. {
  18. IAPManager.Instance.OnServerSuccess(response.OrderId, response.TransactionId);
  19. }
  20. }
  21. }
  22. }
  23. }