1
This commit is contained in:
@@ -125,11 +125,11 @@ namespace Assets.MyGame.Scripts.Net
|
||||
/// <summary>
|
||||
/// 签到(GET)
|
||||
/// 参数:用户ID
|
||||
/// 返回:SignInfo(签到结果)
|
||||
/// 返回:long(data为本次签到奖励的金币数,后端直接返回数字,不是SignInfo对象)
|
||||
/// </summary>
|
||||
public static void SignIn(Action<SignInfo> callback)
|
||||
public static void SignIn(Action<long> callback)
|
||||
{
|
||||
APIManager.Response<SignInfo>(APIType.Hall_SignIn, callback);
|
||||
APIManager.Response<long>(APIType.Hall_SignIn, callback);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -162,6 +162,33 @@ namespace Assets.MyGame.Scripts.Net
|
||||
APIManager.Response<UserInfo>(APIType.Hall_ChangeGodWar, req, callback);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 卸下战神(GET,query 参数 number=当前装备的战神编号)
|
||||
/// 返回:与 ChangeGodWar 相同(StringBaseResponse;data 不使用,成功后另行 GetUser 刷新)
|
||||
/// </summary>
|
||||
public static void UnloadGodWar(UnloadGodWarParam req, Action<UserInfo> callback)
|
||||
{
|
||||
APIManager.Response<UserInfo>(APIType.Hall_UnloadGodWar, req, callback);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 卸下翅膀(GET,query 参数 number=当前装备的翅膀编号)
|
||||
/// 返回:与 ChangeGodWar 相同(StringBaseResponse;data 不使用,成功后另行 GetUser 刷新)
|
||||
/// </summary>
|
||||
public static void UnloadWing(UnloadWingParam req, Action<UserInfo> callback)
|
||||
{
|
||||
APIManager.Response<UserInfo>(APIType.Hall_UnloadWing, req, callback);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 卸下炮台(GET,query 参数 number=当前装备的炮台编号)
|
||||
/// ⭐ 当前产品不允许卸下炮台,仅注册接口暂不接入 UI
|
||||
/// </summary>
|
||||
public static void UnloadCannon(UnloadCannonParam req, Action<UserInfo> callback)
|
||||
{
|
||||
APIManager.Response<UserInfo>(APIType.Hall_UnloadCannon, req, callback);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 领取 Vip 每日礼包(GET)
|
||||
/// 返回:GiftInfo(礼包信息)
|
||||
|
||||
Reference in New Issue
Block a user