- Contract.php: 返回合约账户余额(balance_contract) - My.php: 地址管理增加BTC/ETH - AppContract.php: 一键平仓(closeall) - AppProxy.php: 代理专属注册链接 + 分级权限(L1/L2) - site.php: 手续费减半(0.018→0.009) - agent_permission_setup.sql: 代理权限SQL - crypto_news_crawler.py: 新闻自动采集脚本
29 lines
659 B
PHP
Executable File
29 lines
659 B
PHP
Executable File
<?php
|
|
|
|
namespace app\kefu\controller;
|
|
|
|
use GatewayWorker\Register;
|
|
use Workerman\Worker;
|
|
|
|
// 自动加载类
|
|
require_once __DIR__ . '/../../../addons/kefu/library/GatewayWorker/vendor/autoload.php';
|
|
|
|
/**
|
|
* Win下启动 register服务 专用类
|
|
*/
|
|
class Sregister
|
|
{
|
|
|
|
function __construct()
|
|
{
|
|
// 获取插件配置
|
|
$kefu_config = get_addon_config('kefu');
|
|
// register 必须是text协议
|
|
$register = new Register('text://0.0.0.0:' . $kefu_config['register_port']);
|
|
|
|
// 如果不是在根目录启动,则运行runAll方法
|
|
if (!defined('GLOBAL_START')) {
|
|
Worker::runAll();
|
|
}
|
|
}
|
|
} |