wesmiler 1 неделя назад
Родитель
Сommit
28cd143718
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      app/Http/Controllers/Admin/GoodsCategoryController.php

+ 5 - 1
app/Http/Controllers/Admin/GoodsCategoryController.php

@@ -58,7 +58,11 @@ class GoodsCategoryController extends Backend
      */
     public function edit()
     {
-        $this->service->edit();
+        if ($this->service->edit()) {
+            return message($this->service->getError(), true);
+        } else {
+            return message($this->service->getError(), false);
+        }
     }
 
     /**