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
2700fc08
Commit
2700fc08
authored
Dec 09, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
master_dev
parent
78a55ef4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
RefundService.php
application/models/Business/Order/RefundService.php
+7
-5
No files found.
application/models/Business/Order/RefundService.php
View file @
2700fc08
...
@@ -290,6 +290,7 @@ class RefundServiceModel extends \Business\AbstractModel
...
@@ -290,6 +290,7 @@ class RefundServiceModel extends \Business\AbstractModel
if
(
$refund_array
[
'seller_state'
]
==
'2'
&&
!
$isGiveUp
)
{
if
(
$refund_array
[
'seller_state'
]
==
'2'
&&
!
$isGiveUp
)
{
$refund_array
[
'return_type'
]
=
'2'
;
//退货类型:1为不用退货,2为需要退货
$refund_array
[
'return_type'
]
=
'2'
;
//退货类型:1为不用退货,2为需要退货
$refund_array
[
'goods_state'
]
=
2
;
$refund_array
[
'goods_state'
]
=
2
;
$refund_array
[
'refund_state'
]
=
ApiConst
::
refundStateProccess
;
}
elseif
(
$refund_array
[
'seller_state'
]
==
'3'
)
{
}
elseif
(
$refund_array
[
'seller_state'
]
==
'3'
)
{
$refund_array
[
'refund_state'
]
=
ApiConst
::
refundStateComplete
;
//状态:1为处理中,2为待管理员处理,3为已完成
$refund_array
[
'refund_state'
]
=
ApiConst
::
refundStateComplete
;
//状态:1为处理中,2为待管理员处理,3为已完成
...
@@ -325,12 +326,11 @@ class RefundServiceModel extends \Business\AbstractModel
...
@@ -325,12 +326,11 @@ class RefundServiceModel extends \Business\AbstractModel
// showDialog('refund_state_name',$reload,'error');
// showDialog('refund_state_name',$reload,'error');
return
false
;
return
false
;
}
}
}
else
{
if
(
!
in_array
(
$payment_type
,
array
(
0
,
2
))){
$refund_array
[
'refund_state'
]
=
ApiConst
::
refundStateProccess
;
}
}
}
}
}
if
(
in_array
(
$payment_type
,
array
(
0
,
2
))){
$refund_array
[
'refund_state'
]
=
ApiConst
::
refundStateProccess
;
}
}
}
$refund_array
[
'refund_amount'
]
=
$refundAmount
;
$refund_array
[
'refund_amount'
]
=
$refundAmount
;
$state
=
$refundReturnDao
->
update
(
$condition
,
$refund_array
);
$state
=
$refundReturnDao
->
update
(
$condition
,
$refund_array
);
...
@@ -492,7 +492,7 @@ class RefundServiceModel extends \Business\AbstractModel
...
@@ -492,7 +492,7 @@ class RefundServiceModel extends \Business\AbstractModel
ErrorModel
::
throwException
(
CodeConfigModel
::
refundAddPointsLogError
);
ErrorModel
::
throwException
(
CodeConfigModel
::
refundAddPointsLogError
);
}
}
}
}
$refund_array
[
'refund_state'
]
=
ApiConst
::
plat
Proccess
;
//状态:1为处理中,2为待管理员处理,3为已完成
$refund_array
[
'refund_state'
]
=
ApiConst
::
refundState
Proccess
;
//状态:1为处理中,2为待管理员处理,3为已完成
$state
=
$refundReturnDao
->
editRefundReturn
(
$whereRefund
,
$refund_array
);
$state
=
$refundReturnDao
->
editRefundReturn
(
$whereRefund
,
$refund_array
);
if
(
$state
){
//退款记录成功
if
(
$state
){
//退款记录成功
...
@@ -525,6 +525,8 @@ class RefundServiceModel extends \Business\AbstractModel
...
@@ -525,6 +525,8 @@ class RefundServiceModel extends \Business\AbstractModel
$updateData
=
array
(
'is_suc_refund'
=>
1
,
'gmt_update'
=>
TIMESTAMP
);
$updateData
=
array
(
'is_suc_refund'
=>
1
,
'gmt_update'
=>
TIMESTAMP
);
}
}
}
}
}
else
{
$updateData
=
array
(
'is_suc_refund'
=>
ApiConst
::
zero
,
'gmt_update'
=>
TIMESTAMP
,
'seller_state'
=>
$refund_array
[
'seller_state'
],
'refund_state'
=>
ApiConst
::
refundStateProccess
);
}
}
$res
=
$refundReturnDao
->
update
(
array
(
'refund_id'
=>
$refund
[
'refund_id'
]),
$updateData
);
$res
=
$refundReturnDao
->
update
(
array
(
'refund_id'
=>
$refund
[
'refund_id'
]),
$updateData
);
if
(
!
$res
){
if
(
!
$res
){
...
...
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