|
|
|
@ -28,6 +28,7 @@ use app\common\service\Jd; |
|
|
|
|
use app\common\model\wxapp\Setting as WxappSettingModel; |
|
|
|
|
use EasyWeChat\Factory; |
|
|
|
|
use app\common\model\PriceSet; |
|
|
|
|
use think\Request; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 商品管理控制器 |
|
|
|
@ -874,9 +875,11 @@ class Goods extends Controller |
|
|
|
|
public function updateGoodsTipoff(int $id) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$model = new ModelTipoff; |
|
|
|
|
$postData = $this->postForm("form", false); |
|
|
|
|
|
|
|
|
|
if ($model->addGoods($id, $this->postForm()) === false) { |
|
|
|
|
if ($model->addGoods($id, $postData) === false) { |
|
|
|
|
return $this->renderError($model->getError()); |
|
|
|
|
} |
|
|
|
|
return $this->renderSuccess('成功添加线报商品'); |
|
|
|
|