判断后前台没有显示 _msg的提示, 代码写在控制器的

前台只是执行了效果


代码:
public function index() {
//接收数据
$post_id = \Phpcmf\Service::L('input')->post('post_id'); //内容id
$post_title = \Phpcmf\Service::L('input')->post('post_title'); //内容标题
$post_mbrid = \Phpcmf\Service::L('input')->post('post_mbrid'); //会员id
$post_inputtime = SYS_TIME; //当前时间
//变量为空
if(empty($post_id) && empty($post_title) && empty($post_mbrid)){
return $this->_msg(0,'非法操作');
}
$rt = \Phpcmf\Service::M()->db->table('member_dowlog')->insert([
'cid' => $post_id,
'title' => $post_title,
'uid' => $post_mbrid,
'inputtime' => $post_inputtime,
]);
if($rt['code']){
return $this->_msg(1,'操作成功!');
}else{
return $this->_msg(0,'操作失败!');
}
}