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
0665fa45
Commit
0665fa45
authored
Dec 14, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑收款详情
parent
09231912
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
Finance.php
application/index/controller/Finance.php
+37
-0
No files found.
application/index/controller/Finance.php
View file @
0665fa45
...
...
@@ -2696,6 +2696,11 @@ class Finance extends Basic
}
}
/**
* 收款详情
*
* @return \think\Response
*/
public
function
getCollectionDetail
()
{
if
(
empty
(
$this
->
params
[
'pay_id'
]))
{
return
$this
->
response
(
101
,
'参数错误'
);
...
...
@@ -2760,6 +2765,38 @@ class Finance extends Basic
return
$this
->
response
(
101
,
$msg
,
$pay_data
);
}
/**
* @return \think\Response
*/
public
function
getCollectionEdit
()
{
if
(
empty
(
$this
->
params
[
'pay_id'
]))
{
return
$this
->
response
(
101
,
'参数错误'
);
}
$msg
=
""
;
$code
=
200
;
try
{
$m_pay
=
new
OPayLogModel
();
$id
=
$m_pay
->
selectReceiptImgList
(
'id'
,
[
'id'
=>
$this
->
params
[
'pay_id'
]]);
if
(
empty
(
$id
[
0
][
'id'
]))
{
return
$this
->
response
(
101
,
'没有该记录'
);
}
$save_data
[
'id'
]
=
$this
->
params
[
'pay_id'
];
$save_data
[
'income_time'
]
=
$this
->
params
[
'income_time'
];
$save_data
[
'real_money'
]
=
$this
->
params
[
'real_money'
];
$save_data
[
'house_number'
]
=
$this
->
params
[
'house_number'
];
$save_data
[
'transaction_fee'
]
=
$this
->
params
[
'transaction_fee'
];
$save_data
[
'pay_type'
]
=
$this
->
params
[
'pay_type'
];
$m_pay
->
updatePayLog
(
$save_data
);
}
catch
(
\Exception
$e
)
{
$code
=
101
;
$msg
=
'内部错误:'
.
$e
->
getMessage
();
}
return
$this
->
response
(
$code
,
$msg
,
[]);
}
/**
* 获取收款入账
*
...
...
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