diff --git a/controllers/DeviceController.php b/controllers/DeviceController.php index 89586958..99eede21 100644 --- a/controllers/DeviceController.php +++ b/controllers/DeviceController.php @@ -381,7 +381,7 @@ class DeviceController extends Controller { public function actionSync() { if (Yii::$app->request->post()) { Yii::$app->response->format = "json"; - $post = Yii::$app->request->post("lists"); + $post = Yii::$app->request->post(); $lists = $post["lists"]; if ($post["all"] && count($lists) >= 20) { $temp = []; @@ -546,7 +546,7 @@ class DeviceController extends Controller { public function actionGetLogs() { if (Yii::$app->request->post()) { Yii::$app->response->format = "json"; - $post = Yii::$app->request->post("lists"); + $post = Yii::$app->request->post(); $lists = $post["lists"]; if ($post["all"] && count($lists) >= 20) { $temp = [];