|
|
<?php
|
|
|
use Action\WebAction;
|
|
|
use Index\HomeModel;
|
|
|
use LibModels\Web\Home\IndexData;
|
|
|
use Plugin\Cache;
|
|
|
use Configs\CacheConfig;
|
|
|
use Api\Yohobuy;
|
...
|
...
|
@@ -87,8 +88,8 @@ class CommonController extends WebAction |
|
|
'content_code' => $content_code,
|
|
|
'client_type' => $client_type
|
|
|
);
|
|
|
$data = Yohobuy::get($url.http_build_query($params));
|
|
|
if(empty($data))
|
|
|
$data = IndexData::getResourceData($content_code);//Yohobuy::get($url.http_build_query($params));
|
|
|
if(empty($data['data']))
|
|
|
{
|
|
|
return $this->helpJsonCallbackResult($callback, 200, '没有数据', '');
|
|
|
}
|
...
|
...
|
|