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
e59ef6ff
Commit
e59ef6ff
authored
Nov 29, 2018
by
zhz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mall
parent
01669d9b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
8 deletions
+15
-8
SaleOrderRedis.php
application/models/Redis/Db1/SaleOrderRedis.php
+11
-4
recommend.php
scripts/crontab/goods/recommend.php
+1
-1
evaluate.php
scripts/crontab/order/evaluate.php
+2
-2
saleGoods.php
scripts/crontab/order/saleGoods.php
+1
-1
No files found.
application/models/Redis/Db1/SaleOrderRedis.php
View file @
e59ef6ff
...
...
@@ -35,9 +35,8 @@ class SaleOrderRedisModel extends \Redis\Db1\AbstractModel {
}
return
null
;
}
public
function
tableDelAll
(
$data
){
return
$this
->
delAll
(
$data
);
}
public
function
tableHSet
(
$h
,
$key
,
$val
,
$experio
=
0
){
return
$this
->
hset
(
$this
->
calcKey
(
$h
),
$key
,
$val
,
$experio
);
...
...
@@ -54,7 +53,15 @@ class SaleOrderRedisModel extends \Redis\Db1\AbstractModel {
public
function
tableHMGet
(
$h
,
$keyvalues
){
return
$this
->
hmget
(
$this
->
calcKey
(
$h
),
$keyvalues
);
}
public
function
tableDelAll
(
$data
){
return
$this
->
delAll
(
$data
);
}
public
function
tableKeys
(
$prekey
){
return
$this
->
keys
(
$this
->
calcKey
(
$prekey
));
}
public
function
tableDel
(
$key
){
return
$this
->
del
(
$key
);
}
public
function
tableCacheGet
(
$id
){
$result
=
$this
->
get
(
$this
->
calcKey
(
$id
));
return
$result
;
...
...
scripts/crontab/goods/recommend.php
100755 → 100644
View file @
e59ef6ff
...
...
@@ -57,7 +57,7 @@ class cliRecommend extends basecli
echo
'****create dir fail ****'
;
exit
;
}
$this
->
lockFileName
=
$lockDir
.
'
.locks'
;
$this
->
lockFileName
=
$lockDir
.
DS
.
'goodsRecommend
.locks'
;
if
(
file_exists
(
$this
->
lockFileName
)
)
{
$stat
=
stat
(
$this
->
lockFileName
);
...
...
scripts/crontab/order/evaluate.php
View file @
e59ef6ff
...
...
@@ -50,12 +50,12 @@ class cliOrderEvaluate extends basecli
echo
"*** Debug mode ***
\n
"
;
}
// Step: 02 检查是否已有相同CLI在运行中
$lockDir
=
$this
->
_getBaseFileName
(
'order
Confirm
'
);
$lockDir
=
$this
->
_getBaseFileName
(
'order
Evaluate
'
);
if
(
!
$this
->
mkdirs
(
$lockDir
)){
echo
'****create dir fail ****'
;
exit
;
}
$this
->
lockFileName
=
$lockDir
.
'/orderType_'
.
$this
->
orderType
.
'_orderResult_'
.
$this
->
orderResult
.
'
.locks'
;
$this
->
lockFileName
=
$lockDir
.
DS
.
'orderEvaluate
.locks'
;
if
(
file_exists
(
$this
->
lockFileName
)
)
{
$stat
=
stat
(
$this
->
lockFileName
);
...
...
scripts/crontab/order/saleGoods.php
View file @
e59ef6ff
...
...
@@ -55,7 +55,7 @@ class cliSaleOrder extends basecli
echo
'****create dir fail ****'
;
exit
;
}
$this
->
lockFileName
=
$lockDir
.
'orderSaleGoods.locks'
;
$this
->
lockFileName
=
$lockDir
.
DS
.
'orderSaleGoods.locks'
;
if
(
file_exists
(
$this
->
lockFileName
)
)
{
$stat
=
stat
(
$this
->
lockFileName
);
...
...
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