diff --git a/app/store/controller/Goods.php b/app/store/controller/Goods.php index e63b61af..9f8d1e84 100644 --- a/app/store/controller/Goods.php +++ b/app/store/controller/Goods.php @@ -860,7 +860,7 @@ class Goods extends Controller $model = new ModelTipoff; - if (!$model->addGoods($id,$this->postForm())) { + if ($model->addGoods($id,$this->postForm()) === false) { return $this->renderError($model->getError()); } return $this->renderSuccess('成功添加线报商品');