Fix 天气点击

This commit is contained in:
底层用户 2022-07-09 11:00:45 +08:00
parent 0af8f0ec2e
commit 5e2fcd656a

View File

@ -186,11 +186,11 @@ function getWeather() {
getWeather(); getWeather();
$('#upWeather').click(function () { $('#upWeather').click(function () {
if (times == 0) { if (wea == 0) {
times = 1; wea = 1;
var index = setInterval(function () { var index = setInterval(function () {
times--; wea--;
if (times == 0) { if (wea == 0) {
clearInterval(index); clearInterval(index);
} }
}, 60000); }, 60000);