google 真是到处限制啊

www.BOIP.net 的IP信息图片调用
好好的莫名其妙输出不了图片,debug了下 发现变量timezoneID没值了

因为取时区 所以使用了Google的api
结果发现 这个api是和map地图绑定的

一天限制2500/次…..

[root@hkweb8 ~]# curl https://maps.googleapis.com/maps/api/timezone/json?location=22.2833,114.15&timestamp=1477655731&&language=zh_CN

[root@hkweb8 ~]# {
   "errorMessage" : "You have exceeded your daily request quota for this API. We recommend registering for a key at the Google Developers Conopers.google.com/apis/credentials?project=_",
   "status" : "OVER_QUERY_LIMIT"
}

改为写死UTC 就OK了

真是各种坑

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注