fix: url error in TravelPolicy method

This commit is contained in:
Leon Xu committed 2022-04-17 13:38:41 -07:00
1 parent 1a8a9475ed
commit 3b0e041add
1 file changed
+1 -1
+1 -1
View File
@@ -120,7 +120,7 @@ export const TravelDataCity = async (req, res) => {
// Get Travel Prevention Policies
export const TravelPolicy = async (req, res) => {
const { juhe } = process.env;
const travelPreventionUrl = `https://http://apis.juhe.cn/springTravel/query?key=${juhe}&from=10191&to=10349`
const travelPreventionUrl = `https://apis.juhe.cn/springTravel/query?key=${juhe}&from=10191&to=10349`
try {
axios.get(travelPreventionUrl).then((result) => {
const { data } = result;