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
+28
@@ -0,0 +1,28 @@
|
||||
<?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:14:24+08:00
|
||||
|
||||
|
||||
$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
+67
@@ -0,0 +1,67 @@
|
||||
<?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-16T06:55:55+08:00
|
||||
|
||||
$params = array_merge(
|
||||
require(__DIR__ . '/../../common/config/params.php'),
|
||||
require(__DIR__ . '/params.php')
|
||||
);
|
||||
|
||||
$config = [
|
||||
'id' => 'app-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',
|
||||
],
|
||||
'log' => [
|
||||
'traceLevel' => YII_DEBUG ? 3 : 0,
|
||||
'targets' => [
|
||||
[
|
||||
'class' => 'yii\log\FileTarget',
|
||||
'levels' => ['error', 'warning'],
|
||||
],
|
||||
],
|
||||
],
|
||||
'errorHandler' => [
|
||||
'errorAction' => 'site/error',
|
||||
],
|
||||
'assetManager' => [
|
||||
'basePath' => __DIR__ . '/../web/assets',
|
||||
],
|
||||
'urlManager' => [
|
||||
'enablePrettyUrl' => true,
|
||||
'enableStrictParsing' => false,
|
||||
'showScriptName' => true, //建议TRUE,减少出现路径错误
|
||||
'suffix' => '.hi',
|
||||
'rules' => [
|
||||
],
|
||||
],
|
||||
],
|
||||
'params' => $params,
|
||||
];
|
||||
|
||||
return $config;
|
||||
Executable
+115
@@ -0,0 +1,115 @@
|
||||
<?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:17:23+08:00
|
||||
|
||||
global $_HI;
|
||||
$_HI['siteRoot'] = $_SERVER['SERVER_NAME'].'/front-hiluker/web';
|
||||
$_HI['siteUrl'] = '//'.$_HI['siteRoot'].'/index.php';
|
||||
$_HI['resourceUrl'] = '//'.$_HI['siteRoot'].'/resource';
|
||||
// $_HI['staticUrl'] = Yii::getAlias('@frontend').'/web/static';
|
||||
$_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']= '186-0898-1880';
|
||||
$_HI['addr'] = '三亚·迎宾路·瑞都水郡商铺121号·进停车场后右拐内进50米';
|
||||
$_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'] ='海南嗨路客电子商务有限公司官方网站';
|
||||
$_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'=>'product','ac'=>'index');
|
||||
$parent[$i]=$menu;
|
||||
$smenu=array();
|
||||
$smenu[] = array('title'=>'微分销系统','url'=>'','do'=>'product','ac'=>'distribution');
|
||||
$smenu[] = array('title'=>'城市O2O系统','url'=>'','do'=>'product','ac'=>'vcity');
|
||||
$smenu[] = array('title'=>'智能硬件','url'=>'','do'=>'product','ac'=>'hardware');
|
||||
$smenu[] = array('title'=>'跨境电商','url'=>'','do'=>'product','ac'=>'crossb');
|
||||
$smenu[] = array('title'=>'移动营销APP','url'=>'','do'=>'product','ac'=>'socially');
|
||||
$smenu[] = array('title'=>'全球分红','url'=>'','do'=>'product','ac'=>'global');
|
||||
$smenu[] = array('title'=>'多门店系统','url'=>'','do'=>'product','ac'=>'mendian');
|
||||
$smenu[] = array('title'=>'升级大礼包','url'=>'','do'=>'product','ac'=>'uppackage');
|
||||
$child[$i]=$smenu;
|
||||
$i++;
|
||||
$menu=array('title'=>'解决方案','url'=>'','do'=>'solution','ac'=>'index','hot'=>1);
|
||||
$parent[$i]=$menu;
|
||||
$smenu=array();
|
||||
$smenu[] = array('title'=>'农村电商','url'=>'','do'=>'solution','ac'=>'country');
|
||||
$smenu[] = array('title'=>'零售电商','url'=>'','do'=>'solution','ac'=>'retail');
|
||||
$smenu[] = array('title'=>'线下多门店','url'=>'','do'=>'solution','ac'=>'offline');
|
||||
$smenu[] = array('title'=>'O2O餐饮','url'=>'','do'=>'solution','ac'=>'catering');
|
||||
$smenu[] = array('title'=>'O2O酒店','url'=>'','do'=>'solution','ac'=>'hotels');
|
||||
$smenu[] = array('title'=>'O2OKTV','url'=>'','do'=>'solution','ac'=>'ktv');
|
||||
$smenu[] = array('title'=>'旅游行业','url'=>'','do'=>'solution','ac'=>'tourist');
|
||||
$smenu[] = array('title'=>'美容行业','url'=>'','do'=>'solution','ac'=>'beauty');
|
||||
$smenu[] = array('title'=>'超级单品','url'=>'','do'=>'solution','ac'=>'single');
|
||||
$child[$i]=$smenu;
|
||||
$i++;
|
||||
$menu=array('title'=>'高端定制','url'=>'','do'=>'site','ac'=>'customization');
|
||||
$parent[$i]=$menu;
|
||||
$i++;
|
||||
$menu=array('title'=>'报价方案','url'=>'','do'=>'site','ac'=>'price');
|
||||
$parent[$i]=$menu;
|
||||
|
||||
$i++;
|
||||
$menu=array('title'=>'项目体验','url'=>'','do'=>'friendlink','ac'=>'index');
|
||||
$parent[$i]=$menu;
|
||||
$smenu=array();
|
||||
$smenu[] = array('title'=>'微信营销','url'=>'https://vcms.hiluker.com','do'=>'product','ac'=>'vcms');
|
||||
$smenu[] = array('title'=>'小程序管理','url'=>'https://xcx.hiluker.com','do'=>'product','ac'=>'wxapp');
|
||||
$smenu[] = array('title'=>'汽车托运','url'=>'https://ctms.hiluker.com','do'=>'product','ac'=>'ctms');
|
||||
$smenu[] = array('title'=>'开发工具盒','url'=>'https://tools.hiluker.com','do'=>'product','ac'=>'ctms');
|
||||
$child[$i]=$smenu;
|
||||
|
||||
$i++;
|
||||
$menu=array('title'=>'合作案例','url'=>'https://case.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