更新订单退货

This commit is contained in:
yaooo 2023-08-17 12:02:43 +08:00
parent 0bc83fef6c
commit 316aafec10

View File

@ -4,6 +4,7 @@ declare (strict_types=1);
namespace app\listener;
use think\facade\Db;
use think\facade\Log;
/**
@ -17,6 +18,7 @@ class DeliverRefund
$orderSn = $event['refund']['order']['order_sn'] ?? '';
Log::info('物流退货 - orderId' . $orderId . ' orderSn' . $orderSn);
if ($orderId && $orderSn) {
Db::name('product_order_log')->where('order_id', $orderId)->update(['status' => 2]);
$this->sendLogistics($orderId, $orderSn);
}
}