Commit f3c5640c authored by 谢永靖's avatar 谢永靖

ak

parent a6ec6dbc
Pipeline #31534 passed with stage
in 2 seconds
...@@ -193,7 +193,7 @@ module.exports = { ...@@ -193,7 +193,7 @@ module.exports = {
} }
const data = { const data = {
ak: '3TBenWOhPygtFFazaR5kSibU', ak: 'kpqBbfkKx9HvdhfAAEybyy0ATwaZgimI',
pois: 0, pois: 0,
output: 'json', output: 'json',
location: gps, location: gps,
...@@ -211,7 +211,7 @@ module.exports = { ...@@ -211,7 +211,7 @@ module.exports = {
async getGPS(address, city) { async getGPS(address, city) {
console.info(address); console.info(address);
const baidu_url = 'https://api.map.baidu.com/geocoder/v2/'; const baidu_url = 'https://api.map.baidu.com/geocoder/v2/';
const result = await this.send_request(baidu_url, { address, output: 'json', ak: '3TBenWOhPygtFFazaR5kSibU', city }, { method: 'GET' }); const result = await this.send_request(baidu_url, { address, output: 'json', ak: 'kpqBbfkKx9HvdhfAAEybyy0ATwaZgimI', city }, { method: 'GET' });
console.info(result); console.info(result);
const ret = result.data; const ret = result.data;
if (ret && ret.status === 0 && ret.result && ret.result.location) { if (ret && ret.status === 0 && ret.result && ret.result.location) {
...@@ -231,7 +231,7 @@ module.exports = { ...@@ -231,7 +231,7 @@ module.exports = {
} }
const data = { const data = {
ak: '3TBenWOhPygtFFazaR5kSibU', ak: 'kpqBbfkKx9HvdhfAAEybyy0ATwaZgimI',
output: 'json', output: 'json',
ip, ip,
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment