|
@@ -218,8 +218,9 @@ func EditClarksonsIndex(indexId, classifyId int) (baseFromClarksonsIndex *data_m
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if classifyId > 0 {
|
|
if classifyId > 0 {
|
|
- classify, err := data_manage.GetClarksonsClassifyById(classifyId)
|
|
|
|
- if err != nil {
|
|
|
|
|
|
+ classify, e := data_manage.GetClarksonsClassifyById(classifyId)
|
|
|
|
+ if e != nil {
|
|
|
|
+ err = e
|
|
if err.Error() == utils.ErrNoRow() {
|
|
if err.Error() == utils.ErrNoRow() {
|
|
errMsg = `该分类不存在或已删除`
|
|
errMsg = `该分类不存在或已删除`
|
|
err = nil
|
|
err = nil
|