Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
sx-prize
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
d08b6480
authored
Jul 24, 2019
by
zhangheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
83bf72e8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
23 deletions
+22
-23
.idea/workspace.xml
+0
-0
Application/Common/Conf/db.php
+19
-19
Application/Home/View/default/Index_index.tpl
+1
-1
Application/User/Controller/ReportController.class.php
+2
-3
No files found.
.idea/workspace.xml
View file @
d08b6480
This diff is collapsed.
Click to expand it.
Application/Common/Conf/db.php
View file @
d08b6480
<?php
<?php
return
array
(
'DB_TYPE'
=>
'mysql'
,
'DB_HOST'
=>
'localhost'
,
'DB_PORT'
=>
'3306'
,
'DB_NAME'
=>
'dev_sx_20190705'
,
// <--- 修改这里
'DB_USER'
=>
'dev'
,
// <--- 修改这里
'DB_PWD'
=>
'1q2w3e'
,
// <--- 修改这里
'DB_PREFIX'
=>
''
,
'DB_CHARSET'
=>
'utf8mb4'
,
);
//return array(
//return array(
// 'DB_TYPE' => 'mysql',
//
'DB_TYPE' => 'mysql',
// 'DB_HOST' => '
izhidaicbc2.mysql.rds.aliyuncs.com
',
// 'DB_HOST' => '
localhost
',
// 'DB_PORT' => '3306',
// 'DB_PORT' => '3306',
//
'DB_NAME' => 'project_dencare_20170121_photo
', // <--- 修改这里
//
'DB_NAME' => 'dev_sx_20190705
', // <--- 修改这里
// 'DB_USER' => '
zhida
', // <--- 修改这里
// 'DB_USER' => '
dev
', // <--- 修改这里
//
'DB_PWD' => 'zhida_app_1212
', // <--- 修改这里
//
'DB_PWD' => '1q2w3e
', // <--- 修改这里
// 'DB_PREFIX' => '',
// 'DB_PREFIX' => '',
// 'DB_CHARSET' => 'utf8mb4',
// 'DB_CHARSET' => 'utf8mb4',
//
);
//);
\ No newline at end of file
return
array
(
'DB_TYPE'
=>
'mysql'
,
'DB_HOST'
=>
'izhidaicbc2.mysql.rds.aliyuncs.com'
,
'DB_PORT'
=>
'3306'
,
'DB_NAME'
=>
'project_sx_20190724_ty'
,
// <--- 修改这里
'DB_USER'
=>
'zhida'
,
// <--- 修改这里
'DB_PWD'
=>
'zhida_app_1212'
,
// <--- 修改这里
'DB_PREFIX'
=>
''
,
'DB_CHARSET'
=>
'utf8mb4'
,
);
\ No newline at end of file
Application/Home/View/default/Index_index.tpl
View file @
d08b6480
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
window
.
cdn
=
'__CDN__'
window
.
cdn
=
'__CDN__'
</script>
</script>
<script
type=
"text/javascript"
<script
type=
"text/javascript"
src=
"http://api2.izhida.cn/wechat_js_config?app_id=wx4c3c856ab83a946b&v=1.2.1&api_list=all&app_stat_key=
t6NkwipRePFcidTJ
"
></script>
src=
"http://api2.izhida.cn/wechat_js_config?app_id=wx4c3c856ab83a946b&v=1.2.1&api_list=all&app_stat_key=
KETeS7Nz3iX7sbkY
"
></script>
<script
type=
"text/javascript"
src=
"__CDN__/js/jquery.qrcode.min.js"
></script>
<script
type=
"text/javascript"
src=
"__CDN__/js/jquery.qrcode.min.js"
></script>
<script
type=
"text/javascript"
src=
"__CDN__/js/index.js?t=2.6"
></script>
<script
type=
"text/javascript"
src=
"__CDN__/js/index.js?t=2.6"
></script>
...
...
Application/User/Controller/ReportController.class.php
View file @
d08b6480
...
@@ -19,7 +19,7 @@ class ReportController extends BaseUserController
...
@@ -19,7 +19,7 @@ class ReportController extends BaseUserController
$channel
=
'__all__'
;
$channel
=
'__all__'
;
}
}
$url
=
"http://api2.izhida.cn/tongjiV2/report?app_stat_key=
t6NkwipRePFcidTJ&app_stat_secret=yK48QGN2em3MjiZA
"
;
$url
=
"http://api2.izhida.cn/tongjiV2/report?app_stat_key=
KETeS7Nz3iX7sbkY&app_stat_secret=t5XxDxbWhAWBNQfM
"
;
$content
=
file_get_contents
(
$url
);
$content
=
file_get_contents
(
$url
);
$data
=
json_decode
(
$content
,
true
);
$data
=
json_decode
(
$content
,
true
);
$data_list
=
$data
[
'data'
];
$data_list
=
$data
[
'data'
];
...
@@ -37,8 +37,7 @@ class ReportController extends BaseUserController
...
@@ -37,8 +37,7 @@ class ReportController extends BaseUserController
if
(
!
$channel
)
{
if
(
!
$channel
)
{
$channel
=
'__all__'
;
$channel
=
'__all__'
;
}
}
$url
=
"http://api2.izhida.cn/tongjiV2/report?app_stat_key=KETeS7Nz3iX7sbkY&app_stat_secret=t5XxDxbWhAWBNQfM"
;
$url
=
"http://api2.izhida.cn/tongjiV2/report?app_stat_key=t6NkwipRePFcidTJ&app_stat_secret=yK48QGN2em3MjiZA"
;
$content
=
file_get_contents
(
$url
);
$content
=
file_get_contents
(
$url
);
$data
=
json_decode
(
$content
,
true
);
$data
=
json_decode
(
$content
,
true
);
$data_list
=
$data
[
'data'
][
$channel
];
$data_list
=
$data
[
'data'
][
$channel
];
...
...
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