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
78c75f16
Commit
78c75f16
authored
Apr 02, 2020
by
shajiaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
33e4ace6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
AirDropController.php
console/controllers/AirDropController.php
+7
-4
No files found.
console/controllers/AirDropController.php
View file @
78c75f16
...
...
@@ -24,20 +24,23 @@ class AirDropController extends Controller
return
0
;
}
foreach
(
$apply
as
$val
)
{
//达标次数
$reach
=
AirDropApplyRecord
::
find
()
->
where
([
'apply_id'
=>
$val
[
'id'
],
'reach'
=>
AirDropApplyRecord
::
REACH_YES
])
->
sum
(
'reach'
);
$reach
=
empty
(
$reach
)
?
0
:
$reach
;
//已领取
$draw
=
AirDropApplyRecord
::
find
()
->
where
([
'apply_id'
=>
$val
[
'id'
],
'draw_status'
=>
AirDropApplyRecord
::
STATUS_DRAW_SUEEESS
])
->
sum
(
'
reach
'
);
->
sum
(
'
bonus_token
'
);
$draw
=
empty
(
$draw
)
?
0
:
$draw
;
$reach
=
AirDropApplyRecord
::
find
()
//总收益
$income
=
AirDropApplyRecord
::
find
()
->
where
([
'apply_id'
=>
$val
[
'id'
],
'reach'
=>
AirDropApplyRecord
::
REACH_YES
])
->
sum
(
'
reach
'
);
$
reach
=
empty
(
$reach
)
?
0
:
$reach
;
->
sum
(
'
bonus_token
'
);
$
income
=
empty
(
$income
)
?
0
:
$income
;
}
...
...
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