Authored by 周少峰

shopfav & cancelShopFav

@@ -144,6 +144,7 @@ class IndexController extends AbstractAction @@ -144,6 +144,7 @@ class IndexController extends AbstractAction
144 //TODO 无店铺:0--->品牌页 无单品店有多品店:1--->搜索页 有单品店:2--->店铺页面 144 //TODO 无店铺:0--->品牌页 无单品店有多品店:1--->搜索页 有单品店:2--->店铺页面
145 //TODO 通过品牌域名获取店铺shopId 先固定shopId = 672 145 //TODO 通过品牌域名获取店铺shopId 先固定shopId = 672
146 $brandLogo['shopId'] = 672; 146 $brandLogo['shopId'] = 672;
  147 + $brandLogo['type'] = 2;
147 if ($brandLogo['type'] == 2 && !empty($brandLogo['shopId'])) { 148 if ($brandLogo['type'] == 2 && !empty($brandLogo['shopId'])) {
148 $this->shop($brandLogo['shopId'], $uid); 149 $this->shop($brandLogo['shopId'], $uid);
149 exit; 150 exit;
@@ -486,10 +487,10 @@ class IndexController extends AbstractAction @@ -486,10 +487,10 @@ class IndexController extends AbstractAction
486 * 店铺收藏 487 * 店铺收藏
487 * @author sefon 2016-4-28 23:00:11 488 * @author sefon 2016-4-28 23:00:11
488 */ 489 */
489 - public function shopFav() 490 + public function shopFavAction()
490 { 491 {
491 $data = array(); 492 $data = array();
492 - $shopId = $this->get('shopId', 0); 493 + $shopId = $this->get('shop_id', 0);
493 $uid = $this->getUid(); 494 $uid = $this->getUid();
494 do { 495 do {
495 if (!IS_AJAX) { 496 if (!IS_AJAX) {
@@ -506,10 +507,11 @@ class IndexController extends AbstractAction @@ -506,10 +507,11 @@ class IndexController extends AbstractAction
506 * 取消店铺收藏 507 * 取消店铺收藏
507 * @author sefon 2016-4-28 23:01:43 508 * @author sefon 2016-4-28 23:01:43
508 */ 509 */
509 - public function cancelShopFav() 510 + public function cancelShopFavAction()
510 { 511 {
  512 +
511 $data = array(); 513 $data = array();
512 - $shopId = $this->get('shopId', 0); 514 + $shopId = $this->get('shop_id', 0);
513 $uid = $this->getUid(); 515 $uid = $this->getUid();
514 do { 516 do {
515 if (!IS_AJAX) { 517 if (!IS_AJAX) {