人人商城首页打开之后提示百度地图api或百度地图key的解决办法
最近相信很多使用人人商城系统的朋友会发现,商城首页有个百度地图api或者说百度地图key的弹窗提醒,极大影响了用户对平台的信任度以及使用体验,那么怎么解决这种问题呢?
原因呢其实很简单,应该是原有百度地图的api过期或者对使用api的网址或者ip进行了限制。
解决办法也很简单,只需要替换成自己的百度地图api即可。想要生成百度地图api的话,需要认证百度地图开放平台。
具体点将是需要替换百度地图的AK,大家使用的人人商城内百度地图的AK应该都是ETRdnj276YmktrGotC5BAVLwDux3G7uv,只需要把这个替换为成你的,具体申请方法 自行百度。
需要替换AK的路径如下:
/addons/ewei_shopv2/plugin/merch/template/mobile/default/list/merchuser.html
/addons/ewei_shopv2/plugin/groups/template/mobile/default/orders/confirm.html
/addons/ewei_shopv2/plugin/groups/template/mobile/default/orders/detail.html
/addons/ewei_shopv2/plugin/diypage/template/mobile/default/index.html
/addons/ewei_shopv2/plugin/diypage/template/mobile/default/template/tpl_detail store.html
./addons/ewei_shopv2/plugin/creditshop/template/mobile/default/create.html
/addons/ewei_shopv2/plugin/creditshop/template/mobile/default/log_detail.html
/addons/ewei_shopv2/plugin/pc/template/mobile/default/creditshop/create.html
/addons/ewei_shopv2/plugin/pc/template/mobile/default/creditshop/log_detail.html
/addons/ewei_shopv2/plugin/pc/template/mobile/default/order/create.html.back
./addons/ewei_shopv2/plugin/pc/template/mobile/default/order/create.html
/addons/ewei_shopv2/plugin/pc/template/mobile/default/order/detail.html
/addons/ewei_shopv2/plugin/pc/template/mobile/default/order/pay/success.html
/addons/ewei_shopv2/plugin/pc/template/mobile/default/goods/detail.html.back
/addons/ewei_shopv2/plugin/cycelbuy/template/mobile/default/order/create.html
/addons/ewei_shopv2/plugin/cycelbuy/template/mobile/default/goods/detail.html
/addons/ewei_shopv2/plugin/article/template/mobile/default/index.html
以及
plugin整个目录压缩。
然后在本地对以上文件进行压缩下载和代码的批量查找替换,随后压缩上传覆盖,这里我们推荐使用Dreamweaver。
对于运营较久的可以找到以上目录进行查找替换,比较精准,不用压缩整个目录导致文件过大。
对于运营没多久没啥数据缓存的,可以直接打包整个人人目录下载之后查找替换。
以上呢是方法一,下面还有方法二:
在上方提到的文件中找到 https://api.map.baidu.com 替换为 https://lbs.baidu.com 即可
两个方法都要彻底解决哈,千万不要只改一个文件,这样不是彻底解决问题的态度,一定要斩草除根!





