Showing
1 changed file
with
42 additions
and
42 deletions
@@ -25,112 +25,112 @@ class SearchData | @@ -25,112 +25,112 @@ class SearchData | ||
25 | switch (APPLICATION_ENV) { | 25 | switch (APPLICATION_ENV) { |
26 | case 'production': | 26 | case 'production': |
27 | if ($type == 'sort') { | 27 | if ($type == 'sort') { |
28 | - return '//search.yohoops.org/yohosearch/sortgroup.json'; | ||
29 | -// return '//101.200.31.165/yohosearch/sortgroup.json'; | 28 | + return 'http://search.yohoops.org/yohosearch/sortgroup.json'; |
29 | +// return 'http://101.200.31.165/yohosearch/sortgroup.json'; | ||
30 | } | 30 | } |
31 | elseif ($type == 'discount') { | 31 | elseif ($type == 'discount') { |
32 | - return '//search.yohoops.org/yohosearch/discount.json'; | ||
33 | -// return '//101.200.31.165/yohosearch/discount.json'; | 32 | + return 'http://search.yohoops.org/yohosearch/discount.json'; |
33 | +// return 'http://101.200.31.165/yohosearch/discount.json'; | ||
34 | } | 34 | } |
35 | elseif ($type == 'recent') { | 35 | elseif ($type == 'recent') { |
36 | - return '//search.yohoops.org/yohosearch/recent.json'; | ||
37 | -// return '//101.200.31.165/yohosearch/recent.json'; | 36 | + return 'http://search.yohoops.org/yohosearch/recent.json'; |
37 | +// return 'http://101.200.31.165/yohosearch/recent.json'; | ||
38 | } | 38 | } |
39 | elseif ($type == 'suggest') { | 39 | elseif ($type == 'suggest') { |
40 | - return '//search.yohoops.org/yohosearch/suggest.json'; | ||
41 | -// return '//101.200.31.165/yohosearch/suggest.json'; | 40 | + return 'http://search.yohoops.org/yohosearch/suggest.json'; |
41 | +// return 'http://101.200.31.165/yohosearch/suggest.json'; | ||
42 | } | 42 | } |
43 | else if($type == 'new-shelve') { | 43 | else if($type == 'new-shelve') { |
44 | - return '//search.yohoops.org/yohosearch/new-shelve.json'; | ||
45 | -// return '//101.200.31.165/yohosearch/new-shelve.json'; | 44 | + return 'http://search.yohoops.org/yohosearch/new-shelve.json'; |
45 | +// return 'http://101.200.31.165/yohosearch/new-shelve.json'; | ||
46 | } | 46 | } |
47 | elseif ($type == 'shop') { | 47 | elseif ($type == 'shop') { |
48 | - return '//search.yohoops.org/yohosearch/shops.json'; | ||
49 | -// return '//101.200.31.165/yohosearch/shops.json'; | 48 | + return 'http://search.yohoops.org/yohosearch/shops.json'; |
49 | +// return 'http://101.200.31.165/yohosearch/shops.json'; | ||
50 | } | 50 | } |
51 | elseif ($type == 'brand') { | 51 | elseif ($type == 'brand') { |
52 | - return '//search.yohoops.org/yohosearch/brand/list.json'; | ||
53 | -// return '//101.200.31.165/yohosearch/brand/list.json'; | 52 | + return 'http://search.yohoops.org/yohosearch/brand/list.json'; |
53 | +// return 'http://101.200.31.165/yohosearch/brand/list.json'; | ||
54 | } | 54 | } |
55 | - return '//search.yohoops.org/yohosearch/search.json'; | ||
56 | -// return '//101.200.31.165/yohosearch/search.json'; | 55 | + return 'http://search.yohoops.org/yohosearch/search.json'; |
56 | +// return 'http://101.200.31.165/yohosearch/search.json'; | ||
57 | 57 | ||
58 | case 'preview': | 58 | case 'preview': |
59 | if ($type == 'sort') { | 59 | if ($type == 'sort') { |
60 | - return '//192.168.10.64:8080/yohosearch/sortgroup.json'; | 60 | + return 'http://192.168.10.64:8080/yohosearch/sortgroup.json'; |
61 | } | 61 | } |
62 | elseif ($type == 'discount') { | 62 | elseif ($type == 'discount') { |
63 | - return '//192.168.10.64:8080/yohosearch/discount.json'; | 63 | + return 'http://192.168.10.64:8080/yohosearch/discount.json'; |
64 | } | 64 | } |
65 | elseif ($type == 'recent') { | 65 | elseif ($type == 'recent') { |
66 | - return '//192.168.10.64:8080/yohosearch/recent.json'; | 66 | + return 'http://192.168.10.64:8080/yohosearch/recent.json'; |
67 | } | 67 | } |
68 | elseif ($type == 'suggest') { | 68 | elseif ($type == 'suggest') { |
69 | - return '//192.168.10.64:8080/yohosearch/suggest.json'; | 69 | + return 'http://192.168.10.64:8080/yohosearch/suggest.json'; |
70 | } | 70 | } |
71 | else if($type == 'new-shelve') { | 71 | else if($type == 'new-shelve') { |
72 | - return '//192.168.10.64:8080/yohosearch/new-shelve.json'; | 72 | + return 'http://192.168.10.64:8080/yohosearch/new-shelve.json'; |
73 | } | 73 | } |
74 | elseif ($type == 'shop') { | 74 | elseif ($type == 'shop') { |
75 | - return '//192.168.10.64:8080/yohosearch/shops.json'; | 75 | + return 'http://192.168.10.64:8080/yohosearch/shops.json'; |
76 | } | 76 | } |
77 | elseif ($type == 'brand') { | 77 | elseif ($type == 'brand') { |
78 | - return '//192.168.10.64:8080/yohosearch/brand/list.json'; | 78 | + return 'http://192.168.10.64:8080/yohosearch/brand/list.json'; |
79 | } | 79 | } |
80 | - return '//192.168.102.216:8080/yohosearch/search.json'; | 80 | + return 'http://192.168.102.216:8080/yohosearch/search.json'; |
81 | case 'testing': | 81 | case 'testing': |
82 | if ($type == 'sort') { | 82 | if ($type == 'sort') { |
83 | - return '//testing.yohoops.org/yohosearch/sortgroup.json'; | 83 | + return 'http://testing.yohoops.org/yohosearch/sortgroup.json'; |
84 | } | 84 | } |
85 | elseif ($type == 'discount') { | 85 | elseif ($type == 'discount') { |
86 | - return '//testing.yohoops.org/yohosearch/discount.json'; | 86 | + return 'http://testing.yohoops.org/yohosearch/discount.json'; |
87 | } | 87 | } |
88 | elseif ($type == 'recent') { | 88 | elseif ($type == 'recent') { |
89 | - return '//testing.yohoops.org/yohosearch/recent.json'; | 89 | + return 'http://testing.yohoops.org/yohosearch/recent.json'; |
90 | } | 90 | } |
91 | elseif ($type == 'suggest') { | 91 | elseif ($type == 'suggest') { |
92 | - return '//testing.yohoops.org/yohosearch/suggest.json'; | 92 | + return 'http://testing.yohoops.org/yohosearch/suggest.json'; |
93 | } | 93 | } |
94 | else if($type == 'new-shelve') { | 94 | else if($type == 'new-shelve') { |
95 | - return '//testing.yohoops.org/yohosearch/new-shelve.json'; | 95 | + return 'http://testing.yohoops.org/yohosearch/new-shelve.json'; |
96 | } | 96 | } |
97 | elseif ($type == 'shop') { | 97 | elseif ($type == 'shop') { |
98 | - return '//testing.yohoops.org/yohosearch/shops.json'; | 98 | + return 'http://testing.yohoops.org/yohosearch/shops.json'; |
99 | } | 99 | } |
100 | elseif ($type == 'search') { | 100 | elseif ($type == 'search') { |
101 | - return '//testing.yohoops.org/yohosearch/search.json'; | 101 | + return 'http://testing.yohoops.org/yohosearch/search.json'; |
102 | } | 102 | } |
103 | elseif ($type == 'brand') { | 103 | elseif ($type == 'brand') { |
104 | - return '//testing.yohoops.org/yohosearch/brand/list.json'; | 104 | + return 'http://testing.yohoops.org/yohosearch/brand/list.json'; |
105 | } | 105 | } |
106 | - return '//testing.yohoops.org/yohosearch/search.json'; | 106 | + return 'http://testing.yohoops.org/yohosearch/search.json'; |
107 | case 'developer': | 107 | case 'developer': |
108 | default: | 108 | default: |
109 | if ($type == 'sort') { | 109 | if ($type == 'sort') { |
110 | - return '//192.168.102.216:8080/yohosearch/sortgroup.json'; | 110 | + return 'http://192.168.102.216:8080/yohosearch/sortgroup.json'; |
111 | } | 111 | } |
112 | elseif ($type == 'discount') { | 112 | elseif ($type == 'discount') { |
113 | - return '//192.168.102.216:8080/yohosearch/discount.json'; | 113 | + return 'http://192.168.102.216:8080/yohosearch/discount.json'; |
114 | } | 114 | } |
115 | elseif ($type == 'recent') { | 115 | elseif ($type == 'recent') { |
116 | - return '//192.168.102.216:8080/yohosearch/recent.json'; | 116 | + return 'http://192.168.102.216:8080/yohosearch/recent.json'; |
117 | } | 117 | } |
118 | elseif ($type == 'suggest') { | 118 | elseif ($type == 'suggest') { |
119 | - return '//192.168.102.216:8080/yohosearch/suggest.json'; | 119 | + return 'http://192.168.102.216:8080/yohosearch/suggest.json'; |
120 | } | 120 | } |
121 | else if($type == 'new-shelve') { | 121 | else if($type == 'new-shelve') { |
122 | - return '//192.168.102.216:8080/yohosearch/new-shelve.json'; | 122 | + return 'http://192.168.102.216:8080/yohosearch/new-shelve.json'; |
123 | } | 123 | } |
124 | elseif ($type == 'shop') { | 124 | elseif ($type == 'shop') { |
125 | - return '//192.168.102.216:8080/yohosearch/shops.json'; | 125 | + return 'http://192.168.102.216:8080/yohosearch/shops.json'; |
126 | } | 126 | } |
127 | elseif ($type == 'search') { | 127 | elseif ($type == 'search') { |
128 | - return '//192.168.102.216:8080/yohosearch/search.json'; | 128 | + return 'http://192.168.102.216:8080/yohosearch/search.json'; |
129 | } | 129 | } |
130 | elseif ($type == 'brand') { | 130 | elseif ($type == 'brand') { |
131 | - return '//192.168.102.216:8080/yohosearch/brand/list.json'; | 131 | + return 'http://192.168.102.216:8080/yohosearch/brand/list.json'; |
132 | } | 132 | } |
133 | - return '//192.168.102.216:8080/yohosearch/search.json'; | 133 | + return 'http://192.168.102.216:8080/yohosearch/search.json'; |
134 | } | 134 | } |
135 | } | 135 | } |
136 | 136 |
-
Please register or login to post a comment