@@ -242,7 +242,7 @@ class InteractionController extends Controller
$user = $this->getUser();
- $ok = CommentInfoModel::where('user_id',$user->id)->where('id',$request->id);
+ $ok = CommentInfoModel::where('user_id',$user->id)->where('id',$request->id)->delete();
if ($ok) {
return $this->api('');
@@ -19,7 +19,7 @@ class CommentInfoModel extends Model
'content',
'is_read',
];
- protected $hidden = ['dream_id','created_at','deleted_at','id'];
+ protected $hidden = ['dream_id','created_at','deleted_at'];
public function CommentUser()