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.
89 lines
1.4 KiB
89 lines
1.4 KiB
2 months ago
|
<?php
|
||
|
namespace app\reminder\controller;
|
||
|
use app\AdminRest;
|
||
|
|
||
|
|
||
|
use app\massage\model\Banner;
|
||
|
use app\massage\model\MsgConfig;
|
||
|
use app\massage\model\PayConfig;
|
||
|
use app\reminder\model\Record;
|
||
|
use app\virtual\info\PermissionVirtual;
|
||
|
use app\reminder\model\Config;
|
||
|
use think\App;
|
||
|
use app\massage\model\Config as Model;
|
||
|
|
||
|
|
||
|
class AdminSetting extends AdminRest
|
||
|
{
|
||
|
|
||
|
|
||
|
protected $model;
|
||
|
|
||
|
protected $admin_model;
|
||
|
|
||
|
|
||
|
public function __construct(App $app) {
|
||
|
|
||
|
parent::__construct($app);
|
||
|
|
||
|
$this->model = new Config();
|
||
|
|
||
|
$this->admin_model = new \app\massage\model\Admin();
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @author chenniang
|
||
|
* @DataTime: 2021-03-12 15:04
|
||
|
* @功能说明:配置详情
|
||
|
*/
|
||
|
public function configInfo(){
|
||
|
|
||
|
$dis = [
|
||
|
|
||
|
'uniacid' => $this->_uniacid
|
||
|
];
|
||
|
|
||
|
$data = $this->model->dataInfo($dis);
|
||
|
|
||
|
return $this->success($data);
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @author chenniang
|
||
|
* @DataTime: 2021-03-12 16:14
|
||
|
* @功能说明:编辑配置
|
||
|
*/
|
||
|
public function configUpdate(){
|
||
|
|
||
|
$input = $this->_input;
|
||
|
|
||
|
$dis = [
|
||
|
|
||
|
'uniacid' => $this->_uniacid
|
||
|
];
|
||
|
|
||
|
if(isset($input['reminder_admin_phone'])){
|
||
|
|
||
|
$input['reminder_admin_phone'] = !empty($input['reminder_admin_phone'])?implode(',',$input['reminder_admin_phone']):'';
|
||
|
}
|
||
|
|
||
|
$data = $this->model->dataUpdate($dis,$input);
|
||
|
|
||
|
return $this->success($data);
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
}
|