Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
周少峰
9 years ago
Commit
88342ad14ab27fdf56ba2d905577113c5ceec9e1
1 parent
ba772185
path
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
library/Plugin/Images.php
library/Plugin/Images.php
View file @
88342ad
...
...
@@ -179,14 +179,14 @@ class Images
if
(
count
(
$file
)
==
1
||
!
is_array
(
$file
))
{
$imgRelUrl
=
current
(
$result
[
'data'
][
'imagesList'
]);
$imgList
[
'imgList'
][]
=
array
(
'imgUrl'
=>
self
::
getSourceUrl
(
$imgRelUrl
,
'suggest'
)
.
$imgExtra
,
'imgUrl'
=>
self
::
getSourceUrl
(
$imgRelUrl
,
$path
)
.
$imgExtra
,
'imgRelUrl'
=>
$imgRelUrl
);
}
else
{
$img
=
array
();
foreach
(
$result
[
'data'
][
'imagesList'
]
as
$val
)
{
$img
=
array
();
$img
[
'imgUrl'
]
=
self
::
getSourceUrl
(
$val
,
'suggest'
)
.
$imgExtra
;
$img
[
'imgUrl'
]
=
self
::
getSourceUrl
(
$val
,
$path
)
.
$imgExtra
;
$img
[
'imgRelUrl'
]
=
$val
;
$imgList
[
'imgList'
][]
=
$img
;
}
...
...
Please
register
or
login
to post a comment