do maylike and guang opt
Showing
2 changed files
with
5 additions
and
5 deletions
framework @ 75bbc3b0
@@ -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; |
-
Please register or login to post a comment