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
ccea4c2ac0c4d724f8ea275d22dc0b8746625122
1 parent
2c84ad77
商品详情页 https
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
library/Plugin/Helpers.php
library/WebPlugin/Helpers.php
library/WebPlugin/Images.php
yohobuy/www.yohobuy.com/application/models/Product/Item.php
library/Plugin/Helpers.php
View file @
ccea4c2
...
...
@@ -943,7 +943,7 @@ class Helpers
*/
public
static
function
getUrlSafe
(
$url
)
{
if
(
stripos
(
$url
,
'http://'
))
{
if
(
stripos
(
$url
,
'http://'
)
!==
false
)
{
return
'//'
.
ltrim
(
strtr
(
$url
,
array
(
'http://'
=>
''
,
'https://'
=>
''
)),
'//'
);
}
...
...
library/WebPlugin/Helpers.php
View file @
ccea4c2
...
...
@@ -1109,7 +1109,7 @@ class Helpers
*/
public
static
function
getUrlSafe
(
$url
)
{
if
(
stripos
(
$url
,
'http://'
))
{
if
(
stripos
(
$url
,
'http://'
)
!==
false
)
{
return
'//'
.
ltrim
(
strtr
(
$url
,
array
(
'http://'
=>
''
,
'https://'
=>
''
)),
'//'
);
}
...
...
library/WebPlugin/Images.php
View file @
ccea4c2
...
...
@@ -7,7 +7,7 @@
*/
namespace
WebPlugin
;
use
WebPlugin\Helpers
;
class
Images
{
...
...
@@ -251,7 +251,7 @@ class Images
$imageUrl
=
preg_replace
(
'@\?imageMogr2.+@is'
,
''
,
$imageUrl
);
}
}
return
$imageUrl
;
return
Helpers
::
getUrlSafe
(
$imageUrl
)
;
}
/**
...
...
yohobuy/www.yohobuy.com/application/models/Product/Item.php
View file @
ccea4c2
...
...
@@ -819,7 +819,7 @@ class ItemModel
// 测量方式
if
(
!
empty
(
$sizeInfo
[
'sizeImage'
]))
{
$size
[
'sizeImg'
]
=
$sizeInfo
[
'sizeImage'
]
;
$size
[
'sizeImg'
]
=
Helpers
::
getUrlSafe
(
$sizeInfo
[
'sizeImage'
])
;
}
return
$size
;
}
...
...
Please
register
or
login
to post a comment