code review by fei.hong : fixes bug to modify Helpers.php undifined vars and modify searchd ip
Showing
1 changed file
with
2 additions
and
5 deletions
@@ -29,7 +29,7 @@ class SearchData | @@ -29,7 +29,7 @@ class SearchData | ||
29 | defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'developer'); | 29 | defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'developer'); |
30 | switch (APPLICATION_ENV) { | 30 | switch (APPLICATION_ENV) { |
31 | case 'release': | 31 | case 'release': |
32 | - return 'http://100.98.132.63/yohosearch/search.json'; //return 'http://101.201.178.220/yohosearch/search.json'; | 32 | + return 'http://101.201.178.220/yohosearch/search.json'; //return 'http://100.98.132.63/yohosearch/search.json'; |
33 | case 'preview': | 33 | case 'preview': |
34 | return 'http://101.200.31.165/yohosearch/search.json'; | 34 | return 'http://101.200.31.165/yohosearch/search.json'; |
35 | case 'test': | 35 | case 'test': |
@@ -155,10 +155,7 @@ class SearchData | @@ -155,10 +155,7 @@ class SearchData | ||
155 | if (!isset($condition['page'])) { | 155 | if (!isset($condition['page'])) { |
156 | $param['page'] = 1; | 156 | $param['page'] = 1; |
157 | } | 157 | } |
158 | - | ||
159 | - if(isset($condition['viewNum'])) { | ||
160 | - $param['viewNum'] = $condition['viewNum']; | ||
161 | - } else if (!isset($condition['limit'])) { | 158 | + if (!isset($condition['limit'])) { |
162 | $param['viewNum'] = 60; | 159 | $param['viewNum'] = 60; |
163 | } else { | 160 | } else { |
164 | $param['viewNum'] = $condition['limit']; | 161 | $param['viewNum'] = $condition['limit']; |
-
Please register or login to post a comment