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
郝肖肖
9 years ago
Commit
76d7499181229ed86fcad0ae08ca5c7dbff36138
1 parent
b80e699d
防止多次调用getImageUrl
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
library/WebPlugin/Images.php
library/WebPlugin/Images.php
View file @
76d7499
...
...
@@ -66,6 +66,11 @@ class Images
*/
public
static
function
getImageUrl
(
$fileName
,
$width
,
$height
,
$mode
=
2
,
$bucket
=
'goodsimg'
)
{
if
(
substr
(
$fileName
,
0
,
2
)
===
'//'
)
{
//防止多次调用getImageUrl
$fileName
=
'http:'
.
$fileName
;
}
if
(
!
is_string
(
$fileName
))
{
return
self
::
template
(
self
::
$default_image
,
$bucket
,
$mode
);
}
...
...
Please
register
or
login
to post a comment