Explorar o código

增加系统配置接口

kobe6258 hai 4 meses
pai
achega
32e9d95679
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      controllers/analyst.go

+ 3 - 0
controllers/analyst.go

@@ -240,6 +240,9 @@ func (this *AnalystController) Edit() {
 		analyst.HeadImgUrl = req.HeadImgUrl
 	}
 	analyst.Introduction = req.Introduction
+	analyst.Position = req.Position
+	analyst.ProfessionalCertificate = req.ProfessionalCertificate
+	analyst.InvestmentCertificate = req.InvestmentCertificate
 	analyst.UpdatedTime = time.Now()
 	err = analyst.Update([]string{"HeadImgURL", "Introduction", "Position", "InvestmentCertificate", "ProfessionalCertificate", "UpdatedTime"})
 	if err != nil {