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
90106879
Commit
90106879
authored
Sep 14, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配送公式问题
parent
27c20519
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
DeliveryFormula.php
application/models/DAO/DeliveryFormula.php
+12
-1
CodeConfig.php
application/models/Error/CodeConfig.php
+1
-1
No files found.
application/models/DAO/DeliveryFormula.php
100755 → 100644
View file @
90106879
...
...
@@ -86,7 +86,6 @@ class DeliveryFormulaModel extends \DAO\AbstractModel {
$tommorowEndTime
=
$todayEndTime
+
\Our\ApiConst
::
oneDaySecond
;
if
(
$deliveryFormula
[
'state'
]
==
\Our\ApiConst
::
one
)
{
$returnData
=
$this
->
getCommonFormula
(
$choosedData
,
$todayStartTime
,
$todayEndTime
,
$tommorowStartTime
,
$tommorowEndTime
,
$deliveryIntval
);
$returnData
=
$this
->
getCommonFormula
(
$choosedData
,
$todayStartTime
,
$todayEndTime
,
$tommorowStartTime
,
$tommorowEndTime
,
$deliveryIntval
);
}
else
{
$returnData
=
$this
->
getSimpleFormula
(
$choosedData
,
$todayStartTime
,
$todayEndTime
,
$tommorowStartTime
,
$tommorowEndTime
,
$deliveryIntval
);
}
...
...
@@ -155,8 +154,16 @@ class DeliveryFormulaModel extends \DAO\AbstractModel {
if
(
$expriseData
){
$returnData
=
array_merge
(
$expriseData
,
$returnData
);
}
}
if
(
$returnData
){
$returnData
=
array_merge
(
$returnData
,
$tommorowData
);
}
else
{
$returnData
=
$tommorowData
;
}
foreach
(
$returnData
as
$key
=>
$delivery
){
$time
[
$key
]
=
$delivery
[
'time'
];
}
array_multisort
(
$time
,
SORT_ASC
,
$returnData
);
return
$returnData
;
}
...
...
@@ -237,6 +244,10 @@ class DeliveryFormulaModel extends \DAO\AbstractModel {
}
}
$returnData
=
array_merge
(
$returnData
,
$tommorowData
);
foreach
(
$returnData
as
$key
=>
$delivery
){
$time
[
$key
]
=
$delivery
[
'time'
];
}
array_multisort
(
$time
,
SORT_ASC
,
$returnData
);
return
$returnData
;
}
...
...
application/models/Error/CodeConfig.php
100755 → 100644
View file @
90106879
...
...
@@ -699,7 +699,7 @@ class CodeConfigModel {
self
::
noStoreDeliveryTypeForOrder
=>
'该店铺未配置商家配送'
,
self
::
wrongStoreDeliveryFeeForOrder
=>
'店铺配送费参数错误'
,
self
::
wrongDeliveryTimeRangeForOrder
=>
'下单时配送时间格式'
,
self
::
noBuyerDeliveryTypeForOrder
=>
'该店铺配置到店自提'
,
self
::
noBuyerDeliveryTypeForOrder
=>
'该店铺
未
配置到店自提'
,
self
::
noDeliveryFeeForBuyerType
=>
'到店自提不收取配送费'
,
self
::
noExpressDeliveryForOrder
=>
'该店铺未配置快递配送'
,
self
::
wrongPaywayForStoreForOrder
=>
'店铺暂未配置您选择的支付方式'
,
...
...
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