瀏覽代碼

no message

xingzai 1 年之前
父節點
當前提交
c3cd9451c2
共有 1 個文件被更改,包括 7 次插入0 次删除
  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 = "时间格式转换失败"