This commit is contained in:
mkm 2023-08-25 09:56:06 +08:00
parent 28ec5a6fb2
commit f97bae8db6
3 changed files with 5 additions and 4 deletions

@ -32,7 +32,7 @@ class IndexController extends BaseApiController
{ {
public array $notNeedLogin = ['index', 'config', 'policy', 'decorate', 'notifyUrl','notifyProperty']; public array $notNeedLogin = ['index', 'config', 'policy', 'decorate', 'notifyUrl','notifyProperty','notifyAuthentication'];
/** /**
@ -155,8 +155,8 @@ class IndexController extends BaseApiController
return json(['success' => false, 'msg' => '失败,没有参数']); return json(['success' => false, 'msg' => '失败,没有参数']);
} }
/** /**
* 资产回调 * 认证回调
*/ */
public function notifyAuthentication() public function notifyAuthentication()
{ {

@ -86,7 +86,7 @@ class JunziqianController extends BaseApiController
if (isset($data['master_email'])) { if (isset($data['master_email'])) {
$request->emailOrMobile = $data['master_email']; //邮箱 $request->emailOrMobile = $data['master_email']; //邮箱
} }
$request->notifyUrl = 'https://worker-task.lihaink.cn/notify_authentication?id=' . $data['id']; $request->notifyUrl = 'https://worker-task.lihaink.cn/v1/notify_authentication?id=' . $data['id'];
// $request->emailOrMobile = ; //邮箱 // $request->emailOrMobile = ; //邮箱
//发起创建企业请求 //发起创建企业请求
$response = $requestUtils->doPost("/v2/user/organizationCreate", $request); $response = $requestUtils->doPost("/v2/user/organizationCreate", $request);

@ -36,4 +36,5 @@ Route::rule('crontab', function () {
Route::post('/notify_url', IndexController::class . '@notifyUrl'); Route::post('/notify_url', IndexController::class . '@notifyUrl');
Route::post('/v1/notify_property',IndexController::class . '@notifyProperty'); Route::post('/v1/notify_property',IndexController::class . '@notifyProperty');
Route::post('/v1/notify_authentication',IndexController::class . '@notifyAuthentication');
Route::get('/api/junziqian/download_file',JunziqianController::class . '@download_file'); Route::get('/api/junziqian/download_file',JunziqianController::class . '@download_file');