* change for block.

This commit is contained in:
wangyidong
2016-04-29 10:29:20 +08:00
parent 5ea4367ac6
commit 10c0c19c8f
7 changed files with 43 additions and 7 deletions
+6
View File
@@ -36,6 +36,12 @@ class blockModel extends model
->setDefault('params', array())
->get();
if($type == 'html')
{
$data->params['html'] = $data->html;
unset($data->html);
}
$data->params = helper::jsonEncode($data->params);
$this->dao->replace(TABLE_BLOCK)->data($data)->exec();
}