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
d72ac8cb
authored
Jul 24, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
清空用户金额统计表接口
parent
d56bef73
Hide 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 @
d72ac8cb
...
@@ -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 @
d72ac8cb
...
@@ -143,5 +143,6 @@ Route::group(['middleware' => 'api'], function () {
...
@@ -143,5 +143,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