|
|
@@ -81,7 +81,7 @@ class PayNotifyLogic extends BaseLogic
|
|
|
private static function order($orderSn, $extra = [])
|
|
|
{
|
|
|
$order = Order::with(['order_goods'])->where(['sn' => $orderSn])->findOrEmpty();
|
|
|
-
|
|
|
+ outFileLog($order,'prepay','$order');
|
|
|
// 汽泡足迹
|
|
|
event('Footprint', ['type' => FootprintEnum::ORDER_SETTLEMENT, 'user_id' => $order['user_id']]);
|
|
|
|
|
|
@@ -101,9 +101,9 @@ class PayNotifyLogic extends BaseLogic
|
|
|
$award_integral = floor($order['order_amount'] * ($award_ratio / 100));
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ outFileLog($open_award,'prepay','$open_award');
|
|
|
//更新订单状态
|
|
|
- Order::update([
|
|
|
+ $ret = Order::update([
|
|
|
'pay_status' => PayEnum::ISPAID,
|
|
|
'pay_time' => time(),
|
|
|
// 自提变为待收货
|
|
|
@@ -112,7 +112,7 @@ class PayNotifyLogic extends BaseLogic
|
|
|
'award_integral_event' => $award_event ?? 0,
|
|
|
'award_integral' => $award_integral ?? 0
|
|
|
], ['id' => $order['id']]);
|
|
|
-
|
|
|
+ outFileLog($ret,'prepay','$ret');
|
|
|
// 秒杀订单更新销售数据
|
|
|
if ($order['order_type'] == OrderEnum::SECKILL_ORDER) {
|
|
|
$orderGoods = OrderGoods::where('order_id', $order['id'])->findOrEmpty()->toArray();
|