fix: 更新博睿和神策的用户信息上报接口

This commit is contained in:
zheng.zhang
2026-04-29 18:08:28 +08:00
parent 58d0bad274
commit 68ae0ef985
+4 -4
View File
@@ -45,10 +45,10 @@
}
window.BonreeAgent.BonreeStart(config);
window.bonreeApplyUser = function (userId, userName) {
if (!userId || !window.BonreeAgent) return;
window.BonreeAgent.setUserID(userId);
if (!userId || !window.bonreeJsBridge) return;
window.bonreeJsBridge.setUserID(userId);
if (userName) {
window.BonreeAgent.setExtraInfo({ name: userName });
window.bonreeJsBridge.setUserExtraInfo({ name: userName });
}
};
@@ -118,7 +118,7 @@
if ('@CurUser?.UserId' && sensors.login) {
sensors.login('@CurUser.UserId');
sensors.setOnceProfile({ userId: '@CurUser.OaAccount', name: '@CurUser.UserName' });
sensors.setProfile({ userId: '@CurUser.OaAccount', name: '@CurUser.UserName' });
}
// 神策诊断日志(精简版)