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

ak

parent a6ec6dbc
Pipeline #31534 passed with stage
in 2 seconds
......@@ -193,7 +193,7 @@ module.exports = {
}
const data = {
ak: '3TBenWOhPygtFFazaR5kSibU',
ak: 'kpqBbfkKx9HvdhfAAEybyy0ATwaZgimI',
pois: 0,
output: 'json',
location: gps,
......@@ -211,7 +211,7 @@ module.exports = {
async getGPS(address, city) {
console.info(address);
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);
const ret = result.data;
if (ret && ret.status === 0 && ret.result && ret.result.location) {
......@@ -231,7 +231,7 @@ module.exports = {
}
const data = {
ak: '3TBenWOhPygtFFazaR5kSibU',
ak: 'kpqBbfkKx9HvdhfAAEybyy0ATwaZgimI',
output: 'json',
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