Skip to content

Commit

Permalink
默认改为使用post的方式提交数据
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwuxin committed Jan 27, 2021
1 parent 87961a8 commit cd2f6f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ abstract class Request
{
use ObjectAccess;

public $method = "GET";
public $method = "POST";

public $uri;

Expand All @@ -35,7 +35,7 @@ public function resolveOptions()
if ($this->method == 'GET') {
$this->options['query'] = $this->data;
} else {
$this->options['body'] = $this->data;
$this->options['form_params'] = $this->data;
}
}

Expand Down

0 comments on commit cd2f6f6

Please sign in to comment.