第一次更新,完成了初版调整
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
// [ 企油通 7.10 加油消费回调入口 ]
|
||||
namespace think;
|
||||
|
||||
// 检测PHP环境
|
||||
if (version_compare(PHP_VERSION, '7.1.0', '<')) die('require PHP > 7.1.0 !');
|
||||
|
||||
// 加载核心文件
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
// 执行HTTP应用并响应
|
||||
$http = (new App())->http;
|
||||
|
||||
// 手动指定路由
|
||||
$_SERVER['PATH_INFO'] = '/qytNotify/consume';
|
||||
|
||||
// 绑定 api 应用
|
||||
$response = $http->name('api')->run();
|
||||
|
||||
$response->send();
|
||||
|
||||
$http->end($response);
|
||||
Reference in New Issue
Block a user