配置本地生活公告

This commit is contained in:
wangxiaowei 2024-10-19 11:35:40 +08:00
parent a52baade83
commit 55ce5b5c3e
2 changed files with 9 additions and 2 deletions

@ -276,7 +276,10 @@ class LocalStore extends Api
$result['show_bill'] = false;
} else {
// TODO 除了东龙汇超市其它店铺都要暂时关闭
$result['close'] = LocalStoreLogic::$close;
$result['close'] = array(
'status' => ConfigServer::get('website', 'local_notice'),
'text' => ConfigServer::get('website', 'show_local_notice')
);
}
return JsonServer::success('成功获取', $result);

@ -10,6 +10,7 @@ use app\common\model\localstore\LocalStoreGoodsItem;
use app\common\model\localstore\LocalStoreGoodsSpec;
use app\common\model\localstore\LocalStoreGoodsSpecValue;
use app\common\enum\LocalStoreGoodsEnum;
use app\common\server\ConfigServer;
use think\facade\Config;
use think\facade\Db;
@ -254,7 +255,10 @@ class LocalStoreGoodsLogic extends Logic
])->find()->toArray();
if ($get['lstore_id'] != 138) {
$data['close'] = LocalStoreLogic::$close;
$data['close'] = array(
'status' => ConfigServer::get('website', 'local_notice'),
'text' => ConfigServer::get('website', 'show_local_notice')
);
}
// 查找多规格