|
|
@@ -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);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|