...
|
...
|
@@ -35,7 +35,7 @@ func getAuditUserHasPermission(userid int64, usercompanyid int64) ( |
|
|
} else {
|
|
|
//使用缓存
|
|
|
log.Debug("从缓存读取权限")
|
|
|
permissionObject, err = redisdata.GetUserPermission(userid, serverabc.M_SYSTEM_OPPORTUNITY)
|
|
|
permissionObject, err = redisdata.GetUserPermission(usercompanyid, serverabc.M_SYSTEM_OPPORTUNITY)
|
|
|
if err != nil {
|
|
|
log.Debug("从缓存未获得对应权限 :%s", err)
|
|
|
return nil, err
|
...
|
...
|
|