Commit 4f94fb41 authored by shajiaiming's avatar shajiaiming

init

parent 644a459b
<?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',
......@@ -14,35 +7,35 @@ $params = array_merge(
);
return [
'id' => 'app-api',
'basePath' => '@api',
'id' => 'app-api',
'basePath' => '@api',
'controllerNamespace' => 'api\controllers',
'defaultRoute' => 'site/index',
'layout' => false,
'components' => [
'request' => [
'baseUrl' => '/interface',
'cookieValidationKey' => '123456',
'defaultRoute' => 'site/index',
'layout' => false,
'components' => [
'request' => [
'baseUrl' => '/interface',
'cookieValidationKey' => '123456',
'enableCsrfValidation' => false,
'parsers' => [
'parsers' => [
'application/json' => [
'class' => 'yii\web\JsonParser',
'class' => 'yii\web\JsonParser',
'throwException' => false,//json格式错误不报错
],
],
],
'response' => [
'class' => 'api\base\BaseResponse',
'format' => 'json',
'response' => [
'class' => 'api\base\BaseResponse',
'format' => 'json',
'charset' => 'UTF-8',
],
'errorHandler' => [
'errorAction' => 'site/error',
],
'urlManager' => [
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'showScriptName' => false,
],
],
'params' => $params,
'params' => $params,
];
<?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',
......@@ -14,35 +7,35 @@ $params = array_merge(
);
return [
'id' => 'app-api',
'basePath' => '@api',
'id' => 'app-api',
'basePath' => '@api',
'controllerNamespace' => 'api\controllers',
'defaultRoute' => 'site/index',
'layout' => false,
'components' => [
'request' => [
'baseUrl' => '/interface',
'cookieValidationKey' => '123456',
'defaultRoute' => 'site/index',
'layout' => false,
'components' => [
'request' => [
'baseUrl' => '/interface',
'cookieValidationKey' => '123456',
'enableCsrfValidation' => false,
'parsers' => [
'parsers' => [
'application/json' => [
'class' => 'yii\web\JsonParser',
'class' => 'yii\web\JsonParser',
'throwException' => false,//json格式错误不报错
],
],
],
'response' => [
'class' => 'api\base\BaseResponse',
'format' => 'json',
'response' => [
'class' => 'api\base\BaseResponse',
'format' => 'json',
'charset' => 'UTF-8',
],
'errorHandler' => [
'errorAction' => 'site/error',
],
'urlManager' => [
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'showScriptName' => false,
],
],
'params' => $params,
'params' => $params,
];
<?php
/**
* Created by PhpStorm.
* User: rlgyzhcn
* Date: 18-5-31
* Time: 上午10:31
*/
return [
];
\ No newline at end of file
<?php
/**
* Created by PhpStorm.
* User: rlgyzhcn
* Date: 18-5-31
* Time: 上午10:31
*/
return [
];
\ 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'); //定义框架代码的目录
define('WALLET_PROJECT_PATH', '/data_wallet/bn/token'); //定义框架代码的目录
define('WALLET_RUNTIME_PATH', dirname(__DIR__)); //定义程序运行的目录
require WALLET_PROJECT_PATH . '/vendor/autoload.php';
......
<?php
/**
* Created by PhpStorm.
* User: rlgyzhcn
* Date: 18-5-31
* Time: 上午10:26
*/
defined('YII_DEBUG') or define('YII_DEBUG', false);
defined('YII_ENV') or define('YII_ENV', 'prod');
define('WALLET_PROJECT_PATH', '/data_wallet/token'); //定义框架代码的目录
define('WALLET_PROJECT_PATH', '/data_wallet/bn/token'); //定义框架代码的目录
define('WALLET_RUNTIME_PATH', dirname(__DIR__)); //定义程序运行的目录
require_once __DIR__ . '/../common/helper/InitAppHelper.php';
//$realip = InitAppHelper::getUserIp();
//$ip_list = file_get_contents('http://172.16.0.230:8080/wallet_interface_ip_limit.txt');
//$ip_arr = explode("\n", $ip_list);
//foreach ($ip_arr as $key => $ip) {
// if ($ip == $realip) {
// $data = [
// 'code' => 403,
// 'msg' => '请求次数过多!'
// ];
// echo json_encode($data);exit;
// }
//}
require WALLET_PROJECT_PATH . '/vendor/autoload.php';
require WALLET_PROJECT_PATH . '/vendor/yiisoft/yii2/Yii.php';
......
<?php
/**
* Created By Sublime Text 3
*
* @date 2018-09-07 15:55:20
* @authors rlgy <rlgyzhcn@qq.com>
*/
$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-backend',
'basePath' => '@backend',
'controllerNamespace' => 'backend\controllers',
'defaultRoute' => 'site/index',
'layout' => 'main',
'components' => [
'user' => [
'class' => 'yii\web\User',
'loginUrl' => ['login/login'],
'enableAutoLogin' => true,
'identityClass' => 'common\models\Admin',
'identityCookie' => [
'name' => '_identity-backend',
'httpOnly' => true,
],
],
'authManager' => [
'class' => 'common\core\rbac\DbManager',
],
'assetManager' => [
'bundles' => [
'yii\web\JqueryAsset' => [
'sourcePath' => null,
'js' => [],
'depends' => [],
],
'yii\bootstrap\BootstrapAsset' => [
'css' => [],
],
],
'linkAssets' => true, //true 清除缓存
],
'request' => [
'class' => 'common\core\Request',
'baseUrl' => '/admin',
'cookieValidationKey' => 'Yr4XDePew55tutE3CVZ7vBUqVO3iorN6',
],
'session' => [
'name' => 'manage-backend',
],
'errorHandler' => [
'errorAction' => 'public/error',
],
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'],
],
],
],
'urlManager' => [
'class' => 'common\core\UrlManager',
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
],
],
],
/**
* 通过配置文件附加行为,全局
*/
'as rbac' => [
'class' => 'common\behaviors\RbacBehavior',
'allowActions' => [
'login/login',
'login/logout',
'public/*',
'chat/*',
'debug/*',
'gii/*', // 不需要权限检测
],
],
/**
* 只允许一处登陆
*/
'as check' => [
'class' => 'common\filter\LoginFilter',
'filter' => false, //[true:允许单 false:允许多]
],
'params' => $params,
];
<?php
/**
* Created By Sublime Text 3
*
* @date 2018-09-07 15:55:20
* @authors rlgy <rlgyzhcn@qq.com>
*/
$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-backend',
'basePath' => '@backend',
'controllerNamespace' => 'backend\controllers',
'defaultRoute' => 'site/index',
'layout' => 'main',
'components' => [
'user' => [
'class' => 'yii\web\User',
'loginUrl' => ['login/login'],
'enableAutoLogin' => true,
'identityClass' => 'common\models\Admin',
'identityCookie' => [
'name' => '_identity-backend',
'httpOnly' => true,
],
],
'authManager' => [
'class' => 'common\core\rbac\DbManager',
],
'assetManager' => [
'bundles' => [
'yii\web\JqueryAsset' => [
'sourcePath' => null,
'js' => [],
'depends' => [],
],
'yii\bootstrap\BootstrapAsset' => [
'css' => [],
],
],
'linkAssets' => true, //true 清除缓存
],
'request' => [
'class' => 'common\core\Request',
'baseUrl' => '/admin',
'cookieValidationKey' => 'Yr4XDePew55tutE3CVZ7vBUqVO3iorN6',
],
'session' => [
'name' => 'manage-backend',
],
'errorHandler' => [
'errorAction' => 'public/error',
],
'urlManager' => [
'class' => 'common\core\UrlManager',
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
],
],
],
/**
* 通过配置文件附加行为,全局
*/
'as rbac' => [
'class' => 'common\behaviors\RbacBehavior',
'allowActions' => [
'login/login',
'login/logout',
'public/*',
'chat/*',
'debug/*',
'gii/*', // 不需要权限检测
],
],
/**
* 只允许一处登陆
*/
'as check' => [
'class' => 'common\filter\LoginFilter',
'filter' => false, //[true:允许单 false:允许多]
],
'params' => $params,
];
<?php
/**
* Created By Sublime Text 3
*
* @date 2018-09-07 15:56:52
* @authors rlgy <rlgyzhcn@qq.com>
*/
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' => '末页',
],
'adminEmail' => 'admin@example.com',
/* 后台错误页面模板 */
'action_error' => '@backend/views/public/error.php', // 默认错误跳转对应的模板文件
'action_success' => '@backend/views/public/success.php', // 默认成功跳转对应的模板文件
];
<?php
/**
* Created By Sublime Text 3
*
* @date 2018-09-07 15:56:52
* @authors rlgy <rlgyzhcn@qq.com>
*/
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' => '末页',
],
'adminEmail' => 'admin@example.com',
/* 后台错误页面模板 */
'action_error' => '@backend/views/public/error.php', // 默认错误跳转对应的模板文件
'action_success' => '@backend/views/public/success.php', // 默认成功跳转对应的模板文件
];
<?php
/**
* Created By Sublime Text 3
*
* @date 2018-09-07 15:46:57
* @authors rlgy <rlgyzhcn@qq.com>
*/
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_RUNTIME_PATH', dirname(__DIR__)); //定义程序运行的目录
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();
<?php
/**
* Created By Sublime Text 3
*
* @date 2018-09-07 15:46:57
* @authors rlgy <rlgyzhcn@qq.com>
*/
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'prod');
define('WALLET_PROJECT_PATH', '/data_wallet/token'); //定义框架代码的目录
define('WALLET_RUNTIME_PATH', dirname(__DIR__)); //定义程序运行的目录
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();
#! /bin/bash
# file needed copy
exists_file=(
"api/index-dev.php"
"api/config/main.php"
"api/config/params.php"
"backend/index-dev.php"
"backend/config/main.php"
"backend/config/params.php"
"common/config/main.php"
"common/config/params.php"
"console/config/main.php"
"console/config/params.php"
"h5/index-dev.php"
"h5/config/main.php"
"h5/config/params.php"
"yii-local"
)
# tag file
tag_file=(
"api/index.php"
"api/config/main-local.php"
"api/config/params-local.php"
"backend/index.php"
"backend/config/main-local.php"
"backend/config/params-local.php"
"common/config/main-local.php"
"common/config/params-local.php"
"console/config/main-local.php"
"console/config/params-local.php"
"h5/index.php"
"h5/config/main-local.php"
"h5/config/params-local.php"
"yii"
)
# copy file if no exists
for (( i = 0; i < ${#tag_file[*]}; i++ )); do
if [[ ! -f ${tag_file[$i]} ]]; then
echo "copy file ${exists_file[i]} to ${tag_file[i]}"
cp ${exists_file[i]} ${tag_file[i]}
fi
done
# chmod directory to 777
directory=(
"backend/assets"
"backend/runtime"
"api/runtime"
"h5/runtime"
"console/runtime"
)
for (( i = 0; i < ${#directory[*]}; i++ )); do
chmod 777 ${directory[i]} -R
done
\ No newline at end of file
<?php
/**
* Created By Sublime Text 3
*
* @date 2018-09-07 15:51:07
* @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('@wallet', WALLET_PROJECT_PATH . '/wallet');
// 运行目录别名
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');
Yii::setAlias('@wallet/runtime', WALLET_RUNTIME_PATH . '/wallet');
<?php
/**
* Created by PhpStorm.
* User: jiaming
* Date: 2019/6/20
* Time: 11:11
*/
return [
'global' => [
'common\behaviors\LoginStatusAuthInterceptor',
'common\behaviors\UserAuthInterceptor',
'common\behaviors\OperationLogInterceptor'
],
'default' => [
]
];
<?php
/**
* Created by PhpStorm.
* User: ZCY
* Date: 2018/10/8
* Time: 15:13
*/
return [
'service' => [
'scheme' => 'http',
'host' => '47.92.120.76',
'port' => 8901,
],
'period_num' => 100, //每天彩票期数
'do_lottery_step' => 30, //开奖区块步进
'period_total_step' => 40, //总共一期区块步进
'lotteryId' => '0x2c3d505b22ac6c82c36a80867038006d36f409ef7b2717bbfadb2deee2d4a17a',
'addr' => '1LTkYrVr6bXoebTFG8pNkf7htRAHNBYiDB',
'key' => '0xfafc93776d124391a3abd58f9db497e9b94b5138a545cf31b0650ae1b312083f',
'createor_lottery_addr' => '15nn4D2ppUj8tmyHfdm8g4EvtqpBYUS7DM', //游戏创建者地址
'createor_key' => '0x1d265f4dbb202b4fc5e24ffdc96852a6e0834dbee7eb4eebd476b171f7cb0baa', // 游戏创建者私钥
'new_lotteryId' => '0x8cc5ddb9425806dac02a596d0872446cb9d67328f20880c6f3874f0aa6e47650',
];
\ No newline at end of file
This diff is collapsed.
<?php
/**
* Created By Sublime Text 3
*
* @date 2018-09-07 15:55:20
* @authors rlgy <rlgyzhcn@qq.com>
*/
return [
'vendorPath' => '@vendor',
'vendorPath' => '@vendor',
'sourceLanguage' => 'en',
'language' => 'zh-CN',
'timeZone' => 'Etc/GMT-8',
'aliases' => [
'language' => 'zh-CN',
'timeZone' => 'Etc/GMT-8',
'aliases' => [
'@bower' => '@vendor/bower-asset',
'@npm' => '@vendor/npm-asset',
'@npm' => '@vendor/npm-asset',
],
'bootstrap' => [
'bootstrap' => [
'log',
'queue',
],
'components' => [
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=127.0.0.1;dbname=manage',
'username' => 'root',
'password' => '123456',
'charset' => 'utf8',
'components' => [
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=127.0.0.1;dbname=manage',
'username' => 'root',
'password' => '123456',
'charset' => 'utf8',
'tablePrefix' => 'gli_',
],
'db_pwallet' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=127.0.0.1;dbname=coin',
'db_pwallet' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=127.0.0.1;dbname=coin',
'username' => 'root',
'password' => '123456',
'charset' => 'utf8',
'charset' => 'utf8',
],
'p_sources' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=127.0.0.1;dbname=p_sources',
'p_sources' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=127.0.0.1;dbname=p_sources',
'username' => 'root',
'password' => '123456',
'charset' => 'utf8',
'charset' => 'utf8',
],
'cache' => [
'cache' => [
'class' => 'yii\redis\Cache',
'redis' => [
'hostname' => 'localhost',
'port' => 6379,
'port' => 6379,
'database' => 0,
],
],
'redis' => [
'class' => 'yii\redis\Connection',
'redis' => [
'class' => 'yii\redis\Connection',
'hostname' => 'localhost',
'port' => 6379,
'port' => 6379,
'database' => 1,
],
'redis-queue' => [
'class' => 'yii\redis\Connection',
'class' => 'yii\redis\Connection',
'hostname' => 'localhost',
'port' => 6379,
'port' => 6379,
'database' => 2,
],
'queue' => [
'class' => \yii\queue\redis\Queue::class,
'redis' => 'redis-queue', // Redis connection component or its config
'queue' => [
'class' => \yii\queue\redis\Queue::class,
'redis' => 'redis-queue', // Redis connection component or its config
'channel' => 'queue', // Queue channel key
],
'i18n' => [
'i18n' => [
'translations' => [
'*' => [
'class' => 'yii\i18n\PhpMessageSource',
'class' => 'yii\i18n\PhpMessageSource',
'basePath' => '@common/messages',
'fileMap' => [
'fileMap' => [
'common' => 'common.php',
'error' => 'errorCode.php',
'error' => 'errorCode.php',
],
],
],
],
'uploader' => [
'class' => 'common\components\uploader\Uploader',
'baseuri' => 'http://127.0.0.1:8900/admin/upload',
'uploader' => [
'class' => 'common\components\uploader\Uploader',
'baseuri' => 'http://127.0.0.1:8900/admin/upload',
'absolute' => dirname(dirname(__DIR__)) . '/backend/upload',
],
'log' => [
'log' => [
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['info', 'warning'],
'class' => 'yii\log\FileTarget',
'levels' => ['info', 'warning'],
'categories' => [
'backend\*',
'api\*',
'common\*',
'console\*',
'h5\*',
],
'logVars' => [],
'logVars' => [],
],
],
],
......
<?php
/**
* Created By Sublime Text 3
*
* @date 2018-09-07 15:56:52
* @authors rlgy <rlgyzhcn@qq.com>
*/
return [
'biqianbao' => 'http://127.0.0.1:8082',
'go_biqianbao' => 'https://www.bitfeel.cn/goapi',
/**
* 非小号数据爬取地址
*/
'feixiaohao_domain' => 'https://www.feixiaohao.com',
'feixiaohao_page' => [
'assets' => '/assets/', //代币
'currencies' => '/currencies/', //币种详情
'coinmarket' => '/coinmarket/', //上市交易所
],
/**
* 爬虫数据缓存时间
*/
'curl_cache_time' => [
'exchange' => 3600 * 3 * 24,
'exchange_count' => 3600 * 3 * 24,
'quotation' => 60,
],
'http_proxy' => [
'host' => '127.0.0.1',
'port' => '8118',
'use' => true,
],
'chain' => [
'scheme' => 'http',
'host' => '39.98.51.242',
'port' => 8901,
],
'chain33' => [
'scheme' => 'http',
'host' => '183.129.226.77',
'port' => 8801,
],
'para' => [
'scheme' => 'http',
'host' => '112.74.59.221',
'port' => 29333
],
'chain_parallel' => [
'primary' => [
'scheme' => 'https',
'host' => 'jiedian1.bityuan.com',
'port' => 8801,
],
'secondary' => [
'scheme' => 'https',
'host' => 'beanwallet.com/api',
'port' => ''
],
'wasm' => [
'bn_wallet' => [
'scheme' => 'http',
'host' => '47.75.33.69',
'port' => 8901,
'execer' => 'user.p.bitnasdaqchain.none',
'contractName' => 'user.p.bitnasdaqchain.user.wasm.lucky2'
],
// 'ts_wallet' => [
// 'scheme' => 'http',
// 'host' => '39.100.69.229',
// 'port' => 8901,
// 'execer' => 'user.p.tschain.token',
// 'contractName' => 'user.p.tschain.user.wasm.dice'
// ]
]
],
'h5_activity' => [
'ZWG_GUESS_NEWBEE' => [
'from' => '1MNwSHugmoBcGxqfU8Gt4excUg68DA7hYE', //转币地址
'to' => '14o9MHrrLfpsXf7wu4H4YRwvy84fjd7uaj', //新手 0.001个bty投一次
'to_normal' => '1415uErzSxEVXdfcYLc9ud6G377iStd2xL', //2 个bty投一次
'amount' => 0.001,
'note' => '',
'isToken' => false,
'token' => '',
'award_normal' => 0.1,
'award_beta' => 1,
'award_isToken' => true,
'award_token' => 'ZWGYBA',
'do_award_step' => 10, //开奖区块步进
],
],
'service' => [
'ZhaobiService' => [ //找币接口
'validatecode' => [ //接口名称
'method' => 'POST',
'scheme' => 'https',
'host' => 'www.zhaobi.xyz',
'port' => '',
'path' => '/api/send/validatecode',
],
'pc_url' => 'https://www.zhaobi.site',
'h5_url' => 'https://m.zhaobi.xyz'
],
'OssService' => [
'url' => 'https://service.biqianbao.net/upload',
]
],
'air_drop' => [
'scheme' => 'http',
'host' => '47.75.103.84',
'port' => 8801,
],
'chain_nodes' => [
'MALL' => [
'scheme' => 'http',
'host' => '118.31.109.11',
'port' => 8801,
'platform_id' => 1,
'privkey' => '3c6129fa60f6eab51db1b57cb70980124ffeb91d72d59b300f375d76e0d03c77'
],
'DAGCHAIN' => [
'scheme' => 'http',
'host' => '47.52.92.86',
'port' => 8901,
'platform_id' => 9,
'privkey' => '0119a41595c3492dbe97e3b9d71c8fa040cfdfe0ec1c9e383daef6708791e0c4'
],
'HONORDECENTCHAIN' => [
'scheme' => 'http',
'host' => '159.138.159.233',
'port' => 8901,
'platform_id' => 54,
'privkey' => 'cb37c697b11936fc0355eaa5ba111b680954e034d39d25f47387c9ff7fa52d62'
],
'ZYCHAIN' => [
'scheme' => 'http',
'host' => '119.8.238.229',
'port' => 8901,
'platform_id' => 52,
'privkey' => 'e7057bb5e8b6882bc84e55d1e2a6bf16b2d19f9f5af9b1776e7807fb69d0c719'
],
'DPLATFORMOS' => [
'scheme' => 'http',
'host' => '8.210.60.155',
'port' => 28803,
'platform_id' => 62,
'privkey' => '0xea6fd9b799aec4e106da9b5dd6f37861093ffc56c02ac9bbc511ab96e72606bf'
],
'GREATWALLCHAIN' => [
'scheme' => 'http',
'host' => '154.85.41.169',
'port' => 8901,
'platform_id' => 64,
'privkey' => '942a4ddcaa049a096cecbb8a1980ec5942f737f82a1e52431eb6ee6106a181c4'
]
],
//金色财经相关接口信息
'coindog' => [
'accessKey' => '4e4d2dd8124d1a32524b39f017c3ff2d',
'secretKey' => '16d0971c799d0b2b',
'article' => 'http://api.coindog.com/topic/list', //文章
'live' => 'http://api.coindog.com/live/list' //快讯
],
//币世界相关接口信息
'bishijie' => [
'Appid' => '8415d8c1c4f762d8',
'AppSecret' => '09395dc651588c375d066666e072a714',
'Url' => 'https://www.bishijie.com'
],
'bty_fee' => 0.001,
'lang' => [
'zh-CN',
'en-US',
'ja',
'ko'
],
'banner_type' => [
1 => '探索',
2 => '快讯',
3 => '文章',
4 => '邀请有礼Banner',
5 => '邀请有礼海报'
],
'api_ip_limit' => [
'limit' => 100,
'white_list' => [
'127.0.0.1',
'47.103.119.244', //lsb 1
'47.100.212.109', //lsb 2
'47.245.31.104', //ticker
'183.129.134.34', //公司
'129.226.132.153', //公司VPN
'161.117.33.70', //比特元
'8.210.162.8', //杰宝
'47.56.102.129', //杰宝
'47.56.93.91', //杰宝
'47.244.32.133', //杰宝
'47.52.252.241', //杰宝
'47.244.215.20', //杰宝
'47.56.67.227', //杰宝
'47.52.111.136', //杰宝
'47.52.163.10', //杰宝
'47.56.102.129', //杰宝
'161.117.37.181', //杰宝
'47.244.76.28', //杰宝
'121.54.174.24', //杰宝
'8.210.162.8', //杰宝
'47.242.10.107', //杰宝
'47.242.33.165', //杰宝
'47.242.82.227', //杰宝
'119.8.38.63', //杰宝
'47.242.59.18', //杰宝
'119.8.109.102', //杰宝
'94.74.107.163', //杰宝
'159.138.159.207', //杰宝
'119.8.102.38' //杰宝
]
],
'exchange' => [
'Bty',
'HuoBi',
'Hadax',
'Bitfinex',
'Bittrex',
'Zb',
'Token7',
'Zg',
'Go',
'Zhaobi',
'Ex',
'Zt',
'Tsc',
'Binance',
'Bilaxy',
'Bitnasdaq',
'Dag',
'Coinka',
],
'AirDrop' => [
'time' => 300,
'address' => '18YcXmMXvgFw8cZkpnmnjb4BX61bXJfE3v'
]
'biqianbao' => 'https://b.biqianbao.net',
'go_biqianbao' => 'http://172.16.101.45:8984',
];
<?php
/**
* Created By Sublime Text 3
*
* @date 2018-09-07 15:56:52
* @authors rlgy <rlgyzhcn@qq.com>
*/
return [
/**
* 非小号数据爬取地址
*/
'feixiaohao_domain' => 'https://www.feixiaohao.com',
'feixiaohao_page' => [
'assets' => '/assets/', //代币
'currencies' => '/currencies/', //币种详情
'coinmarket' => '/coinmarket/', //上市交易所
],
/**
* 爬虫数据缓存时间
*/
'curl_cache_time' => [
'exchange' => 3600 * 3 * 24,
'exchange_count' => 3600 * 3 * 24,
'quotation' => 60,
],
'http_proxy' => [
'host' => '127.0.0.1',
'port' => '8118',
'use' => true,
],
'chain33' => [
'scheme' => 'http',
'host' => '120.55.243.226',
'port' => 8801,
],
'h5_activity' => [
'ZWG_GUESS_NEWBEE' => [
'from' => '1MNwSHugmoBcGxqfU8Gt4excUg68DA7hYE', //转币地址
'to' => '14o9MHrrLfpsXf7wu4H4YRwvy84fjd7uaj', //新手 0.001个bty投一次
'to_normal' => '1415uErzSxEVXdfcYLc9ud6G377iStd2xL', //2 个bty投一次
'amount' => 0.001,
'note' => '',
'isToken' => false,
'token' => '',
'award_normal' => 0.1,
'award_beta' => 1,
'award_isToken' => true,
'award_token' => 'ZWGYBA',
'do_award_step' => 10, //开奖区块步进
],
],
'service' => [
'ZhaobiService' => [ //找币接口
'validatecode' => [ //接口名称
'method' => 'POST',
'scheme' => 'https',
'host' => 'www.zhaobi.xyz',
'port' => '',
'path' => '/api/send/validatecode',
],
],
],
'lottery' => require(dirname(__FILE__) . '/lottery.php'),
'trusteeship' => require(dirname(__FILE__) . '/trusteeship.php'),
'user_auth' => require(dirname(__FILE__) . '/user_auth.php'),
'interceptor' => require(dirname(__FILE__) . '/interceptor.php'),
'handleTableAndDesc' => require(dirname(__FILE__) . '/contracts.php'),
'coin_quotation_disable_items' => ['WTC','ETC']
];
<?php
/**
* Created by PhpStorm.
* User: ZCY
* Date: 2018/10/8
* Time: 15:13
*/
return [
'service' => [
'scheme' => 'http',
#'host' => '114.55.11.139',
#'port' => 1111,
'host' => '47.75.94.84',
'port' => 80,
],
'coin_getsupport' => '/v1/coin/get-support', //获取支持的币种
];
<?php
/**
* Created by PhpStorm.
* User: jiaming
* Date: 2019/6/20
* Time: 11:11
*/
return [
'auth_all' => [
[
'class' => 'wallet\controllers\UserController',
'actions' => []
], [
'class' => 'wallet\controllers\WalletController',
'actions' => []
], [
'class' => 'wallet\controllers\MonitorController',
'actions' => []
], [
'class' => 'wallet\controllers\IssueChainController',
'actions' => []
], [
'class' => 'wallet\controllers\IssueCoinController',
'actions' => []
], [
'class' => 'wallet\controllers\ExploreAppController',
'actions' => []
], [
'class' => 'wallet\controllers\ExploreBannerController',
'actions' => []
], [
'class' => 'wallet\controllers\OssController',
'actions' => []
], [
'class' => 'wallet\controllers\CoinCurrencyController',
'actions' => []
], [
'class' => 'wallet\controllers\BannerController',
'actions' => []
], [
'class' => 'wallet\controllers\NoticeController',
'actions' => []
], [
'class' => 'wallet\controllers\FlashController',
'actions' => []
], [
'class' => 'wallet\controllers\AssetController',
'actions' => []
]
],
'auth_common' => [
[
#'class' => 'api\controllers\AirDropController',
#'actions' => []
]
],
'user_auth' => [
//bwallet
1 => [
1 => 'auth_all',
2 => 'auth_all'
],
//DAG
9 => [
54 => 'auth_all',
],
//TS
10 => [
31 => 'auth_all'
],
//GBT
12 => [
34 => 'auth_all'
],
//SFT
13 => [
41 => 'auth_all'
],
//HL
15 => [
32 => 'auth_all'
],
//BN
17 => [
33 => 'auth_all'
],
//BBH
20 => [
44 => 'auth_all'
],
//CIC
24 => [
39 => 'auth_all'
],
//Bavala
26 => [
42 => 'auth_all'
],
//CKWallet
30 => [
48 => 'auth_all'
],
//火焰山
31 => [
49 => 'auth_all'
],
//SEC
33 => [
51 => 'auth_all'
],
//SUM
34 => [
50 => 'auth_all'
],
//上链通
35 => [
53 => 'auth_all'
],
//Zeuswallet
36 => [
55 => 'auth_all'
],
//扑克钱包
38 => [
56 => 'auth_all'
],
//贵州车秘
41 => [
58 => 'auth_all'
],
//GM云
42 => [
59 => 'auth_all'
],
//币钱包Test
43 => [
57 => 'auth_all'
],
//倍多链
44 => [
60 => 'auth_all'
],
//Hitoken
45 => [
61 => 'auth_all'
],
//佰特链
47 => [
62 => 'auth_all'
],
//链销钱包
48 => [
63 => 'auth_all'
],
//太庆能源
49 => [
64 => 'auth_all'
],
//青鸟社交
50 => [
66 => 'auth_all'
],
//电池银行
51 => [
65 => 'auth_all'
],
//正元链
52 => [
68 => 'auth_all'
],
//乐乐食品
53 => [
67 => 'auth_all'
],
//Honor Decent
54 => [
69 => 'auth_all'
],
//巴马水
58 => [
70 => 'auth_all'
],
//离九紫
60 => [
73 => 'auth_all'
],
//离九紫
60 => [
73 => 'auth_all'
],
//匿名公链
62 => [
75 => 'auth_all'
]
]
];
<?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' => '@h5',
'controllerNamespace' => 'h5\controllers',
'defaultRoute' => 'site/index',
'layout' => false,
'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,
];
\ 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' => '@h5',
'controllerNamespace' => 'h5\controllers',
'defaultRoute' => 'site/index',
'layout' => false,
'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 [
];
\ No newline at end of file
<?php
/**
* Created by PhpStorm.
* User: rlgyzhcn
* Date: 18-5-31
* Time: 上午10:31
*/
return [
];
\ 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'); //定义框架代码的目录
define('WALLET_RUNTIME_PATH', dirname(__DIR__)); //定义程序运行的目录
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
<?php
/**
* Created by PhpStorm.
* User: rlgyzhcn
* Date: 18-5-31
* Time: 上午10:26
*/
defined('YII_DEBUG') or define('YII_DEBUG', false);
defined('YII_ENV') or define('YII_ENV', 'prod');
define('WALLET_PROJECT_PATH', '/data_wallet/token'); //定义框架代码的目录
define('WALLET_RUNTIME_PATH', dirname(__DIR__)); //定义程序运行的目录
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();
#!/bin/bash
while true;
do
php /data_wallet/token_config/yii air-drop/draw >> /data_wallet/draw.log 2>&1;
sleep 5;
done &
\ No newline at end of file
#!/bin/bash
while true;
do
php /data_wallet/token_config/yii air-drop/miner-source-list >> /data_wallet/miner.log 2>&1;
sleep 5;
done &
\ No newline at end of file
#!/bin/bash
while true;
do
php /data_wallet/token_config/yii air-drop/reach >> /data_wallet/reach.log 2>&1;
sleep 3600;
done &
\ No newline at end of file
#!/bin/bash
while true;
do
php /data_wallet/token_config/yii air-drop/statistics >> /data_wallet/statistics.log 2>&1;
sleep 5;
done &
\ No newline at end of file
#!/bin/bash
while true;
do
php /data_wallet/token_config/yii article >> /data_wallet/article.log 2>&1;
sleep 60;
done &
\ No newline at end of file
#!/bin/bash
while true; do php /data_wallet/token_config/yii issue-coin/auto-issue >> /data_wallet/auto-issue.log 2>&1; sleep 20; done &
\ No newline at end of file
#!/bin/bash
while true;
do
php /data_wallet/token_config/yii cross-chain/auto-transfer 1 0 >> /data_wallet/auto-transfer.log 2>&1;
php /data_wallet/token_config/yii cross-chain/auto-transfer 2 0 >> /data_wallet/auto-transfer.log 2>&1;
php /data_wallet/token_config/yii cross-chain/auto-transfer 3 0 >> /data_wallet/auto-transfer.log 2>&1;
php /data_wallet/token_config/yii cross-chain/auto-transfer 1 1 >> /data_wallet/auto-transfer.log 2>&1;
php /data_wallet/token_config/yii cross-chain/auto-transfer 2 1 >> /data_wallet/auto-transfer.log 2>&1;
php /data_wallet/token_config/yii cross-chain/auto-transfer 3 1 >> /data_wallet/auto-transfer.log 2>&1;
sleep 15;
done &
\ No newline at end of file
#!/bin/bash
while true; do php /data_wallet/token_config/yii game-bet/bet-update >> /data_wallet/bet-update.log 2>&1; sleep 10; done &
\ No newline at end of file
#!/bin/bash
while true; do php /data_wallet/token_config/yii game-bet/game-status >> /data_wallet/game-status.log 2>&1; sleep 15; done &
\ No newline at end of file
#!/bin/bash
while true;
do
php /data_wallet/token_config/yii issue-chain-transfer/async-coin >> /data_wallet/issue-async.log 2>&1;
sleep 30;
done &
\ No newline at end of file
#!/bin/bash
while true;
do
php /data_wallet/token_config/yii issue-chain-transfer/query-transaction 1 >> /data_wallet/issue-query.log 2>&1;
php /data_wallet/token_config/yii issue-chain-transfer/query-transaction 2 >> /data_wallet/issue-query.log 2>&1;
sleep 5;
done &
\ No newline at end of file
#!/bin/bash
while true;
do
php /data_wallet/token_config/yii issue-chain-transfer/send-transaction 2 0 >> /data_wallet/issue-send.log 2>&1;
php /data_wallet/token_config/yii issue-chain-transfer/send-transaction 2 1 >> /data_wallet/issue-send.log 2>&1;
sleep 5;
done &
\ No newline at end of file
#!/bin/bash
while true;
do
php /data_wallet/token_config/yii issue-chain-transfer/update-chain >> /data_wallet/update-chain.log 2>&1;
sleep 60;
done &
\ No newline at end of file
#!/bin/bash
while true;
do
php /data_wallet/token_config/yii news >> /data_wallet/news.log 2>&1;
sleep 60;
done &
\ No newline at end of file
#!/bin/bash
while true;
do
php /data_wallet/token_config/yii order/auto-order 0 1 >> /data_wallet/auto-order.log 2>&1;
php /data_wallet/token_config/yii order/auto-order 0 2 >> /data_wallet/auto-order.log 2>&1;
php /data_wallet/token_config/yii order/auto-order 0 3 >> /data_wallet/auto-order.log 2>&1;
php /data_wallet/token_config/yii order/auto-order 0 4 >> /data_wallet/auto-order.log 2>&1;
php /data_wallet/token_config/yii order/auto-order 1 1 >> /data_wallet/auto-order.log 2>&1;
php /data_wallet/token_config/yii order/auto-order 1 2 >> /data_wallet/auto-order.log 2>&1;
php /data_wallet/token_config/yii order/auto-order 1 3 >> /data_wallet/auto-order.log 2>&1;
php /data_wallet/token_config/yii order/auto-order 1 4 >> /data_wallet/auto-order.log 2>&1;
sleep 15;
done &
\ No newline at end of file
#!/bin/bash
while true; do php /data_wallet/token_config/yii order/order-status >> /data_wallet/order-status.log 2>&1; sleep 5; done &
\ No newline at end of file
#!/bin/bash
while true; do php /data_wallet/token_config/yii cross-chain/query-transaction >> /data_wallet/query-transaction.log 2>&1; sleep 5; done &
\ No newline at end of file
#!/bin/bash
while true; do php /data_wallet/token_config/yii release-check/check >> /data_wallet/auto_check.log 2>&1; sleep 120; done &
\ No newline at end of file
#!/bin/bash
while true; do php /data_wallet/token_config/yii release-check/confirm-hash >> /data_wallet/confirm_hash.log 2>&1; sleep 300; done &
\ No newline at end of file
#!/bin/bash
while true; do php /data_wallet/token_config/yii exchange/quotation >> /data_wallet/ticker-update.log 2>&1; sleep 180; done &
\ No newline at end of file
#!/bin/bash
while true; do php /data_wallet/token_config/yii ticker/currency >> /data_wallet/ticker-currency.log 2>&1; sleep 60; done &
\ No newline at end of file
#!/bin/bash
while true; do php /data_wallet/token_config/yii ticker/exchange Zhaobi >> /data_wallet/ticker-exchange.log 2>&1; sleep 5; done &
\ No newline at end of file
#!/bin/bash
while true; do php /data_wallet/token_config/yii ticker/hot >> /data_wallet/ticker-hot.log 2>&1; sleep 10; done &
\ No newline at end of file
#!/bin/bash
while true; do php /data_wallet/token_config/yii ticker/sort >> /data_wallet/ticker-sort.log 2>&1; sleep 60; done &
\ 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-wallet',
'basePath' => '@wallet',
'controllerNamespace' => 'wallet\controllers',
'defaultRoute' => 'site/index',
'layout' => false,
'components' => [
# 'request' => [
# 'baseUrl' => '/api',
# 'cookieValidationKey' => '123456',
# 'enableCsrfValidation' => false,
# 'parsers' => [
# 'application/json' => [
# 'class' => 'yii\web\JsonParser',
# 'throwException' => false,//json格式错误不报错
# ],
# ],
# ],
'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'class' => 'common\base\BaseRequest',
'cookieValidationKey' => 'Aagb1nulB6XAxutSiagyVEUfptB_FGvu',
'enableCsrfValidation' => false,
],
'authManager' => [
'class' => 'common\core\rbac\DbManager',
],
'response' => [
'class' => 'wallet\base\BaseResponse',
'format' => 'json',
'charset' => 'UTF-8',
],
'errorHandler' => [
'errorAction' => 'site/error',
],
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
],
],
'params' => $params,
];
<?php
$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-wallet',
'basePath' => '@wallet',
'controllerNamespace' => 'wallet\controllers',
'defaultRoute' => 'site/index',
'layout' => false,
'components' => [
'request' => [
'baseUrl' => '/api',
'cookieValidationKey' => '123456',
'enableCsrfValidation' => false,
'parsers' => [
'application/json' => [
'class' => 'yii\web\JsonParser',
'throwException' => false,//json格式错误不报错
],
],
],
'response' => [
'class' => 'wallet\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 [
//查看托管用户、余额等信息 针对vue客户端
'trusteeship' => [
//bwallet
'node_1' => [
'url' => 'https://api.biqianbao.net',
'appKey' => 'wallet',
'appSecret' => 'glu8gGXgCTlVYfDy'
],
//DAG
'node_9' => [
'url' => 'https://api.travelservicechain.com',
'appKey' => 'dag',
'appSecret' => 'Z9XJjGyTj2TJDqeh'
],
//TS
'node_10' => [
'url' => 'https://api.travelservicechain.com',
'appKey' => 'ts',
'appSecret' => '4wuH3ZTETvVjS0kg'
],
//GBT
'node_12' => [
'url' => 'http://47.56.67.227:8800',
'appKey' => 'gbt',
'appSecret' => 'isGA5hpNEJpzJs2I'
],
//SFT
'node_13' => [
'url' => 'http://47.244.215.20:8800',
'appKey' => 'sft',
'appSecret' => 'qcGQKDyg0IfthVW2'
],
//HL
'node_15' => [
'url' => 'http://47.52.252.241:8800',
'appKey' => 'hl',
'appSecret' => '1YqtJfOC4fJN5WVI'
],
//BN
'node_17' => [
'url' => 'https://api.bitnasdaqchain.com',
'appKey' => 'bn',
'appSecret' => 'habpOUtl3w7mtyrP'
],
//CIC
'node_24' => [
'url' => 'http://47.52.111.136:8800',
'appKey' => 'cic',
'appSecret' => 'rD9e37VXu96t0Fb8'
],
//BVA
'node_26' => [
'url' => 'http://161.117.37.181',
'appKey' => 'bva',
'appSecret' => 'cwbNbqL8Z8t3hfp5'
],
//火焰山
'node_31' => [
'url' => 'https://api.coinun.net',
'appKey' => 'hys',
'appSecret' => '9QzGtCc81vYdiD6S'
],
//SEC
'node_33' => [
'url' => 'https://api.webmt.cn',
'appKey' => 'sec',
'appSecret' => '9gkMlSRHhKka0yWm'
],
//GM云
'node_42' => [
'url' => 'https://api.ganma.co',
'appKey' => 'gm',
'appSecret' => 'habpOUtl3w7mtyrP'
],
//倍多链
'node_44' => [
'url' => 'https://api.bodgl.com',
'appKey' => 'coc',
'appSecret' => 'habpOUtl3w7mtyrP'
],
//佰特链
'node_47' => [
'url' => 'https://api.king365.pro',
'appKey' => 'best',
'appSecret' => 'habpOUtl3w7mtyrP'
],
//太庆能源
'node_49' => [
'url' => 'https://api.ronghejia.net',
'appKey' => 'tqny',
'appSecret' => 'habpOUtl3w7mtyrP'
],
//青鸟社交
'node_50' => [
'url' => 'https://api.yqniao.com',
'appKey' => 'qn',
'appSecret' => 'habpOUtl3w7mtyrP'
],
//电池银行
'node_51' => [
'url' => 'http://119.8.38.63',
'appKey' => 'dcyh',
'appSecret' => 'habpOUtl3w7mtyrP'
],
//正元链
'node_52' => [
'url' => 'https://api.zhengyuanchain.io',
'appKey' => 'zyc',
'appSecret' => 'habpOUtl3w7mtyrP'
],
//乐乐食品
'node_53' => [
'url' => 'https://api.lelefood.net',
'appKey' => 'lele',
'appSecret' => 'habpOUtl3w7mtyrP'
],
//巴马水
'node_58' => [
'url' => 'https://api.lsybm.com',
'appKey' => 'bmlsy',
'appSecret' => 'habpOUtl3w7mtyrP'
],
//离九紫
'node_60' => [
'url' => 'https://walletapi.zzcloud6.com',
'appKey' => 'zzy',
'appSecret' => 'habpOUtl3w7mtyrP'
]
]
];
\ No newline at end of file
<?php
/**
* Created by PhpStorm.
* User: rlgyzhcn
* Date: 18-5-31
* Time: 上午10:31
*/
return [
];
\ 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', '/data33/bit-wallet/token'); //定义框架代码的目录
define('WALLET_RUNTIME_PATH', dirname(__DIR__)); //定义程序运行的目录
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
<?php
defined('YII_DEBUG') or define('YII_DEBUG', false);
defined('YII_ENV') or define('YII_ENV', 'prod');
define('WALLET_PROJECT_PATH', '/data_wallet/token'); //定义框架代码的目录
define('WALLET_RUNTIME_PATH', dirname(__DIR__)); //定义程序运行的目录
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();
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