diff --git a/YLErpWeb/Views/Shared/_MainLayout.cshtml b/YLErpWeb/Views/Shared/_MainLayout.cshtml index 4a9d6388..8030b453 100644 --- a/YLErpWeb/Views/Shared/_MainLayout.cshtml +++ b/YLErpWeb/Views/Shared/_MainLayout.cshtml @@ -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' }); } // 神策诊断日志(精简版)