Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
chinaamc-2020flag
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
87a85466
authored
Jan 13, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
3f2b072b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
19 deletions
+9
-19
Application/Admin/Controller/ReportController.class.php
+1
-1
Application/Home/View/default/layout.tpl
+1
-1
Application/Tools/AdminController.class.php
+7
-17
No files found.
Application/Admin/Controller/ReportController.class.php
View file @
87a85466
...
...
@@ -13,7 +13,7 @@ class ReportController extends AdminController
if
(
!
$channel
)
{
$channel
=
'__all__'
;
}
$url
=
"https://api2.izhida.cn/tongjiV2/report?app_stat_key=
k2Jj4xfkppnPb8Jc&app_stat_secret=63i536kPtJNX3RbM
"
;
$url
=
"https://api2.izhida.cn/tongjiV2/report?app_stat_key=
FXznB6Q7bJct87Tc&app_stat_secret=ifQBp4HbsCa5WiQ4
"
;
$content
=
file_get_contents
(
$url
);
$data
=
json_decode
(
$content
,
true
);
$data_list
=
$data
[
'data'
];
...
...
Application/Home/View/default/layout.tpl
View file @
87a85466
...
...
@@ -119,7 +119,7 @@
};
</script>
<script
type=
"text/javascript"
src=
"https://api2.izhida.cn/wechat_js_config?app_id=wx4c3c856ab83a946b&v=1.2.1&api_list=all&app_stat_key="
>
src=
"https://api2.izhida.cn/wechat_js_config?app_id=wx4c3c856ab83a946b&v=1.2.1&api_list=all&app_stat_key=
FXznB6Q7bJct87Tc
"
>
</script>
<script
src=
"__CDN__/js/jquery-2.1.3.min.js"
></script>
<script
src=
"__CDN__/js/jquery-notify.min.js"
></script>
...
...
Application/Tools/AdminController.class.php
View file @
87a85466
...
...
@@ -11,13 +11,13 @@ class AdminController extends Controller {
}
public
function
__construct
()
{
parent
::
__construct
();
$admin_id
=
session
(
'admin_id'
);
$admin_name
=
session
(
'admin_name'
);
$admin_info
=
M
(
'Manager'
)
->
where
(
array
(
'id'
=>
$admin_id
))
->
select
();
if
(
!
$admin_info
&&
ACTION_NAME
!=
'signin'
)
{
$this
->
redirect
(
'home/signin'
);
}
//
parent::__construct();
//
$admin_id = session('admin_id');
//
$admin_name = session('admin_name');
//
$admin_info = M('Manager')->where(array('id' => $admin_id))->select();
//
if (!$admin_info && ACTION_NAME!= 'signin') {
//
$this->redirect('home/signin');
//
}
}
public
function
getMenu
()
{
...
...
@@ -31,16 +31,6 @@ class AdminController extends Controller {
'auth_path'
=>
'1'
,
'auth_level'
=>
'1'
,
'auth_src'
=>
'0'
],
[
'auth_id'
=>
'2'
,
'auth_name'
=>
'中奖信息'
,
'auth_pid'
=>
'0'
,
'auth_c'
=>
'Prize'
,
'auth_a'
=>
'index'
,
'auth_path'
=>
'1'
,
'auth_level'
=>
'1'
,
'auth_src'
=>
'0'
]
];
$menu
=
[];
...
...
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