修复:商户后台添加商品时 报错,导致商品添加失败的问题
This commit is contained in:
parent
9c5a923656
commit
aa1bd8ac0a
|
|
@ -668,11 +668,11 @@ class ProductRepository extends BaseRepository
|
|||
// if(isset($value['value_id']) && $value['value_id'] !== '' && isset($value['copy_value_id']) && $value['copy_value_id'] !== '') $array['copy_value_id'] = $value['value_id'];
|
||||
|
||||
if($isWith){
|
||||
$array['copy_unique'] = $value['unique'];
|
||||
$array['copy_value_id'] = $value['value_id'];
|
||||
$array['copy_unique'] = $value['unique'] ?? '';
|
||||
$array['copy_value_id'] = $value['value_id'] ?? '';
|
||||
}else{
|
||||
$array['copy_unique'] = $value['copy_unique'];
|
||||
$array['copy_value_id'] = $value['copy_value_id'];
|
||||
$array['copy_unique'] = $value['copy_unique'] ?? '';
|
||||
$array['copy_value_id'] = $value['copy_value_id'] ?? '';
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue