|
|
|
@ -283,7 +283,7 @@ class AgentProductController extends AdminController |
|
|
|
if ($product->status != ProductStatus::ON_SALE) { |
|
|
|
return $form->response()->error('产品ID '. $form->product_id .' 已下架'); |
|
|
|
} else if ($product->stock < $form->stock) { |
|
|
|
return $form->response()->error("供应商当前库存为{$form->stock},你设置的库存不能超过该数值"); |
|
|
|
return $form->response()->error("供应商当前库存为{$product->stock},你设置的库存不能超过该数值"); |
|
|
|
} |
|
|
|
$form->title = $product->title; |
|
|
|
$form->pictures = $product->pictures; |
|
|
|
|