Update Config.php

This commit is contained in:
Anyon 2020-10-26 15:38:25 +08:00
parent 69bd775e72
commit 032e15466d

View File

@ -12,6 +12,20 @@ use think\admin\Controller;
*/ */
class Config extends Controller class Config extends Controller
{ {
/**
* 微信小程序配置
* @auth true
* @menu true
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
*/
public function wxapp()
{
$this->title = '微信小程序配置';
$this->__sysconf('wxapp');
}
/** /**
* 短信接口配置 * 短信接口配置
* @auth true * @auth true
@ -22,8 +36,8 @@ class Config extends Controller
*/ */
public function message() public function message()
{ {
$this->title = '短信接口配置';
if ($this->request->isGet()) { if ($this->request->isGet()) {
$this->title = '短信接口配置';
$this->result = MessageService::instance()->balance(); $this->result = MessageService::instance()->balance();
} }
$this->__sysconf('message'); $this->__sysconf('message');
@ -44,20 +58,6 @@ class Config extends Controller
$this->__sysdata('content'); $this->__sysdata('content');
} }
/**
* 微信小程序配置
* @auth true
* @menu true
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
*/
public function wxapp()
{
$this->title = '微信小程序配置';
$this->__sysconf('wxapp');
}
/** /**
* 应用轮播图片 * 应用轮播图片
* @menu true * @menu true