...
|
...
|
@@ -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'] = '';
|
|
|
}
|
...
|
...
|
|