|
...
|
...
|
@@ -53,24 +53,28 @@ class SendProduct extends Command |
|
|
|
if(empty($domain)){
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
$arr1 = $this->sendProduct();
|
|
|
|
$arr2 = $this->sendBlog();
|
|
|
|
$arr3 = $this->sendNews();
|
|
|
|
$url = array_merge((array)$arr1,(array)$arr2,(array)$arr3);
|
|
|
|
if(!empty($url)){
|
|
|
|
$c_url = $domain.'api/update_page/';
|
|
|
|
$param = [
|
|
|
|
'project_id' => $v['id'],
|
|
|
|
'type' => 1,
|
|
|
|
'route' => 3,
|
|
|
|
'url' => $url,
|
|
|
|
'language'=> [],
|
|
|
|
'is_sitemap' => 0
|
|
|
|
];
|
|
|
|
http_post($c_url, json_encode($param));
|
|
|
|
try {
|
|
|
|
$arr1 = $this->sendProduct();
|
|
|
|
$arr2 = $this->sendBlog();
|
|
|
|
$arr3 = $this->sendNews();
|
|
|
|
$url = array_merge((array)$arr1,(array)$arr2,(array)$arr3);
|
|
|
|
if(!empty($url)){
|
|
|
|
$c_url = $domain.'api/update_page/';
|
|
|
|
$param = [
|
|
|
|
'project_id' => $v['id'],
|
|
|
|
'type' => 1,
|
|
|
|
'route' => 3,
|
|
|
|
'url' => $url,
|
|
|
|
'language'=> [],
|
|
|
|
'is_sitemap' => 0
|
|
|
|
];
|
|
|
|
//TODO::通知C端生成界面
|
|
|
|
http_post($c_url, json_encode($param));
|
|
|
|
}
|
|
|
|
}catch (\Exception $e){
|
|
|
|
DB::disconnect('custom_mysql');
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
//TODO::通知C端生成界面
|
|
|
|
DB::disconnect('custom_mysql');
|
|
|
|
}
|
|
|
|
echo date('Y-m-d H:i:s') . 'end' . PHP_EOL;
|
|
|
|
}
|
...
|
...
|
|