diff --git a/app/data/controller/Config.php b/app/data/controller/Config.php index a26d9a5e1..0525accef 100644 --- a/app/data/controller/Config.php +++ b/app/data/controller/Config.php @@ -12,6 +12,20 @@ use think\admin\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 @@ -22,8 +36,8 @@ class Config extends Controller */ public function message() { - $this->title = '短信接口配置'; if ($this->request->isGet()) { + $this->title = '短信接口配置'; $this->result = MessageService::instance()->balance(); } $this->__sysconf('message'); @@ -44,20 +58,6 @@ class Config extends Controller $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