Online medical communities can alleviate the imbalance of medical resources. However, the quality of information in the community varies and even contains false information. Online reputation can regulate user behavior and maintain online medical order. The research proposes a reputation reward and punishment model based on user behavior, which is used to guide users to regulate information behavior and improve the quality of medical information. The model rewards and punishes reputation according to the information release, forwarding, self-correction of information behavior and blocking of bad information. It also conducts game analysis on the interaction behavior of nodes in the community towards different quality medical information. By establishing a reputation incentive cooperation mechanism between nodes, information interaction between malicious nodes can be reduced. The experimental results show that the method can establish an incentive cooperation mechanism between nodes, and inhibit the dissemination of low-quality information.