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
1d788dc8
Commit
1d788dc8
authored
Sep 10, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc
parent
c8616474
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
23 deletions
+34
-23
ApiConst.php
application/library/Our/ApiConst.php
+2
-0
RefundReturn.php
application/models/DAO/Order/RefundReturn.php
+32
-23
No files found.
application/library/Our/ApiConst.php
View file @
1d788dc8
...
...
@@ -152,6 +152,8 @@ class ApiConst
//是否退款成功
const
refundSuccess
=
1
;
const
refundFail
=
0
;
const
refundCompleted
=
3
;
//是否收到货
const
shippingOver
=
1
;
const
noShippingOver
=
0
;
...
...
application/models/DAO/Order/RefundReturn.php
View file @
1d788dc8
...
...
@@ -138,6 +138,7 @@ class RefundReturnModel extends \DAO\AbstractModel {
}
public
function
getStatusExtent
(
$returnRefund
){
if
(
$returnRefund
[
'refundState'
]
!=
ApiConst
::
refundCompleted
){
if
(
$returnRefund
[
'sellerState'
]
==
ApiConst
::
refundSellerAgree
){
if
(
$returnRefund
[
'isSucRefund'
]
==
ApiConst
::
refundSuccess
){
return
OrderConst
::
refoundSuccess
;
...
...
@@ -167,6 +168,11 @@ class RefundReturnModel extends \DAO\AbstractModel {
return
OrderConst
::
sellerRefuseGoods
;
}
}
}
else
{
return
OrderConst
::
refoundSuccess
;
}
}
public
function
getRefundTextStatus
(
$refundReturn
){
$refundText
=
''
;
...
...
@@ -174,6 +180,9 @@ class RefundReturnModel extends \DAO\AbstractModel {
case
ApiConst
::
refundSellerVerify
:
$refundText
=
OrderConst
::
waitVerify
;
break
;
case
ApiConst
::
refundSellerAgree
:
$refundText
=
$this
->
getStatusExtent
(
$refundReturn
);
break
;
case
ApiConst
::
refundSellerRefuse
:
$refundText
=
$this
->
getStatusExtent
(
$refundReturn
);
break
;
}
if
(
$refundReturn
[
''
]){
}
return
$refundText
;
}
...
...
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