本地生活店铺添加可关闭状态

This commit is contained in:
wangxiaowei 2024-10-18 11:51:08 +08:00
parent 64c180e53f
commit 54d21c4bac
2 changed files with 10 additions and 1 deletions

@ -269,10 +269,14 @@ class LocalStore extends Api
$result['header_image'] = FileConfig::get('aliyunoss.domain') . 'local_life_shop/' . $result['header_image'];
$result['post_station'] = LocalStorePostStation::where(['lstore_id' => $id, 'is_delete' => 0])->field('id, province, city, area, address, lat, lng, phone')->select()->toArray();
// 东龙汇超市不显示去买单按钮
$result['show_bill'] = true;
if ($id == 138) {
// 东龙汇超市不显示去买单按钮
$result['show_bill'] = false;
} else {
// TODO 除了东龙汇超市其它店铺都要暂时关闭
$result['close'] = LocalStoreLogic::$close;
}
return JsonServer::success('成功获取', $result);

@ -16,6 +16,11 @@ use think\facade\Db;
class LocalStoreLogic extends Logic
{
public static $close = array(
'status' => true,
'text' => '因银行及第三方系统维护中,该功能暂时无法适用,请等待通知'
);
private static $local_menu = array(
1 => [
'id' => 1,