|
@@ -215,7 +215,7 @@ func (this *YanxuanSpecialController) Detail() {
|
|
|
}
|
|
|
|
|
|
|
|
|
- if item.UserId == sysUser.UserId {
|
|
|
+ if item.UserId == sysUser.UserId || sysUser.UserId == 0 {
|
|
|
resp.HasPermission = 1
|
|
|
} else {
|
|
|
hasPermission, err := services.GetUserRaiPermissionYanXuanInfo(sysUser)
|
|
@@ -240,6 +240,10 @@ func (this *YanxuanSpecialController) Detail() {
|
|
|
resp.ContentHasStyle = true
|
|
|
}
|
|
|
|
|
|
+ if resp.HasPermission != 1 || sysUser.UserId == 0 {
|
|
|
+ resp.Content = utils.InterceptHtmlLength(resp.Content, 240)
|
|
|
+ }
|
|
|
+
|
|
|
br.Data = resp
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|