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
whb
9 years ago
Commit
48eafe76a58825712599dca37f75e99a7adb2879
1 parent
b7d227bd
设置
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
yohobuy/www.yohobuy.com/application/models/Passport/Passport.php
yohobuy/www.yohobuy.com/application/models/Passport/Passport.php
View file @
48eafe7
...
...
@@ -72,12 +72,15 @@ class PassportModel
$resource
=
IndexData
::
getResourceData
(
$code
);
if
(
isset
(
$resource
[
'data'
][
0
]))
{
$val
=
current
(
$resource
[
'data'
][
0
][
'data'
]);
if
(
$resource
[
'data'
][
0
][
'template_name'
]
==
'single_image'
)
{
$val
=
current
(
$resource
[
'data'
][
0
][
'data'
]);
}
else
if
(
$resource
[
'data'
][
0
][
'template_name'
]
==
'single_name_image'
)
{
$val
=
$resource
[
'data'
][
0
][
'data'
];
}
$ret
[
'img'
]
=
Images
::
getImageUrl
(
$val
[
'src'
],
252
,
190
);
$ret
[
'url'
]
=
$val
[
'url'
];
}
else
{
else
{
$ret
[
'img'
]
=
'http://img12.static.yhbimg.com/yhb-img01/2015/12/01/07/020a0b6e7ff908d0c2bc4045b4fef42b9f.png?imageView/2/w/252/h/190'
;
$ret
[
'url'
]
=
''
;
}
...
...
Please
register
or
login
to post a comment