Browse Source

industry_product_id

master
李可松 4 years ago
parent
commit
21444fb81e
  1. 4
      app/Http/Controllers/IndustryProductWxpay.php

4
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;

Loading…
Cancel
Save