fixed modules
This commit is contained in:
parent
83f5d95864
commit
d32ec82d70
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace Beike\Admin\Http\Controllers;
|
||||
|
||||
use Beike\Admin\Services\DesignService;
|
||||
use Illuminate\View\View;
|
||||
use Illuminate\Http\Request;
|
||||
use Beike\Repositories\SettingRepo;
|
||||
|
|
@ -50,11 +51,12 @@ class DesignController extends Controller
|
|||
*/
|
||||
public function update(Request $request): array
|
||||
{
|
||||
$moduleData = DesignService::handleModules($request->getContent());
|
||||
$data = [
|
||||
'type' => 'system',
|
||||
'space' => 'base',
|
||||
'name' => 'design_setting',
|
||||
'value' => $request->getContent(),
|
||||
'value' => $moduleData,
|
||||
'json' => 1
|
||||
];
|
||||
SettingRepo::createOrUpdate($data);
|
||||
|
|
|
|||
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
/**
|
||||
* DesignService.php
|
||||
*
|
||||
* @copyright 2022 opencart.cn - All Rights Reserved
|
||||
* @link http://www.guangdawangluo.com
|
||||
* @author Edward Yang <yangjin@opencart.cn>
|
||||
* @created 2022-07-14 20:57:37
|
||||
* @modified 2022-07-14 20:57:37
|
||||
*/
|
||||
|
||||
namespace Beike\Admin\Services;
|
||||
|
||||
class DesignService
|
||||
{
|
||||
public static function handleModules($moduleData)
|
||||
{
|
||||
return $moduleData;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue