正在显示
3 个修改的文件
包含
11 行增加
和
3 行删除
| @@ -17,6 +17,7 @@ use Illuminate\Console\Command; | @@ -17,6 +17,7 @@ use Illuminate\Console\Command; | ||
| 17 | use Illuminate\Support\Facades\Cache; | 17 | use Illuminate\Support\Facades\Cache; |
| 18 | use Illuminate\Support\Facades\DB; | 18 | use Illuminate\Support\Facades\DB; |
| 19 | use Illuminate\Support\Facades\Redis; | 19 | use Illuminate\Support\Facades\Redis; |
| 20 | +use Illuminate\Support\Str; | ||
| 20 | 21 | ||
| 21 | /** | 22 | /** |
| 22 | * 初始化项目 | 23 | * 初始化项目 |
| @@ -380,7 +381,14 @@ class UpdateSeoTdk extends Command | @@ -380,7 +381,14 @@ class UpdateSeoTdk extends Command | ||
| 380 | { | 381 | { |
| 381 | $text = Gpt::instance()->openai_chat_qqs($prompt); | 382 | $text = Gpt::instance()->openai_chat_qqs($prompt); |
| 382 | $text = Common::deal_keywords($text); | 383 | $text = Common::deal_keywords($text); |
| 383 | - return Common::deal_str($text); | 384 | + $text = Common::deal_str($text); |
| 385 | + | ||
| 386 | + //包含这写字 重新生成 | ||
| 387 | + if(Str::contains(Str::lower($text), ['[your brand]', '[brand name]'])){ | ||
| 388 | + return $this->ai_send($prompt); | ||
| 389 | + } | ||
| 390 | + | ||
| 391 | + return $text; | ||
| 384 | } | 392 | } |
| 385 | 393 | ||
| 386 | /** | 394 | /** |
| @@ -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('03:00')->withoutOverlapping(1); // 项目剩余服务时长 | 19 | + $schedule->command('remain_day')->dailyAt('08: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_speed')->dailyAt('01:00')->withoutOverlapping(1); // 排名数据-测速数据,每周一凌晨执行一次 | 22 | $schedule->command('rank_data_speed')->dailyAt('01:00')->withoutOverlapping(1); // 排名数据-测速数据,每周一凌晨执行一次 |
| @@ -44,7 +44,7 @@ class CountLogic extends BaseLogic | @@ -44,7 +44,7 @@ class CountLogic extends BaseLogic | ||
| 44 | //获取项目的剩余时长 | 44 | //获取项目的剩余时长 |
| 45 | $projectModel = new Project(); | 45 | $projectModel = new Project(); |
| 46 | $projectInfo = $projectModel->read(['id'=>$this->user['project_id']],['remain_day','finish_remain_day']); | 46 | $projectInfo = $projectModel->read(['id'=>$this->user['project_id']],['remain_day','finish_remain_day']); |
| 47 | - $info['service_day'] = $projectInfo['remain_day']; | 47 | + $info['service_day'] = $this->project['deploy_build']['service_duration'] - $projectInfo['finish_remain_day']; |
| 48 | $info['compliance_day'] = $projectInfo['finish_remain_day']; | 48 | $info['compliance_day'] = $projectInfo['finish_remain_day']; |
| 49 | return $this->success($info); | 49 | return $this->success($info); |
| 50 | } | 50 | } |
-
请 注册 或 登录 后发表评论