作者 董瑞恩
1 个管道 的构建 通过 耗费 0 秒

interface

@@ -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('保存完成');