|
@@ -1404,7 +1404,7 @@ class StoreOrderRepository extends BaseRepository
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 服务中心核销节能油
|
|
|
|
|
|
|
+// 服务中心核销节能油进行分红
|
|
|
public function confirmOil($order)
|
|
public function confirmOil($order)
|
|
|
{
|
|
{
|
|
|
$price = app()->make(AwardIntegralPriceRepository::class)->awardIntegralPrice(); //分红积分价格
|
|
$price = app()->make(AwardIntegralPriceRepository::class)->awardIntegralPrice(); //分红积分价格
|
|
@@ -3235,8 +3235,12 @@ class StoreOrderRepository extends BaseRepository
|
|
|
|
|
|
|
|
// 更新订单状态为已核销,并设置核销时间和服务人员ID
|
|
// 更新订单状态为已核销,并设置核销时间和服务人员ID
|
|
|
$order->status = 2;
|
|
$order->status = 2;
|
|
|
|
|
+ $order->verify_uid = 2;
|
|
|
$order->verify_status = $stauts;
|
|
$order->verify_status = $stauts;
|
|
|
$order->verify_time = date('Y-m-d H:i:s');
|
|
$order->verify_time = date('Y-m-d H:i:s');
|
|
|
|
|
+ if ($order->verify_service_id>0&&$order->verify_service_id!=$serviceId){
|
|
|
|
|
+ throw new ValidateException('部分核销过的订单不能换人核销');
|
|
|
|
|
+ }
|
|
|
$order->verify_service_id = $serviceId;
|
|
$order->verify_service_id = $serviceId;
|
|
|
|
|
|
|
|
// 触发订单核销前的事件
|
|
// 触发订单核销前的事件
|
|
@@ -3268,7 +3272,9 @@ class StoreOrderRepository extends BaseRepository
|
|
|
$storeOrderStatusRepository->createAdminLog($orderStatus);
|
|
$storeOrderStatusRepository->createAdminLog($orderStatus);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
|
|
+ if ($stauts == 2){
|
|
|
|
|
+ self::confirmOil($order);
|
|
|
|
|
+ }
|
|
|
// 触发订单核销完成后的事件
|
|
// 触发订单核销完成后的事件
|
|
|
// event('order.verify', compact('order'));
|
|
// event('order.verify', compact('order'));
|
|
|
// 触发小程序发货管理事件,用于后续的发货操作
|
|
// 触发小程序发货管理事件,用于后续的发货操作
|