Showing
1 changed file
with
3 additions
and
7 deletions
@@ -198,12 +198,8 @@ $.extend({ | @@ -198,12 +198,8 @@ $.extend({ | ||
198 | // 添加埋点 | 198 | // 添加埋点 |
199 | function addPoint(operate, parameter) { | 199 | function addPoint(operate, parameter) { |
200 | 200 | ||
201 | - if (!window._yas || !window._yas.sendCustomInfo) { | ||
202 | - checkYas(); | ||
203 | - return; | ||
204 | - } | ||
205 | - | ||
206 | - if (!operate) { | 201 | + if (!window._yas || !window._yas.sendCustomInfo || !operate) { |
202 | + checkYas(operate, parameter); | ||
207 | return; | 203 | return; |
208 | } | 204 | } |
209 | 205 | ||
@@ -233,7 +229,7 @@ function addPoint(operate, parameter) { | @@ -233,7 +229,7 @@ function addPoint(operate, parameter) { | ||
233 | }, true); | 229 | }, true); |
234 | } | 230 | } |
235 | 231 | ||
236 | -function checkYas() { | 232 | +function checkYas(operate, parameter) { |
237 | // yas库异步加载 | 233 | // yas库异步加载 |
238 | var sto = setInterval(function() { | 234 | var sto = setInterval(function() { |
239 | if (window._yas && window._yas.sendCustomInfo) { | 235 | if (window._yas && window._yas.sendCustomInfo) { |
-
Please register or login to post a comment