Skip to content
This repository was archived by the owner on Mar 9, 2020. It is now read-only.
This repository was archived by the owner on Mar 9, 2020. It is now read-only.

专栏文章提交时出现 ErrorException #119

@storefee

Description

@storefee
$data = array_merge([
            'topic_type' => $topic_type,
            'topic_link' => $topic->link(),
            'topic_title' => $topic->title,
            'topic_category_id' => $topic->category->id,
            'topic_category_name' => $topic->category->name,
        ], $extra_data);

报出这一行 'topic_category_id' => $topic->category->id,出问题,

ErrorException in BaseActivity.php line 42:
Trying to get property of non-object

应该是$topic->category 为空的问题。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions