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
23b4d73e
Commit
23b4d73e
authored
Aug 12, 2021
by
zhoujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预警配置
parent
21e8b3f2
Pipeline
#2219
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
app/Services/Script/ScriptService.php
app/Services/Script/ScriptService.php
+4
-2
No files found.
app/Services/Script/ScriptService.php
View file @
23b4d73e
...
...
@@ -36,11 +36,12 @@ class ScriptService implements IScriptService
$config
=
self
::
getWarnConfig
(
1
);
$oneMin
=
$config
[
'oneMin'
]
??
0
;
if
(
empty
(
$config
)
||
$oneMin
==
0
)
return
true
;
$lastId
=
self
::
getLastDataId
(
2
);
//$lastId = self::getLastDataId(2);
$lastId
=
0
;
$warnPeople
=
self
::
getWarnPeople
();
if
(
empty
(
$warnPeople
))
return
true
;
$logs
=
SyceeWithdrawModel
::
where
(
'status'
,
1
)
->
where
(
'sycee_withdraw.serial'
,
'>'
,
$lastId
)
->
where
(
'sycee_withdraw.cash'
,
'>'
,
$oneMin
)
->
join
(
'account'
,
'sycee_withdraw.user_id'
,
'account.user_id'
)
->
orderBy
(
'sycee_withdraw.serial'
,
'ASC'
)
->
select
(
'account.user_id'
,
'account.platform'
,
'account.platform_id'
,
'account.channel'
,
'sycee_withdraw.serial'
,
'sycee_withdraw.cash'
,
'sycee_withdraw.withdraw_time'
)
->
limit
(
100
)
->
get
();
$logs
=
SyceeWithdrawModel
::
where
(
's
ycee_withdraw.s
tatus'
,
1
)
->
where
(
'sycee_withdraw.serial'
,
'>'
,
$lastId
)
->
where
(
'sycee_withdraw.cash'
,
'>'
,
$oneMin
)
->
join
(
'account'
,
'sycee_withdraw.user_id'
,
'account.user_id'
)
->
orderBy
(
'sycee_withdraw.serial'
,
'ASC'
)
->
select
(
'account.user_id'
,
'account.platform'
,
'account.platform_id'
,
'account.channel'
,
'sycee_withdraw.serial'
,
'sycee_withdraw.cash'
,
'sycee_withdraw.withdraw_time'
)
->
limit
(
100
)
->
get
();
$array
=
[];
$maxId
=
0
;
...
...
@@ -51,6 +52,7 @@ class ScriptService implements IScriptService
if
(
empty
(
$warnConfig
))
continue
;
$people
=
$warnPeople
[
$key
]
??
[];
if
(
empty
(
$people
))
continue
;
if
(
$log
->
cash
<
$warnConfig
[
'one'
])
continue
;
$tem
[
'ymd'
]
=
date
(
'Ymd'
,
strtotime
(
$log
->
withdraw_time
));
$tem
[
'config_id'
]
=
$warnConfig
[
'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