| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace App\Module\System\Cache;
- use UCore\Model\RequestLog;
- use App\Module\LCache\Cache;
- use App\Module\LCache\SCache;
- use function Laravel\Prompts\select;
- /**
- *
- */
- class RequestLogRouter extends \App\Module\LCache\QueueJob
- {
- public static function getPreventDuplication(): int
- {
- return 3600;
- }
- public static function getTtl(): int
- {
- return 3600 * 24;
- }
- static public function getNewData($parameter = [])
- {
- $data = RequestLog::query()
- ->groupBy('router')
- ->distinct()
- ->pluck('router', 'router')
- ->toArray();
- foreach ($data as $k => $v) {
- if (in_array(substr($k, 0, 3), $parameter)) {
- $res[$k] = $k;
- }
- }
- return $res;
- }
- /**
- * 获取参数索引
- * @return array
- */
- public static function getRequiredArgIndex(): array
- {
- return [];
- }
- }
|