作者 karlet

feat:服务

@@ -22,7 +22,7 @@ class SimpleRequest @@ -22,7 +22,7 @@ class SimpleRequest
22 $this->method = $data['method']; 22 $this->method = $data['method'];
23 $this->header = $data['header']; 23 $this->header = $data['header'];
24 $this->cookie = $data['cookie']; 24 $this->cookie = $data['cookie'];
25 - $this->rawContent = $data['rawContent']; 25 + $this->rawContent = isset($data['rawContent']) ? $data['rawContent'] : '';
26 if ($this->method == 'POST') { 26 if ($this->method == 'POST') {
27 if (count($this->post) == 0) { 27 if (count($this->post) == 0) {
28 $data = json_decode($this->rawContent, true); 28 $data = json_decode($this->rawContent, true);