root 5 năm trước cách đây
mục cha
commit
2cb86bf17e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Http/Controllers/Guest/OrderController.php

+ 1 - 1
app/Http/Controllers/Guest/OrderController.php

@@ -28,7 +28,7 @@ class OrderController extends Controller
                 if (!$order) {
                     abort(500, 'fail');
                 }
-                if ($order->status !== 0) {
+                if ($order->status == 1) {
                     die('success');
                 }
                 $order->status = 1;