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
e1bc76cc
Commit
e1bc76cc
authored
Jun 05, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增实收
parent
ef6672a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
Collection.php
application/index/controller/Collection.php
+23
-0
route.php
application/route.php
+1
-0
No files found.
application/index/controller/Collection.php
View file @
e1bc76cc
...
...
@@ -83,5 +83,27 @@ class Collection extends Basic
return
view
(
'getCollection'
);
}
}
public
function
addRealMoney
(){
$params
=
$this
->
params
;
/* $params = array(
"collection_id" => 1,
"real_money" => 123,
);*/
if
(
!
isset
(
$params
[
"collection_id"
])
||
$params
[
"collection_id"
]
<=
0
){
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
if
(
!
isset
(
$params
[
"collection_id"
])
||
$params
[
"collection_id"
]
<=
0
){
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
$where_
[
"id"
]
=
$params
[
"collection_id"
];
$where_
[
"real_money"
]
=
$params
[
"real_money"
];
$order
=
new
OPayLogModel
();
$id
=
$order
->
updatePayLog
(
$params
);
if
(
$id
>
0
){
return
$this
->
response
(
"200"
,
"编辑成功"
);
}
else
{
return
$this
->
response
(
"101"
,
"编辑失败"
);
}
}
}
\ No newline at end of file
application/route.php
View file @
e1bc76cc
...
...
@@ -227,6 +227,7 @@ Route::group('index', [
'agent_zhuan_aagent'
=>
[
'index/agent/agent_zhuan_aagent'
,
[
'method'
=>
'post|get'
]
],
//经纪人
'shop_a_store'
=>
[
'index/agent/shop_a_store'
,
[
'method'
=>
'post|get'
]
],
//经纪人
'getCollection'
=>
[
'index/Collection/getCollection'
,
[
'method'
=>
'post|get'
]
],
//收款记录
'addRealMoney'
=>
[
'index/Collection/addRealMoney'
,
[
'method'
=>
'post'
]
],
//新增实收
'visitShop'
=>
[
'index/Supervise/visitShop'
,
[
'method'
=>
'get'
]
],
//门店拜访
'carryOut'
=>
[
'index/Supervise/carryOut'
,
[
'method'
=>
'get'
]
],
//监督执行
'toReportListOne'
=>
[
'index/Finance/toReportListOne'
,
[
'method'
=>
'POST'
]
],
//回到一级审核
...
...
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