lqmac 6 months ago
parent f37bc5a237
commit 9e6ddd35d0
  1. 9
      app/common/model/Goods.php
  2. 3
      app/store/controller/Goods.php

@ -496,11 +496,6 @@ class Goods extends BaseModel
$filter[] = ['is_new', '=', intval($param['is_new'])];
}
//gj
if (isset($param['merchantId']) && $param['merchantId']) {
$filter[] = ['merchant_id', '=', $param['merchantId']];
}
if (!empty($param['paihang'])) {
$filter[] = ['paihang', '>', 0];
$query->order('paihang asc');
@ -579,8 +574,8 @@ class Goods extends BaseModel
if (isset($param['is_has_detail']) && $param['is_has_detail'] !== '') {
$filter[] = ['goods.is_has_detail', '=', $params['is_has_detail']];
}
if (isset($param['merchant_id']) && $param['merchant_id'] !== '') {
$filter[] = ['goods.merchant_id', '=', $params['merchant_id']];
if (isset($param['merchantId']) && $param['merchantId'] !== '') {
$filter[] = ['goods.merchant_id', '=', $params['merchantId']];
}
if (isset($param['is_jd_remove']) && $param['is_jd_remove'] !== '') {
$filter[] = ['goods.is_jd_remove', '=', $params['is_jd_remove']];

@ -227,6 +227,9 @@ class Goods extends Controller
$params['store_id'] = $this->storeId;
$perSize = 10000;
$params['page'] = 1;
if ($this->merchantId) {
$params['merchantId'] = $this->merchantId;
}
//$params['channels'] = ['zy'];
// echo "<pre>";
// print_r($params);

Loading…
Cancel
Save