From 9820693b8d38eda9a6f53d6d9ce9b67b6c7f68a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Wed, 2 May 2018 13:23:47 +0800 Subject: [PATCH 1/2] fix bug 4929 --- fangija-zsyf/views/news/newsDetail.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fangija-zsyf/views/news/newsDetail.html b/fangija-zsyf/views/news/newsDetail.html index 57dcf61..3e5fca0 100644 --- a/fangija-zsyf/views/news/newsDetail.html +++ b/fangija-zsyf/views/news/newsDetail.html @@ -547,6 +547,9 @@ function collect(){ } $.toast(msg); + if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){ + plus.webview.getWebviewById('views/user/userInfo.html').reload(); + } }) .catch(function (error) { From 5b906a93a572128c04a4b65f73203b75b6303f7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Wed, 2 May 2018 16:27:42 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AF=E6=8E=A8=E9=80=81ID=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/js/log/log_stat.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fangija-zsyf/js/log/log_stat.js b/fangija-zsyf/js/log/log_stat.js index 5a44596..627ad88 100644 --- a/fangija-zsyf/js/log/log_stat.js +++ b/fangija-zsyf/js/log/log_stat.js @@ -13,6 +13,12 @@ function savePageLog() { var page = document.getElementsByTagName("title")[0].innerHTML; var device = plus.device.uuid; var model = plus.device.model; + + var pushClientId = ""; + var info = plus.push.getClientInfo(); + if (info != null) { + pushClientId = info.clientid; + } plus.geolocation.getCurrentPosition(function(p){ baidu_province = p.address.province; baidu_city = p.address.city; @@ -20,9 +26,9 @@ function savePageLog() { baidu_lng = p.coords.longitude; baidu_lat = p.coords.latitude; baidu_address = p.address.street; - doSavePageLog({page:page, lng:baidu_lng, lat:baidu_lat, province:baidu_province, city:baidu_city, region:baidu_region, address:baidu_address, device:device, model:model}); + doSavePageLog({page:page, lng:baidu_lng, lat:baidu_lat, province:baidu_province, city:baidu_city, region:baidu_region, address:baidu_address, device:device, model:model, pushClientId:pushClientId}); }, function(e){ - doSavePageLog({page:page, device:device, model:model}); + doSavePageLog({page:page, device:device, model:model, pushClientId:pushClientId}); }, { provider:'baidu',