Initial commit,修正
This commit is contained in:
Executable
+3
@@ -0,0 +1,3 @@
|
||||
main-local.php
|
||||
params-local.php
|
||||
test-local.php
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
global $_HI;
|
||||
global $_FM;
|
||||
Yii::setAlias('@backend', dirname(__DIR__));
|
||||
Executable
+21
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @Author: fm453
|
||||
* @Date: 2018-11-22 10:19:29
|
||||
* @Last Modified by: fm453
|
||||
* @Last Modified time: 2019-09-21 01:52:04
|
||||
* @Email: fm453@lukegzs.com
|
||||
*/
|
||||
|
||||
$citys=[];
|
||||
$i=0;
|
||||
|
||||
$i++;
|
||||
$citys[$i] = ['id'=>$i,'name'=>'三亚'];
|
||||
$i++;
|
||||
$citys[$i] = ['id'=>$i,'name'=>'海口'];
|
||||
|
||||
return [
|
||||
'citys'=>$citys
|
||||
];
|
||||
Executable
+24
@@ -0,0 +1,24 @@
|
||||
<?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' => '',
|
||||
],
|
||||
'lvju' => [
|
||||
'class' => 'yii\db\Connection',
|
||||
'dsn' => 'mysql:host=120.79.11.71;dbname=lvju_dev',
|
||||
'username' => 'lvju_dev',
|
||||
'password' => 'F5XF4h28L37MGG5m',
|
||||
'charset' => 'utf8',
|
||||
'tablePrefix' => '',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
return $config;
|
||||
Executable
+30
@@ -0,0 +1,30 @@
|
||||
<?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:21:13+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' => '',
|
||||
],
|
||||
'lvju' => [
|
||||
'class' => 'yii\db\Connection',
|
||||
'dsn' => 'mysql:host=127.0.0.1;dbname=lvju',
|
||||
'username' => 'lvju',
|
||||
'password' => 'f3MnRe7eRRmCtZAz',
|
||||
'charset' => 'utf8',
|
||||
'tablePrefix' => '',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
return $config;
|
||||
Executable
+118
@@ -0,0 +1,118 @@
|
||||
<?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-15T16:55:29+08:00
|
||||
|
||||
$params = array_merge(
|
||||
require(__DIR__ . '/../../common/config/params.php'),
|
||||
require(__DIR__ . '/params.php'),
|
||||
require(__DIR__ . '/citys.php'),
|
||||
require(__DIR__ . '/params-area.php'),
|
||||
require(__DIR__ . '/params-channel.php')
|
||||
);
|
||||
|
||||
$config = [
|
||||
'id' => 'app-backend',
|
||||
'basePath' => dirname(__DIR__),
|
||||
'controllerNamespace' => 'backend\controllers',
|
||||
'defaultRoute' => 'site', //默认路由
|
||||
'bootstrap' => ['log'],
|
||||
'modules' => [
|
||||
"admin" => [
|
||||
"class" => 'mdm\admin\Module',
|
||||
],
|
||||
],
|
||||
'aliases' => [
|
||||
"@mdm/admin" => "@vendor/mdmsoft/yii2-admin",
|
||||
],
|
||||
'as access' => [
|
||||
//加了才会自动验证是否有权限
|
||||
'class' => 'mdm\admin\components\AccessControl',
|
||||
'allowActions' => [
|
||||
//允许访问的action
|
||||
//controller/action
|
||||
'*', //开发环境配置完成后务必抹掉此项
|
||||
'site/*',
|
||||
'index/*'
|
||||
]
|
||||
],
|
||||
//'layout' => 'main',//布局文件 优先级: 控制器>配置文件>系统默认
|
||||
'language' => 'zh-CN', //目标语言
|
||||
//组件
|
||||
'components' => [
|
||||
'request' => [
|
||||
'csrfParam' => '_csrf-backend',
|
||||
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
|
||||
'cookieValidationKey' => 'CU5iSYmIp6kbjKKuh541KsA_oaYvTuNh',
|
||||
],
|
||||
//身份认证类
|
||||
'user' => [
|
||||
'identityClass' => 'backend\models\Adminer',
|
||||
'enableAutoLogin' => true,
|
||||
'identityCookie' => ['name' => '_identity-backend', 'httpOnly' => true],
|
||||
//'loginUrl' => ['site/login'], //配置登录url
|
||||
],
|
||||
'session' => [
|
||||
// this is the name of the session cookie used for login on the backend
|
||||
'name' => 'advanced-backend',
|
||||
],
|
||||
//Rbac权限控制
|
||||
'authManager' => [
|
||||
'class' => 'yii\rbac\DbManager',
|
||||
// 'itemTable' => 'auth_item',
|
||||
// 'assignmentTable' => 'auth_assignment',
|
||||
// 'itemChildTable' => 'auth_item_child',
|
||||
],
|
||||
'log' => [
|
||||
'traceLevel' => YII_DEBUG ? 3 : 0,
|
||||
'targets' => [
|
||||
[
|
||||
'class' => 'yii\log\FileTarget',
|
||||
'levels' => ['error', 'warning'],
|
||||
],
|
||||
],
|
||||
],
|
||||
'errorHandler' => [
|
||||
'errorAction' => 'site/error',
|
||||
],
|
||||
|
||||
/**
|
||||
* 语言包配置扩展(归于components下),
|
||||
* 将"源语言"翻译成"目标语言". 注意"源语言"默认配置为 'sourceLanguage' => 'en-US'
|
||||
* 使用: \Yii::t('common', 'title'); 将common/messages下的common.php中的title转为对应的中文
|
||||
*/
|
||||
'i18n' => [
|
||||
'translations' => [
|
||||
'common' => [ //有多套语言包要使用时,此处的*号可换成更具体的前缀,如pms
|
||||
'class' => 'yii\i18n\PhpMessageSource',
|
||||
'basePath' => '@backend/lang',
|
||||
//'sourceLanguage' => 'en-US',
|
||||
'fileMap' => [
|
||||
'common' => 'common.php',
|
||||
],
|
||||
],
|
||||
'backend' => [ //有多套语言包要使用时,此处的*号可换成更具体的前缀,如pms
|
||||
'class' => 'yii\i18n\PhpMessageSource',
|
||||
'basePath' => '@backend/lang',
|
||||
//'sourceLanguage' => 'en-US',
|
||||
'fileMap' => [
|
||||
'backend' => 'backend.php',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
'urlManager' => [
|
||||
'enablePrettyUrl' => true,
|
||||
'showScriptName' => true,
|
||||
'suffix' => '.hi', //后缀
|
||||
'rules' => [
|
||||
],
|
||||
],
|
||||
|
||||
],
|
||||
'params' => $params,
|
||||
];
|
||||
return $config;
|
||||
Executable
+41
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
$areas=[];
|
||||
$areas['110000'] = "北京";
|
||||
$areas['120000'] = "天津";
|
||||
$areas['130000'] = "河北省";
|
||||
$areas['140000'] = "山西省";
|
||||
$areas['150000'] = "内蒙古自治区";
|
||||
$areas['210000'] = "辽宁省";
|
||||
$areas['220000'] = "吉林省";
|
||||
$areas['230000'] = "黑龙江省";
|
||||
$areas['310000'] = "上海";
|
||||
$areas['320000'] = "江苏省";
|
||||
$areas['330000'] = "浙江省";
|
||||
$areas['340000'] = "安徽省";
|
||||
$areas['350000'] = "福建省";
|
||||
$areas['360000'] = "江西省";
|
||||
$areas['370000'] = "山东省";
|
||||
$areas['410000'] = "河南省";
|
||||
$areas['420000'] = "湖北省";
|
||||
$areas['430000'] = "湖南省";
|
||||
$areas['440000'] = "广东省";
|
||||
$areas['450000'] = "广西壮族自治区";
|
||||
$areas['460000'] = "海南省";
|
||||
$areas['500000'] = "重庆";
|
||||
$areas['510000'] = "四川省";
|
||||
$areas['520000'] = "贵州省";
|
||||
$areas['530000'] = "云南省";
|
||||
$areas['540000'] = "西藏自治区";
|
||||
$areas['610000'] = "陕西省";
|
||||
$areas['620000'] = "甘肃省";
|
||||
$areas['630000'] = "青海省";
|
||||
$areas['640000'] = "宁夏回族自治区";
|
||||
$areas['650000'] = "新疆维吾尔自治区";
|
||||
$areas['710000'] = "台湾省";
|
||||
$areas['810000'] = "香港特别行政区";
|
||||
$areas['820000'] = "澳门特别行政区";
|
||||
$areas['990000'] = "海外";
|
||||
return [
|
||||
'regionAreas' => $areas
|
||||
];
|
||||
Executable
+22
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
$channels=[];
|
||||
$channels['0'] = "未设置";
|
||||
$channels['ota'] = "其他OTA";
|
||||
$channels['100'] = "官方直营";
|
||||
$channels['200'] = "飞猪";
|
||||
$channels['300'] = "同行";
|
||||
$channels['400'] = "分销带客";
|
||||
$channels['1000'] = "携程";
|
||||
$channels['500'] = "途家";
|
||||
$channels['600'] = "去哪儿";
|
||||
$channels['700'] = "马蜂窝";
|
||||
$channels['800'] = "爱彼迎";
|
||||
$channels['900'] = "美团";
|
||||
$channels['1100'] = "小猪短租";
|
||||
$channels['1200'] = "木鸟短租";
|
||||
$channels['1300'] = "榛果民宿";
|
||||
|
||||
return [
|
||||
'saleChannels' => $channels
|
||||
];
|
||||
Executable
+22
@@ -0,0 +1,22 @@
|
||||
<?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:28:32+08:00
|
||||
|
||||
return [
|
||||
'adminEmail' => 'fm453@lukegzs.com',
|
||||
'developerWx' => '18608981880',
|
||||
//默认值组
|
||||
'defaultAdminPassword' => 'Hi12345678', //默认的管理员密码
|
||||
'defaultAdminAvatar' => '@web/img/profile_small.png', //默认管理员头像
|
||||
'defaultUserPassword' => '12345678', //默认的用户密码
|
||||
'defaultUserAvatar' => '@web/img/profile_small.png', //默认管理员头像
|
||||
'defaultAttributeValue' => '(未设置)', //空值默认
|
||||
'defaultActionColumnButtonOption' => ['class' => 'btn btn-white btn-xs'], //列表页操作按钮选项
|
||||
//平台ID
|
||||
'siteId'=>90, //每个站点ID对应一套数据集
|
||||
'attachSrc'=>'//dacms.hiluker.com', //附件远程地址
|
||||
'attachDir'=>'/upload', //附件远程目录
|
||||
];
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
return [
|
||||
'id' => 'app-backend-tests',
|
||||
'components' => [
|
||||
'assetManager' => [
|
||||
'basePath' => __DIR__ . '/../web/assets',
|
||||
],
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user