...
|
...
|
@@ -212,7 +212,7 @@ export default function(mergeState = {}) { |
|
|
// 获取设备信息
|
|
|
if (!retry && !get(window, 'appBaseLogs.device.dm') && this.$xianyu.getClientInfo) {
|
|
|
this.$xianyu.getClientInfo(info => {
|
|
|
info = info || {}
|
|
|
info = info || {};
|
|
|
set(window, 'appBaseLogs.device.dm', info.platformName ? info.platformName : `${info.brand} ${info.model}`);
|
|
|
|
|
|
this.dispatch('reportYas', {
|
...
|
...
|
@@ -233,7 +233,7 @@ export default function(mergeState = {}) { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (window._yas && window._yas.sendAppLogs) {
|
|
|
if (window) {
|
|
|
param = param || {};
|
|
|
|
|
|
if (!param.C_ID) {
|
...
|
...
|
@@ -251,29 +251,53 @@ export default function(mergeState = {}) { |
|
|
param.SRC_ID = srcId;
|
|
|
}
|
|
|
|
|
|
window._yas.sendAppLogs(
|
|
|
{
|
|
|
appop,
|
|
|
param: param ? JSON.stringify(param) : '{}',
|
|
|
},
|
|
|
asyncindx,
|
|
|
);
|
|
|
if (window._yas && window._yas.sendAppLogs) {
|
|
|
window._yas.sendAppLogs(
|
|
|
{
|
|
|
appop,
|
|
|
param: param ? JSON.stringify(param) : '{}',
|
|
|
},
|
|
|
asyncindx,
|
|
|
);
|
|
|
|
|
|
if (window._yasEvents) {
|
|
|
window._yasEvents.forEach(e => {
|
|
|
window._yas.sendAppLogs(
|
|
|
{
|
|
|
appop: e.appop,
|
|
|
param: e.param ? JSON.stringify(e.param) : '{}',
|
|
|
},
|
|
|
asyncindx,
|
|
|
);
|
|
|
});
|
|
|
if (window._yasEvents) {
|
|
|
window._yasEvents.forEach(e => {
|
|
|
window._yas.sendAppLogs(
|
|
|
{
|
|
|
appop: e.appop,
|
|
|
param: e.param ? JSON.stringify(e.param) : '{}',
|
|
|
},
|
|
|
asyncindx,
|
|
|
);
|
|
|
});
|
|
|
|
|
|
window._yasEvents = null;
|
|
|
}
|
|
|
} else if (window._yas2) {
|
|
|
window._yas2.sendAppLogs(
|
|
|
{
|
|
|
appop,
|
|
|
param: param ? JSON.stringify(param) : '{}',
|
|
|
},
|
|
|
asyncindx,
|
|
|
);
|
|
|
|
|
|
if (window._yasEvents) {
|
|
|
window._yasEvents.forEach(e => {
|
|
|
window._yas2.sendAppLogs(
|
|
|
{
|
|
|
appop: e.appop,
|
|
|
param: e.param ? JSON.stringify(e.param) : '{}',
|
|
|
},
|
|
|
asyncindx,
|
|
|
);
|
|
|
});
|
|
|
|
|
|
window._yasEvents = null;
|
|
|
window._yasEvents = null;
|
|
|
}
|
|
|
} else {
|
|
|
window._yasEvents = window._yasEvents ? window._yasEvents.push({ appop, param }) : [{ appop, param }];
|
|
|
}
|
|
|
} else {
|
|
|
window._yasEvents = window._yasEvents ? window._yasEvents.push({ appop, param }) : [{ appop, param }];
|
|
|
}
|
|
|
}, 300);
|
|
|
} catch (e) {
|
...
|
...
|
|