Update weather.js

This commit is contained in:
Shawn
2019-06-25 19:45:03 +08:00
committed by GitHub
parent a3cb523ac2
commit 40f679b284

View File

@@ -11,7 +11,7 @@ $request(weaapi, function(error, response, data){
var wea = "天气状况: " + obj.wea + " 当前" + obj.tem + "℃ " + obj.tem2 + "℃~" + obj.tem1 + "℃"; var wea = "天气状况: " + obj.wea + " 当前" + obj.tem + "℃ " + obj.tem2 + "℃~" + obj.tem1 + "℃";
var air = "当前风力: " + obj.win + obj.win_speed + " 风速" + obj.win_meter + "\n空气指数 " + obj.air + " " + obj.air_level + "\n友情提示 " + obj.air_tips + "\n更新时间 " + obj.date + " "+ obj.update_time; var air = "当前风力: " + obj.win + obj.win_speed + " 风速" + obj.win_meter + "\n空气指数 " + obj.air + " " + obj.air_level + "\n友情提示 " + obj.air_tips + "\n更新时间 " + obj.date + " "+ obj.update_time;
let wmation = [city,wea,air]; let wmation = [city,wea,air];
$notification.post(wmation[0], wmation[1], wmation[2]); $notify(wmation[0], wmation[1], wmation[2]);
$done(); $done();
} }
} }