...
|
...
|
@@ -418,7 +418,7 @@ class Classification extends Api |
|
|
$item['line_price'] = round($goods_spec['line_price'], 2);
|
|
|
//判断是否打折
|
|
|
$item['is_discount'] = 'is';
|
|
|
if (empty($goods_spec['discount'])) {
|
|
|
if (empty($goods_spec['discount']) || $goods_spec['discount'] == 10) {
|
|
|
$item['is_discount'] = 'no';
|
|
|
}
|
|
|
$item['discount'] = $goods_spec['discount'] . '折';
|
...
|
...
|
@@ -459,7 +459,7 @@ class Classification extends Api |
|
|
$spec_value['cart_number'] = $number ?? 0;
|
|
|
//判断是否打折
|
|
|
$spec_value['is_discount'] = 'is';
|
|
|
if (empty($spec_value['discount'])) {
|
|
|
if (empty($spec_value['discount']) || $spec_value['discount'] == 10) {
|
|
|
$spec_value['is_discount'] = 'no';
|
|
|
}
|
|
|
$spec_value['discount'] = $spec_value['discount'] . '折';
|
...
|
...
|
@@ -489,7 +489,7 @@ class Classification extends Api |
|
|
$item['line_price'] = round($goods_spec['line_price'], 2);
|
|
|
//判断是否打折
|
|
|
$item['is_discount'] = 'is';
|
|
|
if (empty($goods_spec['discount'])) {
|
|
|
if (empty($goods_spec['discount']) || $goods_spec['discount'] == 10) {
|
|
|
$item['is_discount'] = 'no';
|
|
|
}
|
|
|
$item['discount'] = $goods_spec['discount'] . '折';
|
...
|
...
|
@@ -531,7 +531,7 @@ class Classification extends Api |
|
|
$spec_value['cart_number'] = $number ?? 0;
|
|
|
//判断是否打折
|
|
|
$spec_value['is_discount'] = 'is';
|
|
|
if (empty($spec_value['discount'])) {
|
|
|
if (empty($spec_value['discount']) || $spec_value['discount'] == 10) {
|
|
|
$spec_value['is_discount'] = 'no';
|
|
|
}
|
|
|
$spec_value['discount'] = $spec_value['discount'] . '折';
|
...
|
...
|
|