Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9f0945a2
authored
Jul 24, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'zjl_activity_20190718' into development
parents
a0b93e1b
d72ac8cb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
app/Http/Controllers/CronController.php
app/Http/routes.php
app/Http/Controllers/CronController.php
View file @
9f0945a2
...
@@ -198,4 +198,14 @@ class CronController extends Controller
...
@@ -198,4 +198,14 @@ class CronController extends Controller
return
isset
(
$temp
[
'data'
])
?
$temp
[
'data'
]
:
6.9
;
return
isset
(
$temp
[
'data'
])
?
$temp
[
'data'
]
:
6.9
;
}
}
// 清除用户表数据和缓存数据
public
function
clearData
()
{
$UserAmountModel
=
new
UserAmountModel
();
$RedisModel
=
new
RedisModel
();
$UserAmountModel
->
truncate
();
// 清空数据
$RedisModel
->
set
(
'api_lx_activity_user_rank'
,
null
);
}
}
}
\ No newline at end of file
app/Http/routes.php
View file @
9f0945a2
...
@@ -144,5 +144,6 @@ Route::group(['middleware' => 'api'], function () {
...
@@ -144,5 +144,6 @@ Route::group(['middleware' => 'api'], function () {
Route
::
get
(
'/api/check/exportdimission'
,
'SpecialController@exportDimission'
);
Route
::
get
(
'/api/check/exportdimission'
,
'SpecialController@exportDimission'
);
Route
::
match
([
'get'
,
'post'
],
'/api/check/importdimission'
,
'SpecialController@importDimission'
);
Route
::
match
([
'get'
,
'post'
],
'/api/check/importdimission'
,
'SpecialController@importDimission'
);
Route
::
get
(
'/act/useramoumt'
,
'CronController@userAmount'
);
// 活动统计用户实付金额
Route
::
get
(
'/act/useramoumt'
,
'CronController@userAmount'
);
// 活动统计用户实付金额
Route
::
get
(
'/act/clear'
,
'CronController@clearData'
);
// 清除活动统计用户表和缓存
});
});
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