mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-22 20:17:39 +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