diff --git a/app/store/controller/Goods.php b/app/store/controller/Goods.php index d5df75ee..06c5ae32 100644 --- a/app/store/controller/Goods.php +++ b/app/store/controller/Goods.php @@ -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; /** * 商品管理控制器 @@ -873,10 +874,12 @@ 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('成功添加线报商品'); diff --git a/app/store/model/goods/Import.php b/app/store/model/goods/Import.php index 08599acc..df2e176b 100644 --- a/app/store/model/goods/Import.php +++ b/app/store/model/goods/Import.php @@ -289,7 +289,7 @@ class Import extends ImportModel GoodsCategoryRelModel::updates((int)$value['A'], explode(",", $value['F'])); } - $goodsIds = array_column($execlData, "A") + $goodsIds = array_column($execlData, "A"); // 分批每次导入20条 $limit = 10; // 根据商品总数量计算需要的队列任务数量