From: Vladimir Fomichev Date: Mon, 18 Aug 2025 05:50:40 +0000 (+0300) Subject: Убрал логи upload X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=7348ad9af2858779518243561874ec2a53d103c6;p=erp24_rep%2Fyii-erp24%2F.git Убрал логи upload --- 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) {