|
@@ -47,6 +47,10 @@ func GetUserRaiPermissionInfo(userId, companyId int) (authInfo models.UserPermis
|
|
|
err = errors.New("获取权益销售信息失败, Err: " + e.Error())
|
|
|
return
|
|
|
}
|
|
|
+ if raiSeller != nil {
|
|
|
+ authInfo.SellerMobile = raiSeller.Mobile
|
|
|
+ authInfo.SellerName = raiSeller.RealName
|
|
|
+ }
|
|
|
|
|
|
// permissions示例: 医药,消费,科技,智造,策略,专家,买方研选
|
|
|
permissions, e := models.GetCompanyPermission(companyId)
|
|
@@ -69,8 +73,6 @@ func GetUserRaiPermissionInfo(userId, companyId int) (authInfo models.UserPermis
|
|
|
if raiSeller != nil {
|
|
|
// 有销售信息
|
|
|
authInfo.HasPermission = 2
|
|
|
- authInfo.SellerMobile = raiSeller.Mobile
|
|
|
- authInfo.SellerName = raiSeller.RealName
|
|
|
authInfo.OperationMode = UserPermissionOperationModeCall
|
|
|
authInfo.PopupMsg = UserPermissionPopupMsgCallActivity
|
|
|
return
|