From 54d21c4bac92c1242c247fe3051b6cfa7c1bc8fb Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Fri, 18 Oct 2024 11:51:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E7=94=9F=E6=B4=BB=E5=BA=97?= =?UTF-8?q?=E9=93=BA=E6=B7=BB=E5=8A=A0=E5=8F=AF=E5=85=B3=E9=97=AD=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/LocalStore.php | 6 +++++- app/api/logic/LocalStoreLogic.php | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/api/controller/LocalStore.php b/app/api/controller/LocalStore.php index b4a958a0..6bdae6b0 100755 --- a/app/api/controller/LocalStore.php +++ b/app/api/controller/LocalStore.php @@ -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); diff --git a/app/api/logic/LocalStoreLogic.php b/app/api/logic/LocalStoreLogic.php index 6664ed6e..bd07d375 100644 --- a/app/api/logic/LocalStoreLogic.php +++ b/app/api/logic/LocalStoreLogic.php @@ -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,