作者 潘浩文
1 个管道 的构建 通过 耗费 6 秒

修改意见

@@ -93,12 +93,14 @@ class AdminSignController extends AdminBaseController @@ -93,12 +93,14 @@ class AdminSignController extends AdminBaseController
93 93
94 public function sLogan(){ 94 public function sLogan(){
95 $data=Db::name('config')->where('id',1)->find(); 95 $data=Db::name('config')->where('id',1)->find();
  96 + $data['slogan']=cmf_replace_content_file_url(htmlspecialchars_decode($data['slogan']));
96 $this->assign('list',$data); 97 $this->assign('list',$data);
97 return $this->fetch(); 98 return $this->fetch();
98 } 99 }
99 100
100 public function sLoganPost(){ 101 public function sLoganPost(){
101 $param=$this->request->param(); 102 $param=$this->request->param();
  103 + $param['slogan']=htmlspecialchars(cmf_replace_content_file_url(htmlspecialchars_decode($param['slogan']),true));
102 Db::name('config')->where('id',1)->update($param); 104 Db::name('config')->where('id',1)->update($param);
103 $this->success('编辑成功'); 105 $this->success('编辑成功');
104 } 106 }
@@ -17,7 +17,7 @@ @@ -17,7 +17,7 @@
17 <tr> 17 <tr>
18 <th width="200">日打卡主页sLogan设置<span class="form-required">*</span></th> 18 <th width="200">日打卡主页sLogan设置<span class="form-required">*</span></th>
19 <td> 19 <td>
20 - <textarea class="form-control" name="slogan" required style="height: 80px">{$list.slogan}</textarea> 20 + <script type="text/plain" id="content" name="slogan">{$list.slogan}</script>
21 </td> 21 </td>
22 </tr> 22 </tr>
23 </table> 23 </table>