Authored by 周少峰

change api url

... ... @@ -69,9 +69,7 @@ class ListData
$param['method'] = 'app.shopsdecorator.getList';
$param['shop_id'] = $shopId;
$param['client_secret'] = Sign::getSign($param);
//TODO
// return Yohobuy::get(Yohobuy::API_URL, $param);
return Yohobuy::get('http://192.168.102.218:8080/gateway/', $param, 0);
return Yohobuy::get(Yohobuy::API_URL, $param);
}
/**
... ...
... ... @@ -141,10 +141,7 @@ class IndexController extends AbstractAction
// 存标题信息
$title = '';
$brandLogo = Product\ListModel::getBrandLogoByDomain($domain, $title);
// print_r($brandLogo); exit;
//无店铺:0--->品牌页 无单品店有多品店:1--->搜索页 有单品店:2--->店铺页面
// $brandLogo['shopId'] = 672;
// $brandLogo['type'] = 2;
if ($brandLogo['type'] == 2 && !empty($brandLogo['shopId'])) {
$this->shop($brandLogo['shopId'], $uid);
exit;
... ...