作者 lyh

gx

... ... @@ -63,4 +63,15 @@ class BTemplateController extends BaseController
$this->response('success');
}
/**
* @remark :可视化装修数据类型设置
* @name :moduleSetting
* @author :lyh
* @method :post
* @time :2023/7/17 15:55
*/
public function getTypeSetting(BTemplateLogic $BTemplateLogic){
$list = $BTemplateLogic->getModuleType();
$this->response('success',Code::SUCCESS,$list);
}
}
... ...
... ... @@ -142,6 +142,7 @@ class ImageController
'size' => $res->getSize(),
'hash' => $hash,
'type'=>$files->getClientOriginalExtension(),
'refer'=>$this->request->post('refer') ?? '',
];
$rs = $imageModel->add($data);
if ($rs === false) {
... ... @@ -203,6 +204,7 @@ class ImageController
'size' => $res->getSize(),
'hash' => $hash,
'type'=>$file->getClientOriginalExtension(),
'refer'=>$this->request->post('refer') ?? '',
];
$data[] = ['image'=>$hash];
}
... ...
... ... @@ -101,8 +101,8 @@ class BTemplateLogic extends BaseLogic
$info = $this->model->read(
[
'project_id'=>$this->user['project_id'],
'source'=>$this->param['source'],
'source_id'=>$this->param['source_id'],
'source'=>$this->param['source'] ?? 'index',
'source_id'=>$this->param['source_id'] ?? 0,
'template_id'=>$this->param['template_id'],
]
);
... ... @@ -135,4 +135,15 @@ class BTemplateLogic extends BaseLogic
$this->param['head_css'] = characterTruncation($this->param['html'],'/<style id="vvvebjs-header">(.*?)<\/style>/s');
$this->param['footer_css'] = characterTruncation($this->param['html'],'/<style id="vvvebjs-footer">(.*?)<\/style>/s');
}
/**
* @remark :获取类型
* @name :getModuleType
* @author :lyh
* @method :post
* @time :2023/7/17 16:03
*/
public function getModuleType($type){
// $moduleTypeModel = new
}
}
... ...
<?php
namespace App\Models\Template;
use App\Models\Base;
/**
* @remark :可视化装修设置
* @class :ModuleSetting.php
* @author :lyh
* @time :2023/7/17 15:50
*/
class ModuleSetting extends Base
{
protected $table = 'gl_public_module_setting';
}
... ...