Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
goods
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
bp
goods
Commits
f24583d3
Commit
f24583d3
authored
Aug 24, 2021
by
luhongguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: temp
parent
0cec99db
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
PindanActivityInviteOrderService.php
...n/services/marketing/PindanActivityInviteOrderService.php
+28
-0
php.ini
deploy/start_env/ini/php.ini
+1
-0
No files found.
application/services/marketing/PindanActivityInviteOrderService.php
View file @
f24583d3
...
...
@@ -3,8 +3,10 @@
namespace
App\Services\marketing
;
use
App\Exception\custom\MarketingException
;
use
App\Models\marketing\mysql\ColonelDistributorColonel
;
use
App\Models\marketing\mysql\ColonelDistributorInviteOrder
;
use
App\Models\marketing\mysql\ColonelDistributorInviteOrderNum
;
use
App\Models\marketing\mysql\ColonelDistributorPayInfo
;
class
PindanActivityInviteOrderService
{
...
...
@@ -91,4 +93,30 @@ class PindanActivityInviteOrderService
return
true
;
}
public
static
function
incomeStatistics
(
$params
=
[])
{
$userId
=
$params
[
"user_id"
];
$yesterday
=
date
(
"Y-m-d H:i:s"
,
strtotime
(
"-1 day"
));
$yesterdayRewards
=
ColonelDistributorPayInfo
::
select
([
"reward"
],
[
"date"
=>
$yesterday
,
"colonel_user_id"
=>
$userId
],
[]);
$allRewards
=
ColonelDistributorPayInfo
::
select
([
"reward"
],
[
"colonel_user_id"
=>
$userId
],
[]);
$yesterdayRewards
=
array_column
(
$yesterdayRewards
,
"reward"
);
$yesterdayReward
=
array_sum
(
$yesterdayRewards
);
$allRewards
=
array_column
(
$allRewards
,
"reward"
);
$allReward
=
array_sum
(
$allRewards
);
return
[
"yesterday_reward"
=>
$yesterdayReward
,
"all_reward"
=>
$allReward
];
}
public
static
function
inviteOrderNumberStatistics
(
$params
=
[])
{
}
public
static
function
newUserStatistics
(
$params
=
[])
{
}
}
\ No newline at end of file
deploy/start_env/ini/php.ini
View file @
f24583d3
...
...
@@ -1891,6 +1891,7 @@ opcache.huge_code_pages=1
apc.shm_size
=
1024M
apc.slam_defense
=
1
apc.serializer
=
igbinary
apc.enable_cli
=
1
[memcached]
memcached.sess_connect_timeout
=
1000
...
...
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