Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenchuanwen
my-yaf-project
Commits
3c7da877
Commit
3c7da877
authored
Nov 27, 2018
by
zhz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mall
parent
bba1fbae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
14 deletions
+22
-14
StoreService.php
application/models/Business/Store/StoreService.php
+22
-14
No files found.
application/models/Business/Store/StoreService.php
View file @
3c7da877
...
@@ -168,17 +168,17 @@ class StoreServiceModel extends \Business\AbstractModel{
...
@@ -168,17 +168,17 @@ class StoreServiceModel extends \Business\AbstractModel{
list
(
$storeInfo
,
$storeLabel
)
=
\DAO\StoreModel
::
getInstance
()
->
get
(
$storeId
);
list
(
$storeInfo
,
$storeLabel
)
=
\DAO\StoreModel
::
getInstance
()
->
get
(
$storeId
);
//展示图片
//展示图片
$detailImg
=
[];
//
$detailImg = [];
if
(
$storeInfo
[
'store_detail_image'
]){
//
if($storeInfo['store_detail_image']){
$storeDetailImg
=
unserialize
(
$storeInfo
[
'store_detail_image'
]);
//
$storeDetailImg = unserialize($storeInfo['store_detail_image']);
if
(
$storeDetailImg
&&
is_array
(
$storeDetailImg
)){
//
if($storeDetailImg && is_array($storeDetailImg)){
foreach
(
$storeDetailImg
as
$v
){
//
foreach ($storeDetailImg as $v){
if
(
$v
)
{
//
if($v) {
$detailImg
[]
=
\DAO\StoreModel
::
getInstance
()
->
getStoreLabelSrc
(
$v
,
\Our\ImageConst
::
storeQualificationImg
);
//
$detailImg[] = \DAO\StoreModel::getInstance()->getStoreLabelSrc($v, \Our\ImageConst::storeQualificationImg);
}
//
}
}
//
}
}
//
}
}
//
}
//地址
//地址
$address
=
''
;
$address
=
''
;
if
(
$storeInfo
[
'area_info'
]){
if
(
$storeInfo
[
'area_info'
]){
...
@@ -204,7 +204,7 @@ class StoreServiceModel extends \Business\AbstractModel{
...
@@ -204,7 +204,7 @@ class StoreServiceModel extends \Business\AbstractModel{
$returnClass
[]
=
$v
[
'gc_name'
];
$returnClass
[]
=
$v
[
'gc_name'
];
}
}
}
}
$qualificationPics
=
$this
->
getStoreQualification
(
$storeId
,
$storeInfo
[
'member_id'
]);
list
(
$qualificationPics
,
$detailImg
)
=
$this
->
getStoreQualification
(
$storeId
,
$storeInfo
[
'member_id'
]);
return
array
(
'storeName'
=>
$storeInfo
[
'store_name'
],
'storeLabel'
=>
$storeLabel
,
'fansCount'
=>
\DAO\FavoritesStoreModel
::
getInstance
()
->
getFavoritesStoreCountByStoreId
(
$storeId
),
'clazz'
=>
$returnClass
,
'address'
=>
$address
,
'storePhone'
=>
$storeInfo
[
'store_phone'
],
'openingHours'
=>
$openingHours
,
'storeService'
=>
$storeInfo
[
'store_notice'
],
"qualificationImage"
=>
$qualificationPics
,
'showImage'
=>
$detailImg
);
return
array
(
'storeName'
=>
$storeInfo
[
'store_name'
],
'storeLabel'
=>
$storeLabel
,
'fansCount'
=>
\DAO\FavoritesStoreModel
::
getInstance
()
->
getFavoritesStoreCountByStoreId
(
$storeId
),
'clazz'
=>
$returnClass
,
'address'
=>
$address
,
'storePhone'
=>
$storeInfo
[
'store_phone'
],
'openingHours'
=>
$openingHours
,
'storeService'
=>
$storeInfo
[
'store_notice'
],
"qualificationImage"
=>
$qualificationPics
,
'showImage'
=>
$detailImg
);
}
}
public
function
getRecommendGoodsCache
(
$param
,
$memberId
){
public
function
getRecommendGoodsCache
(
$param
,
$memberId
){
...
@@ -434,9 +434,17 @@ class StoreServiceModel extends \Business\AbstractModel{
...
@@ -434,9 +434,17 @@ class StoreServiceModel extends \Business\AbstractModel{
}
}
public
function
getStoreQualification
(
$storeId
,
$memberId
)
{
public
function
getStoreQualification
(
$storeId
,
$memberId
)
{
$pics
=
\DAO\Store\QmStoreApplyClassModel
::
getInstance
()
->
getApplyPicCache
(
$storeId
,
'file_name'
);
$pics
=
\DAO\Store\QmStoreApplyClassModel
::
getInstance
()
->
getApplyPicCache
(
$storeId
,
'file_name'
);
$join
=
\DAO\Store\StoreJoininModel
::
getInstance
()
->
getOneByMemberIdCache
(
$memberId
,
'business_licence_photo'
);
$join
=
\DAO\Store\StoreJoininModel
::
getInstance
()
->
getOneByMemberIdCache
(
$memberId
,
'business_licence_photo
,shop_front_photo,shop_photo
'
);
$join
[
'business_licence_photo'
]
&&
$pics
[]
=
\Our\Common
::
getStaticFile
(
$join
[
'business_licence_photo'
],
\Our\ImageConst
::
Register
,
'ossHost'
);
$join
[
'business_licence_photo'
]
&&
$pics
[]
=
\Our\Common
::
getStaticFile
(
$join
[
'business_licence_photo'
],
\Our\ImageConst
::
Register
,
'ossHost'
);
return
\DAO\Store\QmStoreApplyClassModel
::
getInstance
()
->
addWaterMark
(
$pics
);
$qualificationPics
=
\DAO\Store\QmStoreApplyClassModel
::
getInstance
()
->
addWaterMark
(
$pics
);
$showImg
=
[];
$join
[
'shop_front_photo'
]
&&
$showImg
[]
=
\Our\Common
::
getStaticFile
(
$join
[
'shop_front_photo'
],
\Our\ImageConst
::
Register
,
'ossHost'
);
if
(
$shop_photo
=
unserialize
(
$join
[
'shop_photo'
]))
{
foreach
(
$shop_photo
as
$v
)
{
$v
&&
$showImg
[]
=
\Our\Common
::
getStaticFile
(
$v
,
\Our\ImageConst
::
Register
,
'ossHost'
);
}
}
return
array
(
$qualificationPics
,
$showImg
);
}
}
/**
/**
* 获取搜索页推荐关键字
* 获取搜索页推荐关键字
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment