作者 lyh

gx

... ... @@ -48,19 +48,6 @@ class Demo extends Command
protected $description = 'demo';
public function handle(){
$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');
}
... ...
... ... @@ -105,6 +105,9 @@ class CNoticeController extends BaseController
'is_sitemap' => $is_sitemap
];
http_post($c_url, json_encode($param));
// $shell = 'curl -X POST ' . escapeshellarg($c_url) . ' -H "Content-Type: application/json"' .
// ' -d ' . escapeshellarg(json_encode($param)) . ' > /dev/null 2>&1 &';
// shell_exec($shell);
}
$this->response('更新中请稍后, 更新完成将会发送站内信通知更新结果!');
}
... ...