Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
crawler.vmusicchart.vn
Overview
Overview
Details
Activity
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
Phạm Văn Đoan
crawler.vmusicchart.vn
Commits
fb424b28
Commit
fb424b28
authored
Apr 04, 2020
by
Phạm Văn Đoan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixbug tổng hợp BXH tuần
parent
0feea417
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
7 deletions
+9
-7
CalculateReportCommand.php
app/Console/Commands/CalculateReportCommand.php
+0
-0
Kernel.php
app/Console/Kernel.php
+5
-5
Constants.php
app/Helpers/Constants.php
+2
-0
MonthlyReport.php
app/Models/Report/MonthlyReport.php
+1
-1
WeeklyReport.php
app/Models/Report/WeeklyReport.php
+1
-1
No files found.
app/Console/Commands/CalculateReportCommand.php
View file @
fb424b28
This diff is collapsed.
Click to expand it.
app/Console/Kernel.php
View file @
fb424b28
...
@@ -84,12 +84,12 @@ class Kernel extends ConsoleKernel
...
@@ -84,12 +84,12 @@ class Kernel extends ConsoleKernel
$schedule
->
command
(
'crawler:get-listen zing'
)
->
dailyAt
(
'22:45'
);
$schedule
->
command
(
'crawler:get-listen zing'
)
->
dailyAt
(
'22:45'
);
$schedule
->
command
(
'crawler:get-listen zing --limit=-1'
)
->
dailyAt
(
'22:50'
);
$schedule
->
command
(
'crawler:get-listen zing --limit=-1'
)
->
dailyAt
(
'22:50'
);
$schedule
->
command
(
'calculate:daily-listen'
)
->
dailyAt
(
'
5
:00'
);
$schedule
->
command
(
'calculate:daily-listen'
)
->
dailyAt
(
'
2
:00'
);
$schedule
->
command
(
'calculate:daily-listen'
)
->
dailyAt
(
'
5
:10'
);
$schedule
->
command
(
'calculate:daily-listen'
)
->
dailyAt
(
'
2
:10'
);
$schedule
->
command
(
'calculate:report daily'
)
->
dailyAt
(
'
5:30
'
);
$schedule
->
command
(
'calculate:report daily'
)
->
dailyAt
(
'
3:05
'
);
$schedule
->
command
(
'calculate:report weekly'
)
->
sundays
(
);
$schedule
->
command
(
'calculate:report weekly'
)
->
dailyAt
(
'4:05'
);
$schedule
->
command
(
'calculate:report monthly'
)
->
monthlyOn
(
21
,
'
6:10
'
);
$schedule
->
command
(
'calculate:report monthly'
)
->
monthlyOn
(
21
,
'
5:05
'
);
$schedule
->
command
(
'queue:work --once --timeout=120'
)
->
everyMinute
()
->
withoutOverlapping
();
$schedule
->
command
(
'queue:work --once --timeout=120'
)
->
everyMinute
()
->
withoutOverlapping
();
}
}
...
...
app/Helpers/Constants.php
View file @
fb424b28
...
@@ -24,7 +24,9 @@ class Constants
...
@@ -24,7 +24,9 @@ class Constants
const
TABLE_PERMISSIONS
=
'permissions'
;
const
TABLE_PERMISSIONS
=
'permissions'
;
const
TABLE_REPORT_VIEWS_DAILY
=
'report_views_daily'
;
const
TABLE_REPORT_VIEWS_DAILY
=
'report_views_daily'
;
const
TABLE_REPORT_VIEWS_MONTHLY_NEW
=
'report_views_monthly_new'
;
const
TABLE_REPORT_VIEWS_WEEKLY
=
'report_views_weekly'
;
const
TABLE_REPORT_VIEWS_WEEKLY
=
'report_views_weekly'
;
const
TABLE_REPORT_VIEWS_WEEKLY_NEW
=
'report_views_weekly_new'
;
const
TABLE_REPORTS_VIEWS_MONTHLY
=
'reports_views_monthly'
;
const
TABLE_REPORTS_VIEWS_MONTHLY
=
'reports_views_monthly'
;
const
TABLE_ROLE_USER
=
'role_user'
;
const
TABLE_ROLE_USER
=
'role_user'
;
...
...
app/Models/Report/MonthlyReport.php
View file @
fb424b28
...
@@ -7,7 +7,7 @@ use Illuminate\Database\Eloquent\Model;
...
@@ -7,7 +7,7 @@ use Illuminate\Database\Eloquent\Model;
class
MonthlyReport
extends
Model
class
MonthlyReport
extends
Model
{
{
protected
$table
=
Constants
::
TABLE_REPORT
S_VIEWS_MONTHLY
;
protected
$table
=
Constants
::
TABLE_REPORT
_VIEWS_MONTHLY_NEW
;
public
$timestamps
=
true
;
public
$timestamps
=
true
;
...
...
app/Models/Report/WeeklyReport.php
View file @
fb424b28
...
@@ -7,7 +7,7 @@ use Illuminate\Database\Eloquent\Model;
...
@@ -7,7 +7,7 @@ use Illuminate\Database\Eloquent\Model;
class
WeeklyReport
extends
Model
class
WeeklyReport
extends
Model
{
{
protected
$table
=
Constants
::
TABLE_REPORT_VIEWS_WEEKLY
;
protected
$table
=
Constants
::
TABLE_REPORT_VIEWS_WEEKLY
_NEW
;
public
$timestamps
=
true
;
public
$timestamps
=
true
;
...
...
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