|
|
@@ -30,7 +30,7 @@ class ReportingWork extends Api
|
|
|
if (Request::instance()->isPost() == false){
|
|
|
$this->error('非法请求');
|
|
|
}
|
|
|
- $params = Request::instance()->request();
|
|
|
+ $params = Request::instance()->post();
|
|
|
if (!isset($params['machine']) || empty($params['machine'])){
|
|
|
$this->error('参数不能为空');
|
|
|
}
|
|
|
@@ -109,7 +109,7 @@ class ReportingWork extends Api
|
|
|
if (Request::instance()->isPost() == false){
|
|
|
$this->error('非法请求');
|
|
|
}
|
|
|
- $params = Request::instance()->request();
|
|
|
+ $params = Request::instance()->post();
|
|
|
if (!isset($params['order']) || empty($params['order'])){
|
|
|
$this->error('参数不能为空');
|
|
|
}
|
|
|
@@ -197,7 +197,7 @@ class ReportingWork extends Api
|
|
|
if (Request::instance()->isPost() == false){
|
|
|
$this->error('非法请求');
|
|
|
}
|
|
|
- $params = Request::instance()->request();
|
|
|
+ $params = Request::instance()->post();
|
|
|
if (empty($params['machine']) || empty($params['type']) || empty($params['order'])) {
|
|
|
$this->error('参数错误');
|
|
|
}
|
|
|
@@ -317,7 +317,7 @@ class ReportingWork extends Api
|
|
|
if (Request::instance()->isPost() == false){
|
|
|
$this->error('非法请求');
|
|
|
}
|
|
|
- $params = Request::instance()->request();
|
|
|
+ $params = Request::instance()->post();
|
|
|
$machine = $params['sczl_jtbh'].'#';
|
|
|
$batchData = []; //批次追踪数据
|
|
|
$batch = $params['bom'];
|