Authored by hf

do maylike and guang opt

framework @ 75bbc3b0
Subproject commit 119c247f5cf929aa1e059e40609bb16dd6b58f05
Subproject commit 75bbc3b075de19f239532f60c5995d06c5f814e2
... ...
... ... @@ -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;
... ...