...
|
...
|
@@ -26,13 +26,13 @@ class OptController extends AbstractAction |
|
|
}
|
|
|
|
|
|
/* 判断参数是否有效 */
|
|
|
$id = $this->get('id');
|
|
|
$id = $this->post('id');
|
|
|
if (!is_numeric($id)) {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
/* 执行点赞或取消操作 */
|
|
|
$opt = $this->get('opt', 'ok');
|
|
|
$opt = $this->post('opt', 'ok');
|
|
|
$udid = $this->getUdid();
|
|
|
$result = OptData::praiseArticle($udid, $id, $opt);
|
|
|
}
|
...
|
...
|
@@ -59,7 +59,7 @@ class OptController extends AbstractAction |
|
|
}
|
|
|
|
|
|
/* 判断参数是否有效 */
|
|
|
$id = $this->get('id');
|
|
|
$id = $this->post('id');
|
|
|
if (!is_numeric($id)) {
|
|
|
break;
|
|
|
}
|
...
|
...
|
@@ -71,7 +71,7 @@ class OptController extends AbstractAction |
|
|
}
|
|
|
|
|
|
/* 执行点赞或取消操作 */
|
|
|
$opt = $this->get('opt', 'ok');
|
|
|
$opt = $this->post('opt', 'ok');
|
|
|
$status = OptData::favoriteBrand($uid, $id, $opt);
|
|
|
if (!$status) {
|
|
|
break;
|
...
|
...
|
|