|
@@ -490,7 +490,7 @@ class IndexController extends AbstractAction |
|
@@ -490,7 +490,7 @@ class IndexController extends AbstractAction |
490
|
public function shopFavAction()
|
490
|
public function shopFavAction()
|
491
|
{
|
491
|
{
|
492
|
$data = array();
|
492
|
$data = array();
|
493
|
- $shopId = $this->get('shop_id', 0);
|
493
|
+ $shopId = $this->post('shop_id', 0);
|
494
|
$uid = $this->getUid();
|
494
|
$uid = $this->getUid();
|
495
|
do {
|
495
|
do {
|
496
|
if (!$this->isAjax()) {
|
496
|
if (!$this->isAjax()) {
|
|
@@ -498,7 +498,9 @@ class IndexController extends AbstractAction |
|
@@ -498,7 +498,9 @@ class IndexController extends AbstractAction |
498
|
}
|
498
|
}
|
499
|
if (empty($uid)) {
|
499
|
if (empty($uid)) {
|
500
|
$data['code'] = 401;
|
500
|
$data['code'] = 401;
|
|
|
501
|
+ //TODO app登陆地址
|
501
|
$data['url'] = Helpers::url('/signin.html');
|
502
|
$data['url'] = Helpers::url('/signin.html');
|
|
|
503
|
+ break;
|
502
|
}
|
504
|
}
|
503
|
if (!empty($shopId) && !empty($uid)) {
|
505
|
if (!empty($shopId) && !empty($uid)) {
|
504
|
$data = ShopData::shopFav($uid, $shopId);
|
506
|
$data = ShopData::shopFav($uid, $shopId);
|
|
@@ -515,7 +517,7 @@ class IndexController extends AbstractAction |
|
@@ -515,7 +517,7 @@ class IndexController extends AbstractAction |
515
|
{
|
517
|
{
|
516
|
|
518
|
|
517
|
$data = array();
|
519
|
$data = array();
|
518
|
- $shopId = $this->get('shop_id', 0);
|
520
|
+ $shopId = $this->post('shop_id', 0);
|
519
|
$uid = $this->getUid();
|
521
|
$uid = $this->getUid();
|
520
|
do {
|
522
|
do {
|
521
|
if (!$this->isAjax()) {
|
523
|
if (!$this->isAjax()) {
|