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
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
4f240e1496183f5a4b1e4c8b96a1c0de3b07033b
2 parents
0f8c3a8c
45bc67e4
code review by fei.hong : fixes bug to modify Helpers.php undifined vars and modify searchd ip
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
library/LibModels/Wap/Product/SearchData.php
library/LibModels/Wap/Product/SearchData.php
View file @
4f240e1
...
...
@@ -29,7 +29,7 @@ class SearchData
defined
(
'APPLICATION_ENV'
)
||
define
(
'APPLICATION_ENV'
,
'developer'
);
switch
(
APPLICATION_ENV
)
{
case
'release'
:
return
'http://10
0.98.132.63/yohosearch/search.json'
;
//return 'http://101.201.178.220/yohosearch/search.json';
return
'http://10
1.201.178.220/yohosearch/search.json'
;
//return 'http://100.98.132.63/yohosearch/search.json';
case
'preview'
:
return
'http://101.200.31.165/yohosearch/search.json'
;
case
'test'
:
...
...
@@ -155,10 +155,7 @@ class SearchData
if
(
!
isset
(
$condition
[
'page'
]))
{
$param
[
'page'
]
=
1
;
}
if
(
isset
(
$condition
[
'viewNum'
]))
{
$param
[
'viewNum'
]
=
$condition
[
'viewNum'
];
}
else
if
(
!
isset
(
$condition
[
'limit'
]))
{
if
(
!
isset
(
$condition
[
'limit'
]))
{
$param
[
'viewNum'
]
=
60
;
}
else
{
$param
[
'viewNum'
]
=
$condition
[
'limit'
];
...
...
Please
register
or
login
to post a comment