|
@@ -242,14 +242,26 @@ func (this *BaseAuthMobileController) Detail() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if userId == 0 || user.CompanyId == 1 {
|
|
|
+ hasPermission = 1
|
|
|
+ resp.Content = utils.InterceptHtmlLength(resp.Content, 240) // 截取前80个字
|
|
|
+ } else {
|
|
|
+ hasPermission, _, _, _, err = services.GetUserHasPermissionArticle(user)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "获取信息失败"
|
|
|
+ br.ErrMsg = "判断是否已申请过试用失败,Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
resp.HasPermission = hasPermission
|
|
|
//if userId == 0 {
|
|
|
- // resp.Content = utils.InterceptHtmlLength(resp.Content, 240) // 截取前80个字
|
|
|
+
|
|
|
+ //}
|
|
|
+ //if hasPermission != 0 && hasPermission != 1 {
|
|
|
+ // //resp.Content = utils.InterceptHtmlLength(resp.Content, 240) // 截取前80个字
|
|
|
+ // resp.Content = ""
|
|
|
//}
|
|
|
- if hasPermission != 0 && hasPermission != 1 {
|
|
|
- //resp.Content = utils.InterceptHtmlLength(resp.Content, 240) // 截取前80个字
|
|
|
- resp.Content = ""
|
|
|
- }
|
|
|
br.Data = resp
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|