作者 王智

修改

@@ -96,6 +96,9 @@ class Index extends Api @@ -96,6 +96,9 @@ class Index extends Api
96 { 96 {
97 $UserId = $this->IsToken($this->request->header()); 97 $UserId = $this->IsToken($this->request->header());
98 $params = $this->request->param(); 98 $params = $this->request->param();
  99 + dump($params['Battery']);
  100 + var_dump($params['Battery']);
  101 + die;
99 if ($params['type'] == 1) { 102 if ($params['type'] == 1) {
100 $data = [ 103 $data = [
101 'user_id' => $UserId, 104 'user_id' => $UserId,