|
@@ -432,6 +432,17 @@ func (this *YanxuanSpecialController) Save() {
|
|
|
}
|
|
|
specialId = int(id)
|
|
|
} else {
|
|
|
+ detail, tmpErr := models.GetYanxuanSpecialById(req.Id, sysUser.UserId)
|
|
|
+ if tmpErr != nil {
|
|
|
+ br.Msg = "获取失败"
|
|
|
+ br.ErrMsg = "获取失败, Err:" + tmpErr.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if detail.Status == 2 {
|
|
|
+ br.Msg = "请勿重复提交"
|
|
|
+ br.ErrMsg = "保存失败,专栏内容正在审核"
|
|
|
+ return
|
|
|
+ }
|
|
|
err = models.UpdateYanxuanSpecial(&item)
|
|
|
if err != nil {
|
|
|
br.Msg = "保存失败"
|