kobe6258 hai 8 meses
pai
achega
40beb335a1
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      controllers/analyst.go

+ 2 - 2
controllers/analyst.go

@@ -171,7 +171,7 @@ func (this *AnalystController) List() {
 		analystList = append(analystList, &models.AnalystView{
 			Id:           v.Id,
 			Name:         v.Name,
-			HeadImgURL:   v.HeadImgURL,
+			HeadImgURL:   v.HeadImgUrl,
 			Introduction: v.Introduction,
 			CreatedTime:  v.CreatedTime.Format(time.DateTime),
 		})
@@ -229,7 +229,7 @@ func (this *AnalystController) Edit() {
 		return
 	}
 	if req.HeadImgUrl != `` {
-		analyst.HeadImgURL = req.HeadImgUrl
+		analyst.HeadImgUrl = req.HeadImgUrl
 	}
 	analyst.Introduction = req.Introduction
 	analyst.UpdatedTime = time.Now()