Parcourir la source

修复直接支付导致的问题

chenxiqiang il y a 6 ans
Parent
révision
b7afdbc8da

+ 3
- 2
manage-server/app/Http/Controllers/ProductOrderController.php Voir le fichier

@@ -63,8 +63,9 @@ class ProductOrderController extends Controller
63 63
                         "product_photo" => $product->photo
64 64
                     ]);
65 65
                 $shopcar = Shopcar::where("wechat_id", $wechat_id)->where("product_id", $id)->first();
66
-                $shopcar->delete();
67
-
66
+                if ($shopcar) {
67
+                    $shopcar->delete();
68
+                }
68 69
             }
69 70
             $productOrder->price = $total;
70 71
             $productOrder->save();

Loading…
Annuler
Enregistrer