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
2a8f6455
Commit
2a8f6455
authored
Oct 11, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
74309ac2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
OperationData.php
application/index/controller/OperationData.php
+6
-0
OperationDataValidate.php
application/index/validate/OperationDataValidate.php
+10
-0
No files found.
application/index/controller/OperationData.php
View file @
2a8f6455
...
...
@@ -316,6 +316,12 @@ class OperationData extends Basic
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
$checkResult
=
$this
->
validate
(
$params
,
"OperationDataValidate.userInviteNum"
);
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"101"
,
$checkResult
);
}
$between
=
[
'between'
,
[
$params
[
'create_time_start'
]
.
' 00:00:00'
,
$params
[
'create_time_end'
]
.
' 23:59:59'
]
];
$where
[
'create_time'
]
=
$between
;
$where
[
'referrer_id'
]
=
array
(
'gt'
,
0
);
...
...
application/index/validate/OperationDataValidate.php
View file @
2a8f6455
...
...
@@ -10,15 +10,24 @@ class OperationDataValidate extends Validate {
protected
$rule
=
[
'create_time_start'
=>
'require'
,
'create_time_end'
=>
'require'
,
'time_start'
=>
'require'
,
'time_end'
=>
'require'
,
'performance_time_start'
=>
'require|number|gt:0'
,
'performance_time_end'
=>
'require|number|gt:0'
,
'real_performance_time_start'
=>
'require|number|gt:0'
,
'real_performance_time_end'
=>
'require|number|gt:0'
,
];
protected
$message
=
[
'create_time_start.require'
=>
'时间 不能为空'
,
'create_time_end.require'
=>
'时间 不能为空'
,
'time_start.require'
=>
'time_start 不能为空'
,
'time_end.require'
=>
'time_end 不能为空'
,
'performance_time_start.require'
=>
'performance_time_start 不能为空'
,
...
...
@@ -38,6 +47,7 @@ class OperationDataValidate extends Validate {
];
protected
$scene
=
[
'userInviteNum'
=>
[
'create_time_start'
,
'create_time_end'
],
'performanceStatistics'
=>
[
'time_start'
,
'time_end'
,
'performance_time_start'
,
'performance_time_end'
,
'real_performance_time_start'
,
'real_performance_time_end'
],
];
...
...
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