Update
parent
dcf945f0d3
commit
7ecedc43df
|
|
@ -706,7 +706,7 @@ class OrderService
|
|||
*/
|
||||
public function paySuccess(string $sn, array $params = []): void
|
||||
{
|
||||
$order = Order::where('sn', $sn)->findOrFail();
|
||||
$order = Order::where('sn', $sn)->firstOrFail();
|
||||
|
||||
if (! $order->isPending()) {
|
||||
throw new BizException('订单状态不是待支付');
|
||||
|
|
|
|||
Loading…
Reference in New Issue