每日自动提交 2026-04-13 18:30
This commit is contained in:
@@ -71,43 +71,43 @@ namespace Assets.MyGame.Scripts.Net
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 购买月卡(POST)
|
||||
/// 参数:用户ID、月卡类型
|
||||
/// 返回:MonthCardInfo(月卡信息)
|
||||
/// 购买月卡(GET)
|
||||
/// 参数:type(1=周卡 2=月卡 3=年卡)、gold(金币价)、money(现金价)
|
||||
/// 返回:string(data 为结果描述字符串)
|
||||
/// </summary>
|
||||
public static void BuyMonthCard(BuyMonthCardParam req, Action<MonthCardInfo> callback)
|
||||
public static void BuyMonthCard(BuyMonthCardParam req, Action<string> callback)
|
||||
{
|
||||
APIManager.Response<MonthCardInfo>(APIType.Hall_BuyMonthCard, req, callback);
|
||||
APIManager.Response<string>(APIType.Hall_BuyMonthCard, req, callback);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 购买道具(POST)
|
||||
/// 参数:道具ID、数量
|
||||
/// 返回:PropInfo(道具信息)
|
||||
/// 购买道具(GET)
|
||||
/// 参数:propNumber(道具编号)、count(数量)
|
||||
/// 返回:string(data 为结果描述字符串)
|
||||
/// </summary>
|
||||
public static void BuyProp(BuyPropParam req, Action<PropInfo> callback)
|
||||
public static void BuyProp(BuyPropParam req, Action<string> callback)
|
||||
{
|
||||
APIManager.Response<PropInfo>(APIType.Hall_BuyProp, req, callback);
|
||||
APIManager.Response<string>(APIType.Hall_BuyProp, req, callback);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 购买金币(POST)
|
||||
/// 参数:用户ID、金币数量
|
||||
/// 返回:GoldInfo(金币信息)
|
||||
/// 购买金币(GET)
|
||||
/// 参数:number(GoldShopConfig.number)、count(数量)
|
||||
/// 返回:string(data 为结果描述字符串)
|
||||
/// </summary>
|
||||
public static void BuyGold(BuyGoldParam req, Action<GoldInfo> callback)
|
||||
public static void BuyGold(BuyGoldParam req, Action<string> callback)
|
||||
{
|
||||
APIManager.Response<GoldInfo>(APIType.Hall_BuyGold, req, callback);
|
||||
APIManager.Response<string>(APIType.Hall_BuyGold, req, callback);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 购买钻石(POST)
|
||||
/// 参数:用户ID、钻石数量
|
||||
/// 返回:DiamondInfo(钻石信息)
|
||||
/// 购买钻石(GET)
|
||||
/// 参数:number(DiamondShopConfig.number)、count(数量)
|
||||
/// 返回:string(data 为结果描述字符串)
|
||||
/// </summary>
|
||||
public static void BuyDiamond(BuyDiamondParam req, Action<DiamondInfo> callback)
|
||||
public static void BuyDiamond(BuyDiamondParam req, Action<string> callback)
|
||||
{
|
||||
APIManager.Response<DiamondInfo>(APIType.Hall_BuyDiamond, req, callback);
|
||||
APIManager.Response<string>(APIType.Hall_BuyDiamond, req, callback);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user