|
@@ -198,7 +198,7 @@ namespace GFGGame
|
|
switch (welfareCfg.type)
|
|
switch (welfareCfg.type)
|
|
{
|
|
{
|
|
case LeagueWelfareType.Day:
|
|
case LeagueWelfareType.Day:
|
|
- isBuy = GetNumeriValue(LeagueNumericType.LeagueWelfareDay) == 1;
|
|
|
|
|
|
+ isBuy = GetNumeriValue(LeagueNumericType.LeagueWelfareDay) > 0;
|
|
isGet = GameGlobal.myNumericComponent.GetAsInt(NumericType.LeagueWelfareDay) == 1;
|
|
isGet = GameGlobal.myNumericComponent.GetAsInt(NumericType.LeagueWelfareDay) == 1;
|
|
break;
|
|
break;
|
|
case LeagueWelfareType.Week:
|
|
case LeagueWelfareType.Week:
|
|
@@ -206,12 +206,12 @@ namespace GFGGame
|
|
isGet = GameGlobal.myNumericComponent.GetAsInt(NumericType.LeagueWelfareWeek) == 1;
|
|
isGet = GameGlobal.myNumericComponent.GetAsInt(NumericType.LeagueWelfareWeek) == 1;
|
|
break;
|
|
break;
|
|
case LeagueWelfareType.SuperWeek:
|
|
case LeagueWelfareType.SuperWeek:
|
|
- isBuy = GetNumeriValue(LeagueNumericType.LeagueWelfareSuperWeek) == 1;
|
|
|
|
- isGet = GameGlobal.myNumericComponent.GetAsInt(NumericType.LeagueWelfareSuperDay) == 1;
|
|
|
|
|
|
+ isBuy = GetNumeriValue(LeagueNumericType.LeagueWelfareSuperWeek) > 0;
|
|
|
|
+ isGet = GameGlobal.myNumericComponent.GetAsInt(NumericType.LeagueWelfareSuperWeek) == 1;
|
|
break;
|
|
break;
|
|
case LeagueWelfareType.SuperDay:
|
|
case LeagueWelfareType.SuperDay:
|
|
isBuy = GetNumeriValue(LeagueNumericType.LeagueWelfareSuperLeftTimes) > 0;
|
|
isBuy = GetNumeriValue(LeagueNumericType.LeagueWelfareSuperLeftTimes) > 0;
|
|
- isGet = GameGlobal.myNumericComponent.GetAsInt(NumericType.LeagueWelfareSuperWeek) == 1;
|
|
|
|
|
|
+ isGet = GameGlobal.myNumericComponent.GetAsInt(NumericType.LeagueWelfareSuperDay) == 1;
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
// ET.Log.Debug("isBuy:" + isBuy);
|
|
// ET.Log.Debug("isBuy:" + isBuy);
|