public function dosendmsg()
{
// 格式化数据
$checkContent = str_replace(' ', '', $_POST['content']);
$checkContent = str_replace('<br />', '', $checkContent);
$checkContent = str_replace('<p>', '', $checkContent);
$checkContent = str_replace('</p>', '', $checkContent);
$checkContents = preg_replace('/<img(.*?)src=/i', 'img', $checkContent);
$checkContents = preg_replace('/<embed(.*?)src=/i', 'img', $checkContents);
if (strlen(t($checkContents)) == 0) {
$this->error('系统信息内容不能为空');
}
$this->assign('jumpUrl', U('admin/Home/message'));
if (model('Notify')->sendSystemMessage($_POST['user_group_id'], h($_POST['content']))) {
$this->success();
}
$this->error();
}