ppypp伦理天堂,91手机在线视频,免费在线观看黄色毛片,夜夜穞天天穞狠狠穞AV美女按摩

聯系官方銷售客服

1835022288

028-61286886

投訴 已解決 判斷后前臺沒有顯示 _msg的提示, 代碼寫在控制器的 2 0
迅睿CMS版本:4.5.0

判斷后前臺沒有顯示 _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,'操作失敗!');
    }

}
解決方案