This commit is contained in:
邓皓元 2018-12-21 18:21:25 +08:00
parent b2a175ab24
commit 2cc5b11ede

View File

@ -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);
}