|
|
@@ -7,6 +7,7 @@ use biz\goods\services\GoodsStyleService;
|
|
|
use biz\merchant\services\MerchantService;
|
|
|
use common\components\business;
|
|
|
use common\components\stringUtil;
|
|
|
+use common\components\util;
|
|
|
use Yii;
|
|
|
use biz\base\classes\BaseClass;
|
|
|
|
|
|
@@ -71,7 +72,7 @@ class GoodsClass extends BaseClass
|
|
|
$data['shopImg'] = json_encode($data['shopImg']);
|
|
|
$goodsInfo = self::add($data);
|
|
|
$id = $goodsInfo['id'];
|
|
|
-
|
|
|
+
|
|
|
//处理分类
|
|
|
$hasCategoryIdList = CategoryClass::getCategoryIdList($merchantId);
|
|
|
$diff = array_diff($categoryIdList, $hasCategoryIdList);
|