xingzai hace 1 año
padre
commit
c3cd9451c2
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      controllers/cygx/micro_roadshow.go

+ 7 - 0
controllers/cygx/micro_roadshow.go

@@ -223,6 +223,13 @@ func (this *MicroRoadshowController) Add() {
 		return
 	}
 
+	charInfo, errCategory := cygx.GetCategoryInfoById(nameItem.PermissionId)
+	if errCategory != nil {
+		br.Msg = "获取品种信息失败"
+		br.ErrMsg = "获取品种信息失败,Err:" + errCategory.Error()
+		return
+	}
+	nameItem.PermissionName = charInfo.PermissionName
 	publishDate, err := time.Parse(utils.FormatDate, req.PublishDate)
 	if err != nil {
 		br.Msg = "时间格式转换失败"