|
@@ -65,6 +65,7 @@ class StoreProductAttr extends BaseModel
|
|
|
if (!isset($value['pic']) || empty($value['pic']))
|
|
if (!isset($value['pic']) || empty($value['pic']))
|
|
|
return self::setErrorInfo('请上传商品图片');
|
|
return self::setErrorInfo('请上传商品图片');
|
|
|
foreach ($value['detail'] as $attrName => $attrValue) {
|
|
foreach ($value['detail'] as $attrName => $attrValue) {
|
|
|
|
|
+ unset($value['detail'][$attrName]);
|
|
|
$attrName = trim($attrName);
|
|
$attrName = trim($attrName);
|
|
|
$attrValue = trim($attrValue);
|
|
$attrValue = trim($attrValue);
|
|
|
if (!in_array($attrName, $attrNameList, true)) return self::setErrorInfo($attrName . '规则不存在');
|
|
if (!in_array($attrName, $attrNameList, true)) return self::setErrorInfo($attrName . '规则不存在');
|