|
|
@@ -63,8 +63,6 @@ class PayNotifyLogic extends BaseLogic
|
|
|
{
|
|
|
Db::startTrans();
|
|
|
try {
|
|
|
- outFileLog($action,'prepay','$action');
|
|
|
- outFileLog($orderSn,'prepay','$orderSn');
|
|
|
self::$action($orderSn, $extra);
|
|
|
Db::commit();
|
|
|
return true;
|
|
|
@@ -81,7 +79,6 @@ class PayNotifyLogic extends BaseLogic
|
|
|
private static function order($orderSn, $extra = [])
|
|
|
{
|
|
|
$order = Order::with(['order_goods'])->where(['sn' => $orderSn])->findOrEmpty();
|
|
|
- outFileLog($order,'prepay','$order');
|
|
|
// 汽泡足迹(异常不影响订单事务)
|
|
|
try {
|
|
|
event('Footprint', ['type' => FootprintEnum::ORDER_SETTLEMENT, 'user_id' => $order['user_id']]);
|
|
|
@@ -105,7 +102,7 @@ class PayNotifyLogic extends BaseLogic
|
|
|
$award_integral = floor($order['order_amount'] * ($award_ratio / 100));
|
|
|
}
|
|
|
}
|
|
|
- outFileLog($open_award,'prepay','$open_award');
|
|
|
+// outFileLog($open_award,'prepay','$open_award');
|
|
|
//更新订单状态
|
|
|
$ret = Order::update([
|
|
|
'pay_status' => PayEnum::ISPAID,
|
|
|
@@ -116,7 +113,7 @@ class PayNotifyLogic extends BaseLogic
|
|
|
'award_integral_event' => $award_event ?? 0,
|
|
|
'award_integral' => $award_integral ?? 0
|
|
|
], ['id' => $order['id']]);
|
|
|
- outFileLog($ret,'prepay','$ret');
|
|
|
+// outFileLog($ret,'prepay','$ret');
|
|
|
// 秒杀订单更新销售数据
|
|
|
if ($order['order_type'] == OrderEnum::SECKILL_ORDER) {
|
|
|
$orderGoods = OrderGoods::where('order_id', $order['id'])->findOrEmpty()->toArray();
|
|
|
@@ -210,9 +207,9 @@ class PayNotifyLogic extends BaseLogic
|
|
|
]);
|
|
|
// //更新虚拟订单
|
|
|
try{
|
|
|
- outFileLog(1,'prepay','$ret1');
|
|
|
+// outFileLog(1,'prepay','$ret1');
|
|
|
GoodsVirtualLogic::afterPayVirtualDelivery($order['id']);
|
|
|
- outFileLog(2,'prepay','$ret2');
|
|
|
+// outFileLog(2,'prepay','$ret2');
|
|
|
} catch (\Throwable $e) {
|
|
|
Log::write($e->__toString(), 'FootprintError');
|
|
|
}
|
|
|
@@ -225,7 +222,7 @@ class PayNotifyLogic extends BaseLogic
|
|
|
//
|
|
|
// 自动小票打印
|
|
|
self::orderPrint($order['id']);
|
|
|
- outFileLog(3,'prepay','$ret3');
|
|
|
+// outFileLog(3,'prepay','$ret3');
|
|
|
}
|
|
|
|
|
|
/**
|