Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
9cd4c4e3e85cd75d7f4ef6f5df17b4b2d700e952
1 parent
28ad7c04
code review by fei.hong: do merge zhifeng.liang codes to home floor
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
library/LibModels/Web/Product/SearchData.php
library/LibModels/Web/Product/SearchData.php
View file @
9cd4c4e
...
...
@@ -25,34 +25,34 @@ class SearchData
switch
(
APPLICATION_ENV
)
{
case
'production'
:
if
(
$type
==
'sort'
)
{
return
'http://101.200.
143.161
/yohosearch/sortgroup.json'
;
return
'http://101.200.
31.165
/yohosearch/sortgroup.json'
;
// return 'http://101.200.31.165/yohosearch/sortgroup.json';
}
elseif
(
$type
==
'discount'
)
{
return
'http://101.200.
143.161
/yohosearch/discount.json'
;
return
'http://101.200.
31.165
/yohosearch/discount.json'
;
// return 'http://101.200.31.165/yohosearch/discount.json';
}
elseif
(
$type
==
'recent'
)
{
return
'http://101.200.
143.161
/yohosearch/recent.json'
;
return
'http://101.200.
31.165
/yohosearch/recent.json'
;
// return 'http://101.200.31.165/yohosearch/recent.json';
}
elseif
(
$type
==
'suggest'
)
{
return
'http://101.200.
143.161
/yohosearch/suggest.json'
;
return
'http://101.200.
31.165
/yohosearch/suggest.json'
;
// return 'http://101.200.31.165/yohosearch/suggest.json';
}
else
if
(
$type
==
'new-shelve'
)
{
return
'http://101.200.
143.161
/yohosearch/new-shelve.json'
;
return
'http://101.200.
31.165
/yohosearch/new-shelve.json'
;
// return 'http://101.200.31.165/yohosearch/new-shelve.json';
}
elseif
(
$type
==
'shop'
)
{
return
'http://101.200.
143.161
/yohosearch/shops.json'
;
return
'http://101.200.
31.165
/yohosearch/shops.json'
;
// return 'http://101.200.31.165/yohosearch/shops.json';
}
elseif
(
$type
==
'brand'
)
{
return
'http://101.200.
143.161
/yohosearch/brand/list.json'
;
return
'http://101.200.
31.165
/yohosearch/brand/list.json'
;
// return 'http://101.200.31.165/yohosearch/brand/list.json';
}
return
'http://101.200.
143.161
/yohosearch/search.json'
;
return
'http://101.200.
31.165
/yohosearch/search.json'
;
// return 'http://101.200.31.165/yohosearch/search.json';
case
'preview'
:
...
...
@@ -82,31 +82,31 @@ class SearchData
case
'developer'
:
default
:
if
(
$type
==
'sort'
)
{
return
'http://101.200.
143.161
/yohosearch/sortgroup.json'
;
return
'http://101.200.
31.165
/yohosearch/sortgroup.json'
;
// return 'http://101.200.31.165/yohosearch/sortgroup.json';
// return 'http://182.92.99.119:8080/yohosearch/sortgroup.json';
}
elseif
(
$type
==
'discount'
)
{
return
'http://101.200.
143.161
/yohosearch/discount.json'
;
return
'http://101.200.
31.165
/yohosearch/discount.json'
;
// return 'http://101.200.31.165/yohosearch/discount.json';
// return 'http://182.92.99.119:8080/yohosearch/discount.json';
}
elseif
(
$type
==
'recent'
)
{
return
'http://101.200.
143.161
/yohosearch/recent.json'
;
return
'http://101.200.
31.165
/yohosearch/recent.json'
;
// return 'http://101.200.31.165/yohosearch/recent.json';
// return 'http://182.92.99.119:8080/yohosearch/recent.json';
}
elseif
(
$type
==
'suggest'
)
{
return
'http://101.200.
143.161
/yohosearch/suggest.json'
;
return
'http://101.200.
31.165
/yohosearch/suggest.json'
;
// return 'http://101.200.31.165/yohosearch/suggest.json';
// return 'http://182.92.99.119:8080/yohosearch/suggest.json';
}
else
if
(
$type
==
'new-shelve'
)
{
return
'http://101.200.
143.161
/yohosearch/new-shelve.json'
;
//'http://182.92.99.119:8080/yohosearch/new-shelve.json';
return
'http://101.200.
31.165
/yohosearch/new-shelve.json'
;
//'http://182.92.99.119:8080/yohosearch/new-shelve.json';
// return 'http://182.92.99.119:8080/yohosearch/new-shelve.json';//'http://182.92.99.119:8080/yohosearch/new-shelve.json';
}
elseif
(
$type
==
'shop'
)
{
return
'http://101.200.
143.161
/yohosearch/shops.json'
;
return
'http://101.200.
31.165
/yohosearch/shops.json'
;
// return 'http://101.200.31.165/yohosearch/shops.json';
// return 'http://182.92.99.119:8080/yohosearch/shops.json';
}
...
...
@@ -114,11 +114,11 @@ class SearchData
return
'http://182.92.99.119:8080/yohosearch/search-once.json'
;
}
elseif
(
$type
==
'brand'
)
{
return
'http://101.200.
143.161
/yohosearch/brand/list.json'
;
return
'http://101.200.
31.165
/yohosearch/brand/list.json'
;
// return 'http://101.200.31.165/yohosearch/brand/list.json';
// return 'http://182.92.99.119:8080/yohosearch/brand/list.json';
}
return
'http://101.200.
143.161
/yohosearch/search.json'
;
return
'http://101.200.
31.165
/yohosearch/search.json'
;
//return 'http://101.200.31.165/yohosearch/search.json';
// return 'http://182.92.99.119:8080/yohosearch/search.json';
}
...
...
Please
register
or
login
to post a comment