Initial commit,修正
This commit is contained in:
Executable
+3
@@ -0,0 +1,3 @@
|
||||
main-local.php
|
||||
params-local.php
|
||||
test-local.php
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
Yii::setAlias('@frontend', dirname(__DIR__));
|
||||
Executable
+22
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
$config = [
|
||||
'components' => [
|
||||
'db' => [
|
||||
'class' => 'yii\db\Connection',
|
||||
'dsn' => 'mysql:host=120.79.11.71;dbname=dacms_dev',
|
||||
'username' => 'dacms_dev',
|
||||
'password' => 'HS8wRyTT2sKeLdAJ',
|
||||
'charset' => 'utf8',
|
||||
'tablePrefix' => '',
|
||||
'attributes' => [
|
||||
// use a smaller connection timeout
|
||||
PDO::ATTR_TIMEOUT => 10,
|
||||
//使用长链接
|
||||
PDO::ATTR_PERSISTENT => false,
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
return $config;
|
||||
Executable
+29
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @Author: fm453
|
||||
* @Date: 2021-09-10 17:49:31
|
||||
* @Last Modified by: fm453
|
||||
* @Last Modified time: 2021-09-10 17:52:20
|
||||
* @Email: fm453@lukegzs.com
|
||||
*/
|
||||
$config = [
|
||||
'components' => [
|
||||
'db' => [
|
||||
'class' => 'yii\db\Connection',
|
||||
'dsn' => 'mysql:host=127.0.0.1;dbname=dacms',
|
||||
'username' => 'dacms',
|
||||
'password' => 'eydnsidc',
|
||||
'charset' => 'utf8',
|
||||
'tablePrefix' => '',
|
||||
'attributes' => [
|
||||
// use a smaller connection timeout
|
||||
PDO::ATTR_TIMEOUT => 10,
|
||||
//使用长链接
|
||||
PDO::ATTR_PERSISTENT => false,
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
return $config;
|
||||
Executable
+70
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
# @Author: 嗨噜客(三亚) <fm453>
|
||||
# @Date: 2022-05-15T21:19:28+08:00
|
||||
# @Email: fm453@lukegzs.com
|
||||
# @Last modified by: fm453
|
||||
# @Last modified time: 2022-05-15T21:19:31+08:00
|
||||
# @Copyright: www.hiluker.cn
|
||||
|
||||
$params = array_merge(
|
||||
require(__DIR__ . '/../../common/config/params.php'),
|
||||
require(__DIR__ . '/../../addons-'.HI_APP.'/config/citys.php'),
|
||||
require(__DIR__ . '/../../addons-'.HI_APP.'/config/params-car.php'),
|
||||
require(__DIR__ . '/../../addons-'.HI_APP.'/config/params-letter.php'),
|
||||
require(__DIR__ . '/../../addons-'.HI_APP.'/config/params-area.php'),
|
||||
require(__DIR__ . '/../../addons-'.HI_APP.'/config/params.php'),
|
||||
require(__DIR__ . '/params.php')
|
||||
);
|
||||
|
||||
$config = [
|
||||
'id' => 'web-frontend',
|
||||
'basePath' => dirname(__DIR__),
|
||||
'bootstrap' => ['log'],
|
||||
'controllerNamespace' => 'frontend\controllers',
|
||||
'defaultRoute' => 'site', //默认路由控制器
|
||||
'modules' =>[],
|
||||
'layout' => 'empty',//布局文件 优先级: 控制器>配置文件>系统默认
|
||||
'language'=>'zh-CN',
|
||||
'components' => [
|
||||
'request' => [
|
||||
'csrfParam' => '_csrf-frontend',
|
||||
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
|
||||
'cookieValidationKey' => '9F7706851F99630BA8FA23E2E897226E',
|
||||
'parsers' => [
|
||||
'application/json' => 'yii\web\JsonParser',
|
||||
]
|
||||
],
|
||||
'user' => [
|
||||
'identityClass' => 'common\models\Member',
|
||||
'enableAutoLogin' => true,
|
||||
'identityCookie' => ['name' => '_identity-frontend', 'httpOnly' => true],
|
||||
],
|
||||
'session' => [
|
||||
// this is the name of the session cookie used for login on the frontend
|
||||
'name' => 'advanced-frontend-web',
|
||||
],
|
||||
'log' => [
|
||||
'traceLevel' => YII_DEBUG ? 3 : 0,
|
||||
'targets' => [
|
||||
[
|
||||
'class' => 'yii\log\FileTarget',
|
||||
'levels' => ['error', 'warning'],
|
||||
],
|
||||
],
|
||||
],
|
||||
'errorHandler' => [
|
||||
'errorAction' => 'site/error',
|
||||
],
|
||||
'urlManager' => [
|
||||
'enablePrettyUrl' => true,
|
||||
'enableStrictParsing' => false,
|
||||
'showScriptName' => true, //建议TRUE,减少出现路径错误
|
||||
'suffix' => '.hi',
|
||||
'rules' => [
|
||||
],
|
||||
],
|
||||
],
|
||||
'params' => $params,
|
||||
];
|
||||
return $config;
|
||||
Executable
+75
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
# @Author: 嗨噜客科技(www.hiluker.cn) <Fm453>
|
||||
# @Date: 1970-01-01T08:00:00+08:00
|
||||
# @Email: fm453@hiluker.com
|
||||
# @Last modified by: Fm453
|
||||
# @Last modified time: 2021-09-15T00:07:22+08:00
|
||||
|
||||
global $_HI;
|
||||
|
||||
$_HI['siteRoot'] = $_SERVER['SERVER_NAME'].YII_APP.'/web';
|
||||
$_HI['siteUrl'] = '//'.$_HI['siteRoot'].'/index.php';
|
||||
$_HI['resourceUrl'] = '//'.$_HI['siteRoot'].'/resource';
|
||||
$_HI['staticUrl'] = '//'.$_HI['siteRoot'].'/static';
|
||||
$_HI['os'] = (isset($_GET['app']) && $_GET['app']==1) ? 'app' : 'web';
|
||||
|
||||
//网站风格等
|
||||
$_HI['siteStyle'] = 'default';
|
||||
$_HI['siteName'] ='车辆运输平台管理系统';
|
||||
$_HI['brand'] = '路客运车';
|
||||
$_HI['logo'] = $_HI['resourceUrl'].'/img/logo.png';
|
||||
$_HI['homeMenu'] = '轿车托运';
|
||||
$_HI['mpqrcode'] = $_HI['resourceUrl'].'/img/qrcode.jpg';
|
||||
$_HI['ICP'] = '琼ICP备14001297号';
|
||||
|
||||
//公众号、小程序
|
||||
//类型参数type:1服务号,2认证服务号,3订阅号,4认证订阅号
|
||||
$_HI['mp'][] = array('name'=>'嗨路客','code'=>'hiluker','qrcode'=>$_HI['resourceUrl'].'/img/qrcode.jpg','type'=>'2');
|
||||
$_HI['wxapp'][] = array('name'=>'嗨噜','qrcode'=>$_HI['resourceUrl'].'/img/qrcode-wxapp.jpg');
|
||||
|
||||
$_HI['tel']= '185-8959-1880';
|
||||
$_HI['addr'] = '三亚·吉阳区·吉阳大道212号·双创中心·';
|
||||
$_HI['hotLine'] = '18608981880';
|
||||
|
||||
//客服浮层
|
||||
$_HI['kefu']=array();
|
||||
$i=0;
|
||||
$kefu = array();
|
||||
$kefu['qq'][]=array('code'=>'1280880631','name'=>'运车客服');
|
||||
$kefu['phone'][]=array('code'=>'18608981880','name'=>'服务监督');
|
||||
$_HI['kefu'][$i] = $kefu;
|
||||
$i++;
|
||||
unset($kefu);unset($i);
|
||||
|
||||
//SEO设置
|
||||
$_HI['seo']['title'] ='路客运车-轿车托运O2O平台';
|
||||
$_HI['seo']['keywords']='轿车托运,汽车托运,道路救援';
|
||||
$_HI['seo']['description']='专业配备大中型运载板车、救援清障车,承接全国各大主要城市往返车辆运输业务。联络热线:18608981880';
|
||||
|
||||
//顶栏目导航
|
||||
$menus = array();
|
||||
$parent=$child=array();
|
||||
$i=0;
|
||||
$i++;
|
||||
$menu=array('title'=>'管理系统','url'=>'','do'=>'site','ac'=>'aboutus');
|
||||
$parent[$i]=$menu;
|
||||
|
||||
$i++;
|
||||
$menu=array('title'=>'了解报价','url'=>'','do'=>'site','ac'=>'price');
|
||||
$parent[$i]=$menu;
|
||||
$i++;
|
||||
$menu=array('title'=>'运车百科','url'=>'https://che.hiluker.com','do'=>'','ac'=>'');
|
||||
$parent[$i]=$menu;
|
||||
|
||||
$menus=array('parent'=>$parent,'child'=>$child);
|
||||
$_HI['menus'] = $menus;
|
||||
unset($parent);unset($child);unset($menu);unset($smenu);
|
||||
|
||||
//底栏目导航
|
||||
$navs = array();
|
||||
|
||||
$_HI['navs'] = $navs;
|
||||
unset($menu);unset($navs);
|
||||
|
||||
$_HI['adminEmail'] = 'fm453@lukegzs.com';
|
||||
return $_HI;
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
return [
|
||||
'id' => 'app-frontend-tests',
|
||||
'components' => [
|
||||
'assetManager' => [
|
||||
'basePath' => __DIR__ . '/../web/assets',
|
||||
],
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user