Authored by 周少峰

serach url

@@ -80,30 +80,39 @@ class SearchData @@ -80,30 +80,39 @@ class SearchData
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') { 82 if ($type == 'sort') {
83 - return 'http://10.66.100.4:8080/yohosearch/sortgroup.json'; 83 + return 'http://192.168.102.216:8087/yohosearch/sortgroup.json';
  84 +// return 'http://10.66.100.4:8080/yohosearch/sortgroup.json';
84 } 85 }
85 elseif ($type == 'discount') { 86 elseif ($type == 'discount') {
86 - return 'http://10.66.100.4:8080/yohosearch/discount.json'; 87 + return 'http://192.168.102.216:8087/yohosearch/discount.json';
  88 +// return 'http://10.66.100.4:8080/yohosearch/discount.json';
87 } 89 }
88 elseif ($type == 'recent') { 90 elseif ($type == 'recent') {
89 - return 'http://10.66.100.4:8080/yohosearch/recent.json'; 91 + return 'http://192.168.102.216:8087/yohosearch/recent.json';
  92 +// return 'http://10.66.100.4:8080/yohosearch/recent.json';
90 } 93 }
91 elseif ($type == 'suggest') { 94 elseif ($type == 'suggest') {
92 - return 'http://10.66.100.4:8080/yohosearch/suggest.json'; 95 + return 'http://192.168.102.216:8087/yohosearch/suggest.json';
  96 +// return 'http://10.66.100.4:8080/yohosearch/suggest.json';
93 } 97 }
94 else if($type == 'new-shelve') { 98 else if($type == 'new-shelve') {
95 - return 'http://10.66.100.4:8080/yohosearch/new-shelve.json'; 99 + return 'http://192.168.102.216:8087/yohosearch/new-shelve.json';
  100 +// return 'http://10.66.100.4:8080/yohosearch/new-shelve.json';
96 } 101 }
97 elseif ($type == 'shop') { 102 elseif ($type == 'shop') {
98 - return 'http://10.66.100.4:8080/yohosearch/shops.json'; 103 + return 'http://192.168.102.216:8087/yohosearch/shops.json';
  104 +// return 'http://10.66.100.4:8080/yohosearch/shops.json';
99 } 105 }
100 elseif ($type == 'search') { 106 elseif ($type == 'search') {
101 - return 'http://10.66.100.4:8080/yohosearch/search.json'; 107 + return 'http://192.168.102.216:8087/yohosearch/search.json';
  108 +// return 'http://10.66.100.4:8080/yohosearch/search.json';
102 } 109 }
103 elseif ($type == 'brand') { 110 elseif ($type == 'brand') {
104 - return 'http://10.66.100.4:8080/yohosearch/brand/list.json'; 111 + return 'http://192.168.102.216:8087/yohosearch/brand/list.json';
  112 +// return 'http://10.66.100.4:8080/yohosearch/brand/list.json';
105 } 113 }
106 - return 'http://10.66.100.4:8080/yohosearch/search.json'; 114 + return 'http://192.168.102.216:8087/yohosearch/search.json';
  115 +// return 'http://10.66.100.4:8080/yohosearch/search.json';
107 case 'developer': 116 case 'developer':
108 default: 117 default:
109 if ($type == 'sort') { 118 if ($type == 'sort') {