Update PaymentService.php

This commit is contained in:
邹景立 2021-03-09 18:30:52 +08:00
parent 600b12495d
commit e8ec5a846d

View File

@ -288,7 +288,9 @@ abstract class PaymentService
if (empty($data['payment_type'])) unset($data['payment_type']);
$this->app->db->name('ShopOrder')->where($map)->update($data);
// 触发订单更新事件
$this->app->event->trigger('ShopOrderPayment', $orderNo);
if ($status === 4) {
$this->app->event->trigger('ShopOrderPayment', $orderNo);
}
return true;
}