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
65150450a3fc3ea85c727d98ec7011242f654536
1 parent
d9d78765
code review by fei.hong: do merge shaofeng.zhou search brand modify logo codes
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
22 deletions
library/LibModels/Web/Product/SearchData.php
yohobuy/huodong.yohobuy.com/configs/core/cache.production.config.ini
yohobuy/www.yohobuy.com/configs/core/cache.production.config.ini
library/LibModels/Web/Product/SearchData.php
View file @
6515045
...
...
@@ -25,34 +25,34 @@ class SearchData
switch
(
APPLICATION_ENV
)
{
case
'production'
:
if
(
$type
==
'sort'
)
{
return
'http://
search.yoho.cn
/yohosearch/sortgroup.json'
;
return
'http://
x.yohobuy.com
/yohosearch/sortgroup.json'
;
// return 'http://101.200.31.165/yohosearch/sortgroup.json';
}
elseif
(
$type
==
'discount'
)
{
return
'http://
search.yoho.cn
/yohosearch/discount.json'
;
return
'http://
x.yohobuy.com
/yohosearch/discount.json'
;
// return 'http://101.200.31.165/yohosearch/discount.json';
}
elseif
(
$type
==
'recent'
)
{
return
'http://
search.yoho.cn
/yohosearch/recent.json'
;
return
'http://
x.yohobuy.com
/yohosearch/recent.json'
;
// return 'http://101.200.31.165/yohosearch/recent.json';
}
elseif
(
$type
==
'suggest'
)
{
return
'http://
search.yoho.cn
/yohosearch/suggest.json'
;
return
'http://
x.yohobuy.com
/yohosearch/suggest.json'
;
// return 'http://101.200.31.165/yohosearch/suggest.json';
}
else
if
(
$type
==
'new-shelve'
)
{
return
'http://
search.yoho.cn
/yohosearch/new-shelve.json'
;
return
'http://
x.yohobuy.com
/yohosearch/new-shelve.json'
;
// return 'http://101.200.31.165/yohosearch/new-shelve.json';
}
elseif
(
$type
==
'shop'
)
{
return
'http://
search.yoho.cn
/yohosearch/shops.json'
;
return
'http://
x.yohobuy.com
/yohosearch/shops.json'
;
// return 'http://101.200.31.165/yohosearch/shops.json';
}
elseif
(
$type
==
'brand'
)
{
return
'http://
search.yoho.cn
/yohosearch/brand/list.json'
;
return
'http://
x.yohobuy.com
/yohosearch/brand/list.json'
;
// return 'http://101.200.31.165/yohosearch/brand/list.json';
}
return
'http://
search.yoho.cn
/yohosearch/search.json'
;
return
'http://
x.yohobuy.com
/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://
search.yoho.cn
/yohosearch/sortgroup.json'
;
return
'http://
x.yohobuy.com
/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://
search.yoho.cn
/yohosearch/discount.json'
;
return
'http://
x.yohobuy.com
/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://
search.yoho.cn
/yohosearch/recent.json'
;
return
'http://
x.yohobuy.com
/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://
search.yoho.cn
/yohosearch/suggest.json'
;
return
'http://
x.yohobuy.com
/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://
search.yoho.cn
/yohosearch/new-shelve.json'
;
//'http://182.92.99.119:8080/yohosearch/new-shelve.json';
return
'http://
x.yohobuy.com
/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://
search.yoho.cn
/yohosearch/shops.json'
;
return
'http://
x.yohobuy.com
/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://
search.yoho.cn
/yohosearch/brand/list.json'
;
return
'http://
x.yohobuy.com
/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://
search.yoho.cn
/yohosearch/search.json'
;
return
'http://
x.yohobuy.com
/yohosearch/search.json'
;
//return 'http://101.200.31.165/yohosearch/search.json';
// return 'http://182.92.99.119:8080/yohosearch/search.json';
}
...
...
yohobuy/huodong.yohobuy.com/configs/core/cache.production.config.ini
View file @
6515045
[memcached]
master.hosts
=
172.31.22.1:12111,172.31.20.56:12111,172.31.31.146:12111
slave.hosts
=
172.31.22.1:12112,172.31.20.56:12112,172.31.31.146:12112
session.hosts
=
172.31.22.1:12111,172.31.20.56:12111,172.31.31.146:12111
master.hosts
=
192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
slave.hosts
=
192.168.166.16:12112,192.168.166.17:12112,192.168.166.18:12112
session.hosts
=
192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
[redis]
servers.hosts
=
127.0.0.1:6379
\ No newline at end of file
...
...
yohobuy/www.yohobuy.com/configs/core/cache.production.config.ini
View file @
6515045
[memcached]
master.hosts
=
172.31.22.1:12111,172.31.20.56:12111,172.31.31.146:12111
slave.hosts
=
172.31.22.1:12112,172.31.20.56:12112,172.31.31.146:12112
session.hosts
=
172.31.22.1:12111,172.31.20.56:12111,172.31.31.146:12111
master.hosts
=
192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
slave.hosts
=
192.168.166.16:12112,192.168.166.17:12112,192.168.166.18:12112
session.hosts
=
192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
[redis]
servers.hosts
=
127.0.0.1:6379
\ No newline at end of file
...
...
Please
register
or
login
to post a comment