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
154d5593
Commit
154d5593
authored
Sep 09, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
94b4b793
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Amercement.php
application/api_broker/controller/Amercement.php
+3
-1
AmercementValidate.php
application/index/validate/AmercementValidate.php
+1
-3
No files found.
application/api_broker/controller/Amercement.php
View file @
154d5593
...
...
@@ -50,7 +50,9 @@ class Amercement extends Basic
}
$father_id
=
$this
->
s_amercement
->
addAmercement
(
$params
,
$this
->
agentId
);
//int(1)
if
(
$father_id
)
{
$this
->
s_amercement
->
addAmercementImg
(
$params
[
'img'
],
$father_id
);
if
(
isset
(
$params
[
'img'
])
&&
!
empty
(
$params
[
'img'
]))
{
$this
->
s_amercement
->
addAmercementImg
(
$params
[
'img'
],
$father_id
);
}
return
$this
->
response
(
"200"
,
"成功"
);
}
else
{
return
$this
->
response
(
"101"
,
"失败"
);
...
...
application/index/validate/AmercementValidate.php
View file @
154d5593
...
...
@@ -14,7 +14,6 @@ class AmercementValidate extends Validate {
'money'
=>
'require|number|gt:0'
,
'agent_id'
=>
'require|number|gt:0'
,
'remarks'
=>
'require'
,
'img'
=>
'require'
,
'status'
=>
'require|number|in:0,1,2'
,
'amercement_type'
=>
'require|number|in:0,1'
,
'id'
=>
'require|number|gt:0'
,
...
...
@@ -37,7 +36,6 @@ class AmercementValidate extends Validate {
'agent_id.gt'
=>
'agent_id必须大于0'
,
'remarks.require'
=>
'罚款原因不能为空'
,
'img.require'
=>
'图片必传'
,
'status.require'
=>
'status为必填字段'
,
'status.number'
=>
'status只能为数字'
,
...
...
@@ -59,7 +57,7 @@ class AmercementValidate extends Validate {
];
protected
$scene
=
[
'addAmercement'
=>
[
'type'
,
'money'
,
'agent_id'
,
'remarks'
,
'img'
],
'addAmercement'
=>
[
'type'
,
'money'
,
'agent_id'
,
'remarks'
],
'getAmercementInfo'
=>
[
'id'
],
'editAmercement'
=>
[
'id'
,
'edit_type'
],
'delAmercementImage'
=>
[
'id'
],
...
...
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