Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
token
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
wallet
token
Commits
613a21e6
Commit
613a21e6
authored
May 30, 2019
by
shajiaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
search add mobile condition
parent
e2789c7b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
CoinReleaseCheckController.php
backend/controllers/CoinReleaseCheckController.php
+5
-1
No files found.
backend/controllers/CoinReleaseCheckController.php
View file @
613a21e6
...
...
@@ -109,13 +109,13 @@ class CoinReleaseCheckController extends BaseController
if
(
$model
->
load
(
$get
)
&&
$model
->
validate
())
{
$page
=
$get
[
'page'
]
??
1
;
$limit
=
$get
[
'limit'
]
??
10
;
$mobile
=
$get
[
'mobile'
]
??
''
;
$query
=
CoinReleaseCheck
::
find
()
->
andFilterWhere
([
'!='
,
'status'
,
0
])
->
andFilterWhere
([
'status'
=>
$model
->
status
,
'coin'
=>
$model
->
coin
,
'check_first_uid'
=>
$model
->
check_first_uid
,
'check_second_uid'
=>
$model
->
check_second_uid
,
]);
$user_id
=
Yii
::
$app
->
user
->
identity
->
id
;
$auth
=
Yii
::
$app
->
authManager
;
$user_role
=
current
(
$auth
->
getRolesByUser
(
$user_id
));
...
...
@@ -141,6 +141,10 @@ class CoinReleaseCheckController extends BaseController
if
(
$model
->
end_time
)
{
$query
=
$query
->
andFilterWhere
([
'<='
,
'create_time'
,
$model
->
end_time
]);
}
if
(
$mobile
){
$query
=
$query
->
andFilterWhere
([
'mobile'
=>
$mobile
]);
}
$count
=
$query
->
count
();
$datas
=
$query
->
limit
(
$limit
)
->
offset
((
$page
-
1
)
*
$limit
)
->
orderBy
(
'id desc'
)
->
asArray
()
->
all
();
//获取审核员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