From 1c24ca1f6054ff374b787ba8c7da0e48a6a4f465 Mon Sep 17 00:00:00 2001 From: lqmac Date: Thu, 24 Oct 2024 22:27:18 +0800 Subject: [PATCH] 1 --- app/store/controller/Store.php | 2 +- config/module.php | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/store/controller/Store.php b/app/store/controller/Store.php index 7a186be7..29c60f5a 100644 --- a/app/store/controller/Store.php +++ b/app/store/controller/Store.php @@ -80,7 +80,7 @@ class Store extends Controller public function edit(int $storeId): Json { $params = $this->postForm(); - + unset($params['effective_time']); // 更新记录 if (!AdminStoreModel::withoutGlobalScope()->where('store_id', $storeId)->update($params)) { return $this->renderError('更新失败'); diff --git a/config/module.php b/config/module.php index b5e0944b..8e7882b7 100755 --- a/config/module.php +++ b/config/module.php @@ -28,11 +28,11 @@ return [ ], '' => [ 'name' => '商户管理', - 'required' => true, + 'required' => false, 'children' => [ - 'merchant' => ['name' => '商户管理', 'enable' => true], - 'merchant-manage' => ['name' => '商户列表', 'enable' => true], - 'merchant-cate' => ['name' => '商户分类', 'enable' => true], + 'merchant' => ['name' => '商户管理', 'enable' => false], + 'merchant-manage' => ['name' => '商户列表', 'enable' => false], + 'merchant-cate' => ['name' => '商户分类', 'enable' => false], ] ], 'goods' => [ @@ -116,6 +116,7 @@ return [ 'children' => [ 'customer' => ['name' => '客服设置', 'enable' => true], 'shoplist' => ['name' => '商城列表', 'enable' => false], + 'openshop' => ['name' => '开通商城', 'enable' => false], 'storage' => ['name' => '上传设置', 'enable' => true], 'printer' => ['name' => '小票打印机', 'enable' => true], ]