|
@@ -97,8 +97,7 @@ class StoreController extends Backend
|
|
|
*/
|
|
*/
|
|
|
public function add()
|
|
public function add()
|
|
|
{
|
|
{
|
|
|
- $params = request()->post();
|
|
|
|
|
- if ($this->service->edit($params)) {
|
|
|
|
|
|
|
+ if ($this->service->edit()) {
|
|
|
return message($this->service->getError(), true);
|
|
return message($this->service->getError(), true);
|
|
|
} else {
|
|
} else {
|
|
|
return message($this->service->getError(), false);
|
|
return message($this->service->getError(), false);
|
|
@@ -111,8 +110,7 @@ class StoreController extends Backend
|
|
|
*/
|
|
*/
|
|
|
public function edit()
|
|
public function edit()
|
|
|
{
|
|
{
|
|
|
- $params = request()->post();
|
|
|
|
|
- if ($this->service->edit($params)) {
|
|
|
|
|
|
|
+ if ($this->service->edit()) {
|
|
|
return message($this->service->getError(), true);
|
|
return message($this->service->getError(), true);
|
|
|
} else {
|
|
} else {
|
|
|
return message($this->service->getError(), false);
|
|
return message($this->service->getError(), false);
|
|
@@ -125,8 +123,7 @@ class StoreController extends Backend
|
|
|
*/
|
|
*/
|
|
|
public function delete()
|
|
public function delete()
|
|
|
{
|
|
{
|
|
|
- $params = request()->post();
|
|
|
|
|
- if ($this->service->delete($params)) {
|
|
|
|
|
|
|
+ if ($this->service->delete()) {
|
|
|
return message($this->service->getError(), true);
|
|
return message($this->service->getError(), true);
|
|
|
} else {
|
|
} else {
|
|
|
return message($this->service->getError(), false);
|
|
return message($this->service->getError(), false);
|