|
|
|
@ -414,7 +414,7 @@ class Collector extends BaseService |
|
|
|
|
* @throws \think\db\exception\DbException |
|
|
|
|
* @throws \think\db\exception\ModelNotFoundException |
|
|
|
|
*/ |
|
|
|
|
public function collector(string $url, int $storeId): array |
|
|
|
|
public function collector1(string $url, int $storeId): array |
|
|
|
|
{ |
|
|
|
|
// 获取商品来源 |
|
|
|
|
$store = $this->getStore($url); |
|
|
|
@ -430,7 +430,7 @@ class Collector extends BaseService |
|
|
|
|
|
|
|
|
|
// echo "<pre>"; |
|
|
|
|
// print_r($item); |
|
|
|
|
//exit(); |
|
|
|
|
// exit(); |
|
|
|
|
$item['goods_sku_no'] = $itemId; |
|
|
|
|
return $item; |
|
|
|
|
} |
|
|
|
@ -444,7 +444,7 @@ class Collector extends BaseService |
|
|
|
|
* @throws \think\db\exception\DbException |
|
|
|
|
* @throws \think\db\exception\ModelNotFoundException |
|
|
|
|
*/ |
|
|
|
|
public function collector1(string $url, int $storeId): array |
|
|
|
|
public function collector(string $url, int $storeId): array |
|
|
|
|
{ |
|
|
|
|
// 获取商品来源 |
|
|
|
|
$store = $this->getStore($url); |
|
|
|
@ -565,6 +565,7 @@ class Collector extends BaseService |
|
|
|
|
'newSpecList' => [], |
|
|
|
|
'newSkuList' => [], |
|
|
|
|
'store_id' => $storeId, |
|
|
|
|
'merchant_id' => $form['merchant_id'] ?? 0, |
|
|
|
|
]; |
|
|
|
|
if (isset($form['channel'])) { |
|
|
|
|
$data['channel'] = $form['channel']; |
|
|
|
@ -638,6 +639,7 @@ class Collector extends BaseService |
|
|
|
|
'newSpecList' => [], |
|
|
|
|
'newSkuList' => [], |
|
|
|
|
'store_id' => $storeId, |
|
|
|
|
'merchant_id' => $form['merchant_id'] ?? 0, |
|
|
|
|
]; |
|
|
|
|
if (isset($form['channel'])) { |
|
|
|
|
$data['channel'] = $form['channel']; |
|
|
|
|