|
|
@ -142,7 +142,7 @@ class User extends Controller |
|
|
|
public function addGoodsSource(): Json |
|
|
|
public function addGoodsSource(): Json |
|
|
|
{ |
|
|
|
{ |
|
|
|
$model = new GoodsSourceModel(); |
|
|
|
$model = new GoodsSourceModel(); |
|
|
|
if (!$model->addSource($this->postForm())) { |
|
|
|
if (!$model->addSource($this->request->param())) { |
|
|
|
return $this->renderSuccess($model->getError() ?: '操作失败'); |
|
|
|
return $this->renderSuccess($model->getError() ?: '操作失败'); |
|
|
|
} |
|
|
|
} |
|
|
|
return $this->renderSuccess('提交成功,请耐心等待'); |
|
|
|
return $this->renderSuccess('提交成功,请耐心等待'); |
|
|
|