rdluck před 4 roky
rodič
revize
bbafceccd2
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  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