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
01b5248f
Commit
01b5248f
authored
Sep 14, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into ccw
parents
e5d710a7
afef8c40
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
SettingService.php
application/models/Business/Common/SettingService.php
+2
-2
DeliveryFormula.php
application/models/DAO/DeliveryFormula.php
+12
-1
CodeConfig.php
application/models/Error/CodeConfig.php
+1
-1
No files found.
application/models/Business/Common/SettingService.php
100755 → 100644
View file @
01b5248f
...
...
@@ -9,8 +9,8 @@ class SettingServiceModel extends \Business\AbstractModel{
$settingDAO
=
\DAO\SettingModel
::
getInstance
();
$type
==
0
?
$version
=
$settingDAO
->
getListCache
(
array
(
'android_version'
,
'android_apk'
))
:
$version
=
$settingDAO
->
getListCache
(
array
(
'ios_version'
));
if
(
$version
[
'android_version'
])
{
$
host
=
'http://testadmin.shenbd.com'
;
return
array
(
'version'
=>
$version
[
'android_version'
],
'url'
=>
$
host
.
'/mall/index.php?act=desc&op=upload&file_name='
.
$version
[
'android_apk'
]
);
$
url
=
\Our\Common
::
getStaticFile
(
$version
[
'android_apk'
],
'apk/'
)
;
return
array
(
'version'
=>
$version
[
'android_version'
],
'url'
=>
$
url
);
}
return
array
(
'version'
=>
$version
[
'ios_version'
]);
}
...
...
application/models/DAO/DeliveryFormula.php
100755 → 100644
View file @
01b5248f
...
...
@@ -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
View file @
01b5248f
...
...
@@ -701,7 +701,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