|
@@ -457,7 +457,7 @@ class InteractionController extends Controller
|
|
$login_user_id = $user->id;
|
|
$login_user_id = $user->id;
|
|
$dream = DreamInfoModel::find($dream_id);
|
|
$dream = DreamInfoModel::find($dream_id);
|
|
if (empty($dream)) return $this->error(ErrorCode::DREAM_NOT_EXIST);
|
|
if (empty($dream)) return $this->error(ErrorCode::DREAM_NOT_EXIST);
|
|
- if ($dream->user_id != $login_user_id) return $this->error(ErrorCode::OPERATION_FAILED);
|
|
|
|
|
|
+ if ($dream->user_id != $login_user_id) return $this->error(ErrorCode::NOT_ROOT);
|
|
$interaction = InteractionInfo::find($interaction_id);
|
|
$interaction = InteractionInfo::find($interaction_id);
|
|
if (empty($interaction)) return $this->error(ErrorCode::INTERACTION_NOT_EXIST);
|
|
if (empty($interaction)) return $this->error(ErrorCode::INTERACTION_NOT_EXIST);
|
|
$interaction->black_list = $user_id.',';
|
|
$interaction->black_list = $user_id.',';
|