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,34 @@
<?php
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package GeoIP Data for Magento 2 (System)
*/
namespace Amasty\Geoip\Controller\Adminhtml\Geoip;
use Amasty\Geoip\Controller\Adminhtml\GeoipAbstract;
class Commit extends GeoipAbstract
{
public function execute()
{
$result = [];
try {
$type = $this->getRequest()->getParam('type');
$action = $this->getRequest()->getParam('action');
$isDownload = false;
if ($action == 'download_and_import') {
$isDownload = true;
}
$this->importModel->commitProcess($type, $isDownload);
$result['status'] = 'done';
$result['full_import_done'] = $this->geoipHelper->isDone() ? "1" : "0";
} catch (\Exception $e) {
$result['error'] = $e->getMessage();
}
$this->getResponse()->setBody($this->jsonHelper->jsonEncode($result));
}
}