正在显示
1 个修改的文件
包含
5 行增加
和
0 行删除
@@ -29,12 +29,17 @@ class AdminSetUpController extends AdminBaseController{ | @@ -29,12 +29,17 @@ class AdminSetUpController extends AdminBaseController{ | ||
29 | 29 | ||
30 | public function index(){ | 30 | public function index(){ |
31 | $data=Db::name('set_up')->where('id',1)->find(); | 31 | $data=Db::name('set_up')->where('id',1)->find(); |
32 | + $data['bill_rules']=html_entity_decode($data['bill_rules']); | ||
33 | + $data['directions']=html_entity_decode($data['directions']); | ||
32 | $this->assign('setup',$data); | 34 | $this->assign('setup',$data); |
33 | return $this->fetch(); | 35 | return $this->fetch(); |
34 | } | 36 | } |
35 | 37 | ||
36 | public function setupPost(){ | 38 | public function setupPost(){ |
37 | $param=$this->request->param(); | 39 | $param=$this->request->param(); |
40 | + | ||
41 | + | ||
42 | + | ||
38 | $res=Db::name('set_up')->where('id',1)->update($param); | 43 | $res=Db::name('set_up')->where('id',1)->update($param); |
39 | if ($res){ | 44 | if ($res){ |
40 | $this->success('保存完成'); | 45 | $this->success('保存完成'); |
-
请 注册 或 登录 后发表评论