1
This commit is contained in:
@@ -149,12 +149,21 @@ namespace Assets.MyGame.Scripts.Net.APIRequest.Params
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// �л�ս���������
|
||||
/// 切换战神请求参数
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class ChangeGodWarParam : RequestParamBase
|
||||
{
|
||||
public string number; // ս����
|
||||
public string number; // 战神编号
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 使用VIP经验包请求参数(count=使用数量)
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class UseVipExpParam : RequestParamBase
|
||||
{
|
||||
public int count;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -334,12 +334,13 @@ namespace Assets.MyGame.Scripts.Net
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 使用VIP经验包(GET /api/Hall/UseVipExp)
|
||||
/// 使用VIP经验包(GET /api/Hall/UseVipExp?count=)
|
||||
/// 返回:string
|
||||
/// </summary>
|
||||
public static void UseVipExp(Action<string> callback = null)
|
||||
/// <param name="count">使用数量(默认1)</param>
|
||||
public static void UseVipExp(int count = 1, Action<string> callback = null)
|
||||
{
|
||||
APIManager.Response<string>(APIType.Hall_UseVipExp, callback);
|
||||
APIManager.Response<string>(APIType.Hall_UseVipExp, new UseVipExpParam { count = count }, callback);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user