FeedModel::doAuditFeed PHP Method

doAuditFeed() public method

审核通过分享
public doAuditFeed ( integer $feed_id ) : array
$feed_id integer 分享ID
return array 分享操作后的结果信息数组
    public function doAuditFeed($feed_id)
    {
        $return = array('status' => '0');
        if (empty($feed_id)) {
            $return['data'] = '请选择分享!';
        } else {
            $map['feed_id'] = is_array($feed_id) ? array('IN', $feed_id) : intval($feed_id);
            $save['is_audit'] = 1;
            $res = $this->where($map)->save($save);
            if ($res) {
                $return = array('status' => 1);
            }
            //更新缓存
            $this->cleanCache($feed_id);
        }
        return $return;
    }