This commit is contained in:
@ -15,6 +15,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Service;
|
||||
|
||||
use App\Context\ApiUrlContext;
|
||||
use App\Context\UserContext;
|
||||
use App\Job\ColumnConfigJob;
|
||||
use App\Job\OpLogsJob;
|
||||
@ -60,6 +61,10 @@ class QueueService
|
||||
// 将当前用户信息添加到参数中
|
||||
$params['user'] = UserContext::getCurrentUser();
|
||||
|
||||
if (ApiUrlContext::hasApiUrl()) {
|
||||
$params['api_url'] = ApiUrlContext::getApiUrl();
|
||||
}
|
||||
|
||||
$this->params = $params;
|
||||
return $this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user