lqmac 1 month ago
parent ece90a9dcf
commit 1c24ca1f60
  1. 2
      app/store/controller/Store.php
  2. 9
      config/module.php

@ -80,7 +80,7 @@ class Store extends Controller
public function edit(int $storeId): Json public function edit(int $storeId): Json
{ {
$params = $this->postForm(); $params = $this->postForm();
unset($params['effective_time']);
// 更新记录 // 更新记录
if (!AdminStoreModel::withoutGlobalScope()->where('store_id', $storeId)->update($params)) { if (!AdminStoreModel::withoutGlobalScope()->where('store_id', $storeId)->update($params)) {
return $this->renderError('更新失败'); return $this->renderError('更新失败');

@ -28,11 +28,11 @@ return [
], ],
'' => [ '' => [
'name' => '商户管理', 'name' => '商户管理',
'required' => true, 'required' => false,
'children' => [ 'children' => [
'merchant' => ['name' => '商户管理', 'enable' => true], 'merchant' => ['name' => '商户管理', 'enable' => false],
'merchant-manage' => ['name' => '商户列表', 'enable' => true], 'merchant-manage' => ['name' => '商户列表', 'enable' => false],
'merchant-cate' => ['name' => '商户分类', 'enable' => true], 'merchant-cate' => ['name' => '商户分类', 'enable' => false],
] ]
], ],
'goods' => [ 'goods' => [
@ -116,6 +116,7 @@ return [
'children' => [ 'children' => [
'customer' => ['name' => '客服设置', 'enable' => true], 'customer' => ['name' => '客服设置', 'enable' => true],
'shoplist' => ['name' => '商城列表', 'enable' => false], 'shoplist' => ['name' => '商城列表', 'enable' => false],
'openshop' => ['name' => '开通商城', 'enable' => false],
'storage' => ['name' => '上传设置', 'enable' => true], 'storage' => ['name' => '上传设置', 'enable' => true],
'printer' => ['name' => '小票打印机', 'enable' => true], 'printer' => ['name' => '小票打印机', 'enable' => true],
] ]

Loading…
Cancel
Save