@@ -133,6 +133,7 @@ class FooterService implements FooterServiceInterface
try{
$footer_category = FooterCategory::where('id', $data['id'])->first();
if (!$footer_category) {
+ Db::rollBack();
return Result::error("该底部导航不存在!");
}else{
$result['footer_category'] = FooterCategory::where('id', $data['id'])->delete();