logicShow($config); if ($msg) { // 删除关联的用户状态记录 $msg->userStatuses()->delete(); // 删除消息本身 $msg->delete(); } return true; } }