rdluck 4 роки тому
батько
коміт
bbafceccd2
1 змінених файлів з 4 додано та 1 видалено
  1. 4 1
      controllers/article.go

+ 4 - 1
controllers/article.go

@@ -144,6 +144,10 @@ func (this *ArticleController) Detail() {
 		}
 	}
 Loop:
+	if hasPermission !=1{
+		detail.Body=""
+		detail.BodyText=""
+	}
 	resp := new(models.ArticleDetailResp)
 	resp.HasPermission = hasPermission
 	resp.HasFree = hasFree
@@ -269,7 +273,6 @@ func (this *ArticleController) InterviewApply() {
 		item.Status = "待邀请"
 		item.Sort = 1
 		item.ArticleTitle = article.Title
-		//item.InterviewTime = time.Now()
 		item.CreateTime = time.Now()
 		item.ModifyTime = time.Now()
 		item.ArticleIdMd5 = article.ArticleIdMd5