diff --git a/app/Http/Controllers/IndustryProductWxpay.php b/app/Http/Controllers/IndustryProductWxpay.php index 88f77e3..6c5638f 100644 --- a/app/Http/Controllers/IndustryProductWxpay.php +++ b/app/Http/Controllers/IndustryProductWxpay.php @@ -70,7 +70,7 @@ class IndustryProductWxpay try { //增加销量,库存在拍下时已经减了 IndustryProduct::query() - ->where('id', $order->product_id) + ->where('id', $order->industry_product_id) ->increment('sale', $order->num); $old_status = $order->status; @@ -123,7 +123,7 @@ class IndustryProductWxpay $fail('Unknown error 2'); }); } catch (InvalidSignException | Exception $e) { - return 'error' . $e->getFile() . $e->getMessage() . $e->getLine(); + return 'error'; } return $response;