|
|
@@ -14,7 +14,7 @@ class CpService extends BaseService
|
|
|
//从平台导入产品 ssh 20240227
|
|
|
public static function addPtCp($ptCp, $currentShop)
|
|
|
{
|
|
|
- CpClass::importPtCp($ptCp, $currentShop);
|
|
|
+ $shopCp = CpClass::importPtCp($ptCp, $currentShop);
|
|
|
if (isset($currentShop->default) && $currentShop->default == 1) {
|
|
|
$sjId = $currentShop->sjId ?? 0;
|
|
|
$shopList = ShopClass::getAllByCondition(['sjId' => $sjId], null, '*', null, true);
|
|
|
@@ -26,6 +26,7 @@ class CpService extends BaseService
|
|
|
CpClass::importPtCp($ptCp, $shop);
|
|
|
}
|
|
|
}
|
|
|
+ return $shopCp;
|
|
|
}
|
|
|
|
|
|
}
|