| 123456789101112131415161718192021222324252627 | 
							- using ET;
 
- using System.Collections;
 
- using System.Collections.Generic;
 
- using UnityEngine;
 
- namespace GFGGame
 
- {
 
-     public class SettingSProxy
 
-     {
 
-         /// <summary>
 
-         /// 发送兑换码验证请求
 
-         /// </summary>
 
-         /// <param name="code"></param>
 
-         /// <returns></returns>
 
-         public static async ETTask<bool> ReqGiftCodeInfo(string code)
 
-         {
 
-             var response = (S2C_RedeemRewards)await MessageHelper.SendToServer(new C2S_RedeemRewards { ActivationCode = code });
 
-             if(!(response is { Error: ErrorCode.ERR_Success }))
 
-             {
 
-                 return false;
 
-             }
 
-             // 奖励弹窗
 
-             BonusController.TryShowBonusList(ItemUtil.CreateItemDataList(response.ItemList));
 
-             return true;
 
-         }
 
-     }
 
- }
 
 
  |