Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
clubAdmin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhoujun
clubAdmin
Commits
12187a61
Commit
12187a61
authored
Aug 02, 2021
by
zhoujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预警接口
parent
f4756c71
Pipeline
#2074
passed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/Models/WarnConfigModel.php
app/Models/WarnConfigModel.php
+1
-1
app/Services/Warn/WarnService.php
app/Services/Warn/WarnService.php
+1
-1
No files found.
app/Models/WarnConfigModel.php
View file @
12187a61
...
...
@@ -8,5 +8,5 @@ class WarnConfigModel extends BaseModel
{
use
SoftDeletes
;
protected
$connection
=
'mysql'
;
protected
$table
=
'club_warn_
lo
g'
;
protected
$table
=
'club_warn_
confi
g'
;
}
app/Services/Warn/WarnService.php
View file @
12187a61
...
...
@@ -333,7 +333,7 @@ class WarnService implements IWarnService
$pagePerNum
=
$postData
[
'pageSize'
]
??
20
;
$currentPage
=
$postData
[
'page'
]
??
1
;
$lists
=
Warn
Confi
gModel
::
when
(
$id
>
0
,
function
(
$query
)
use
(
$id
)
{
$lists
=
Warn
Lo
gModel
::
when
(
$id
>
0
,
function
(
$query
)
use
(
$id
)
{
return
$query
->
where
(
'id'
,
$id
);
})
->
when
(
$platform
>
0
,
function
(
$query
)
use
(
$platform
)
{
return
$query
->
where
(
'platform'
,
$platform
);
...
...
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