build
This commit is contained in:
parent
0f16f22aa7
commit
cbe80c0eab
|
|
@ -312,7 +312,7 @@ export class WechatPublicInstance {
|
|||
const { access_token, expires_in } = result;
|
||||
this.accessToken = access_token;
|
||||
// 生成下次刷新的定时器
|
||||
console.log((expires_in - 10) * 1000);
|
||||
// console.log((expires_in - 10) * 1000);
|
||||
this.refreshAccessTokenHandler = setTimeout(() => {
|
||||
this.refreshAccessToken();
|
||||
}, (expires_in - 10) * 1000);
|
||||
|
|
|
|||
|
|
@ -316,7 +316,7 @@ class WechatPublicInstance {
|
|||
const { access_token, expires_in } = result;
|
||||
this.accessToken = access_token;
|
||||
// 生成下次刷新的定时器
|
||||
console.log((expires_in - 10) * 1000);
|
||||
// console.log((expires_in - 10) * 1000);
|
||||
this.refreshAccessTokenHandler = setTimeout(() => {
|
||||
this.refreshAccessToken();
|
||||
}, (expires_in - 10) * 1000);
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
import './testTrans';
|
||||
import './testTianDitu';
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
fetch(encodeURI('http://api.tianditu.gov.cn/v2/search?postStr={"keyWord":"浙江大学","queryType":12,"start":0,"count":10,"specify":"156330100","show":"2"}&type=query&tk='))
|
||||
fetch(encodeURI(`http://api.tianditu.gov.cn/geocoder?postStr={"lon":116.37304,"lat":39.92594,"ver":1}&type=geocode&tk=`))
|
||||
.then(
|
||||
(result) => {
|
||||
console.log(result.status);
|
||||
|
|
|
|||
Loading…
Reference in New Issue