class DataBuhController extends BaseController
{
const OUT_DIR =
-// __DIR__ . "/../json";
- "/var/www/erp24/api2/json";
+// DIR . "/../json";
+ "/var/www/erp24/api2/json_buh";
// "/var/www/www-root/data/www/api.bazacvetov24.ru/data/json";
public function actionRequest() {
$fl = time();
}
// InfoLogService::setInfoLog(__FILE__, __LINE__, 'upload_' . $fl . '.json' , 'info_id_25_1');
-
- file_put_contents(self::OUT_DIR . '/upload_' . $fl . '.json', PHP_EOL . $request);
+//
+// file_put_contents(self::OUT_DIR . '/upload_' . $fl . '.json', PHP_EOL . $request);
try {
}
} catch (Exception $e) {
-
+ file_put_contents(self::OUT_DIR . '/error_buh_upload.txt', PHP_EOL . 'result empty', FILE_APPEND);
}
return $this->asJson(['response' => true]);