1
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user