-
18 |
- 19 | 20 | 21 | 22 |
├── public ├── uploads │ └── 1.txt ├── images │ ├── jg.png │ ├── jt.png │ ├── pw.jpg │ ├── admin.png │ ├── ali.png │ ├── dis1.png │ ├── dis2.png │ ├── jgs.png │ ├── pay.png │ ├── g_geYbg.png │ ├── g_name.png │ ├── loading.gif │ ├── vmstats.png │ ├── weixin.jpeg │ ├── z_upage.png │ ├── g_Sheiji.png │ ├── g_addJia.png │ ├── g_dengBg.png │ ├── g_huiGong.png │ ├── g_huiXia.png │ ├── g_jianHao.png │ ├── g_poresd.png │ ├── g_remoJian.png │ ├── g_tanJiabd.png │ ├── g_upDown.png │ ├── jtmobile.png │ ├── jtmobilet.png │ ├── testlive.png │ ├── windowspc.png │ ├── z_lastpage.png │ ├── z_nextpage.png │ ├── z_shouye.png │ └── multiprocess.png ├── vue │ └── images │ │ ├── 1.jpg │ │ ├── 2.png │ │ ├── 3.jpg │ │ └── bg.jpg ├── json │ ├── jsapi_ticket.json │ ├── token.json │ └── access_token.json ├── css │ ├── bootstrapValidator.css │ ├── validate.css │ ├── g_commenLeft.css │ ├── z_tanwindow.css │ ├── z_AddMemu.css │ ├── g_dengLu.css │ ├── grid_bootstrap.min.css │ ├── l_addSystem.css │ └── g_commenTop.css └── js │ ├── transformToTreeFormat.js │ ├── grid.zh-CN.min.js │ ├── adminAreaIndex.js │ ├── systemAreaIndex.js │ ├── adminAreaList.js │ ├── systemAreaList.js │ └── area.js ├── vmstat ├── img │ ├── 1.txt │ └── vmstat.png ├── index.php └── stats.css ├── server ├── log │ └── log.log ├── hprose │ └── Server.php ├── distributed │ └── DistributedServer.php ├── swoole │ ├── HttpServer.php │ ├── WebSocketServer.php │ ├── SwooleLiveServer_table.php │ └── TaskServer.php └── rpc │ └── RpcServer.php ├── MYPATH └── logs │ └── 20171215 │ └── 17_12_15.log ├── .htaccess ├── application ├── views │ ├── index │ │ ├── test.phtml │ │ ├── action.phtml │ │ ├── index.html │ │ ├── distributed.html │ │ └── swoolesocket.html │ └── error │ │ └── error.phtml ├── models │ ├── Test │ │ └── Foo.php │ ├── User.php │ └── Leslie.php ├── library │ ├── wx │ │ └── pay │ │ │ ├── Exception.php │ │ │ ├── Notify.php │ │ │ ├── config.php │ │ │ ├── NativeCall.php │ │ │ ├── OrderQuery.php │ │ │ ├── ShortUrl.php │ │ │ ├── DownloadBill.php │ │ │ ├── server.php │ │ │ ├── NativeLink.php │ │ │ ├── RefundQuery.php │ │ │ ├── pay.php │ │ │ └── Refund.php │ ├── think │ │ ├── CacheInterface.php │ │ ├── db │ │ │ ├── exception │ │ │ │ ├── ClassNotFoundException.php │ │ │ │ ├── BindParamException.php │ │ │ │ ├── ModelNotFoundException.php │ │ │ │ ├── DataNotFoundException.php │ │ │ │ ├── DbException.php │ │ │ │ └── PDOException.php │ │ │ └── builder │ │ │ │ ├── Sqlite.php │ │ │ │ ├── Oracle.php │ │ │ │ └── Pgsql.php │ │ ├── model │ │ │ ├── Pivot.php │ │ │ ├── concern │ │ │ │ └── TimeStamp.php │ │ │ └── Collection.php │ │ ├── Exception.php │ │ ├── config.php │ │ └── paginator │ │ │ └── Collection.php │ ├── hprose.php │ ├── swoole │ │ ├── socket.php │ │ └── taskclient.php │ ├── distributed.php │ ├── RpcClient.php │ ├── distributed │ │ └── dredis.php │ └── mysqlpool.php ├── modules │ └── Admin │ │ └── views │ │ └── user │ │ ├── top.html │ │ └── login.html ├── controllers │ └── Error.php ├── Bootstrap.php └── plugins │ └── Autoload.php ├── .travis.yml ├── thrift ├── Bin │ └── rpc │ │ └── Handler.php ├── Thrift │ ├── Factory │ │ ├── TTransportFactory.php │ │ ├── TFramedTransportFactory.php │ │ ├── TProtocolFactory.php │ │ ├── TCompactProtocolFactory.php │ │ ├── TJSONProtocolFactory.php │ │ ├── TBinaryProtocolFactory.php │ │ └── TStringFuncFactory.php │ ├── Server │ │ ├── TNonblockingServer.php │ │ ├── TServerTransport.php │ │ ├── TSimpleServer.php │ │ ├── TServerSocket.php │ │ ├── TNonblockingServerSocket.php │ │ └── TServer.php │ ├── StringFunc │ │ ├── TStringFunc.php │ │ ├── Core.php │ │ └── Mbstring.php │ ├── Type │ │ ├── TMessageType.php │ │ ├── TType.php │ │ └── TConstant.php │ ├── Protocol │ │ ├── SimpleJSON │ │ │ ├── Context.php │ │ │ ├── CollectionMapKeyException.php │ │ │ ├── ListContext.php │ │ │ ├── MapContext.php │ │ │ └── StructContext.php │ │ ├── JSON │ │ │ ├── BaseContext.php │ │ │ ├── ListContext.php │ │ │ ├── LookaheadReader.php │ │ │ └── PairContext.php │ │ └── TBinaryProtocolAccelerated.php │ ├── Exception │ │ ├── TTransportException.php │ │ ├── TProtocolException.php │ │ └── TApplicationException.php │ └── Transport │ │ ├── TNullTransport.php │ │ ├── TTransport.php │ │ └── TMemoryBuffer.php ├── gen │ └── rpc.thrift ├── test │ ├── client.php │ └── server.php └── swoole │ ├── RpcServer.php │ └── Socket.php ├── hprose ├── test │ ├── TcpServer.php │ └── TcpClient.php ├── lib │ ├── TimeoutException.php │ ├── ResultMode.php │ ├── ReaderRefer.php │ ├── WriterRefer.php │ ├── FakeWriterRefer.php │ ├── Timer.php │ ├── FakeReaderRefer.php │ ├── RealReaderRefer.php │ ├── Tags.php │ ├── InvokeSettings.php │ └── RealWriterRefer.php └── server.php ├── index.php ├── composer.json ├── .gitattributes ├── distributed └── test │ └── server.php ├── .gitignore └── console └── console.config.php /public/uploads/1.txt: -------------------------------------------------------------------------------- 1 | 1111 2 | -------------------------------------------------------------------------------- /vmstat/img/1.txt: -------------------------------------------------------------------------------- 1 | vmstat监控 2 | -------------------------------------------------------------------------------- /server/log/log.log: -------------------------------------------------------------------------------- 1 | [ 2016-08-03T14:32:16+08:00 ] err: 123 2 | -------------------------------------------------------------------------------- /MYPATH/logs/20171215/17_12_15.log: -------------------------------------------------------------------------------- 1 | [ 2017-12-15T07:12:28+00:00 ] DEBUG: zas 2 | -------------------------------------------------------------------------------- /public/images/jg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/jg.png -------------------------------------------------------------------------------- /public/images/jt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/jt.png -------------------------------------------------------------------------------- /public/images/pw.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/pw.jpg -------------------------------------------------------------------------------- /public/images/admin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/admin.png -------------------------------------------------------------------------------- /public/images/ali.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/ali.png -------------------------------------------------------------------------------- /public/images/dis1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/dis1.png -------------------------------------------------------------------------------- /public/images/dis2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/dis2.png -------------------------------------------------------------------------------- /public/images/jgs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/jgs.png -------------------------------------------------------------------------------- /public/images/pay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/pay.png -------------------------------------------------------------------------------- /public/vue/images/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/vue/images/1.jpg -------------------------------------------------------------------------------- /public/vue/images/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/vue/images/2.png -------------------------------------------------------------------------------- /public/vue/images/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/vue/images/3.jpg -------------------------------------------------------------------------------- /vmstat/img/vmstat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/vmstat/img/vmstat.png -------------------------------------------------------------------------------- /.htaccess: -------------------------------------------------------------------------------- 1 | RewriteEngine On 2 | RewriteCond %{REQUEST_FILENAME} !-f 3 | RewriteRule .* index.php 4 | -------------------------------------------------------------------------------- /public/images/g_geYbg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/g_geYbg.png -------------------------------------------------------------------------------- /public/images/g_name.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/g_name.png -------------------------------------------------------------------------------- /public/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/loading.gif -------------------------------------------------------------------------------- /public/images/vmstats.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/vmstats.png -------------------------------------------------------------------------------- /public/images/weixin.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/weixin.jpeg -------------------------------------------------------------------------------- /public/images/z_upage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/z_upage.png -------------------------------------------------------------------------------- /public/vue/images/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/vue/images/bg.jpg -------------------------------------------------------------------------------- /public/images/g_Sheiji.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/g_Sheiji.png -------------------------------------------------------------------------------- /public/images/g_addJia.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/g_addJia.png -------------------------------------------------------------------------------- /public/images/g_dengBg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/g_dengBg.png -------------------------------------------------------------------------------- /public/images/g_huiGong.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/g_huiGong.png -------------------------------------------------------------------------------- /public/images/g_huiXia.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/g_huiXia.png -------------------------------------------------------------------------------- /public/images/g_jianHao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/g_jianHao.png -------------------------------------------------------------------------------- /public/images/g_poresd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/g_poresd.png -------------------------------------------------------------------------------- /public/images/g_remoJian.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/g_remoJian.png -------------------------------------------------------------------------------- /public/images/g_tanJiabd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/g_tanJiabd.png -------------------------------------------------------------------------------- /public/images/g_upDown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/g_upDown.png -------------------------------------------------------------------------------- /public/images/jtmobile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/jtmobile.png -------------------------------------------------------------------------------- /public/images/jtmobilet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/jtmobilet.png -------------------------------------------------------------------------------- /public/images/testlive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/testlive.png -------------------------------------------------------------------------------- /public/images/windowspc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/windowspc.png -------------------------------------------------------------------------------- /public/images/z_lastpage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/z_lastpage.png -------------------------------------------------------------------------------- /public/images/z_nextpage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/z_nextpage.png -------------------------------------------------------------------------------- /public/images/z_shouye.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/z_shouye.png -------------------------------------------------------------------------------- /public/images/multiprocess.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qieangel2013/zys/HEAD/public/images/multiprocess.png -------------------------------------------------------------------------------- /application/views/index/test.phtml: -------------------------------------------------------------------------------- 1 | getMessage(); 7 | } 8 | 9 | } 10 | 11 | ?> -------------------------------------------------------------------------------- /application/models/Leslie.php: -------------------------------------------------------------------------------- 1 | test(); 14 | } 15 | } -------------------------------------------------------------------------------- /thrift/Bin/rpc/Handler.php: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 |actionAction
11 | 12 | 13 | HTML; 14 | -------------------------------------------------------------------------------- /application/views/index/index.html: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 |$body
12 | 13 | 14 | HTML; 15 | -------------------------------------------------------------------------------- /application/views/error/error.phtml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 |code: {$code}
10 |message: {$message}
11 | 12 | 13 | HTML; 14 | -------------------------------------------------------------------------------- /hprose/test/TcpServer.php: -------------------------------------------------------------------------------- 1 | setErrorTypes(E_ALL); 9 | $server->setDebugEnabled(); 10 | $server->addFunction('zys'); 11 | $server->start(); 12 | -------------------------------------------------------------------------------- /application/library/think/CacheInterface.php: -------------------------------------------------------------------------------- 1 | 9 | * @package think 10 | */ 11 | interface CacheInterface 12 | { 13 | function get($name, $default = false); 14 | 15 | function set($name, $value, $expire = null); 16 | 17 | function rm($name); 18 | } -------------------------------------------------------------------------------- /thrift/Thrift/Factory/TTransportFactory.php: -------------------------------------------------------------------------------- 1 | bootstrap() //可选的调用 13 | ->run()/*执行*/; -------------------------------------------------------------------------------- /thrift/gen/rpc.thrift: -------------------------------------------------------------------------------- 1 | namespace php Bin.rpc 2 | 3 | typedef i64 Int 4 | 5 | enum RetCode 6 | { 7 | SUCCESS = 0, 8 | PARAM_ERROR = 1000, 9 | ACCESS_DENY = 1001, 10 | } 11 | 12 | struct Message 13 | { 14 | 1:Int send_uid, 15 | 2:Int recv_uid, 16 | 3:Int channel_id, 17 | 4:string name, 18 | 5:string result, 19 | } 20 | 21 | service rpc 22 | { 23 | RetCode sendMessage(1:Message msg) 24 | } 25 | -------------------------------------------------------------------------------- /application/modules/Admin/views/user/top.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |