extends
This commit is contained in:
parent
b2a175ab24
commit
2cc5b11ede
@ -142,7 +142,10 @@ class OrderService extends Service
|
||||
throw new NotExistException('订单不存在或已删除');
|
||||
}
|
||||
|
||||
$node->extends = array_merge($node->extends, $attributes['extends']);
|
||||
if (!empty($attributes['extends']) && is_array($attributes['extends'])) {
|
||||
$node->extends = array_merge($node->extends ?? [], $attributes['extends']);
|
||||
}
|
||||
|
||||
|
||||
$this->orderRepository->setModel($node)->update($attributes);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user