Browse Source

getPrice去掉has('product')

master
李可松 4 years ago
parent
commit
368bb22df9
  1. 1
      app/Http/Controllers/Api/OrderController.php

1
app/Http/Controllers/Api/OrderController.php

@ -418,7 +418,6 @@ class OrderController extends Controller
} }
$ap = AgentProduct::with(['coupon:agent_product_id,type,detail,agent_id,tag,start_at,end_at']) $ap = AgentProduct::with(['coupon:agent_product_id,type,detail,agent_id,tag,start_at,end_at'])
->has('product')
->find($formData['id'], ['id', 'price', 'original_price', 'product_id', 'title', 'pictures', 'earnest', 'earnest_timeout', 'deposit', 'deposit_timeout']); ->find($formData['id'], ['id', 'price', 'original_price', 'product_id', 'title', 'pictures', 'earnest', 'earnest_timeout', 'deposit', 'deposit_timeout']);
if (!$ap) { if (!$ap) {

Loading…
Cancel
Save