32 lines
953 B
PHP
Executable File
32 lines
953 B
PHP
Executable File
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | 宏驰云科技开发团队 版权所有 拥有最终解释权
|
|
// +----------------------------------------------------------------------
|
|
|
|
// | Author: HcyShop-kiki
|
|
// +----------------------------------------------------------------------
|
|
namespace app\admin\controller;
|
|
use app\admin\logic\MessageLogic;
|
|
|
|
class Message extends AdminBase{
|
|
|
|
public function config(){
|
|
$config = MessageLogic::config();
|
|
$this->assign('config',$config);
|
|
return $this->fetch();
|
|
}
|
|
|
|
public function set(){
|
|
$id = $this->request->get('id',1);
|
|
if($this->request->isAjax()){
|
|
$post = $this->request->post();
|
|
MessageLogic::setConfig($post);
|
|
$this->_success('设置成功');
|
|
|
|
|
|
}
|
|
$info = MessageLogic::getMessage($id);
|
|
$this->assign('info',$info);
|
|
return $this->fetch();
|
|
}
|
|
} |