| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- namespace App\Module\System\Cache;
- use UCore\job\QueueJob;
- use UCore\Model\RequestLog;
- use App\Module\LCache\Cache;
- use App\Module\LCache\SCache;
- use function Laravel\Prompts\select;
- class RequestLogPath 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=[])
- {
- $args = func_get_args();
- $data = RequestLog::query()
- ->groupBy('path')
- ->distinct()
- ->where('module', '!=','temp')
- ->pluck('path', 'path')
- ->toArray();
- dump($data);
- return $data;
- }
- /**
- * 获取参数索引
- * @return array
- */
- public static function getRequiredArgIndex(): array
- {
- return [];
- }
- }
|