作者 李宇航

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

修复自动发送新闻,博客,产品脚本



查看合并请求 !1045
... ... @@ -56,16 +56,19 @@ class SendProduct extends Command
$arr1 = $this->sendProduct();
$arr2 = $this->sendBlog();
$arr3 = $this->sendNews();
$c_url = $domain.'api/update_page/';
$param = [
'project_id' => $v['id'],
'type' => 1,
'route' => 3,
'url' => array_merge((array)$arr1,(array)$arr2,(array)$arr3),
'language'=> [],
'is_sitemap' => 0
];
http_post($c_url, json_encode($param));
$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));
}
//TODO::通知C端生成界面
DB::disconnect('custom_mysql');
}
... ...