root %!s(int64=5) %!d(string=hai) anos
pai
achega
2cb86bf17e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {
                 if (!$order) {
                     abort(500, 'fail');
                     abort(500, 'fail');
                 }
                 }
-                if ($order->status !== 0) {
+                if ($order->status == 1) {
                     die('success');
                     die('success');
                 }
                 }
                 $order->status = 1;
                 $order->status = 1;