Commit 786aa938 authored by rlgy's avatar rlgy

update

parent b141b469
...@@ -8,4 +8,10 @@ cp common/config/main.php common/config/main-local.php ...@@ -8,4 +8,10 @@ cp common/config/main.php common/config/main-local.php
cp common/config/params.php common/config/params-local.php cp common/config/params.php common/config/params-local.php
cp console/config/main.php console/config/main-local.php cp console/config/main.php console/config/main-local.php
cp console/config/params.php console/config/params-local.php cp console/config/params.php console/config/params-local.php
cp h5/config/main.php h5/config/main-local.php
cp h5/config/params.php h5/config/params-local.php
chmod 777 backend/assets/ -R chmod 777 backend/assets/ -R
chmod 777 backend/runtime/ -R
chmod 777 api/runtime/ -R
chmod 777 h5/runtime/ -R
chmod 777 console/runtime/ -R
main-local.php
params-local.php
\ No newline at end of file
<?php
/**
* Created by PhpStorm.
* User: rlgyzhcn
* Date: 18-5-31
* Time: 上午10:26
*/
$params = array_merge(
require __DIR__ . '/../../common/config/params.php',
require __DIR__ . '/../../common/config/params-local.php',
require __DIR__ . '/params.php',
require __DIR__ . '/params-local.php'
);
return [
'id' => 'app-h5',
'basePath' => dirname(__DIR__),
'timeZone' => 'Etc/GMT-8',
'controllerNamespace' => 'h5\controllers',
'bootstrap' => [
'log'
],
'defaultRoute' => 'site/index',
'layout' => false,
'modules' => [],
'components' => [
'request' => [
'baseUrl' => '/h5',
'cookieValidationKey' => '123456',
'enableCsrfValidation' => false,
'parsers' => [
'application/json' => [
'class' => 'yii\web\JsonParser',
'throwException' => false,//json格式错误不报错
],
],
],
'response' => [
'class' => 'api\base\BaseResponse',
'format' => 'json',
'charset' => 'UTF-8',
],
'errorHandler' => [
'errorAction' => 'site/error',
],
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
],
],
'params' => $params,
];
<?php
/**
* Created by PhpStorm.
* User: rlgyzhcn
* Date: 18-5-31
* Time: 上午10:31
*/
return [
'feixiaohao_domain' => 'https://www.feixiaohao.com',
'feixiaohao_page' => [
'assets' => '/assets/',//代币
'currencies' => '/currencies/',//币种详情
'coinmarket' => '/coinmarket/',//上市交易所
],
];
\ No newline at end of file
<?php
/**
* Created by PhpStorm.
* User: rlgyzhcn
* Date: 18-5-31
* Time: 上午10:26
*/
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');
require WALLET_PROJECT_PATH . '/vendor/autoload.php';
require WALLET_PROJECT_PATH . '/vendor/yiisoft/yii2/Yii.php';
require __DIR__ . '/../common/config/bootstrap.php';
$config = yii\helpers\ArrayHelper::merge(
require __DIR__ . '/../common/config/main.php',
require __DIR__ . '/../common/config/main-local.php',
require __DIR__ . '/config/main.php',
require __DIR__ . '/config/main-local.php'
);
(new yii\web\Application($config))->run();
\ No newline at end of file
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