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
ee85d0cd
Commit
ee85d0cd
authored
Aug 24, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ccw:master_dev
parent
524ba214
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
ApiConst.php
application/library/Our/ApiConst.php
+2
-2
ShopkeeperService.php
application/models/Business/Store/ShopkeeperService.php
+1
-2
No files found.
application/library/Our/ApiConst.php
View file @
ee85d0cd
...
@@ -11,8 +11,8 @@ class ApiConst
...
@@ -11,8 +11,8 @@ class ApiConst
const
randLengh
=
8
;
const
randLengh
=
8
;
//10天数秒
//10天数秒
//
const tenDaySecond = 864000;
const
tenDaySecond
=
864000
;
const
tenDaySecond
=
300
;
//
const tenDaySecond = 300;
//一天
//一天
const
oneDaySecond
=
86400
;
const
oneDaySecond
=
86400
;
//半天
//半天
...
...
application/models/Business/Store/ShopkeeperService.php
View file @
ee85d0cd
...
@@ -394,7 +394,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
...
@@ -394,7 +394,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
$orderDao
=
\DAO\Order\OrderModel
::
getInstance
(
DbNameConst
::
salveDBConnectName
);
$orderDao
=
\DAO\Order\OrderModel
::
getInstance
(
DbNameConst
::
salveDBConnectName
);
$res
=
file_get_contents
(
$this
->
baseDir
.
PathConst
::
orderPaymentTimeConf
);
$res
=
file_get_contents
(
$this
->
baseDir
.
PathConst
::
orderPaymentTimeConf
);
$this
->
lastOrderId
=
!
empty
(
$res
)
?
$res
:
ApiConst
::
zero
;
$this
->
lastOrderId
=
!
empty
(
$res
)
?
$res
:
ApiConst
::
zero
;
$where
[
'payment_time'
]
=
Common
::
format
(
" payment_time >
{
0
}
and payment
_time <=
{
1
}
"
,
$this
->
lastOrderId
,
TIMESTAMP
);
$where
=
Common
::
format
(
" add_time >
{
0
}
and add
_time <=
{
1
}
"
,
$this
->
lastOrderId
,
TIMESTAMP
);
$res
=
$orderDao
->
getAllByWhere
(
$where
,
$orderDao
->
getOrderDetailField
());
$res
=
$orderDao
->
getAllByWhere
(
$where
,
$orderDao
->
getOrderDetailField
());
$results
=
array
();
$results
=
array
();
if
(
!
empty
(
$res
))
{
if
(
!
empty
(
$res
))
{
...
@@ -508,7 +508,6 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
...
@@ -508,7 +508,6 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
//店铺订单统计任务脚本
//店铺订单统计任务脚本
public
function
storeStatictisTask
()
public
function
storeStatictisTask
()
{
{
$orderTotals
=
$this
->
getOrderTotal
();
$orderTotals
=
$this
->
getOrderTotal
();
$memberTotals
=
$this
->
getMemberTotal
();
$memberTotals
=
$this
->
getMemberTotal
();
$storeStatisticsDayDao
=
\DAO\Store\StoreStatisticsDayModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
$storeStatisticsDayDao
=
\DAO\Store\StoreStatisticsDayModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
...
...
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