作者 何书鹏

json解析

@@ -736,7 +736,7 @@ class Order extends Api @@ -736,7 +736,7 @@ class Order extends Api
736 $data = $this->request->post('data_json'); 736 $data = $this->request->post('data_json');
737 if (!$data) $this->error('data_json参数缺失'); 737 if (!$data) $this->error('data_json参数缺失');
738 738
739 - $data = json_decode($data,true); 739 + $data = json_decode(htmlspecialchars_decode($data),true);
740 $params = []; 740 $params = [];
741 $orderids = []; 741 $orderids = [];
742 foreach ($data as $key => $value){ 742 foreach ($data as $key => $value){