123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- namespace app\store\controller;
- use app\store\service\ExtendService;
- use library\Controller;
- class Config extends Controller
- {
-
- public function index()
- {
- $this->title = '活动参数配置';
- $this->applyCsrfToken('save');
- $this->query = ExtendService::queryChinaSmsBalance();
- $this->query2 = ExtendService::queryGlobeSmsBalance();
- $this->fetch();
- }
-
- public function save()
- {
- if ($this->request->isPost()) {
- $this->applyCsrfToken('save');
- foreach ($this->request->post() as $k => $v) sysconf($k, $v);
- $this->success('活动参数设置保存成功!');
- }
- }
- }
|