作者 李宇航

合并分支 'lyh-server' 到 'master'

Lyh server



查看合并请求 !2107
@@ -13,6 +13,7 @@ use App\Helper\Arr; @@ -13,6 +13,7 @@ use App\Helper\Arr;
13 use App\Models\Ai\AiBlog; 13 use App\Models\Ai\AiBlog;
14 use App\Models\Ai\AiBlogAuthor; 14 use App\Models\Ai\AiBlogAuthor;
15 use App\Models\Ai\AiBlogList; 15 use App\Models\Ai\AiBlogList;
  16 +use App\Models\Com\NoticeLog;
16 use App\Models\Com\Notify; 17 use App\Models\Com\Notify;
17 use App\Models\Devops\ServerConfig; 18 use App\Models\Devops\ServerConfig;
18 use App\Models\Devops\ServersIp; 19 use App\Models\Devops\ServersIp;
@@ -337,6 +338,9 @@ class AiBlogTask extends Command @@ -337,6 +338,9 @@ class AiBlogTask extends Command
337 'is_sitemap' => 0 338 'is_sitemap' => 0
338 ]; 339 ];
339 $res = http_post($c_url, json_encode($param,true)); 340 $res = http_post($c_url, json_encode($param,true));
  341 + if(empty($res)){
  342 + NoticeLog::createLog(NoticeLog::GENERATE_PAGE, json_encode(['c_url'=>$c_url,'c_params'=>$param]),date('Y-m-d H:i:s',time()+300));
  343 + }
340 $this->output('notify: project id: ' . $project_id . ', result: ' . json_encode($res,JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)); 344 $this->output('notify: project id: ' . $project_id . ', result: ' . json_encode($res,JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES));
341 } 345 }
342 } 346 }