|
|
@@ -1342,7 +1342,11 @@ class ProductController extends BaseController
|
|
|
$price = $post['price'] ?? 0;
|
|
|
$addPrice = $post['addPrice'] ?? 0;
|
|
|
if ($addPrice > $price) {
|
|
|
- util::fail('加价不能大于售价');
|
|
|
+ //客户添加花材时,经常会出现加价大于售价的怦,这个时候就直接把加价全部设置为0
|
|
|
+ $post['addPrice'] = 0;
|
|
|
+ $post['hjAddPrice'] = 0;
|
|
|
+ $post['skMore'] = 0;
|
|
|
+ //util::fail('加价不能大于售价');
|
|
|
}
|
|
|
$weight = isset($post['weight']) && is_numeric($post['weight']) ? $post['weight'] : 0;
|
|
|
if ($weight <= 0) {
|