提交 1638bd0b 编写于 作者: X xiongbao

Bugfix

上级 4686bcc2
......@@ -172,7 +172,7 @@
var cond = localStorage.getItem('cond') || '';
var dateStart = new Date(localStorage.getItem('date') || new Date());
var dayDiff = date.getDate() - dateStart.getDate();
if(city == '') {
if(city == '' || dayDiff >= 1) {
$.post(
'https://free-api.heweather.net/s6/weather/now?location=auto_ip&key=2a0c9b13dec6442887f73698a9be5f4b',
function(data){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册