|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Bside;
|
|
|
|
|
|
|
|
use App\Models\Template\BHeadFoot;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 自定义 页面
|
|
|
|
* @author:dc
|
|
|
|
* @time 2023/5/4 15:59
|
|
|
|
* Class TemplateController
|
|
|
|
* @package App\Http\Controllers\Bside
|
|
|
|
*/
|
|
|
|
class TemplateController extends BaseController
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 头部底部的 html
|
|
|
|
* @return \Illuminate\Http\JsonResponse
|
|
|
|
* @throws \Psr\Container\ContainerExceptionInterface
|
|
|
|
* @throws \Psr\Container\NotFoundExceptionInterface
|
|
|
|
* @author:dc
|
|
|
|
* @time 2023/5/4 16:15
|
|
|
|
*/
|
|
|
|
public function index(){
|
|
|
|
|
|
|
|
$data = BHeadFoot::_get($this->user['project_id']);
|
|
|
|
|
|
|
|
return $this->success([
|
|
|
|
'header' => $data[BHeadFoot::TYPE_HEADER]??'',
|
|
|
|
'footer' => $data[BHeadFoot::TYPE_FOOTER]??'',
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
...
|
...
|
|