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
yangyang
9 years ago
Commit
13fd7da74d83b2ec5c75b2a4e36b86971fc2c95f
1 parent
0635df39
修改代码格式
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
library/LibModels/Web/Product/SaleData.php
yohobuy/www.yohobuy.com/application/models/Product/Brands.php
library/LibModels/Web/Product/SaleData.php
View file @
13fd7da
...
...
@@ -19,8 +19,8 @@ class SaleData
* 获取专区信息
* @param $specialId 专区ID
*/
public
static
function
getSpecial
(
$specialsaleId
)
{
public
static
function
getSpecial
(
$specialsaleId
)
{
return
Yohobuy
::
yarClient
(
Yohobuy
::
SERVICE_URL
.
self
::
URL_SALE_SPECIAL
,
'getOneSpecial'
,
array
(
$specialsaleId
));
}
...
...
yohobuy/www.yohobuy.com/application/models/Product/Brands.php
View file @
13fd7da
...
...
@@ -13,7 +13,8 @@ use LibModels\Web\Product\SearchData as WebProduct;
*
* @author Administrator
*/
class
BrandsModel
{
class
BrandsModel
{
const
URL_BRAND_INDEX
=
'/product/index/brand'
;
...
...
@@ -28,7 +29,8 @@ class BrandsModel {
* @param $options array
* @return array
*/
public
static
function
getBrandSearchData
(
$condition
,
$options
,
$domain
,
$uid
,
$brandId
,
$node
)
{
public
static
function
getBrandSearchData
(
$condition
,
$options
,
$domain
,
$uid
,
$brandId
,
$node
)
{
// 调用商品搜索接口
$data
=
SearchData
::
searchElasticByCondition
(
$condition
);
...
...
@@ -86,7 +88,8 @@ class BrandsModel {
*
* @return array 品牌banner条数据
*/
public
static
function
getBannerByDomain
(
$domain
,
$brandId
,
$uid
=
''
)
{
public
static
function
getBannerByDomain
(
$domain
,
$brandId
,
$uid
=
''
)
{
// 构造品牌主页url
self
::
$home
=
Helpers
::
url
(
''
,
''
,
$domain
)
.
self
::
URL_BRAND_INDEX
;
// 根据品牌Id获取品牌banner图
...
...
@@ -121,7 +124,8 @@ class BrandsModel {
}
//获取品牌系列数据
public
static
function
getAdNav
(
$brandId
,
$status
=
1
)
{
public
static
function
getAdNav
(
$brandId
,
$status
=
1
)
{
//调用接口获得数据
$advNav
=
BrandData
::
getFolderByBrand
(
$brandId
,
$status
);
$result
=
array
();
...
...
Please
register
or
login
to post a comment