From d2d813a336e7b22e7bc97793e146ce15a7e72589 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 19 Jan 2024 14:25:27 +0800 Subject: [PATCH] =?UTF-8?q?edit=E4=BF=AE=E6=94=B9=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Oss.php | 2 +- models/Banner.php | 5 +++-- modules/admin/views/wechat/mp-slide-edit.php | 7 +++++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/components/Oss.php b/components/Oss.php index 7c7b184..268c50a 100644 --- a/components/Oss.php +++ b/components/Oss.php @@ -22,7 +22,7 @@ class Oss $this->accessKeyId = 'LTAI5tMaDbEbWyQWpwmxp24y'; $this->accessKeySecret = '3bjqbBFC08YIub3c8ry9Elz05UF1J7'; $this->bucket = 'cxgjsz1'; - $this->endpoint = 'http://oss-cn-shenzhen.aliyuncs.com'; + $this->endpoint = 'https://oss-cn-shenzhen.aliyuncs.com'; try { if (!isset($this->client)) { diff --git a/models/Banner.php b/models/Banner.php index 2140a09..f58fee0 100644 --- a/models/Banner.php +++ b/models/Banner.php @@ -128,7 +128,8 @@ class Banner extends \yii\db\ActiveRecord '1' => '外部链接', '2' => '小程序', '3' => '公众号图片', - '4' => '视频号图片', +// '4' => '视频号图片', + '8' => '微信视频号', '5' => '抖音号图片', '6' => '文章', '7' => '不弹窗', @@ -187,7 +188,7 @@ class Banner extends \yii\db\ActiveRecord 'status' => 1, ]) ->select('id,url_type,app_id,app_ext,img_url,title,page_url,media,video_url,type,other_img_url,text') - ->orderBy(['sort' => SORT_ASC, 'id' => SORT_DESC])->asArray()->all(); + ->orderBy(['id' => SORT_DESC])->asArray()->all(); foreach ($list as $index => $item) { if ($item['media'] == self::MEDIA_IMG) { $item['img_url'] = SiteHelper::getFullUrl($item['img_url']); diff --git a/modules/admin/views/wechat/mp-slide-edit.php b/modules/admin/views/wechat/mp-slide-edit.php index 9fe27c3..30b5263 100644 --- a/modules/admin/views/wechat/mp-slide-edit.php +++ b/modules/admin/views/wechat/mp-slide-edit.php @@ -114,6 +114,13 @@ $type = Banner::type();
+
+ +
+ +
+
+