ManageAction::delWeiba PHP Method

delWeiba() public method

解散微吧
public delWeiba ( ) : array
return array 操作成功状态和提示信息
    public function delWeiba()
    {
        if (empty($_POST['weiba_id'])) {
            echo -1;
            exit;
        }
        !is_array($_POST['weiba_id']) && ($_POST['weiba_id'] = array($_POST['weiba_id']));
        $weiboId = array_map('intval', $_POST['weiba_id']);
        $data['weiba_id'] = array('in', $weiboId);
        $result = D('weiba')->where($data)->setField('is_del', 1);
        if ($result) {
            // D('weiba_post')->where('weiba_id='.$weiba_id)->delete();
            // D('weiba_reply')->where('weiba_id='.$weiba_id)->delete();
            // D('weiba_follow')->where('weiba_id='.$weiba_id)->delete();
            // D('weiba_log')->where('weiba_id='.$weiba_id)->delete();
            echo 1;
            exit;
        } else {
            echo 0;
            exit;
        }
    }