|
@@ -725,8 +725,9 @@ func MoveClarksonsClassifyV2(classifyId, parentClassifyId, prevClassifyId, nextC
|
|
|
classifyInfo.ModifyTime = time.Now()
|
|
|
updateCol = append(updateCol, "Sort", "ModifyTime")
|
|
|
} else {
|
|
|
- firstClassify, err := data_manage.GetFirstClarksonsClassifyByParentId(classifyInfo.ParentId)
|
|
|
- if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
+ firstClassify, e := data_manage.GetFirstClarksonsClassifyByParentId(classifyInfo.ParentId)
|
|
|
+ if e != nil && e.Error() != utils.ErrNoRow() {
|
|
|
+ err = e
|
|
|
errMsg = "移动失败"
|
|
|
err = errors.New("获取获取当前父级分类下的排序第一条的分类信息失败,Err:" + err.Error())
|
|
|
return
|