lvhao 3 dagar sedan
förälder
incheckning
cf22d0aa96
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3 1
      core/CoreApp/controllers/Lyerpapi/v1/Thdj.php

+ 3 - 1
core/CoreApp/controllers/Lyerpapi/v1/Thdj.php

@@ -19,7 +19,9 @@ class Thdj extends Lyapi_Controller{
 
             $this->_json_error('请求方式错误','500');
         }
-        $waybill = $this->input->post('waybill',true);
+        $json_str = $this->input->raw_input_stream;
+        $data = json_decode($json_str,true);
+        $waybill = $data['waybill'];
         if(empty($waybill)){
             $this->_json_error('快递单号不能为空','500');
         }