|
|
@@ -1037,7 +1037,6 @@ class StoreOrderRepository extends BaseRepository
|
|
|
{
|
|
|
// 根据订单ID和用户ID(如果存在)查询订单,排除已删除的订单。
|
|
|
$order = $this->dao->searchAll(!$user ? [] : ['uid' => $user->uid])->where('order_id', $id)->where('StoreOrder.is_del', '<>', 1)->find();
|
|
|
- $this->getOrderAward($order);
|
|
|
// 如果订单不存在,则抛出验证异常。
|
|
|
if (!$order)
|
|
|
throw new ValidateException('订单不存在');
|
|
|
@@ -1078,7 +1077,7 @@ class StoreOrderRepository extends BaseRepository
|
|
|
// 触发订单领取后的事件。
|
|
|
event('order.take', compact('order'));
|
|
|
// 订单赠送的分红额度和积分处理还是礼包购买数处理
|
|
|
-// $this->getOrderAward($order);
|
|
|
+ $this->getOrderAward($order);
|
|
|
}
|
|
|
|
|
|
// 订单收货赠送分红额度
|