using ET; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace GFGGame { public class SettingSProxy { /// /// 发送兑换码验证请求 /// /// /// public static async ETTask 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; } } }