租房掌柜微信小程序Api以及小程序前端模板
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

61 lines
1.8 KiB

<?php
// +----------------------------------------------------------------------
// | ThinkAdmin
// +----------------------------------------------------------------------
// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +----------------------------------------------------------------------
// | 官方网站: http://demo.thinkadmin.top
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// +----------------------------------------------------------------------
// | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
// | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
// +----------------------------------------------------------------------
namespace app\store\controller;
use app\store\service\Extend;
use app\store\service\ExtendService;
use library\Controller;
/**
* 商城参数配置
* Class Config
* @package app\store\controller
*/
class Config extends Controller
{
/**
* 商城参数配置
* @auth true
* @menu true
* @throws \think\Exception
* @throws \think\exception\PDOException
*/
public function index()
{
$this->title = '商城参数配置';
$this->applyCsrfToken('save');
$this->query = ExtendService::querySmsBalance();
$this->query2 = ExtendService::querySmsBalance2();
$this->fetch();
}
/**
* 保存商城参数
* @auth true
* @throws \think\Exception
* @throws \think\exception\PDOException
*/
public function save()
{
if ($this->request->isPost()) {
$this->applyCsrfToken('save');
foreach ($this->request->post() as $k => $v) sysconf($k, $v);
$this->success('商城短信配置保存成功!');
}
}
}