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
ddecb4c5
Commit
ddecb4c5
authored
Nov 18, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配送时间问题
parent
f7499f51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
DeliveryFormula.php
application/models/DAO/DeliveryFormula.php
+18
-2
No files found.
application/models/DAO/DeliveryFormula.php
View file @
ddecb4c5
...
...
@@ -111,8 +111,16 @@ class DeliveryFormulaModel extends \DAO\AbstractModel {
$return
=
array_merge
(
$return
,
$nextList
);
}
if
(
$return
){
$newReturn
=
array
();
foreach
(
$return
as
$key
=>
$val
){
if
(
isset
(
$newReturn
[
$key
])){
$newReturn
[
$key
]
=
array_merge
(
$newReturn
[
$key
],
$val
);
}
else
{
$newReturn
[
$key
]
=
$val
;
}
}
$returnList
=
array
();
foreach
(
$
r
eturn
as
$key
=>
$value
){
foreach
(
$
newR
eturn
as
$key
=>
$value
){
$dayList
=
array
();
$dayList
[
'time'
]
=
strtotime
(
date
(
'Y-m-d'
,
$value
[
0
][
'time'
]));
$dayList
[
'list'
]
=
$value
;
...
...
@@ -270,8 +278,16 @@ class DeliveryFormulaModel extends \DAO\AbstractModel {
$return
=
array_merge
(
$return
,
$nextList
);
}
if
(
$return
){
$newReturn
=
array
();
foreach
(
$return
as
$key
=>
$val
){
if
(
isset
(
$newReturn
[
$key
])){
$newReturn
[
$key
]
=
array_merge
(
$newReturn
[
$key
],
$val
);
}
else
{
$newReturn
[
$key
]
=
$val
;
}
}
$returnList
=
array
();
foreach
(
$
r
eturn
as
$key
=>
$value
){
foreach
(
$
newR
eturn
as
$key
=>
$value
){
$dayList
=
array
();
$dayList
[
'time'
]
=
strtotime
(
date
(
'Y-m-d'
,
$value
[
0
][
'time'
]));
$dayList
[
'list'
]
=
$value
;
...
...
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