Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
ccb-lantern
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
f139b791
authored
Feb 07, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
8f68fd82
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
33 deletions
+35
-33
Application/Admin/Controller/ReportController.class.php
+1
-1
Application/Common/Conf/config.php
+3
-3
Application/Common/Conf/db.php
+19
-19
Application/Home/View/default/layout.tpl
+1
-1
Public/static/js/common.js
+11
-9
No files found.
Application/Admin/Controller/ReportController.class.php
View file @
f139b791
...
...
@@ -15,7 +15,7 @@ class ReportController extends AdminController
$channel
=
'__all__'
;
}
$url
=
"http://api2.izhida.cn/tongjiV2/report?app_stat_key=
FXznB6Q7bJct87Tc&app_stat_secret=ifQBp4HbsCa5WiQ4
"
;
$url
=
"http://api2.izhida.cn/tongjiV2/report?app_stat_key=
ZkPh4rcEH6XmEzkT&app_stat_secret=8fjWwmMkzxRkEWnN
"
;
$content
=
file_get_contents
(
$url
);
$data
=
json_decode
(
$content
,
true
);
...
...
Application/Common/Conf/config.php
View file @
f139b791
...
...
@@ -13,8 +13,8 @@ return array(
'AUTH_CLIENT_ID'
=>
'zhida_app'
,
'AUTH_CLIENT_PASSWORD'
=>
'izhida'
,
/* CDN路径配置。配置之后可以在模版文件中使用__CDN__ */
// '__CDN__' => 'https://static3.izhida.cn/cdn1/chinaamc-2020flag/v1.1.7
',
'__CDN__'
=>
'/Public/static'
,
// @readme <-- 上线时修改这里
'__CDN__'
=>
'https://static3.izhida.cn/cdn1/ccb-lantern/v1.0.0
'
,
//
'__CDN__' => '/Public/static', // @readme <-- 上线时修改这里
'URL_MODEL'
=>
3
,
'STORAGE_PATH'
=>
WEB_ROOT_PATH
.
'/Data/Storage'
,
'DEFAULT_FILTER'
=>
''
,
// 默认参数过滤方法 用于I函数...。注意这块不能修改!!!!
...
...
@@ -23,7 +23,7 @@ return array(
'ERROR_PAGE'
=>
'/50x.html'
,
'SITE_URL'
=>
'https://'
.
(
isset
(
$_SERVER
[
'HTTP_HOST'
])
?
$_SERVER
[
'HTTP_HOST'
]
:
'moli.gnhj.izhida.cn'
),
'PUBLISH_MODE'
=>
'
development
'
,
// development,test,production
'PUBLISH_MODE'
=>
'
production
'
,
// development,test,production
...
...
Application/Common/Conf/db.php
View file @
f139b791
<?php
// return array(
// 'DB_TYPE' => 'mysql',
// 'DB_HOST' => 'izhidaicbc2.mysql.rds.aliyuncs.com',
// 'DB_PORT' => '3306',
// 'DB_NAME' => '', // <--- 修改这里
// 'DB_USER' => 'zhida', // <--- 修改这里
// 'DB_PWD' => 'zhida_app_1212', // <--- 修改这里
// 'DB_PREFIX' => '',
// 'DB_CHARSET' => 'utf8mb4',
// );
return
array
(
'DB_TYPE'
=>
'mysql'
,
'DB_HOST'
=>
'localhost
'
,
'DB_PORT'
=>
'3306'
,
'DB_NAME'
=>
''
,
// <--- 修改这里
'DB_USER'
=>
'dev
'
,
// <--- 修改这里
'DB_PWD'
=>
'1q2w3e
'
,
// <--- 修改这里
'DB_PREFIX'
=>
''
,
'DB_CHARSET'
=>
'utf8mb4'
,
'DB_TYPE'
=>
'mysql'
,
'DB_HOST'
=>
'izhidaicbc2.mysql.rds.aliyuncs.com
'
,
'DB_PORT'
=>
'3306'
,
'DB_NAME'
=>
''
,
// <--- 修改这里
'DB_USER'
=>
'zhida
'
,
// <--- 修改这里
'DB_PWD'
=>
'zhida_app_1212
'
,
// <--- 修改这里
'DB_PREFIX'
=>
''
,
'DB_CHARSET'
=>
'utf8mb4'
,
);
// return array(
// 'DB_TYPE' => 'mysql',
// 'DB_HOST' => 'localhost',
// 'DB_PORT' => '3306',
// 'DB_NAME' => '', // <--- 修改这里
// 'DB_USER' => 'dev', // <--- 修改这里
// 'DB_PWD' => '1q2w3e', // <--- 修改这里
// 'DB_PREFIX' => '',
// 'DB_CHARSET' => 'utf8mb4',
// );
Application/Home/View/default/layout.tpl
View file @
f139b791
...
...
@@ -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=
ZkPh4rcEH6XmEzkT
"
>
</script>
<script
src=
"__CDN__/js/jquery-2.1.3.min.js"
></script>
<script
src=
"__CDN__/js/jquery-notify.min.js"
></script>
...
...
Public/static/js/common.js
View file @
f139b791
...
...
@@ -78,6 +78,8 @@ preloadimages(preloadImageList, function () {
},
function
(
progress
)
{});
//公用图片地址前缀
const
imagesUrl
=
'http://ccb-lantern.dev.izhida.cn/Public/static/image2/'
;
const
flag
=
[
'百病不侵'
,
...
...
@@ -152,14 +154,14 @@ const colorList = {
};
//小装饰图片地址
let
decorateList
=
[
'http://ccb-lantern.dev.izhida.cn/Public/static/image2/
decorate1.png'
,
'http://ccb-lantern.dev.izhida.cn/Public/static/image2/
decorate2.png'
,
'http://ccb-lantern.dev.izhida.cn/Public/static/image2/
decorate3.png'
,
'http://ccb-lantern.dev.izhida.cn/Public/static/image2/
decorate4.png'
,
'http://ccb-lantern.dev.izhida.cn/Public/static/image2/
decorate5.png'
,
'http://ccb-lantern.dev.izhida.cn/Public/static/image2/
decorate6.png'
,
'http://ccb-lantern.dev.izhida.cn/Public/static/image2/
decorate7.png'
,
'http://ccb-lantern.dev.izhida.cn/Public/static/image2/
decorate8.png'
,
imagesUrl
+
'
decorate1.png'
,
imagesUrl
+
'
decorate2.png'
,
imagesUrl
+
'
decorate3.png'
,
imagesUrl
+
'
decorate4.png'
,
imagesUrl
+
'
decorate5.png'
,
imagesUrl
+
'
decorate6.png'
,
imagesUrl
+
'
decorate7.png'
,
imagesUrl
+
'
decorate8.png'
,
];
...
...
@@ -720,7 +722,7 @@ function closeCheckFlagList() {
function
setDecorate
(
event
)
{
let
src
=
event
.
target
.
src
;
checkedDecorate
=
src
;
// checkedDecorate = 'http://ccb-lantern.dev.izhida.cn/Public/static/image2/' + src.replace("https://static3.izhida.cn/cdn1/chinaamc-2020flag/v1.1.7
/image2/", "");
checkedDecorate
=
imagesUrl
+
src
.
replace
(
window
.
base_resource_url
+
"
/image2/"
,
""
);
$
(
'.personal-page .checked-decorate-img'
).
css
(
'background'
,
'url('
+
src
+
') left top no-repeat'
)
.
css
(
'backgroundSize'
,
'100%'
);
}
...
...
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