配置本地生活东龙汇超时价格88打折
This commit is contained in:
parent
34bcd6e0f0
commit
d65ccbbc90
@ -17,7 +17,7 @@ use think\facade\Db;
|
||||
class LocalStoreGoodsLogic extends Logic
|
||||
{
|
||||
// 88折
|
||||
private static $sale = 88 / 100;
|
||||
public static $sale = 88 / 100;
|
||||
|
||||
// 获取商品列表
|
||||
public static function lists($get)
|
||||
|
||||
@ -16,11 +16,6 @@ use think\facade\Db;
|
||||
|
||||
class LocalStoreLogic extends Logic
|
||||
{
|
||||
public static $close = array(
|
||||
'status' => true,
|
||||
'text' => '因银行及第三方系统维护中,该功能暂时无法适用,请等待通知'
|
||||
);
|
||||
|
||||
private static $local_menu = array(
|
||||
1 => [
|
||||
'id' => 1,
|
||||
@ -162,6 +157,11 @@ class LocalStoreLogic extends Logic
|
||||
->select();
|
||||
|
||||
foreach ($lists as $key => &$value) {
|
||||
// 东龙汇超时价格 *88折
|
||||
if ($value['lstore_id'] == 138) {
|
||||
$lists[$key]['price'] = round($value['price'] * LocalStoreGoodsLogic::$sale, 2);
|
||||
}
|
||||
|
||||
$pic = LocalStoreGoodsPic::where('lsg_id', $value['id'])->field('url')->find();
|
||||
$lists[$key]['url'] = UrlServer::getFileUrl($pic['url']);
|
||||
$lists[$key]['distance'] = number_format($value['distance'], 2, '.', '') . "km";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user