Authored by hf

do maylike and guang opt

framework @ 75bbc3b0
1 -Subproject commit 119c247f5cf929aa1e059e40609bb16dd6b58f05 1 +Subproject commit 75bbc3b075de19f239532f60c5995d06c5f814e2
@@ -26,13 +26,13 @@ class OptController extends AbstractAction @@ -26,13 +26,13 @@ class OptController extends AbstractAction
26 } 26 }
27 27
28 /* 判断参数是否有效 */ 28 /* 判断参数是否有效 */
29 - $id = $this->get('id'); 29 + $id = $this->post('id');
30 if (!is_numeric($id)) { 30 if (!is_numeric($id)) {
31 break; 31 break;
32 } 32 }
33 33
34 /* 执行点赞或取消操作 */ 34 /* 执行点赞或取消操作 */
35 - $opt = $this->get('opt', 'ok'); 35 + $opt = $this->post('opt', 'ok');
36 $udid = $this->getUdid(); 36 $udid = $this->getUdid();
37 $result = OptData::praiseArticle($udid, $id, $opt); 37 $result = OptData::praiseArticle($udid, $id, $opt);
38 } 38 }
@@ -59,7 +59,7 @@ class OptController extends AbstractAction @@ -59,7 +59,7 @@ class OptController extends AbstractAction
59 } 59 }
60 60
61 /* 判断参数是否有效 */ 61 /* 判断参数是否有效 */
62 - $id = $this->get('id'); 62 + $id = $this->post('id');
63 if (!is_numeric($id)) { 63 if (!is_numeric($id)) {
64 break; 64 break;
65 } 65 }
@@ -71,7 +71,7 @@ class OptController extends AbstractAction @@ -71,7 +71,7 @@ class OptController extends AbstractAction
71 } 71 }
72 72
73 /* 执行点赞或取消操作 */ 73 /* 执行点赞或取消操作 */
74 - $opt = $this->get('opt', 'ok'); 74 + $opt = $this->post('opt', 'ok');
75 $status = OptData::favoriteBrand($uid, $id, $opt); 75 $status = OptData::favoriteBrand($uid, $id, $opt);
76 if (!$status) { 76 if (!$status) {
77 break; 77 break;