23 lines
576 B
PHP
23 lines
576 B
PHP
<?php
|
|
|
|
namespace addon\hyctransfer\shop\controller;
|
|
|
|
use app\shop\controller\BaseShop;
|
|
use addon\hyctransfer\model\Config as ConfigModel;
|
|
|
|
class Config extends BaseShop
|
|
{
|
|
|
|
public function setting()
|
|
{
|
|
$config_model = new ConfigModel();
|
|
if (request()->isAjax()) {
|
|
$data = request()->post();
|
|
return $config_model->setConfig($data, $this->site_id);
|
|
}
|
|
$this->assign('config', $config_model->getConfig($this->site_id)['data']['value']);
|
|
$this->forthMenu();
|
|
return $this->fetch('config/index');
|
|
}
|
|
}
|