fix: 更新博睿和神策的用户信息上报接口
This commit is contained in:
@@ -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' });
|
||||
}
|
||||
|
||||
// 神策诊断日志(精简版)
|
||||
|
||||
Reference in New Issue
Block a user