From 1c231afffcde836a30ea26b09b4e7751e66e4d39 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Fri, 21 Jul 2023 13:45:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/IndexController.php | 7 +++++++ app/api/controller/JunziqianController.php | 2 ++ route/app.php | 4 ++++ 3 files changed, 13 insertions(+) diff --git a/app/api/controller/IndexController.php b/app/api/controller/IndexController.php index c9954803b..1adad4567 100755 --- a/app/api/controller/IndexController.php +++ b/app/api/controller/IndexController.php @@ -16,6 +16,7 @@ namespace app\api\controller; use app\api\logic\IndexLogic; +use think\facade\Log; use think\response\Json; @@ -90,5 +91,11 @@ class IndexController extends BaseApiController return $this->data($result); } + public function notifyUrl(){ + $a= Request()->port(); + Log::error("asdasd"); + Log::error($a); + halt(111); + } } \ No newline at end of file diff --git a/app/api/controller/JunziqianController.php b/app/api/controller/JunziqianController.php index ef802b8cc..e649998b1 100644 --- a/app/api/controller/JunziqianController.php +++ b/app/api/controller/JunziqianController.php @@ -153,6 +153,8 @@ class JunziqianController extends BaseApiController $request->serverCa = 1; //是否需要服务端云证书 $request->fileType = 1; //合同上传方式 url $request->url = $data['url']; + $request->notifyUrl='https://worker-task.lihaink.cn/notify_url'; + //发起PING请求 // halt($request); $response = $requestUtils->doPost("/v2/sign/applySign", $request); diff --git a/route/app.php b/route/app.php index d8792d206..0f6260c73 100755 --- a/route/app.php +++ b/route/app.php @@ -8,6 +8,8 @@ // +---------------------------------------------------------------------- // | Author: liu21st // +---------------------------------------------------------------------- + +use app\api\controller\IndexController; use think\facade\Console; use think\facade\Route; @@ -30,3 +32,5 @@ Route::rule('pc/:any', function () { Route::rule('crontab', function () { Console::call('crontab'); }); + +Route::post('/notify_url', IndexController::class . '@notifyUrl'); \ No newline at end of file