Authored by 毕凯

去除ajax判断

No preview for this file type
... ... @@ -643,9 +643,9 @@ class IndexController extends AbstractAction
$uid = $this->getUid();
}
do {
if (!$this->isAjax()) {
break;
}
// if (!$this->isAjax()) {
// break;
// }
if (empty($uid)) {
$data['code'] = 401;
$refer = $_SERVER['HTTP_REFERER'];
... ... @@ -679,9 +679,9 @@ class IndexController extends AbstractAction
$uid = $this->getUid();
}
do {
if (!$this->isAjax()) {
break;
}
// if (!$this->isAjax()) {
// break;
// }
if (!empty($shopId) && !empty($uid)) {
$data = ShopData::cancelShopFav($uid, $shopId);
}
... ...