Authored by 郭成尧

'解决app和h5头部问题'

@@ -48,12 +48,14 @@ class ShopProcess @@ -48,12 +48,14 @@ class ShopProcess
48 self::$shopData['collect'] = $data['data']['is_favorite'] == 'Y' ? true : false; 48 self::$shopData['collect'] = $data['data']['is_favorite'] == 'Y' ? true : false;
49 //店铺id 49 //店铺id
50 self::$shopData['shopId'] = self::$shopId; 50 self::$shopData['shopId'] = self::$shopId;
  51 + if (empty(self::$appVersion)) {
  52 + //全部商品链接
  53 + self::$shopData['allGoods'] .= '&openby:yohobuy={"action":"go.list","params":{"title":"全部商品", "actiontype":"0","shop_id":"'.self::$shopId.'","page":"1"}}';
51 //店铺简介页地址 54 //店铺简介页地址
52 self::$shopData['shopIntroHref'] = Helpers::url('/product/index/intro', array('shop_id' => self::$shopId)); 55 self::$shopData['shopIntroHref'] = Helpers::url('/product/index/intro', array('shop_id' => self::$shopId));
53 - //全部商品链接 56 + } else {
54 self::$shopData['allGoods'] = Helpers::url('', array('shop_id' => self::$shopId, 'title' => '全部商品'), 'search'); 57 self::$shopData['allGoods'] = Helpers::url('', array('shop_id' => self::$shopId, 'title' => '全部商品'), 'search');
55 - if (empty($appVersion)) {  
56 - self::$shopData['allGoods'] .= '&openby:yohobuy={"action":"go.list","params":{"title":"全部商品", "actiontype":"0","shop_id":"'.self::$shopId.'","page":"1"}}'; 58 + self::$shopData['shopIntroHref'] = Helpers::url('/product/index/intro', array('shop_id' => self::$shopId, 'app_version' => self::$appVersion));
57 } 59 }
58 //搜索链接 60 //搜索链接
59 self::$shopData['url'] = Helpers::url('', array('shop_id' => self::$shopId), 'search'); 61 self::$shopData['url'] = Helpers::url('', array('shop_id' => self::$shopId), 'search');