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
9ec29e64
Commit
9ec29e64
authored
Sep 21, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc
parent
2abf51ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ShopkeeperService.php
application/models/Business/Store/ShopkeeperService.php
+4
-0
index.php
scripts/crontab/shopkeeper/index.php
+0
-4
No files found.
application/models/Business/Store/ShopkeeperService.php
View file @
9ec29e64
...
@@ -690,8 +690,11 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
...
@@ -690,8 +690,11 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
$this
->
taskIndex
=
PageConst
::
taskPageBegin
;
$this
->
taskIndex
=
PageConst
::
taskPageBegin
;
$this
->
taskSize
=
PageConst
::
taskPageSize
;
$this
->
taskSize
=
PageConst
::
taskPageSize
;
do
{
do
{
echo
1
;
$storeMemberStatisticData
=
$refundReturnDao
->
getMemberStoreStaticsByGmtUpdate
(
$gmtUpdate
,
$this
->
taskIndex
,
$this
->
taskSize
);
$storeMemberStatisticData
=
$refundReturnDao
->
getMemberStoreStaticsByGmtUpdate
(
$gmtUpdate
,
$this
->
taskIndex
,
$this
->
taskSize
);
echo
2
;
$storeMemberStatisticData
=
isset
(
$storeMemberStatisticData
[
'list'
])
?
$storeMemberStatisticData
[
'list'
]
:
false
;
$storeMemberStatisticData
=
isset
(
$storeMemberStatisticData
[
'list'
])
?
$storeMemberStatisticData
[
'list'
]
:
false
;
echo
3
;
if
(
!
empty
(
$storeMemberStatisticData
)){
if
(
!
empty
(
$storeMemberStatisticData
)){
foreach
(
$storeMemberStatisticData
as
$item
){
foreach
(
$storeMemberStatisticData
as
$item
){
$orderDao
->
deleteOrderCache
(
$item
[
'buyerId'
],
$item
[
'orderId'
],
$item
[
'storeId'
],
true
,
true
);
$orderDao
->
deleteOrderCache
(
$item
[
'buyerId'
],
$item
[
'orderId'
],
$item
[
'storeId'
],
true
,
true
);
...
@@ -704,6 +707,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
...
@@ -704,6 +707,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
}
}
}
}
}
}
echo
4
;
$this
->
taskIndex
++
;
$this
->
taskIndex
++
;
}
while
(
$storeMemberStatisticData
);
}
while
(
$storeMemberStatisticData
);
file_put_contents
(
$this
->
baseDir
.
PathConst
::
refundRetrunGmtUpdate
,
TIMESTAMP
);
file_put_contents
(
$this
->
baseDir
.
PathConst
::
refundRetrunGmtUpdate
,
TIMESTAMP
);
...
...
scripts/crontab/shopkeeper/index.php
View file @
9ec29e64
...
@@ -70,13 +70,9 @@ class cliShopkeeperIndex extends basecli
...
@@ -70,13 +70,9 @@ class cliShopkeeperIndex extends basecli
$shopkeeperService
=
\Business\Store\ShopkeeperServiceModel
::
getInstance
();
$shopkeeperService
=
\Business\Store\ShopkeeperServiceModel
::
getInstance
();
$shopkeeperService
->
baseDir
=
\Our\Common
::
getConfig
(
'out.config'
);
$shopkeeperService
->
baseDir
=
\Our\Common
::
getConfig
(
'out.config'
);
try
{
try
{
echo
1
;
$shopkeeperService
->
insertStoreMemberStatics
();
$shopkeeperService
->
insertStoreMemberStatics
();
echo
2
;
$shopkeeperService
->
reduceStoreMemberStatics
();
$shopkeeperService
->
reduceStoreMemberStatics
();
echo
3
;
//$shopkeeperService->storeStatictisTask();
//$shopkeeperService->storeStatictisTask();
echo
4
;
exit
;
$shopkeeperService
->
updateLastId
();
$shopkeeperService
->
updateLastId
();
}
catch
(
Exception
$ex
)
{
}
catch
(
Exception
$ex
)
{
throw
new
Exception
(
$ex
->
getCode
()
.
'|'
.
$ex
->
getMessage
());
throw
new
Exception
(
$ex
->
getCode
()
.
'|'
.
$ex
->
getMessage
());
...
...
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