Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
citic-mdrt3
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b614c13d
authored
Mar 26, 2021
by
kubisk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
ceea778b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
7 deletions
+52
-7
Application/Common/Common/OAuthHelperV3.class.php
+1
-1
Application/Common/Conf/db.php
+2
-2
Application/Home/View/default/gpm
+45
-0
Application/Home/View/default/layout.tpl
+4
-4
No files found.
Application/Common/Common/OAuthHelperV3.class.php
View file @
b614c13d
...
@@ -67,7 +67,7 @@ class OAuthHelperV3
...
@@ -67,7 +67,7 @@ class OAuthHelperV3
'xauth'
=>
$this
->
xauth
,
'xauth'
=>
$this
->
xauth
,
);
);
$qs
=
http_build_query
(
$form
);
$qs
=
http_build_query
(
$form
);
$url
=
'https://third.i
zhida
.cn/api/oauth?'
.
$qs
;
$url
=
'https://third.i
acode
.cn/api/oauth?'
.
$qs
;
return
$url
;
return
$url
;
}
}
...
...
Application/Common/Conf/db.php
View file @
b614c13d
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
// );
// );
return
array
(
return
array
(
'DB_TYPE'
=>
'mysql'
,
'DB_TYPE'
=>
'mysql
i
'
,
'DB_HOST'
=>
'localhost'
,
'DB_HOST'
=>
'localhost'
,
'DB_PORT'
=>
'3306'
,
'DB_PORT'
=>
'3306'
,
'DB_NAME'
=>
'dev_citic_20200420_mdrt'
,
// <--- 修改这里
'DB_NAME'
=>
'dev_citic_20200420_mdrt'
,
// <--- 修改这里
...
@@ -19,5 +19,5 @@ return array(
...
@@ -19,5 +19,5 @@ return array(
'DB_PWD'
=>
'1q2w3e'
,
// <--- 修改这里
'DB_PWD'
=>
'1q2w3e'
,
// <--- 修改这里
'DB_PREFIX'
=>
''
,
'DB_PREFIX'
=>
''
,
'DB_CHARSET'
=>
'utf8mb4'
,
'DB_CHARSET'
=>
'utf8mb4'
,
);
);
Application/Home/View/default/gpm
0 → 100644
View file @
b614c13d
<?php
return array(
// 额外配置文件
'LOAD_EXT_CONFIG' => 'db,route',
// cookie签名使用,防止用户伪造
'COOKIE_SIGN' => 'your_cookie_sign_used_in_singed_cookie',
// 微信授权,通过key、token调用智达接口并验证智达返回数据
'AUTH_SUPPORT_FAKE_OPENID' => true,
'AUTH_APP_ID' => 'wx3d1fe32645ff9e8d',
'AUTH_CLIENT_ID' => 'zhida_app',
'AUTH_CLIENT_PASSWORD' => 'iacode',
/* CDN路径配置。配置之后可以在模版文件中使用__CDN__ */
// '__CDN__' => 'https://static3.iacode.cn/cdn1/pingan-promise/v1.0.2',
'__CDN__' => '/Public/static', // @readme <-- 上线时修改这里
'URL_MODEL' => 3,
'STORAGE_PATH' => WEB_ROOT_PATH . '/Data/Storage',
'DEFAULT_FILTER' => '', // 默认参数过滤方法 用于I函数...。注意这块不能修改!!!!
'MODULE_ALLOW_LIST' => array('Home', 'Cli', 'Api', 'Admin'),
'SHOW_PAGE_TRACE' => false,
'ERROR_PAGE' =>'/50x.html',
'SITE_URL' => 'https://' . (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'moli.gnhj.iacode.cn'),
'PUBLISH_MODE' => 'development', // development,test,production
// 'UPLOAD_SITEIMG_QINIU' => array(
// 'maxSize' => 5 * 1024 * 1024,//文件大小
// 'rootPath' => './',
// 'saveName' => array('uniqid', ''),
// 'driver' => 'Qiniu',
// 'driverConfig' => array(
// 'accessKey' => 'ggMPohY9_87Q69nDYUMwvR7XqlLYAREH-btbJG3U',
// 'secrectKey' => 'OPzIqCWVMDs7tAYjPi9Hn7JkxBj2CtHARCCEnrdd',
// 'domain' => 'geely-cdn.iacode.cn',
// 'bucket' => 'geelyauto',
// // 'domain' => '7xjtzd.com2.z0.glb.qiniucdn.com',
// // 'bucket' => 'zhida-yingxiaoyi',
// ),
// ),
);
\ No newline at end of file
Application/Home/View/default/layout.tpl
View file @
b614c13d
...
@@ -72,8 +72,8 @@
...
@@ -72,8 +72,8 @@
}
}
</script>
</script>
<title>
{:block name='title'}中信保诚2019年度MDRT百万圆桌精英荣誉海报{:/block}
</title>
<title>
{:block name='title'}中信保诚2019年度MDRT百万圆桌精英荣誉海报{:/block}
</title>
{:if $projectId
&&
strpos( $smarty.server.HTTP_HOST , 'dev.i
zhida
.cn') !== false}
{:if $projectId
&&
strpos( $smarty.server.HTTP_HOST , 'dev.i
acode
.cn') !== false}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"http://projectx.dev.i
zhida
.cn/api/css/rem/{:$rem}/id/{:$projectId}?version={:$version}"
<link
rel=
"stylesheet"
type=
"text/css"
href=
"http://projectx.dev.i
acode
.cn/api/css/rem/{:$rem}/id/{:$projectId}?version={:$version}"
media=
"all"
/>
media=
"all"
/>
{:else}
{:else}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"__CDN__/css/main.min.css"
media=
"all"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"__CDN__/css/main.min.css"
media=
"all"
/>
...
@@ -87,8 +87,8 @@
...
@@ -87,8 +87,8 @@
<body>
<body>
<div
class=
"wrap"
>
<div
class=
"wrap"
>
<div
class=
"wrap-inner"
>
<div
class=
"wrap-inner"
>
{:if $projectId
&&
strpos( $smarty.server.HTTP_HOST , 'dev.i
zhida
.cn') !== false}
{:if $projectId
&&
strpos( $smarty.server.HTTP_HOST , 'dev.i
acode
.cn') !== false}
{:"http://projectx.dev.i
zhida
.cn/api/html/id/`$projectId`"|file_get_contents}
{:"http://projectx.dev.i
acode
.cn/api/html/id/`$projectId`"|file_get_contents}
{:else}
{:else}
{:block name='body'}{:/block}
{:block name='body'}{:/block}
{:/if}
{:/if}
...
...
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