Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
748b40bf544db840c354d0ca3dc0664b2dad6f92
1 parent
debec2d2
添加限购商品分享详情页面中附件的视频图片字段
Code Review By Rock Zhang
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
View file @
748b40b
...
...
@@ -800,7 +800,7 @@ class DetailModel
switch
(
intval
(
$attachment
[
'attachType'
]))
{
case
1
:
// 大图文字
$result
[
'img'
]
=
array
(
'attachUrl'
=>
$attachment
[
'attachUrl'
]
,
'attachUrl'
=>
Helpers
::
getImageUrl
(
$attachment
[
'attachUrl'
],
290
,
200
)
,
'attachName'
=>
$attachment
[
'attachName'
],
'intro'
=>
$attachment
[
'intro'
],
'orderBy'
=>
$attachment
[
'orderBy'
]
...
...
@@ -809,7 +809,8 @@ class DetailModel
case
2
:
// 视频
$result
[
'video'
]
=
array
(
'attachUrl'
=>
$attachment
[
'attachUrl'
],
'orderBy'
=>
$attachment
[
'orderBy'
]
'orderBy'
=>
$attachment
[
'orderBy'
],
'img'
=>
Helpers
::
getImageUrl
(
$attachment
[
'intro'
],
290
,
200
)
);
break
;
case
3
:
// 文本类型
...
...
Please
register
or
login
to post a comment