判斷后前臺沒有顯示 _msg的提示, 代碼寫在控制器的

前臺只是執(zhí)行了效果


代碼:
public function index() {
//接收數(shù)據(jù)
$post_id = \Phpcmf\Service::L('input')->post('post_id'); //內(nèi)容id
$post_title = \Phpcmf\Service::L('input')->post('post_title'); //內(nèi)容標題
$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,'操作失??!');
}
}
這個寫法很標準,沒有任何問題的
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復(fù)@官方研發(fā)技術(shù)-羅老師
不知道為啥 下面的判斷沒跳轉(zhuǎn) msg 頁面