Update PaymentService.php

This commit is contained in:
邹景立 2021-03-17 18:28:31 +08:00
parent cfa163c79c
commit a8ad0d32c2

View File

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