Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Apr 9, 2019
1 parent 89d142c commit bf07268
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,16 @@ protected function exec(){

$temp=json_decode($contents,true);
if(!empty($temp)) {
$temp['method']=$this->type;
$temp['url']=$this->host.$this->path;
$temp['_method']=$this->type;
$temp['_url']=$this->host.$this->path;
}else{
$temp['message']=$e->getMessage();
$temp['_message']=$e->getMessage();
}
}else{
$temp['message']=$e->getMessage();
$temp['_message']=$e->getMessage();
}

$temp['httpcode']=$e->getCode();
$temp['_httpcode']=$e->getCode();

//TODO 该流程可以记录各种日志
throw new Exception(json_encode($temp));
Expand Down

0 comments on commit bf07268

Please sign in to comment.