zengyyh 4 months ago
parent 1e8f03ef89
commit b449c5c983
  1. 5
      app/store/controller/Goods.php
  2. 2
      app/store/model/goods/Import.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('成功添加线报商品');

@ -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;
// 根据商品总数量计算需要的队列任务数量

Loading…
Cancel
Save