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
htoooth
9 years ago
Commit
b7da509a6d90bd29e71bda4835b7fc85d319ffb7
1 parent
ba4a474e
修复链接错误
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
yohobuy/www.yohobuy.com/application/models/Product/Shop.php
yohobuy/www.yohobuy.com/application/models/Product/Shop.php
View file @
b7da509
...
...
@@ -704,13 +704,20 @@ class ShopModel
if
(
isset
(
$val
[
'data'
])
&&
is_array
(
$val
[
'data'
]))
{
foreach
(
$val
[
'data'
]
as
$k
=>
&
$v
)
{
$v
[
'url'
]
=
self
::
modifyUrl
(
$v
,
$shopId
);
$url
=
self
::
modifyUrl
(
$v
,
$shopId
);
if
(
!
empty
(
$url
))
{
$v
[
'url'
]
=
$url
;
}
}
}
if
(
is_array
(
$val
)){
foreach
(
$val
as
$k1
=>
&
$v1
){
$v1
[
'url'
]
=
self
::
modifyUrl
(
$v1
,
$shopId
);
if
(
!
iseet
(
$val
[
'data'
])
&&
is_array
(
$val
))
{
foreach
(
$val
as
$k1
=>
&
$v1
)
{
$url
=
self
::
modifyUrl
(
$v1
,
$shopId
);
if
(
!
empty
(
$url
))
{
$v1
[
'url'
]
=
$url
;
}
}
}
}
...
...
Please
register
or
login
to post a comment