正在显示
4 个修改的文件
包含
35 行增加
和
0 行删除
| @@ -39,6 +39,7 @@ class AggregationSettingController extends BaseController | @@ -39,6 +39,7 @@ class AggregationSettingController extends BaseController | ||
| 39 | 'content'=>'', | 39 | 'content'=>'', |
| 40 | 'top_banner'=>json_encode([]), | 40 | 'top_banner'=>json_encode([]), |
| 41 | 'foot_banner'=>json_encode([]), | 41 | 'foot_banner'=>json_encode([]), |
| 42 | + 'video_url'=>json_encode([]), | ||
| 42 | 'project_id'=>$this->user['project_id'] | 43 | 'project_id'=>$this->user['project_id'] |
| 43 | ]; | 44 | ]; |
| 44 | $aggSettingModel->add($data); | 45 | $aggSettingModel->add($data); |
| @@ -62,6 +63,9 @@ class AggregationSettingController extends BaseController | @@ -62,6 +63,9 @@ class AggregationSettingController extends BaseController | ||
| 62 | if(isset($this->param['foot_banner']) && !empty($this->param['foot_banner'])){ | 63 | if(isset($this->param['foot_banner']) && !empty($this->param['foot_banner'])){ |
| 63 | $this->param['foot_banner'] = Arr::a2s($this->param['foot_banner']); | 64 | $this->param['foot_banner'] = Arr::a2s($this->param['foot_banner']); |
| 64 | } | 65 | } |
| 66 | + if(isset($this->param['video_url']) && !empty($this->param['video_url'])){ | ||
| 67 | + $this->param['video_url'] = Arr::a2s($this->param['video_url']); | ||
| 68 | + } | ||
| 65 | $rs = $aggSettingModel->edit($this->param,['project_id'=>$this->user['project_id']]); | 69 | $rs = $aggSettingModel->edit($this->param,['project_id'=>$this->user['project_id']]); |
| 66 | if($rs === false){ | 70 | if($rs === false){ |
| 67 | $this->response('系统错误请联系管理员',Code::SYSTEM_ERROR); | 71 | $this->response('系统错误请联系管理员',Code::SYSTEM_ERROR); |
| @@ -91,6 +91,9 @@ class KeywordLogic extends BaseLogic | @@ -91,6 +91,9 @@ class KeywordLogic extends BaseLogic | ||
| 91 | if(isset($param['keyword_foot_banner']) && !empty($param['keyword_foot_banner'])){ | 91 | if(isset($param['keyword_foot_banner']) && !empty($param['keyword_foot_banner'])){ |
| 92 | $param['keyword_foot_banner'] = str_replace_url($param['keyword_foot_banner']); | 92 | $param['keyword_foot_banner'] = str_replace_url($param['keyword_foot_banner']); |
| 93 | } | 93 | } |
| 94 | + if(isset($param['keyword_video']) && !empty($param['keyword_video'])){ | ||
| 95 | + $param['keyword_video'] = Arr::a2s($param['keyword_video']); | ||
| 96 | + } | ||
| 94 | return $param; | 97 | return $param; |
| 95 | } | 98 | } |
| 96 | 99 |
| @@ -42,4 +42,18 @@ class Keyword extends Base | @@ -42,4 +42,18 @@ class Keyword extends Base | ||
| 42 | public function getKeywordFootBannerAttribute($value){ | 42 | public function getKeywordFootBannerAttribute($value){ |
| 43 | return getImageUrl($value); | 43 | return getImageUrl($value); |
| 44 | } | 44 | } |
| 45 | + | ||
| 46 | + /** | ||
| 47 | + * @remark :视频 | ||
| 48 | + * @name :getKeywordVideoAttribute | ||
| 49 | + * @author :lyh | ||
| 50 | + * @method :post | ||
| 51 | + * @time :2023/10/31 11:26 | ||
| 52 | + */ | ||
| 53 | + public function getKeywordVideoAttribute($value){ | ||
| 54 | + if(!empty($value)){ | ||
| 55 | + $value = Arr::s2a($value); | ||
| 56 | + } | ||
| 57 | + return $value; | ||
| 58 | + } | ||
| 45 | } | 59 | } |
| @@ -59,4 +59,18 @@ class AggregationSetting extends Base | @@ -59,4 +59,18 @@ class AggregationSetting extends Base | ||
| 59 | } | 59 | } |
| 60 | return $value; | 60 | return $value; |
| 61 | } | 61 | } |
| 62 | + | ||
| 63 | + /** | ||
| 64 | + * @remark :视频 | ||
| 65 | + * @name :getVideoUrlAttribute | ||
| 66 | + * @author :lyh | ||
| 67 | + * @method :post | ||
| 68 | + * @time :2023/10/31 11:23 | ||
| 69 | + */ | ||
| 70 | + public function getVideoUrlAttribute($value){ | ||
| 71 | + if(!empty($value)){ | ||
| 72 | + $value = Arr::s2a($value); | ||
| 73 | + } | ||
| 74 | + return $value; | ||
| 75 | + } | ||
| 62 | } | 76 | } |
-
请 注册 或 登录 后发表评论