From 7348ad9af2858779518243561874ec2a53d103c6 Mon Sep 17 00:00:00 2001 From: Vladimir Fomichev Date: Mon, 18 Aug 2025 08:50:40 +0300 Subject: [PATCH] =?utf8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20=D0=BB=D0=BE?= =?utf8?q?=D0=B3=D0=B8=20upload?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/api2/controllers/DataController.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/erp24/api2/controllers/DataController.php b/erp24/api2/controllers/DataController.php index fe9a5c83..4f3b767a 100644 --- a/erp24/api2/controllers/DataController.php +++ b/erp24/api2/controllers/DataController.php @@ -955,17 +955,7 @@ class DataController extends BaseController Yii::$app->response->format = \yii\web\Response::FORMAT_JSON; $request = Yii::$app->request->getRawBody(); - $raw = Yii::$app->request->getRawBody(); - $hdrs = Yii::$app->request->headers; - - Yii::warning([ - 'method' => Yii::$app->request->method, - 'contentType' => (string)$hdrs->get('content-type'), - 'contentLength' => (string)$hdrs->get('content-length'), - 'encoding' => (string)$hdrs->get('content-encoding'), - 'rawLen' => strlen($raw), - 'sha1' => sha1($raw), - ], 'upload.debug'); + try { $result = Json::decode($request); } catch (Exception $ex) { -- 2.39.5