Authored by 周少峰

new more link

... ... @@ -531,7 +531,7 @@ class ShopModel
if (isset($data['resource_data']['new'])) {
foreach ($data['resource_data']['new'] as $val) {
if (empty($val['url'])) {
if (empty($val['url']) || empty($val['position'])) {
continue;
}
$result['new'][] = array(
... ... @@ -712,7 +712,7 @@ class ShopModel
}
}
if (!iseet($val['data']) && is_array($val)) {
if (!isset($val['data']) && is_array($val)) {
foreach ($val as $k1 => &$v1) {
$url = self::modifyUrl($v1, $shopId);
if (!empty($url)) {
... ...
... ... @@ -12,15 +12,15 @@ defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'developer');
define('EXHIBITION_TICKET', 51335912);//展览票skn
#test环境
//define('API_URL', 'http://testapi.yoho.cn:28078/');
//define('SERVICE_URL', 'http://testservice.yoho.cn:28077/');
define('API_URL', 'http://testapi.yoho.cn:28078/');
define('SERVICE_URL', 'http://testservice.yoho.cn:28077/');
//define('YOHOBUY_URL', 'http://www.yohobuy.com/');
//define('SERVICE_NOTIFY', 'http://testservice.yoho.cn:28077/');
//define('API_OLD', 'http://test2.open.yohobuy.com/');
#dev环境
define('API_URL', 'http://dev-api.yohops.com:9999/');
define('SERVICE_URL', 'http://dev-service.yohops.com:9999/');
// define('API_URL', 'http://dev-api.yohops.com:9999/');
// define('SERVICE_URL', 'http://dev-service.yohops.com:9999/');
define('YOHOBUY_URL', 'http://www.yohobuy.com/');
define('SERVICE_NOTIFY', 'http://test2.open.yohobuy.com/');
define('API_OLD', 'http://devservice.yoho.cn:58077/');
... ...