作者 lyh

gx

@@ -48,19 +48,6 @@ class Demo extends Command @@ -48,19 +48,6 @@ class Demo extends Command
48 protected $description = 'demo'; 48 protected $description = 'demo';
49 49
50 public function handle(){ 50 public function handle(){
51 - $param = [  
52 - 'project_id' => 1,  
53 - 'type' => 1,  
54 - 'route' => 'ceshi',  
55 - 'url' => 'baidu',  
56 - 'language'=> 'en',  
57 - 'is_sitemap' => 1  
58 - ];  
59 - $shell = 'curl -X POST ' . escapeshellarg('www.baidu.com') . ' -H "Content-Type: application/json"' .  
60 - ' -d ' . escapeshellarg(json_encode($param)) . ' > /dev/null 2>&1 &';  
61 -// shell_exec($shell);  
62 - echo $shell;  
63 - die();  
64 // $this->synchronizationFile('/upload/m/file/2024-07/tongli-haiyuan-keywords.pdf'); 51 // $this->synchronizationFile('/upload/m/file/2024-07/tongli-haiyuan-keywords.pdf');
65 } 52 }
66 53
@@ -105,6 +105,9 @@ class CNoticeController extends BaseController @@ -105,6 +105,9 @@ class CNoticeController extends BaseController
105 'is_sitemap' => $is_sitemap 105 'is_sitemap' => $is_sitemap
106 ]; 106 ];
107 http_post($c_url, json_encode($param)); 107 http_post($c_url, json_encode($param));
  108 +// $shell = 'curl -X POST ' . escapeshellarg($c_url) . ' -H "Content-Type: application/json"' .
  109 +// ' -d ' . escapeshellarg(json_encode($param)) . ' > /dev/null 2>&1 &';
  110 +// shell_exec($shell);
108 } 111 }
109 $this->response('更新中请稍后, 更新完成将会发送站内信通知更新结果!'); 112 $this->response('更新中请稍后, 更新完成将会发送站内信通知更新结果!');
110 } 113 }