|
...
|
...
|
@@ -46,6 +46,7 @@ class CustomTemplateLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function customTemplateInfo(){
|
|
|
|
$info = $this->model->read(['id'=>$this->param['id']]);
|
|
|
|
$info['image'] = getImageUrl($info['image'],$this->user['storage_type'],$this->user['project_location']);
|
|
|
|
if($info === false){
|
|
|
|
$this->fail('当前数据不存在');
|
|
|
|
}
|
|
...
|
...
|
@@ -205,6 +206,9 @@ class CustomTemplateLogic extends BaseLogic |
|
|
|
* @time :2024/8/6 16:52
|
|
|
|
*/
|
|
|
|
public function handleSaveParam(){
|
|
|
|
if(isset($param['image'])){
|
|
|
|
$this->param['image'] = str_replace_url($this->param['image'] ?? '');
|
|
|
|
}
|
|
|
|
$this->param['url'] = str_replace_url($this->param['url']);
|
|
|
|
$this->param['operator_id'] = $this->user['id'];
|
|
|
|
if(empty($this->project)){
|
...
|
...
|
|