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
a9dea079
Commit
a9dea079
authored
Sep 02, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增罚款
parent
c227c0c6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
0 deletions
+56
-0
Amercement.php
application/api_broker/controller/Amercement.php
+1
-0
Amercement.php
application/index/controller/Amercement.php
+52
-0
route.php
application/route.php
+3
-0
No files found.
application/api_broker/controller/Amercement.php
View file @
a9dea079
...
@@ -25,6 +25,7 @@ class Amercement extends Basic
...
@@ -25,6 +25,7 @@ class Amercement extends Basic
/**
/**
* 新增罚款
* 新增罚款
* @return \think\Response
* @return \think\Response
* http://showdoc.tonglianjituan.com/index.php?s=/1&page_id=918
*/
*/
public
function
addAmercement
(){
public
function
addAmercement
(){
$params
=
$this
->
params
;
$params
=
$this
->
params
;
...
...
application/index/controller/Amercement.php
0 → 100644
View file @
a9dea079
<?php
/**
* Created by PhpStorm.
* User: zhuwei
* Date: 2019-09-02
* Time: 16:17:32
*/
namespace
app\index\controller
;
use
app\index\extend\Basic
;
use
app\index\service\AmercementService
;
class
Amercement
extends
Basic
{
private
$s_amercement
;
public
function
__construct
()
{
parent
::
__construct
();
$this
->
s_amercement
=
new
AmercementService
();
}
/**
* 新增罚款
* @return \think\Response
* http://showdoc.tonglianjituan.com/index.php?s=/1&page_id=918
*/
public
function
addAmercement
(){
$params
=
$this
->
params
;
/* $params = array(
"type" => 1,
"money" => 200,
"agent_id" => 5776,
"remarks" => '罚你不需要理由',
"img" => '["20190902\\/20190902161242125.jpg","20190902\\/201909021612421258499.jpg"]',
);*/
$father_id
=
$this
->
s_amercement
->
addAmercement
(
$params
,
$this
->
userId
);
//int(1)
if
(
$father_id
)
{
$this
->
s_amercement
->
addAmercementImg
(
$params
[
'img'
],
$father_id
);
return
$this
->
response
(
"200"
,
"成功"
);
}
else
{
return
$this
->
response
(
"101"
,
"失败"
);
}
}
}
\ No newline at end of file
application/route.php
View file @
a9dea079
...
@@ -1272,6 +1272,9 @@ Route::group('office_index', [
...
@@ -1272,6 +1272,9 @@ Route::group('office_index', [
'selectIndividualPerformance'
=>
[
'index/OfficePerformance/selectIndividualPerformance'
,
[
'method'
=>
'GET|POST'
]],
//个人业绩排行
'selectIndividualPerformance'
=>
[
'index/OfficePerformance/selectIndividualPerformance'
,
[
'method'
=>
'GET|POST'
]],
//个人业绩排行
'getEditLog'
=>
[
'index/OfficeRoom/getEditLog'
,
[
'method'
=>
'get'
]],
//楼盘修改日志
'getEditLog'
=>
[
'index/OfficeRoom/getEditLog'
,
[
'method'
=>
'get'
]],
//楼盘修改日志
'recoverCheckRefund'
=>
[
'index/OfficeRefund/recoverCheckRefund'
,
[
'method'
=>
'POST'
]],
//已审核退款-转审核状态
'recoverCheckRefund'
=>
[
'index/OfficeRefund/recoverCheckRefund'
,
[
'method'
=>
'POST'
]],
//已审核退款-转审核状态
'addAmercement'
=>
[
'index/Amercement/addAmercement'
,
[
'method'
=>
'GET|POST'
]],
]);
]);
Route
::
group
(
'office_api'
,
[
Route
::
group
(
'office_api'
,
[
...
...
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