argument('url'); $param = ["markdown"=> [ "title"=> $this->argument('title'), "text"=> $this->argument('message'), ], "msgtype"=>"markdown" ]; $this->info("url={$url}"); try{ $response = Http::post($url, $param); if($response->successful()){ return 0; }else{ return 1; } }catch(\Exception $e){ Log::error($e); return 1; } return 0; } }