|
|
|
@ -433,7 +433,7 @@ class OrderController extends Controller |
|
|
|
else if($formData['pay_type'] == PayType::EARNEST_PAY) { |
|
|
|
$ap->final_price = $ap->earnest * $formData['num']; |
|
|
|
} else { |
|
|
|
$spec = AgentProductSpec::where('product_id', $formData['id'])->find($formData['spec_id']); |
|
|
|
$spec = AgentProductSpec::where('agent_product_id', $formData['id'])->find($formData['spec_id']); |
|
|
|
if (!$spec) { |
|
|
|
return $this->error('你选择的产品规格不存在'); |
|
|
|
} |
|
|
|
|