代码拉取完成,页面将自动刷新
同步操作将从 rainbow/tp51 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/usr/bin/env php
<?php
// linux版
// require workerman gateway-worker
namespace think;
ini_set('display_errors', 'on');
// if(strpos(strtolower(PHP_OS), 'win') === 0)
// {
// exit("start.php not support windows.\n");
// }
// 检查扩展
// if(!extension_loaded('pcntl'))
// {
// exit("Please install pcntl extension. See http://doc3.workerman.net/appendices/install-extension.html\n");
// }
// if(!extension_loaded('posix'))
// {
// exit("Please install posix extension. See http://doc3.workerman.net/appendices/install-extension.html\n");
// }
// 定义应用目录
define('APP_PATH', __DIR__ . '/application/');
define('CONFIG_PATH', __DIR__ . '/config/');
define('POWER','rainbow');
define('__ROOT__', '');
// 加载基础文件
require __DIR__ . '/thinkphp/base.php';
// 执行应用并响应
Container::get('app',[APP_PATH])->bind('push/Run')->run()->send();
// gatewayClient
// gateClient是用来辅助 workerman或者是gateway进行用户分组以及向用户发送信息的组件,同时,能够快速便捷的将原有系统的uid和clientid绑定起来。
// github地址:https://github.com/walkor/GatewayClient
// ws = new WebSocket("ws://127.0.0.1:8282");
// ws.onopen = function() {
// console.log("连接成功");
// ws.send(JSON.stringify({uid:3,msg:'',type:'login'}));
// setInterval(function(){
// ws.send(JSON.stringify({uid:3,msg:'',type:'ping'}));
// },10000);
// };
// ws.onmessage = function(e) {
// console.log("收到服务端的消息:" + e.data);
// };
// a = {};a.uid=1,a.msg='test...',a.type='login';
// as = JSON.stringify(a);
// ws.send(as);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。