删除图鉴内容
This commit is contained in:
@@ -227,56 +227,56 @@ namespace LoveLegend
|
||||
SaveData.SaveDataFunc();
|
||||
purch_number = ConfigSystem.GetConfig<Multigift>()[0].Paid_price2.ToString();
|
||||
}
|
||||
else if (type.StartsWith("vip_club"))
|
||||
{
|
||||
is_maxPay = true;
|
||||
int startIndex = "vip_club".Length;
|
||||
string suffix = type[startIndex..]; // 截取 "gold" 后的所有字符
|
||||
int suffixNum = int.Parse(suffix);
|
||||
// else if (type.StartsWith("vip_club"))
|
||||
// {
|
||||
// is_maxPay = true;
|
||||
// int startIndex = "vip_club".Length;
|
||||
// string suffix = type[startIndex..]; // 截取 "gold" 后的所有字符
|
||||
// int suffixNum = int.Parse(suffix);
|
||||
|
||||
if (!MaxPayManager.isIOSPay)
|
||||
{
|
||||
var days = 0;
|
||||
switch (suffixNum)
|
||||
{
|
||||
case 0:
|
||||
days = (int)VipDay.Week;
|
||||
break;
|
||||
case 1:
|
||||
days = (int)VipDay.Month;
|
||||
break;
|
||||
case 2:
|
||||
days = (int)VipDay.Year;
|
||||
break;
|
||||
}
|
||||
// if (!MaxPayManager.isIOSPay)
|
||||
// {
|
||||
// var days = 0;
|
||||
// switch (suffixNum)
|
||||
// {
|
||||
// case 0:
|
||||
// days = (int)VipDay.Week;
|
||||
// break;
|
||||
// case 1:
|
||||
// days = (int)VipDay.Month;
|
||||
// break;
|
||||
// case 2:
|
||||
// days = (int)VipDay.Year;
|
||||
// break;
|
||||
// }
|
||||
|
||||
if (days > 0)
|
||||
{
|
||||
// 设置 VIP 到期时间(当前时间戳 + VIP 天数对应的秒数)
|
||||
if (DataMgr.VipExpirationTime.Value > ServerClock.GetCurrentServerTime())
|
||||
{
|
||||
DataMgr.VipExpirationTime.Value = DataMgr.VipExpirationTime.Value + days * 24 * 60 * 60;
|
||||
}
|
||||
else DataMgr.VipExpirationTime.Value = ServerClock.GetCurrentServerTime() + days * 24 * 60 * 60;
|
||||
}
|
||||
DataMgr.VipLevel.Value = suffixNum + 1;
|
||||
}
|
||||
purch_number = ConfigSystem.GetConfig<VipClub>()[suffixNum].DiscountPrice.ToString();
|
||||
GameDispatcher.Instance.Dispatch(GameMsg.BuyVip);
|
||||
}
|
||||
else if (type.StartsWith("secret_albnums"))
|
||||
{
|
||||
is_maxPay = true;
|
||||
int startIndex = "secret_albnums".Length;
|
||||
string suffix = type[startIndex..]; // 截取 "gold" 后的所有字符
|
||||
int suffix_num = int.Parse(suffix);
|
||||
var model = ConfigSystem.GetConfig<SecretAlbums>()[suffix_num];
|
||||
if (model.PayType == (int)UnlockPayType.Pay && !GameHelper.isVipUnlock)
|
||||
{
|
||||
purch_number = ConfigSystem.GetConfig<SecretAlbums>()[suffix_num].DiscountPrice.ToString();
|
||||
}
|
||||
GameHelper.isVipUnlock = false;
|
||||
}
|
||||
// if (days > 0)
|
||||
// {
|
||||
// // 设置 VIP 到期时间(当前时间戳 + VIP 天数对应的秒数)
|
||||
// if (DataMgr.VipExpirationTime.Value > ServerClock.GetCurrentServerTime())
|
||||
// {
|
||||
// DataMgr.VipExpirationTime.Value = DataMgr.VipExpirationTime.Value + days * 24 * 60 * 60;
|
||||
// }
|
||||
// else DataMgr.VipExpirationTime.Value = ServerClock.GetCurrentServerTime() + days * 24 * 60 * 60;
|
||||
// }
|
||||
// DataMgr.VipLevel.Value = suffixNum + 1;
|
||||
// }
|
||||
// purch_number = ConfigSystem.GetConfig<VipClub>()[suffixNum].DiscountPrice.ToString();
|
||||
// GameDispatcher.Instance.Dispatch(GameMsg.BuyVip);
|
||||
// }
|
||||
// else if (type.StartsWith("secret_albnums"))
|
||||
// {
|
||||
// is_maxPay = true;
|
||||
// int startIndex = "secret_albnums".Length;
|
||||
// string suffix = type[startIndex..]; // 截取 "gold" 后的所有字符
|
||||
// int suffix_num = int.Parse(suffix);
|
||||
// var model = ConfigSystem.GetConfig<SecretAlbums>()[suffix_num];
|
||||
// if (model.PayType == (int)UnlockPayType.Pay && !GameHelper.isVipUnlock)
|
||||
// {
|
||||
// purch_number = ConfigSystem.GetConfig<SecretAlbums>()[suffix_num].DiscountPrice.ToString();
|
||||
// }
|
||||
// GameHelper.isVipUnlock = false;
|
||||
// }
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PayloadingUI_Close);
|
||||
|
||||
if ((!GameHelper.IsAdModelOfPay() || is_maxPay) && !string.IsNullOrEmpty(purch_number) && decimal.TryParse(purch_number, out decimal revenue))
|
||||
|
||||
Reference in New Issue
Block a user