This commit is contained in:
2026-07-23 15:07:51 +08:00
parent 83699675e1
commit c91dbde7cb
4 changed files with 50 additions and 25 deletions
@@ -188,11 +188,18 @@ namespace Assets.MyGame.Scripts.Net.APIRequest.Params
public int type; // �������� 1=��Ӣ 2=����
}
/// <summary>��ȡ�û������б���GET��</summary>
/// <summary>获取用户任务列表(GET)</summary>
[Serializable]
public class GetUserTaskListParam : RequestParamBase
{
public int taskType = -1; // -1=ȫ��
public int taskType = -1; // -1=全部
}
/// <summary>领取 Vip 每日礼包(GET)参数:当前 vip 等级,领取 V1~vipLevel 所有每日礼包</summary>
[Serializable]
public class GetVipDayGiftParam : RequestParamBase
{
public int vipLevel;
}
/// <summary>发送全服广播(GET)</summary>
@@ -164,12 +164,13 @@ namespace Assets.MyGame.Scripts.Net
/// <summary>
/// 领取 Vip 每日礼包(GET)
/// 参数:用户ID
/// 参数:当前 vip 等级(领取 V1~vipLevel 所有每日礼包)
/// 返回:GiftInfo(礼包信息)
/// </summary>
public static void GetVipDayGift( Action<GiftInfo> callback)
public static void GetVipDayGift(int vipLevel, Action<GiftInfo> callback)
{
APIManager.Response<GiftInfo>(APIType.Hall_GetVipDayGift, callback);
APIManager.Response<GiftInfo>(APIType.Hall_GetVipDayGift,
new GetVipDayGiftParam { vipLevel = vipLevel }, callback);
}
/// <summary>