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
56a4093e
Commit
56a4093e
authored
Sep 03, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
2c99521a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Amercement.php
application/index/controller/Amercement.php
+1
-1
AmercementValidate.php
application/index/validate/AmercementValidate.php
+3
-1
No files found.
application/index/controller/Amercement.php
View file @
56a4093e
...
@@ -132,7 +132,7 @@ class Amercement extends Basic
...
@@ -132,7 +132,7 @@ class Amercement extends Basic
// "id" => 1,
// "id" => 1,
// "edit_type" => 0,//0编辑 1取消 2转已支付
// "edit_type" => 0,//0编辑 1取消 2转已支付
// );
// );
$checkResult
=
$this
->
validate
(
$params
,
"AmercementValidate.
getAmercementInfo
"
);
$checkResult
=
$this
->
validate
(
$params
,
"AmercementValidate.
editAmercement
"
);
if
(
true
!==
$checkResult
)
{
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"101"
,
$checkResult
);
return
$this
->
response
(
"101"
,
$checkResult
);
}
}
...
...
application/index/validate/AmercementValidate.php
View file @
56a4093e
...
@@ -60,7 +60,8 @@ class AmercementValidate extends Validate {
...
@@ -60,7 +60,8 @@ class AmercementValidate extends Validate {
protected
$scene
=
[
protected
$scene
=
[
'addAmercement'
=>
[
'type'
,
'money'
,
'agent_id'
,
'remarks'
,
'img'
],
'addAmercement'
=>
[
'type'
,
'money'
,
'agent_id'
,
'remarks'
,
'img'
],
'getAmercementInfo'
=>
[
'id'
,
'edit_type'
],
'getAmercementInfo'
=>
[
'id'
],
'editAmercement'
=>
[
'id'
,
'edit_type'
],
];
];
}
}
\ No newline at end of file
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