code review by hf: fixes bug to search list no data
Showing
1 changed file
with
4 additions
and
4 deletions
@@ -16,7 +16,7 @@ use Api\Sign; | @@ -16,7 +16,7 @@ use Api\Sign; | ||
16 | */ | 16 | */ |
17 | class SearchData | 17 | class SearchData |
18 | { | 18 | { |
19 | - | 19 | + |
20 | /** | 20 | /** |
21 | * 获取搜索的服务地址 | 21 | * 获取搜索的服务地址 |
22 | * | 22 | * |
@@ -29,9 +29,9 @@ class SearchData | @@ -29,9 +29,9 @@ 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 | - case 'test': | ||
33 | - case 'preview': | ||
34 | return 'http://100.98.132.63/yohosearch/search.json'; | 32 | return 'http://100.98.132.63/yohosearch/search.json'; |
33 | + case 'test': | ||
34 | + case 'preview': | ||
35 | case 'developer': | 35 | case 'developer': |
36 | default: | 36 | default: |
37 | return 'http://101.200.31.165/yohosearch/search.json'; | 37 | return 'http://101.200.31.165/yohosearch/search.json'; |
@@ -148,7 +148,7 @@ class SearchData | @@ -148,7 +148,7 @@ class SearchData | ||
148 | if (!isset($condition['order'])) { | 148 | if (!isset($condition['order'])) { |
149 | $param['order'] = $orderMaps['s_t_desc']; | 149 | $param['order'] = $orderMaps['s_t_desc']; |
150 | } else { | 150 | } else { |
151 | - $param['order'] = $orderMaps[ $condition['order'] ]; | 151 | + $param['order'] = $orderMaps[$condition['order']]; |
152 | } | 152 | } |
153 | if (!isset($condition['page'])) { | 153 | if (!isset($condition['page'])) { |
154 | $param['page'] = 1; | 154 | $param['page'] = 1; |
-
Please register or login to post a comment