ltsecurityinc安防产品在线商城代码

This commit is contained in:
2026-09-14 17:47:10 +08:00
parent 57d8444c15
commit 6a3c9c5bd8
14539 changed files with 1775310 additions and 0 deletions
@@ -0,0 +1,19 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
return [
[
'groups' => [
'restrict' => ['fields' => ['allow_ips' => ['value' => '']]],
'debug' => [
'fields' => [
'template_hints_admin' => ['value' => '0'],
'template_hints_blocks' => ['value' => '0'],
],
],
],
]
];
@@ -0,0 +1,37 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
return [
[
'section' => 'dev',
'groups' => [
'log' => [
'fields' => [
'active' => ['value' => '1'],
'file' => ['value' => 'fileName.log'],
'exception_file' => ['value' => 'exceptionFileName.log'],
],
],
'debug' => [
'fields' => [
'template_hints_storefront' => ['value' => '1'],
'template_hints_blocks' => ['value' => '0'],
],
],
],
'expected' => [
'dev/log' => [
'dev/log/active' => '1',
'dev/log/file' => 'fileName.log',
'dev/log/exception_file' => 'exceptionFileName.log',
],
'dev/debug' => [
'dev/debug/template_hints_storefront' => '1',
'dev/debug/template_hints_blocks' => '0',
],
],
]
];
@@ -0,0 +1,16 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
use Magento\Framework\App\Filesystem\DirectoryList;
/** @var \Magento\Framework\Filesystem\Directory\Write $rootDirectory */
$rootDirectory = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(
\Magento\Framework\Filesystem::class
)->getDirectoryWrite(
DirectoryList::PUB
);
if ($rootDirectory->isExist('robots.txt')) {
$rootDirectory->delete('robots.txt');
}
@@ -0,0 +1 @@
Sitemap: http://store.com/sitemap.xml
@@ -0,0 +1,17 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
use Magento\Framework\App\Filesystem\DirectoryList;
use Magento\Framework\Filesystem;
use Magento\TestFramework\Helper\Bootstrap;
/** @var $fileSystem Filesystem */
$fileSystem = Bootstrap::getObjectManager()->get(Filesystem::class);
$pubDirectory = $fileSystem->getDirectoryWrite(DirectoryList::PUB);
$rootDirectory = $fileSystem->getDirectoryRead(DirectoryList::ROOT);
$source = $rootDirectory->getAbsolutePath(__DIR__ . '/robots.txt');
$content = $rootDirectory->readFile(__DIR__ . '/robots.txt');
$pubDirectory->writeFile('robots.txt', $content);