|
|
@@ -30,7 +30,7 @@ class ReportingWork extends Api
|
|
|
if (Request::instance()->isPost() == false){
|
|
|
$this->error('非法请求');
|
|
|
}
|
|
|
- $params = Request::instance()->post();
|
|
|
+ $params = Request::instance()->request();
|
|
|
if (!isset($params['machine']) || empty($params['machine'])){
|
|
|
$this->error('参数不能为空');
|
|
|
}
|
|
|
@@ -194,7 +194,7 @@ class ReportingWork extends Api
|
|
|
if (Request::instance()->isPost() == false){
|
|
|
$this->error('非法请求');
|
|
|
}
|
|
|
- $params = Request::instance()->post();
|
|
|
+ $params = Request::instance()->request();
|
|
|
if (empty($params['machine']) || empty($params['type']) || empty($params['order'])) {
|
|
|
$this->error('参数错误');
|
|
|
}
|