...
|
...
|
@@ -490,7 +490,7 @@ class IndexController extends AbstractAction |
|
|
public function shopFavAction()
|
|
|
{
|
|
|
$data = array();
|
|
|
$shopId = $this->get('shop_id', 0);
|
|
|
$shopId = $this->post('shop_id', 0);
|
|
|
$uid = $this->getUid();
|
|
|
do {
|
|
|
if (!$this->isAjax()) {
|
...
|
...
|
@@ -498,7 +498,9 @@ class IndexController extends AbstractAction |
|
|
}
|
|
|
if (empty($uid)) {
|
|
|
$data['code'] = 401;
|
|
|
//TODO app登陆地址
|
|
|
$data['url'] = Helpers::url('/signin.html');
|
|
|
break;
|
|
|
}
|
|
|
if (!empty($shopId) && !empty($uid)) {
|
|
|
$data = ShopData::shopFav($uid, $shopId);
|
...
|
...
|
@@ -515,7 +517,7 @@ class IndexController extends AbstractAction |
|
|
{
|
|
|
|
|
|
$data = array();
|
|
|
$shopId = $this->get('shop_id', 0);
|
|
|
$shopId = $this->post('shop_id', 0);
|
|
|
$uid = $this->getUid();
|
|
|
do {
|
|
|
if (!$this->isAjax()) {
|
...
|
...
|
|