作者 lyh

gx项目ip搜索

... ... @@ -48,7 +48,20 @@ class Demo extends Command
protected $description = 'demo';
public function handle(){
$this->synchronizationFile('/upload/m/file/2024-07/tongli-haiyuan-keywords.pdf');
$param = [
'project_id' => 1,
'type' => 1,
'route' => 'ceshi',
'url' => 'baidu',
'language'=> 'en',
'is_sitemap' => 1
];
$shell = 'curl -X POST ' . escapeshellarg('www.baidu.com') . ' -H "Content-Type: application/json"' .
' -d "' . escapeshellarg(json_encode($param)) . '" > /dev/null 2>&1 &';
// shell_exec($shell);
echo $shell;
die();
// $this->synchronizationFile('/upload/m/file/2024-07/tongli-haiyuan-keywords.pdf');
}
public function synchronizationFile($path_name){
... ...
... ... @@ -48,7 +48,6 @@ class CNoticeController extends BaseController
$url = $request->input('url', []);
$language = $request->input('language', []);
$is_sitemap = intval($request->input('is_sitemap', 0));
//获取项目所在服务器
$project_model = new Project();
$project_info = $project_model->read(['id'=>$project_id],['serve_id']);
... ... @@ -107,7 +106,6 @@ class CNoticeController extends BaseController
];
http_post($c_url, json_encode($param));
}
$this->response('更新中请稍后, 更新完成将会发送站内信通知更新结果!');
}
... ...