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
72dbd34d
Commit
72dbd34d
authored
Sep 07, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
店铺销量定时器
parent
2301bfa2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
GoodsCommonService.php
application/models/Business/Goods/GoodsCommonService.php
+1
-1
Abstract.php
application/models/Redis/Db4/Abstract.php
+6
-1
No files found.
application/models/Business/Goods/GoodsCommonService.php
View file @
72dbd34d
...
...
@@ -1178,7 +1178,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
if
(
$storeId
!==
false
){
break
;
}
if
(
!
(
$storeIds
&&
in_array
(
$storeId
,
$storeIds
))){
if
(
$storeIds
&&
!
(
$storeIds
&&
in_array
(
$storeId
,
$storeIds
))){
$topSaleList
=
$storeTopSaleGoodsModel
->
getStoreTopSaleGoodsListByStoreId
(
$storeId
);
$storeTopSaleList
=
$this
->
getNewStoreTopSaleGoodsList
(
$topSaleList
,
$storeId
);
$topSaleList
=
$topSaleList
?
array_merge
(
$topSaleList
,
$storeTopSaleList
)
:
$storeTopSaleList
;
...
...
application/models/Redis/Db4/Abstract.php
View file @
72dbd34d
...
...
@@ -96,7 +96,12 @@ class AbstractModel extends \Redis\AbstractModel {
return
$this
->
lpush
(
$this
->
calcKey
(
$h
),
$value
);
}
public
function
tableLPop
(
$h
){
return
$this
->
lpop
(
$this
->
calcKey
(
$h
));
if
(
$res
=
$this
->
lpop
(
$this
->
calcKey
(
$h
))){
return
$res
;
}
else
{
return
false
;
}
}
public
function
tableSRandMember
(
$h
,
$count
=
null
){
return
$this
->
sRandMember
(
$this
->
calcKey
(
$h
),
$count
);
...
...
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