Commit ec8fc19c authored by rlgy's avatar rlgy

update

parent cf68f582
......@@ -15,11 +15,10 @@ $params = array_merge(
return [
'id' => 'app-api',
'basePath' => dirname(__DIR__),
'basePath' => '@api',
'controllerNamespace' => 'api\controllers',
'defaultRoute' => 'site/index',
'layout' => false,
'modules' => [],
'components' => [
'request' => [
'baseUrl' => '/interface',
......
......@@ -8,7 +8,8 @@
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
define('WALLET_PROJECT_PATH', '/home/rlgyzhcn/Desktop/33/token');
define('WALLET_PROJECT_PATH', '/home/rlgyzhcn/Desktop/33/token'); //定义框架代码的目录
define('WALLET_RUNTIME_PATH', dirname(__DIR__)); //定义程序运行的目录
require WALLET_PROJECT_PATH . '/vendor/autoload.php';
require WALLET_PROJECT_PATH . '/vendor/yiisoft/yii2/Yii.php';
......
......@@ -17,12 +17,8 @@ return [
'id' => 'app-backend',
'basePath' => '@backend',
'controllerNamespace' => 'backend\controllers',
'bootstrap' => [
'log',
],
'defaultRoute' => 'site/index',
'layout' => 'main',
'modules' => [],
'components' => [
'user' => [
'class' => 'yii\web\User',
......
......@@ -7,8 +7,32 @@
*/
return [
'adminEmail' => 'admin@example.com',
'user.passwordResetTokenExpire' => 3600,
'admin' => 1,
/* 后台页面属性配置 */
'config_page' => [
'add' => '添加',
'delete' => '删除',
'update' => '更新',
'tool_bar' => '工具箱',
'export' => '导出Excel',
'others' => '其它',
'details' => '详情',
'color_opt' => 'btn-primary',
'color_bar' => 'btn-primary',
],
'pager' => [
'options' => ['class' => 'pagination', 'style' => 'visibility: visible;'],
'firstPageLabel' => "首页",
'prevPageLabel' => '上一页',
'nextPageLabel' => '下一页',
'lastPageLabel' => '末页',
],
'adminEmail' => 'admin@example.com',
/* 后台错误页面模板 */
'action_error' => '@backend/views/public/error.php', // 默认错误跳转对应的模板文件
'action_success' => '@backend/views/public/success.php', // 默认成功跳转对应的模板文件
'action_error' => '@backend/views/public/error.php', // 默认错误跳转对应的模板文件
'action_success' => '@backend/views/public/success.php', // 默认成功跳转对应的模板文件
];
......@@ -8,7 +8,8 @@
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
define('WALLET_PROJECT_PATH', '/home/rlgyzhcn/Desktop/33/token');
define('WALLET_PROJECT_PATH', '/home/rlgyzhcn/Desktop/33/token'); //定义框架代码的目录
define('WALLET_RUNTIME_PATH', dirname(__DIR__)); //定义程序运行的目录
require WALLET_PROJECT_PATH . '/vendor/autoload.php';
require WALLET_PROJECT_PATH . '/vendor/yiisoft/yii2/Yii.php';
......
......@@ -6,9 +6,16 @@
* @authors rlgy <rlgyzhcn@qq.com>
*/
// 代码库别名
Yii::setAlias('@api', WALLET_PROJECT_PATH . '/api');
Yii::setAlias('@common', WALLET_PROJECT_PATH . '/common');
Yii::setAlias('@backend', WALLET_PROJECT_PATH . '/backend');
Yii::setAlias('@console', WALLET_PROJECT_PATH . '/console');
Yii::setAlias('@vendor', WALLET_PROJECT_PATH . '/vendor');
Yii::setAlias('@h5', WALLET_PROJECT_PATH . '/h5');
// 运行目录别名
Yii::setAlias('@backend/runtime', WALLET_RUNTIME_PATH . '/backend');
Yii::setAlias('@console/runtime', WALLET_RUNTIME_PATH . '/console');
Yii::setAlias('@api/runtime', WALLET_RUNTIME_PATH . '/api');
Yii::setAlias('@h5/runtime', WALLET_RUNTIME_PATH . '/h5');
......@@ -7,30 +7,6 @@
*/
return [
'user.passwordResetTokenExpire' => 3600,
'admin' => 1,
/* 后台页面属性配置 */
'config_page' => [
'add' => '添加',
'delete' => '删除',
'update' => '更新',
'tool_bar' => '工具箱',
'export' => '导出Excel',
'others' => '其它',
'details' => '详情',
'color_opt' => 'btn-primary',
'color_bar' => 'btn-primary',
],
'pager' => [
'options' => ['class' => 'pagination', 'style' => 'visibility: visible;'],
'firstPageLabel' => "首页",
'prevPageLabel' => '上一页',
'nextPageLabel' => '下一页',
'lastPageLabel' => '末页',
],
/**
* 非小号数据爬取地址
......
......@@ -8,13 +8,7 @@ $params = array_merge(
return [
'id' => 'app-console',
'basePath' => dirname(__DIR__),
'basePath' => '@console',
'controllerNamespace' => 'console\controllers',
'aliases' => [
'@bower' => '@vendor/bower-asset',
'@npm' => '@vendor/npm-asset',
],
'components' => [
],
'params' => $params,
];
......@@ -15,11 +15,10 @@ $params = array_merge(
return [
'id' => 'app-h5',
'basePath' => dirname(__DIR__),
'basePath' => '@h5',
'controllerNamespace' => 'h5\controllers',
'defaultRoute' => 'site/index',
'layout' => false,
'modules' => [],
'components' => [
'request' => [
'baseUrl' => '/h5',
......
......@@ -8,7 +8,8 @@
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
define('WALLET_PROJECT_PATH', '/home/rlgyzhcn/Desktop/33/token');
define('WALLET_PROJECT_PATH', '/home/rlgyzhcn/Desktop/33/token'); //定义框架代码的目录
define('WALLET_RUNTIME_PATH', dirname(__DIR__)); //定义程序运行的目录
require WALLET_PROJECT_PATH . '/vendor/autoload.php';
require WALLET_PROJECT_PATH . '/vendor/yiisoft/yii2/Yii.php';
......
......@@ -11,7 +11,8 @@
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
define('USER_PROXY', true);
define('WALLET_PROJECT_PATH', '/home/rlgyzhcn/Desktop/33/token');
define('WALLET_PROJECT_PATH', '/home/rlgyzhcn/Desktop/33/token'); //定义框架代码的目录
define('WALLET_RUNTIME_PATH', dirname(__DIR__)); //定义程序运行的目录
require WALLET_PROJECT_PATH . '/vendor/autoload.php';
require WALLET_PROJECT_PATH . '/vendor/yiisoft/yii2/Yii.php';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment