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