...
|
...
|
@@ -29,12 +29,17 @@ class AdminSetUpController extends AdminBaseController{ |
|
|
|
|
|
public function index(){
|
|
|
$data=Db::name('set_up')->where('id',1)->find();
|
|
|
$data['bill_rules']=html_entity_decode($data['bill_rules']);
|
|
|
$data['directions']=html_entity_decode($data['directions']);
|
|
|
$this->assign('setup',$data);
|
|
|
return $this->fetch();
|
|
|
}
|
|
|
|
|
|
public function setupPost(){
|
|
|
$param=$this->request->param();
|
|
|
|
|
|
|
|
|
|
|
|
$res=Db::name('set_up')->where('id',1)->update($param);
|
|
|
if ($res){
|
|
|
$this->success('保存完成');
|
...
|
...
|
|