소스 검색

no message

xingzai 1 년 전
부모
커밋
2fefba7328
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      controllers/yanxuan_special.go

+ 1 - 0
controllers/yanxuan_special.go

@@ -230,6 +230,7 @@ func (this *YanxuanSpecialController) Detail() {
 		return
 	}
 	if item.UserId != sysUser.UserId && item.Status != 3 && !strings.Contains(cnf.ConfigValue, sysUser.Mobile) {
+		resp.CygxYanxuanSpecialItem = *new(models.CygxYanxuanSpecialItem) // 如果内容不可见,就把内容置空
 		resp.HasPermission = 2
 	}