Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
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
hujun
tl_estate
Commits
aac5e26f
Commit
aac5e26f
authored
Dec 27, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
判断
parent
be085a00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
Finance.php
application/index/controller/Finance.php
+13
-10
No files found.
application/index/controller/Finance.php
View file @
aac5e26f
...
...
@@ -3668,7 +3668,7 @@ class Finance extends Basic
$refund_data
=
$m_refund
->
selectRefundByOrderNo
(
'id,status,order_id'
,
$refund_where
);
if
(
empty
(
$refund_data
[
0
][
'id'
]))
{
return
$this
->
response
(
$code
,
'没有该退款详情'
);
return
$this
->
response
(
$code
,
'没有该退款详情
或审核完成
'
);
}
if
((
$refund_data
[
0
][
'status'
]
==
4
)
&&
(
$this
->
params
[
'status'
]
==
4
))
{
...
...
@@ -3691,10 +3691,11 @@ class Finance extends Basic
$save_data
[
'operation_name'
]
=
$this
->
userName
;
$save_data
[
'order_id'
]
=
$refund_data
[
0
][
'order_id'
];
$log_where
[
'is_del'
]
=
0
;
$log_where
[
'refund_id'
]
=
$this
->
params
[
'refund_id'
];
$num
=
0
;
switch
(
$this
->
params
[
'status'
])
{
case
1
:
$log_where
[
'status'
]
=
1
;
$log_where
[
'status'
]
=
1
;
$check_num
=
$m_refund_log
->
getTotal
(
$log_where
);
if
(
$check_num
<
3
)
{
...
...
@@ -3705,20 +3706,22 @@ class Finance extends Basic
$num
=
$m_refund_log
->
insertData
(
$save_data
);
break
;
case
2
:
$save_data
[
'status'
]
=
2
;
//已审核
$id
=
$m_refund_log
->
insertData
(
$save_data
);
$log_where
[
'status'
]
=
[
'in'
,
'1,3'
];
$check_num
=
$m_refund_log
->
getTotal
(
$log_where
);
$id
=
0
;
if
(
$check_num
==
4
)
{
$save_data
[
'status'
]
=
2
;
//已审核
$id
=
$m_refund_log
->
insertData
(
$save_data
);
}
if
(
$id
>
0
&&
is_array
(
$this
->
params
[
'img_arr'
]))
{
$m_img
=
new
OImg
();
$m_img
->
addImgAll
(
$id
,
4
,
$this
->
params
[
'img_arr'
]);
}
break
;
case
4
:
$check_num
=
$m_refund_log
->
getTotal
(
$log_where
);
if
(
$check_num
==
4
)
{
$save_data
[
'status'
]
=
4
;
$num
=
$m_refund_log
->
insertData
(
$save_data
);
}
$save_data
[
'status'
]
=
4
;
$num
=
$m_refund_log
->
insertData
(
$save_data
);
}
if
(
$num
)
{
...
...
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