* Feat(fortune): add static date and cyclical date support * Chore(Fortune): convert static event date to cyclical date * Docs: Update CONTRIBUTING.md * Chore(Fortune): Remove old special events * Fix(Fortune): Correctly set the trigger date for Thanksgiving * Impr(fortune): Make the code more readable by reducing duplication and lengthy validation blocks Additionally, strengthen the handling of edge cases (e.g., 31 in February). * Impr(fortune): Separate the default and user-defined events into different files for easier identification and management * Docs: Update CONTRIBUTING.md * Impr(fortune): Simplify events file categorization * Docs: Update CONTRIBUTING.md * Docs: Update CONTRIBUTING.md
47 lines
1011 B
JSON
47 lines
1011 B
JSON
{
|
|
"special_events": [
|
|
{
|
|
"event": "夏至",
|
|
"triggerDate": {
|
|
"year": "2025",
|
|
"month": "6",
|
|
"date": "21"
|
|
},
|
|
"status_index": "0",
|
|
"goodFortunes": {
|
|
"l_1_event": "觀賞日出和日落",
|
|
"l_1_desc": "享受一年最長的白天",
|
|
"l_2_event": "",
|
|
"l_2_desc": ""
|
|
},
|
|
"badFortunes": {
|
|
"r_1_event": "",
|
|
"r_1_desc": "",
|
|
"r_2_event": "",
|
|
"r_2_desc": ""
|
|
}
|
|
},
|
|
{
|
|
"event": "中秋節",
|
|
"triggerDate": {
|
|
"year": "2025",
|
|
"month": "10",
|
|
"date": "6"
|
|
},
|
|
"status_index": "0",
|
|
"goodFortunes": {
|
|
"l_1_event": "賞月",
|
|
"l_1_desc": "與家人一同賞月,增進感情",
|
|
"l_2_event": "吃月餅",
|
|
"l_2_desc": "與家人朋友分享月餅的美味"
|
|
},
|
|
"badFortunes": {
|
|
"r_1_event": "",
|
|
"r_1_desc": "",
|
|
"r_2_event": "",
|
|
"r_2_desc": ""
|
|
}
|
|
}
|
|
]
|
|
}
|