Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
yyq
9 years ago
Commit
73acad6c675073201131f7261426e14642ade97d
2 parents
e142ad06
ddd24f44
Merge branch 'hotfix/returnsBug'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
yohobuy/www.yohobuy.com/application/models/Home/Returns.php
yohobuy/www.yohobuy.com/application/models/Home/Returns.php
View file @
73acad6
...
...
@@ -500,12 +500,12 @@ class ReturnsModel
if
(
empty
(
$order
))
{
return
array
(
'code'
=>
403
,
'message'
=>
'没有找到该订单'
);
}
//订单7天后不能退款
if
(
isset
(
$order
[
'code'
])
&&
$order
[
'code'
]
==
200
)
{
if
((
time
()
-
$order
[
'data'
][
'create_time'
])
>
7
*
86400
)
{
return
array
(
'code'
=>
400
,
'message'
=>
'您的订单已经超过了退货有效期'
);
}
}
// //订单7天后不能退款
// if (isset($order['code']) && $order['code'] == 200) {
// if ((time() - $order['data']['create_time']) > 7*86400) {
// return array('code'=>400,'message'=>'您的订单已经超过了退货有效期');
// }
// }
//组装站内信内容
$title
=
'您有一笔订单提交退货申请:'
;
$content
=
'您的订单'
.
$orderCode
.
'申请退货,给您带来不便敬请谅解!请至订单中心查看详情!'
;
...
...
@@ -540,12 +540,12 @@ class ReturnsModel
if
(
empty
(
$order
))
{
return
array
(
'code'
=>
403
,
'message'
=>
'没有找到该订单'
);
}
//订单15天后不能换货
if
(
isset
(
$order
[
'code'
])
&&
$order
[
'code'
]
==
200
)
{
if
((
time
()
-
$order
[
'data'
][
'create_time'
])
>
15
*
86400
)
{
return
array
(
'code'
=>
400
,
'message'
=>
'您的订单已经超过了换货有效期'
);
}
}
// //订单15天后不能换货
// if (isset($order['code']) && $order['code'] == 200) {
// if ((time() - $order['data']['create_time']) > 15*86400) {
// return array('code'=>400,'message'=>'您的订单已经超过了换货有效期');
// }
// }
//保存换货申请
$result
=
ReturnsData
::
exchangeSubmit
(
$orderCode
,
$uid
,
$goods
,
$consigneeName
,
$areaCode
,
$address
,
$mobile
,
$zipCode
,
$deliveryType
);
...
...
Please
register
or
login
to post a comment