1234567891011121314151617181920212223242526272829303132 |
- <?php
- define('DEVER_DAEMON', true);$_SERVER['DEVER_SERVER'] = 'v2.xinnongbaohe.com';
- include(dirname(__FILE__) . DIRECTORY_SEPARATOR . '../index.php');
- $ip = '101.201.143.114';
- $port = '30013';
- $callback = array (
- 'start' => 'service/tcp._start',
- 'close' => 'service/tcp._close',
- 'receive' => 'service/tcp._receive',
- 'shutdown' => 'service/tcp._shutdown',
- 'product' =>
- array (
- 'id' => '14',
- 'info_id' => '3',
- 'key' => '1912191137',
- 'tcp' => '101.201.143.114:30013',
- 'tcp_id' => '',
- 'code' => ' http://pan.baidu.com/share/qrcode?w=150&h=150&url=http%3A%2F%2Fv2.xinnongbaohe.com%2Fweb%2Fapplication%2Fservice%2F%3Fuser.bind%3Fcode%3D1912191137',
- 'uid' => '0',
- 'type' => '1',
- 'state' => '1',
- 'cdate' => '1482737533',
- 'name' => '',
- ),
- );
- Dever::tcp($port, $ip)->server($callback);
|