取消东龙汇超市88折,且隐藏原价

This commit is contained in:
wangxiaowei 2024-11-14 15:52:10 +08:00
parent 66b379e95d
commit 175e48cf6c
3 changed files with 8 additions and 8 deletions

@ -183,7 +183,7 @@ class LocalStoreGoodsCartLogic extends Logic
if ($lstore_id == Config::get('localstore.dlh_lstore_id')) { if ($lstore_id == Config::get('localstore.dlh_lstore_id')) {
foreach ($cart as $k => &$v) { foreach ($cart as $k => &$v) {
$cart[$k]['original_price'] = $v['price']; // $cart[$k]['original_price'] = $v['price'];
$v['price'] = number_format($v['price'] * LocalStoreGoodsLogic::$sale, 2, '.', ''); $v['price'] = number_format($v['price'] * LocalStoreGoodsLogic::$sale, 2, '.', '');
} }
} }

@ -17,8 +17,8 @@ use think\facade\Db;
class LocalStoreGoodsLogic extends Logic class LocalStoreGoodsLogic extends Logic
{ {
// 88折 // 折扣控制
public static $sale = 88 / 100; public static $sale = 1;
// 88折商家ID // 88折商家ID
public static $lstore_id = 138; public static $lstore_id = 138;
@ -68,7 +68,7 @@ class LocalStoreGoodsLogic extends Logic
if ($get['lstore_id'] == Config::get('localstore.dlh_lstore_id')) { if ($get['lstore_id'] == Config::get('localstore.dlh_lstore_id')) {
foreach ($list as $k => &$v) { foreach ($list as $k => &$v) {
$list[$k]['original_price'] = $v['price']; // $list[$k]['original_price'] = $v['price'];
$v['price'] = number_format($v['price'] * self::$sale, 2, '.', ''); $v['price'] = number_format($v['price'] * self::$sale, 2, '.', '');
} }
} }
@ -261,7 +261,7 @@ class LocalStoreGoodsLogic extends Logic
// 东龙汇超时价格 *88折 // 东龙汇超时价格 *88折
if ($get['lstore_id'] == Config::get('localstore.dlh_lstore_id')) { if ($get['lstore_id'] == Config::get('localstore.dlh_lstore_id')) {
$data['original_price'] = $data['price']; // $data['original_price'] = $data['price'];
$data['price'] = number_format($data['price'] * self::$sale, 2, '.', ''); $data['price'] = number_format($data['price'] * self::$sale, 2, '.', '');
} }
@ -283,7 +283,7 @@ class LocalStoreGoodsLogic extends Logic
// 东龙汇超时价格 *88折 // 东龙汇超时价格 *88折
if ($get['lstore_id'] == Config::get('localstore.dlh_lstore_id')) { if ($get['lstore_id'] == Config::get('localstore.dlh_lstore_id')) {
$v['original_price'] = $v['price']; // $v['original_price'] = $v['price'];
$v['price'] = number_format($v['price'] * self::$sale, 2, '.', ''); $v['price'] = number_format($v['price'] * self::$sale, 2, '.', '');
} }
} }

@ -160,7 +160,7 @@ class LocalStoreLogic extends Logic
foreach ($lists as $key => &$value) { foreach ($lists as $key => &$value) {
// 东龙汇超时价格 *88折 // 东龙汇超时价格 *88折
if ($value['lstore_id'] == Config::get('localstore.dlh_lstore_id')) { if ($value['lstore_id'] == Config::get('localstore.dlh_lstore_id')) {
$lists[$key]['original_price'] = $value['price']; // $lists[$key]['original_price'] = $value['price'];
$lists[$key]['price'] = round($value['price'] * LocalStoreGoodsLogic::$sale, 2); $lists[$key]['price'] = round($value['price'] * LocalStoreGoodsLogic::$sale, 2);
} }
@ -245,7 +245,7 @@ class LocalStoreLogic extends Logic
// 东龙汇超时价格 *88折 // 东龙汇超时价格 *88折
if ($value['lstore_id'] == Config::get('localstore.dlh_lstore_id')) { if ($value['lstore_id'] == Config::get('localstore.dlh_lstore_id')) {
foreach ($value['street_goods'] as $k1 => &$v1) { foreach ($value['street_goods'] as $k1 => &$v1) {
$value['street_goods'][$k1]['original_price'] = $v1['price']; // $value['street_goods'][$k1]['original_price'] = $v1['price'];
$v1['price'] = round($v1['price'] * LocalStoreGoodsLogic::$sale, 2); $v1['price'] = round($v1['price'] * LocalStoreGoodsLogic::$sale, 2);
} }
} }