|
@@ -31,8 +31,8 @@ class product_importer
|
|
private $cls_tree;
|
|
private $cls_tree;
|
|
private $down_path;
|
|
private $down_path;
|
|
|
|
|
|
- const store_name = "美宝莲";
|
|
|
|
- const store_id = 1;
|
|
|
|
|
|
+ const store_name = "熊猫美妆";
|
|
|
|
+ const store_id = 6;
|
|
|
|
|
|
public function __construct()
|
|
public function __construct()
|
|
{
|
|
{
|
|
@@ -409,11 +409,11 @@ class product_importer
|
|
|
|
|
|
$prop_imgs = $item['prop_imgs']['prop_img'];
|
|
$prop_imgs = $item['prop_imgs']['prop_img'];
|
|
if(!empty($prop_imgs)) {
|
|
if(!empty($prop_imgs)) {
|
|
- $this->upload_imges($prop_imgs,1);
|
|
|
|
|
|
+ $this->upload_imges($prop_imgs,self::store_id);
|
|
}
|
|
}
|
|
|
|
|
|
$imgs = $this->reset_imgs($item['item_imgs']['item_img']);
|
|
$imgs = $this->reset_imgs($item['item_imgs']['item_img']);
|
|
- $this->upload_imges($imgs,1);
|
|
|
|
|
|
+ $this->upload_imges($imgs,self::store_id);
|
|
|
|
|
|
if(empty($prop_imgs))
|
|
if(empty($prop_imgs))
|
|
{
|
|
{
|