Authored by 陈峰

sendAppLogs

... ... @@ -11,9 +11,6 @@
<meta content="email=no" name="format-detection">
<script type="text/javascript">
(function(d,c){var e=d.documentElement,a="orientationchange" in window?"orientationchange":"resize",b=function(){var f=e.clientWidth;if(!f){return}if(f>=750){e.style.fontSize="40px"}else{e.style.fontSize=40*(f/750)+"px"}};if(!d.addEventListener){return}b();c.addEventListener(a,b,false);d.addEventListener("DOMContentLoaded",b,false)})(document,window);
if (/YohoBuy/i.test(navigator.userAgent || '')) {
window.appBaseLogs = {device: {},status: [],events: []}
}
</script>
</head>
<body>
... ...
... ... @@ -65,7 +65,7 @@ export function createYoho() {
if (window._yas && window._yas.sendAppLogs) {
window._yas.sendAppLogs({
appop,
param: JSON.stringify(param)
param: param ? JSON.stringify(param) : '{}'
}, asyncindx);
}
}
... ...