Authored by zhangxiaoru

接口

... ... @@ -491,6 +491,13 @@
padding: 0.2rem 0 0.2rem 0.4rem;
background: #ededed;
position: relative;
height: 3.8rem;
overflow: hidden;
.weixinImg {
width: 100%;
height: 100%;
}
}
.wechat-name {
... ...
... ... @@ -20,7 +20,7 @@ class InfoController extends AbstractAction
public function indexAction()
{
$id = $this->get('id');
//$id = 34282;
//$id = 34368;
// 判断参数是否有效, 无效会跳转到错误页面
if (!is_numeric($id)) {
... ... @@ -238,6 +238,7 @@ class InfoController extends AbstractAction
//获取公众号信息列表
$weixinPublic = DetailData::singleTemplate('wechat', 'guang_detail_wechat');
//print_r($weixinPublic);
// $weixinPublic = array(
// array('wechat_name' => 'YOHOFamiliy', 'wechat_id' => 'yoho_familiy', 'src' => 'http://img11.static.yhbimg.com/goodsimg/2016/09/02/15/0129931eb19f03369bb069ef5c1a42de06.png?imageView2/2/w/640/h/640'),
// array('wechat_name' => 'YOHOFamiliy', 'wechat_id' => 'wechat_id', 'src' => 'http://img11.static.yhbimg.com/goodsimg/2016/09/02/15/0129931eb19f03369bb069ef5c1a42de06.png?imageView2/2/w/640/h/640')
... ... @@ -249,11 +250,15 @@ class InfoController extends AbstractAction
$data['detail']['content'][$key] = array('weixinPublic' => $weixinPublic);
$data['detail']['content'][] = $value;
break;
}else if(array_key_exists('collocation', $value)) {
$data['detail']['content'][$key] = array('weixinPublic' => $weixinPublic);
$data['detail']['content'][] = $value;
break;
}
}
}
//print_r($data);exit;
//print_r($data);
$this->_view->display('index', $data);
$detail = array();
... ...
... ... @@ -17,8 +17,8 @@ define('USE_INTER_FACE_SHUNT', false);//分流开关
#dev环境
define('API_URL', 'http://api-test2.yohops.com:9999/');
define('SERVICE_URL', 'http://service-test2.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://service-test2.yohops.com:9999/');
... ...