|
@ -2,7 +2,7 @@ const request = require('superagent'); |
|
|
|
|
|
|
|
|
let _weatherUrl = ''; |
|
|
let _weatherUrl = ''; |
|
|
const qweatherUrl = 'https://api.qweather.com/v7/weather/3d' |
|
|
const qweatherUrl = 'https://api.qweather.com/v7/weather/3d' |
|
|
const qweatherKey = 'd717e5cf342d4626b4839044f1473426' |
|
|
const qweatherKey = '8f5704332b95425c987dca82b5ea0a5e' |
|
|
module.exports.entry = function (app, router, opts) { |
|
|
module.exports.entry = function (app, router, opts) { |
|
|
const { weatherUrl } = opts; |
|
|
const { weatherUrl } = opts; |
|
|
_weatherUrl = weatherUrl; |
|
|
_weatherUrl = weatherUrl; |
|
|