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
8a68a8ee
Commit
8a68a8ee
authored
Aug 10, 2021
by
zhoujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整日志类别
parent
636046f1
Pipeline
#2180
passed with stage
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
app/Models/SyceeLogModel.php
app/Models/SyceeLogModel.php
+2
-0
app/Services/Account/AccountService.php
app/Services/Account/AccountService.php
+1
-1
No files found.
app/Models/SyceeLogModel.php
View file @
8a68a8ee
...
...
@@ -13,10 +13,12 @@ class SyceeLogModel extends BaseModel
const
CREATE_ROLE
=
1
;
// 创建角色
const
WATCH_ADVERT
=
2
;
// 观看广告
const
WITHDRAWAL
=
3
;
// 提现
const
REBACK
=
3
;
// 提现失败返还
public
static
$source
=
[
self
::
CREATE_ROLE
=>
'创建角色'
,
self
::
WATCH_ADVERT
=>
'观看广告'
,
self
::
WITHDRAWAL
=>
'提现元宝'
,
self
::
REBACK
=>
'提现失败返还'
,
];
}
app/Services/Account/AccountService.php
View file @
8a68a8ee
...
...
@@ -94,7 +94,7 @@ class AccountService implements IAccountService
$endTime
=
date
(
'Y-m-d H:i:s'
,
strtotime
(
$end
)
+
86401
);
return
$query
->
where
(
'log_time'
,
'<'
,
$endTime
);
})
->
when
(
$logType
>
0
,
function
(
$query
)
use
(
$logType
)
{
if
(
$logType
==
1
)
return
$query
->
whereIn
(
'op_code'
,[
1
,
2
]);
if
(
$logType
==
1
)
return
$query
->
whereIn
(
'op_code'
,[
1
,
2
,
4
]);
if
(
$logType
==
2
)
return
$query
->
where
(
'op_code'
,
3
);
})
->
select
(
'id'
,
'op_code'
,
'sycee'
,
'sycee_pool'
,
'sycee_balance'
,
'sycee_pool_balance'
,
'log_time'
,
'extra'
)
->
orderBy
(
'id'
,
'DESC'
)
->
paginate
(
$pagePerNum
,
[
'*'
],
'currentPage'
,
$currentPage
);
$array
[
'totalNum'
]
=
$logs
->
total
();
...
...
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