mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-11-25 00:25:04 +08:00
fix: 天气显示错误
This commit is contained in:
parent
269dd5ced2
commit
8f906f2d12
@ -84,7 +84,7 @@ let daysStandard = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'fri
|
|||||||
let todayDay = new Date().getDay()
|
let todayDay = new Date().getDay()
|
||||||
let days = [localData['today'], localData['tomorrow']]
|
let days = [localData['today'], localData['tomorrow']]
|
||||||
for (let i = 0; i < 5; i++) {
|
for (let i = 0; i < 5; i++) {
|
||||||
days.push(localData[daysStandard[(todayDay) % 7]])
|
days.push(localData[daysStandard[(todayDay+2+i) % 7]])
|
||||||
}
|
}
|
||||||
weatherDaily['daily'].forEach(
|
weatherDaily['daily'].forEach(
|
||||||
(item, index) => {
|
(item, index) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user