配置本地生活东龙汇超时价格88打折
This commit is contained in:
parent
c7e2ce9c81
commit
af31549a68
@ -16,6 +16,9 @@ use think\facade\Db;
|
||||
|
||||
class LocalStoreGoodsLogic extends Logic
|
||||
{
|
||||
// 88折
|
||||
private static $sale = 88 / 100;
|
||||
|
||||
// 获取商品列表
|
||||
public static function lists($get)
|
||||
{
|
||||
@ -254,6 +257,11 @@ class LocalStoreGoodsLogic extends Logic
|
||||
'audit_status' => LocalStoreGoodsEnum::AUDIT_STATUS_OK,
|
||||
])->find()->toArray();
|
||||
|
||||
// 东龙汇超时价格 *88折
|
||||
if ($get['lstore_id'] == 138) {
|
||||
$data['price'] = $data['price'] * self::$sale;
|
||||
}
|
||||
|
||||
if ($get['lstore_id'] != 138) {
|
||||
$data['close'] = array(
|
||||
'status' => ConfigServer::get('website', 'show_local_notice'),
|
||||
@ -269,6 +277,11 @@ class LocalStoreGoodsLogic extends Logic
|
||||
|
||||
foreach ($data['item'] as &$v) {
|
||||
$v['image'] = Config::get('aliyunoss.domain') . $v['image'];
|
||||
|
||||
// 东龙汇超时价格 *88折
|
||||
if ($get['lstore_id'] == 138) {
|
||||
$v['price'] = $v['price'] * self::$sale;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user