- ignore 833 err for mtwm.RetailCatUpdate

This commit is contained in:
gazebo
2018-12-07 11:19:31 +08:00
parent eba1b045f6
commit 454e1df040

View File

@@ -33,6 +33,13 @@ func (a *API) RetailCatUpdate(poiCode, originName, name, secondaryName string, s
params["secondary_category_name"] = secondaryName
}
_, err = a.AccessAPI("retailCat/update", false, params)
if err != nil {
if err2, ok := err.(*utils.ErrorWithCode); ok {
if err2.IntCode() == 833 {
return nil
}
}
}
return err
}