作者 王智

修改

@@ -96,9 +96,10 @@ class Index extends Api @@ -96,9 +96,10 @@ 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 - var_dump(htmlspecialchars($params['Battery']));  
100 - dump(htmlspecialchars($params['Battery'])); 99 + $goods=htmlspecialchars_decode($params['Battery']);
  100 + dump($goods);
101 die; 101 die;
  102 +// $goodslist=html_entity_decode($goods);
102 if ($params['type'] == 1) { 103 if ($params['type'] == 1) {
103 $data = [ 104 $data = [
104 'user_id' => $UserId, 105 'user_id' => $UserId,