Passport Tier 팬덤 단위 · 활동 Badge · 진화 Emblem · Eclipse 참여 기록
This commit is contained in:
@@ -59,6 +59,9 @@ class FirestorePlanetRepository implements PlanetRepository {
|
||||
'quest_reward' => PlanetHistoryKind.questReward,
|
||||
'company_ad_bonus' => PlanetHistoryKind.companyAdBonus,
|
||||
'funding' => PlanetHistoryKind.funding,
|
||||
'eclipse_success' => PlanetHistoryKind.eclipseSuccess,
|
||||
'emblem_evolution' => PlanetHistoryKind.emblemEvolution,
|
||||
'badge_founder100' => PlanetHistoryKind.founderBadge,
|
||||
_ => null,
|
||||
};
|
||||
final date = row['occurredAt'] is String
|
||||
@@ -74,7 +77,12 @@ class FirestorePlanetRepository implements PlanetRepository {
|
||||
PlanetHistoryKind.companyAdBonus,
|
||||
PlanetHistoryKind.funding,
|
||||
].contains(kind);
|
||||
if (activity != personal ||
|
||||
final stamp = [
|
||||
PlanetHistoryKind.eclipseSuccess,
|
||||
PlanetHistoryKind.emblemEvolution,
|
||||
PlanetHistoryKind.founderBadge,
|
||||
].contains(kind);
|
||||
if ((activity || stamp) != personal ||
|
||||
(activity && (amount is! int || amount <= 0)) ||
|
||||
kind == null ||
|
||||
date == null ||
|
||||
@@ -95,7 +103,12 @@ class FirestorePlanetRepository implements PlanetRepository {
|
||||
occurredAt: date,
|
||||
amount: activity ? amount as int : null,
|
||||
fromStage: kind == PlanetHistoryKind.evolution ? from as int : null,
|
||||
toStage: kind == PlanetHistoryKind.evolution ? to as int : null,
|
||||
toStage: kind == PlanetHistoryKind.evolution
|
||||
? to as int
|
||||
: kind == PlanetHistoryKind.emblemEvolution && to is int
|
||||
? to
|
||||
: null,
|
||||
memberNo: row['memberNo'] is int ? row['memberNo'] as int : null,
|
||||
participationConfirmed:
|
||||
kind == PlanetHistoryKind.evolution &&
|
||||
row['participationConfirmed'] == true,
|
||||
|
||||
Reference in New Issue
Block a user