Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into bate
正在显示
4 个修改的文件
包含
11 行增加
和
12 行删除
| @@ -55,7 +55,7 @@ class UpdateRoute extends Command | @@ -55,7 +55,7 @@ class UpdateRoute extends Command | ||
| 55 | */ | 55 | */ |
| 56 | public function handle(){ | 56 | public function handle(){ |
| 57 | $projectModel = new Project(); | 57 | $projectModel = new Project(); |
| 58 | - $list = $projectModel->list(['id'=>687]); | 58 | + $list = $projectModel->list(['id'=>419]); |
| 59 | $data = []; | 59 | $data = []; |
| 60 | foreach ($list as $v){ | 60 | foreach ($list as $v){ |
| 61 | echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL; | 61 | echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL; |
| @@ -16,7 +16,7 @@ class Kernel extends ConsoleKernel | @@ -16,7 +16,7 @@ class Kernel extends ConsoleKernel | ||
| 16 | protected function schedule(Schedule $schedule) | 16 | protected function schedule(Schedule $schedule) |
| 17 | { | 17 | { |
| 18 | // $schedule->command('inspire')->hourly(); | 18 | // $schedule->command('inspire')->hourly(); |
| 19 | - $schedule->command('remain_day')->dailyAt('08:00')->withoutOverlapping(1); // 项目剩余服务时长 | 19 | + $schedule->command('remain_day')->dailyAt('09:00')->withoutOverlapping(1); // 项目剩余服务时长 |
| 20 | $schedule->command('rank_data_task')->everyMinute()->withoutOverlapping(1); // 排名数据更新任务 | 20 | $schedule->command('rank_data_task')->everyMinute()->withoutOverlapping(1); // 排名数据更新任务 |
| 21 | $schedule->command('rank_data')->dailyAt('07:00')->withoutOverlapping(1); // 排名数据,每天凌晨执行一次 | 21 | $schedule->command('rank_data')->dailyAt('07:00')->withoutOverlapping(1); // 排名数据,每天凌晨执行一次 |
| 22 | $schedule->command('rank_data')->dailyAt('08:00')->withoutOverlapping(1); // 排名数据,每天凌晨执行一次 | 22 | $schedule->command('rank_data')->dailyAt('08:00')->withoutOverlapping(1); // 排名数据,每天凌晨执行一次 |
| @@ -594,12 +594,12 @@ if (!function_exists('getFileUrl')) { | @@ -594,12 +594,12 @@ if (!function_exists('getFileUrl')) { | ||
| 594 | if(substr($path,0,2) == '//'){ | 594 | if(substr($path,0,2) == '//'){ |
| 595 | return 'https:'.$path; | 595 | return 'https:'.$path; |
| 596 | } | 596 | } |
| 597 | - $file_type = pathinfo($path, PATHINFO_EXTENSION); | ||
| 598 | - $fileTypeArr = ['zip', 'pdf', 'mp4', 'doc', 'docx', 'm4v', 'xlsx']; | ||
| 599 | - if(in_array(strtolower($file_type),$fileTypeArr)){ | ||
| 600 | - $cdn2 = config('filesystems.disks.cos')['cdn2']; | ||
| 601 | - return $cdn2.$path; | ||
| 602 | - } | 597 | +// $file_type = pathinfo($path, PATHINFO_EXTENSION); |
| 598 | +// $fileTypeArr = ['zip', 'pdf', 'mp4', 'doc', 'docx', 'm4v', 'xlsx']; | ||
| 599 | +// if(in_array(strtolower($file_type),$fileTypeArr)){ | ||
| 600 | +// $cdn2 = config('filesystems.disks.cos')['cdn2']; | ||
| 601 | +// return $cdn2.$path; | ||
| 602 | +// } | ||
| 603 | if($location == 0){ | 603 | if($location == 0){ |
| 604 | //v6-file.globalso.com | 604 | //v6-file.globalso.com |
| 605 | $cos = config('filesystems.disks.cos'); | 605 | $cos = config('filesystems.disks.cos'); |
| @@ -53,12 +53,11 @@ class RouteMap extends Base | @@ -53,12 +53,11 @@ class RouteMap extends Base | ||
| 53 | * @date 2023/4/17 | 53 | * @date 2023/4/17 |
| 54 | */ | 54 | */ |
| 55 | public static function generateRoute($title, $source, $source_id, $project_id){ | 55 | public static function generateRoute($title, $source, $source_id, $project_id){ |
| 56 | + if(preg_match('/^[\x{0400}-\x{04FF}]+$/u', $title)){ | ||
| 57 | + $title = Translate::tran($title, 'en'); | ||
| 58 | + } | ||
| 56 | if(preg_match('/[\x{4e00}-\x{9fa5}]/u', $title)){ | 59 | if(preg_match('/[\x{4e00}-\x{9fa5}]/u', $title)){ |
| 57 | $title = Translate::tran($title, 'en'); | 60 | $title = Translate::tran($title, 'en'); |
| 58 | - }else{ | ||
| 59 | - if(!preg_match('/[a-zA-Z]/', $title)){ | ||
| 60 | - $title = Translate::tran($title, 'en'); | ||
| 61 | - } | ||
| 62 | } | 61 | } |
| 63 | $i=1; | 62 | $i=1; |
| 64 | $sign = generateRoute($title); | 63 | $sign = generateRoute($title); |
-
请 注册 或 登录 后发表评论