|
@@ -94,6 +94,14 @@ class ShopGoodsLogic
|
|
|
$specAttrId = isset($specRelation[0])?ShopGoodsSpecType::getPidById($specRelation[0]['spec_id']):0;
|
|
|
if ($data['is_exist_many_spec'] == 0) {
|
|
|
$data['defaultSku'] = ShopGoodsSpec::getGoodsSpecByGoodId($id);
|
|
|
+ if(empty($data['defaultSku'])){
|
|
|
+ $data['defaultSku'] = [
|
|
|
+ 'price'=> 0.00,
|
|
|
+ 'original_price'=>0.00,
|
|
|
+ 'cost_price'=>0.00,
|
|
|
+ 'stock'=> 0,
|
|
|
+ ];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
$hot_keywords = ShopHotKeywordsLogic::getCacheList();
|