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
周少峰
9 years ago
Commit
756eebdb50ed801344d3a697d607029a46f025cb
1 parent
1ce93f31
接口地址调整
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
library/LibModels/Web/Product/SearchData.php
library/Plugin/HelperSearch.php
library/LibModels/Web/Product/SearchData.php
View file @
756eebd
...
...
@@ -25,6 +25,10 @@ class SearchData extends \LibModels\Wap\Product\SearchData
elseif
(
$type
==
'recent'
)
{
return
'http://100.98.132.63/yohosearch/recent.json'
;
}
elseif
(
$type
==
'suggest'
)
{
//return 'http://101.200.31.165/yohosearch/suggest.json';
return
'http://100.98.132.63/yohosearch/suggest.json'
;
}
elseif
(
$type
==
'shop'
)
{
return
'http://100.98.132.63/yohosearch/shops.json'
;
}
...
...
@@ -45,6 +49,10 @@ class SearchData extends \LibModels\Wap\Product\SearchData
//return 'http://101.200.31.165/yohosearch/recent.json';
return
'http://192.168.10.64:8080/yohosearch/recent.json'
;
}
elseif
(
$type
==
'suggest'
)
{
// return 'http://101.200.31.165/yohosearch/suggest.json';
return
'http://192.168.10.64:8080/yohosearch/suggest.json'
;
}
elseif
(
$type
==
'shop'
)
{
//return 'http://101.200.31.165/yohosearch/shops.json';
return
'http://192.168.10.64:8080/yohosearch/shops.json'
;
...
...
library/Plugin/HelperSearch.php
View file @
756eebd
...
...
@@ -117,6 +117,9 @@ class HelperSearch
{
$params
=
self
::
$params
;
$goods
=
array
();
if
(
empty
(
$product
))
{
return
$goods
;
}
foreach
(
$product
as
$key
=>
$val
){
//NEW
$isNew
=
$val
[
'is_new'
]
==
'Y'
?
true
:
false
;
...
...
Please
register
or
login
to post a comment