更新
This commit is contained in:
parent
cfd1ddfa27
commit
4a4065c691
@ -563,6 +563,9 @@ class ProductRepository extends BaseRepository
|
||||
*/
|
||||
public function setAttrValue(array $data, int $productId, int $productType, int $isUpdate = 0,int $merId = 0)
|
||||
{
|
||||
if($merId<=0){
|
||||
throw new ValidateException('添加商品商户id不能为0');
|
||||
}
|
||||
$extension_status = systemConfig('extension_status');
|
||||
if ($isUpdate) {
|
||||
$product = app()->make(ProductAttrValueRepository::class)->search(['product_id' => $productId])->select()->toArray();
|
||||
|
Loading…
x
Reference in New Issue
Block a user