作者 tangxvhui

bug 修复

@@ -156,9 +156,14 @@ func EditAchievement(editData *protocol.RequestEditAchievement, companyid int64) @@ -156,9 +156,14 @@ func EditAchievement(editData *protocol.RequestEditAchievement, companyid int64)
156 achievementData.GraspScore = editData.GraspScore 156 achievementData.GraspScore = editData.GraspScore
157 achievementData.UserGraspScore = editData.UserGraspScore 157 achievementData.UserGraspScore = editData.UserGraspScore
158 achievementData.GraspScoreRemain = newRamain 158 achievementData.GraspScoreRemain = newRamain
  159 + if imgData, err := json.Marshal(editData.Images); err == nil {
  160 + achievementData.Images = string(imgData)
  161 + } else {
  162 + achievementData.Images = "[]"
  163 + }
159 cols := []string{ 164 cols := []string{
160 "UpdateAt", "ChanceTypeId", "AuditTemplateId", "SourceContent", "GraspScore", 165 "UpdateAt", "ChanceTypeId", "AuditTemplateId", "SourceContent", "GraspScore",
161 - "UserGraspScore", "GraspScoreRemain", 166 + "UserGraspScore", "GraspScoreRemain", "Images",
162 } 167 }
163 o := orm.NewOrm() 168 o := orm.NewOrm()
164 o.Begin() 169 o.Begin()