| 1234567891011121314151617181920212223242526272829303132 | 
							- 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> ReqGiftCodeCheck(string code)
 
-         {
 
-             S2C_RedeemRewards response;
 
-             response = (S2C_RedeemRewards)await MessageHelper.SendToServer(new C2S_RedeemRewards() { ActivationCode = code });
 
-             if (response != null)
 
-             {
 
-                 if (response.Error == ErrorCode.ERR_Success)
 
-                 {
 
-                     // 奖励弹窗
 
-                     BonusController.TryShowBonusList(ItemUtil.CreateItemDataList(response.ItemList));
 
-                     EventAgent.DispatchEvent(ConstMessage.RED_CHANGE);
 
-                     return true;
 
-                 }
 
-             }
 
-             return false;
 
-         }
 
-     }
 
- }
 
 
  |