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
500d57e4
Commit
500d57e4
authored
Dec 10, 2018
by
christ
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into ccw
parents
eda1e0b0
7e0faf45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
StoreService.php
application/models/Business/Store/StoreService.php
+11
-4
No files found.
application/models/Business/Store/StoreService.php
View file @
500d57e4
...
@@ -354,9 +354,16 @@ class StoreServiceModel extends \Business\AbstractModel{
...
@@ -354,9 +354,16 @@ class StoreServiceModel extends \Business\AbstractModel{
}
}
$address
=
preg_replace
(
"/\s/"
,
''
,
$address
);
$address
=
preg_replace
(
"/\s/"
,
''
,
$address
);
//营业时间
//营业时间
$openingHours
=
''
;
if
(
$storeInfo
[
'store_start_time'
]
&&
$storeInfo
[
'store_close_time'
])
{
if
(
$storeInfo
[
'store_start_time'
]
&&
$storeInfo
[
'store_close_time'
]){
if
(
$storeInfo
[
'store_start_time'
]
==
$storeInfo
[
'store_close_time'
])
{
$openingHours
=
$storeInfo
[
'store_start_time'
]
.
'-'
.
$storeInfo
[
'store_close_time'
];
$businessHours
=
'全天'
;
}
elseif
(
$storeInfo
[
'store_start_time'
]
>
$storeInfo
[
'store_close_time'
])
{
$businessHours
=
$storeInfo
[
'store_start_time'
]
.
' - 次日'
.
$storeInfo
[
'store_close_time'
];
}
else
{
$businessHours
=
$storeInfo
[
'store_start_time'
]
.
' - '
.
$storeInfo
[
'store_close_time'
];
}
}
else
{
$businessHours
=
''
;
}
}
//店铺经营分类
//店铺经营分类
$goodsClassInstance
=
\DAO\GoodsClassModel
::
getInstance
();
$goodsClassInstance
=
\DAO\GoodsClassModel
::
getInstance
();
...
@@ -370,7 +377,7 @@ class StoreServiceModel extends \Business\AbstractModel{
...
@@ -370,7 +377,7 @@ class StoreServiceModel extends \Business\AbstractModel{
}
}
}
}
list
(
$qualificationPics
,
$detailImg
)
=
$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'
=>
$
opening
Hours
,
'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'
=>
$
business
Hours
,
'storeService'
=>
$storeInfo
[
'store_notice'
],
"qualificationImage"
=>
$qualificationPics
,
'showImage'
=>
$detailImg
);
}
}
public
function
getRecommendGoodsCache
(
$param
,
$memberId
){
public
function
getRecommendGoodsCache
(
$param
,
$memberId
){
$storeId
=
intval
(
$param
[
'storeId'
]);
$storeId
=
intval
(
$param
[
'storeId'
]);
...
...
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