post('ids'); $ids = explode(',', $ids); if (!UserMsg::whereIn('id', $ids)->update(['status' => 1])) { return showJsonError('更新消息已读失败'); } return showJsonSucc('更新消息已读成功'); } }