Showing
1 changed file
with
32 additions
and
7 deletions
@@ -79,31 +79,56 @@ class SearchData | @@ -79,31 +79,56 @@ class SearchData | ||
79 | } | 79 | } |
80 | return 'http://192.168.102.216:8087/yohosearch/search.json'; | 80 | return 'http://192.168.102.216:8087/yohosearch/search.json'; |
81 | case 'testing': | 81 | case 'testing': |
82 | + if ($type == 'sort') { | ||
83 | + return 'http://10.66.101.4:8080/yohosearch/sortgroup.json'; | ||
84 | + } | ||
85 | + elseif ($type == 'discount') { | ||
86 | + return 'http://10.66.101.4:8080/yohosearch/discount.json'; | ||
87 | + } | ||
88 | + elseif ($type == 'recent') { | ||
89 | + return 'http://10.66.101.4:8080/yohosearch/recent.json'; | ||
90 | + } | ||
91 | + elseif ($type == 'suggest') { | ||
92 | + return 'http://10.66.101.4:8080/yohosearch/suggest.json'; | ||
93 | + } | ||
94 | + else if($type == 'new-shelve') { | ||
95 | + return 'http://10.66.101.4:8080/yohosearch/new-shelve.json'; | ||
96 | + } | ||
97 | + elseif ($type == 'shop') { | ||
98 | + return 'http://10.66.101.4:8080/yohosearch/shops.json'; | ||
99 | + } | ||
100 | + elseif ($type == 'search') { | ||
101 | + return 'http://10.66.101.4:8080/yohosearch/search.json'; | ||
102 | + } | ||
103 | + elseif ($type == 'brand') { | ||
104 | + return 'http://10.66.101.4:8080/yohosearch/brand/list.json'; | ||
105 | + } | ||
106 | + return 'http://10.66.101.4:8080/yohosearch/search.json'; | ||
82 | case 'developer': | 107 | case 'developer': |
83 | default: | 108 | default: |
84 | if ($type == 'sort') { | 109 | if ($type == 'sort') { |
85 | - return 'http://101.200.31.165/yohosearch/sortgroup.json'; | 110 | + return 'http://192.168.102.216:8087/yohosearch/sortgroup.json'; |
86 | } | 111 | } |
87 | elseif ($type == 'discount') { | 112 | elseif ($type == 'discount') { |
88 | - return 'http://101.200.31.165/yohosearch/discount.json'; | 113 | + return 'http://192.168.102.216:8087/yohosearch/discount.json'; |
89 | } | 114 | } |
90 | elseif ($type == 'recent') { | 115 | elseif ($type == 'recent') { |
91 | - return 'http://101.200.31.165/yohosearch/recent.json'; | 116 | + return 'http://192.168.102.216:8087/yohosearch/recent.json'; |
92 | } | 117 | } |
93 | elseif ($type == 'suggest') { | 118 | elseif ($type == 'suggest') { |
94 | - return 'http://101.200.31.165/yohosearch/suggest.json'; | 119 | + return 'http://192.168.102.216:8087/yohosearch/suggest.json'; |
95 | } | 120 | } |
96 | else if($type == 'new-shelve') { | 121 | else if($type == 'new-shelve') { |
97 | - return 'http://101.200.31.165/yohosearch/new-shelve.json'; | 122 | + return 'http://192.168.102.216:8087/yohosearch/new-shelve.json'; |
98 | } | 123 | } |
99 | elseif ($type == 'shop') { | 124 | elseif ($type == 'shop') { |
100 | - return 'http://101.200.31.165/yohosearch/shops.json'; | 125 | + return 'http://192.168.102.216:8087/yohosearch/shops.json'; |
101 | } | 126 | } |
102 | elseif ($type == 'search') { | 127 | elseif ($type == 'search') { |
103 | return 'http://192.168.102.216:8087/yohosearch/search.json'; | 128 | return 'http://192.168.102.216:8087/yohosearch/search.json'; |
104 | } | 129 | } |
105 | elseif ($type == 'brand') { | 130 | elseif ($type == 'brand') { |
106 | - return 'http://101.200.31.165/yohosearch/brand/list.json'; | 131 | + return 'http://192.168.102.216:8087/yohosearch/brand/list.json'; |
107 | } | 132 | } |
108 | return 'http://192.168.102.216:8087/yohosearch/search.json'; | 133 | return 'http://192.168.102.216:8087/yohosearch/search.json'; |
109 | } | 134 | } |
-
Please register or login to post a comment