添加限购商品分享详情页面中附件的视频图片字段
Code Review By Rock Zhang
Showing
1 changed file
with
3 additions
and
2 deletions
@@ -800,7 +800,7 @@ class DetailModel | @@ -800,7 +800,7 @@ class DetailModel | ||
800 | switch(intval($attachment['attachType'])) { | 800 | switch(intval($attachment['attachType'])) { |
801 | case 1: // 大图文字 | 801 | case 1: // 大图文字 |
802 | $result['img'] = array( | 802 | $result['img'] = array( |
803 | - 'attachUrl' => $attachment['attachUrl'], | 803 | + 'attachUrl' => Helpers::getImageUrl($attachment['attachUrl'], 290, 200), |
804 | 'attachName' => $attachment['attachName'], | 804 | 'attachName' => $attachment['attachName'], |
805 | 'intro' => $attachment['intro'], | 805 | 'intro' => $attachment['intro'], |
806 | 'orderBy' => $attachment['orderBy'] | 806 | 'orderBy' => $attachment['orderBy'] |
@@ -809,7 +809,8 @@ class DetailModel | @@ -809,7 +809,8 @@ class DetailModel | ||
809 | case 2: // 视频 | 809 | case 2: // 视频 |
810 | $result['video'] = array( | 810 | $result['video'] = array( |
811 | 'attachUrl' => $attachment['attachUrl'], | 811 | 'attachUrl' => $attachment['attachUrl'], |
812 | - 'orderBy' => $attachment['orderBy'] | 812 | + 'orderBy' => $attachment['orderBy'], |
813 | + 'img' => Helpers::getImageUrl($attachment['intro'], 290, 200) | ||
813 | ); | 814 | ); |
814 | break; | 815 | break; |
815 | case 3: // 文本类型 | 816 | case 3: // 文本类型 |
-
Please register or login to post a comment