|
@@ -361,8 +361,9 @@ func (this *YanxuanSpecialController) Save() {
|
|
item.Status = 2
|
|
item.Status = 2
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ var newId int64
|
|
if req.Id == 0 {
|
|
if req.Id == 0 {
|
|
- _, err = models.AddCygxYanxuanSpecial(&item)
|
|
|
|
|
|
+ newId, err = models.AddCygxYanxuanSpecial(&item)
|
|
if err != nil {
|
|
if err != nil {
|
|
br.Msg = "新增失败"
|
|
br.Msg = "新增失败"
|
|
br.ErrMsg = "新增失败,Err:" + err.Error()
|
|
br.ErrMsg = "新增失败,Err:" + err.Error()
|
|
@@ -375,11 +376,13 @@ func (this *YanxuanSpecialController) Save() {
|
|
br.ErrMsg = "保存失败,Err:" + err.Error()
|
|
br.ErrMsg = "保存失败,Err:" + err.Error()
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ newId = int64(req.Id)
|
|
}
|
|
}
|
|
|
|
|
|
br.Ret = 200
|
|
br.Ret = 200
|
|
br.Success = true
|
|
br.Success = true
|
|
br.Msg = "保存成功"
|
|
br.Msg = "保存成功"
|
|
|
|
+ br.Data = newId
|
|
}
|
|
}
|
|
|
|
|
|
// @Title 专栏作者详情
|
|
// @Title 专栏作者详情
|