| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?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();
- $res=[];
- 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 [];
- }
- }
|