Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenchuanwen
my-yaf-project
Commits
0cdc1a8c
Commit
0cdc1a8c
authored
Jan 16, 2019
by
chenchuanwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bridgeedit
parent
7f0385fb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
32 deletions
+43
-32
bridge.php
scripts/crontab/push/bridge.php
+36
-32
bridgeReload.php
scripts/crontab/push/bridgeReload.php
+7
-0
No files found.
scripts/crontab/push/bridge.php
View file @
0cdc1a8c
...
...
@@ -5,11 +5,12 @@
*
* @author ccw <31435391@qq.com>
*/
define
(
"APPLICATION_PATH"
,
realpath
(
dirname
(
__FILE__
)
.
'/../../../'
));
//指向public的上一级
require_once
APPLICATION_PATH
.
'/scripts/crontab/common.php'
;
$conf
=
\Yaf\Registry
::
get
(
'config'
)
->
get
(
'redis.database.params'
);
$http
=
new
swoole_http_server
(
"0.0.0.0"
,
9501
);
$http
->
on
(
'request'
,
function
(
$request
,
$response
)
{
function
server
(){
define
(
"APPLICATION_PATH"
,
realpath
(
dirname
(
__FILE__
)
.
'/../../../'
));
//指向public的上一级
$conf
=
\Yaf\Registry
::
get
(
'config'
)
->
get
(
'redis.database.params'
);
$http
=
new
swoole_http_server
(
"0.0.0.0"
,
9501
);
$http
->
on
(
'request'
,
function
(
$request
,
$response
)
{
require_once
APPLICATION_PATH
.
'/scripts/crontab/common.php'
;
try
{
$respData
=
$request
->
post
;
// echo json_encode($respData);
...
...
@@ -41,8 +42,11 @@ $http->on('request', function ($request, $response) {
throw
new
Exception
(
$ex
->
getMessage
(),
$ex
->
getCode
());
}
});
});
$http
->
start
();
}
server
();
$http
->
start
();
scripts/crontab/push/bridgeReload.php
0 → 100644
View file @
0cdc1a8c
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2019/1/16 0016
* Time: 下午 4:57
*/
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment