文献校对功能转rabbitMQ

This commit is contained in:
wyn
2026-06-02 10:00:36 +08:00
parent 53e568b48d
commit 100f3cf35c
5 changed files with 390 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace app\common\mq;
class RabbitMqConfig
{
public static function get($key = null, $default = null)
{
$cfg = config('rabbitmq');
if (!is_array($cfg)) {
$cfg = [];
}
if ($key === null) {
return $cfg;
}
return isset($cfg[$key]) ? $cfg[$key] : $default;
}
public static function referenceCheck()
{
$rc = self::get('reference_check', []);
return is_array($rc) ? $rc : [];
}
}