This commit is contained in:
mkm 2023-07-21 13:45:36 +08:00
parent eb86ede96b
commit 1c231afffc
3 changed files with 13 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -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);

View File

@ -8,6 +8,8 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
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');