diff --git a/frontend/views/question/view.php b/frontend/views/question/view.php index fd5d8f7..f80e769 100644 --- a/frontend/views/question/view.php +++ b/frontend/views/question/view.php @@ -62,7 +62,7 @@ class="fa fa-database"> 追加悬赏 - = \yuncms\comment\frontend\widgets\Comment::widget(['source_type' => 'question', 'source_id' => $model->id, 'hide_cancel' => false]) ?> + = \yuncms\comment\frontend\widgets\Comment::widget(['model_class' => 'question', 'model_id' => $model->id, 'hide_cancel' => false]) ?> - = \yuncms\question\frontend\widgets\Comment::widget(['source_type' => 'answer', 'source_id' => $bestAnswer->id, 'hide_cancel' => false]) ?> + = \yuncms\comment\frontend\widgets\Comment::widget(['model_class' => 'answer', 'model_id' => $bestAnswer->id, 'hide_cancel' => false]) ?>