wesmiler 2 周之前
父節點
當前提交
f4669734f1
共有 1 個文件被更改,包括 2 次插入10 次删除
  1. 2 10
      app/Http/Controllers/Admin/StoreController.php

+ 2 - 10
app/Http/Controllers/Admin/StoreController.php

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