Search

CN-121984942-A - Message pushing method and device, computer equipment and storage medium

CN121984942ACN 121984942 ACN121984942 ACN 121984942ACN-121984942-A

Abstract

The application discloses a message pushing method, a message pushing device, computer equipment and a storage medium, wherein the method comprises the steps of responding to a received approval request of a user, loading a code merging request page of a code hosting platform; the method comprises the steps of analyzing page data of a code merging request page and obtaining request data related to the code merging request, determining a second message user and a corresponding message pushing channel according to the request data and a preset rule set, responding to a first preset triggering event to construct a notification message containing the request data, pushing the notification message to the second approval notifying user through the message pushing channel corresponding to the second approval notifying user, responding to the second preset triggering event to construct an approval feedback message, and pushing the approval feedback message to the second feedback user through the message pushing channel corresponding to the second feedback user to improve the instantaneity of the approval notification.

Inventors

  • YAO DENGFENG

Assignees

  • 北京白龙马云行科技有限公司

Dates

Publication Date
20260505
Application Date
20251208

Claims (10)

  1. 1. A message pushing method, comprising: Responding to the received approval request sent by the first user, and loading a code merging request page of the code hosting platform; Analyzing the page data of the code merging request page, and acquiring request data associated with the code merging request; determining a second user corresponding to the first user and a message pushing channel according to the request data and a preset rule set; responding to the first user triggering a first preset event, and constructing a notification message containing the request data; Pushing the notification message to the second user through the message pushing channel corresponding to the first user; and responding to the second user triggering a second preset event, constructing an approval feedback message, and pushing the approval feedback message to the first user through the message pushing channel corresponding to the first user.
  2. 2. The message pushing method according to claim 1, wherein loading the code merge request page of the code hosting platform in response to receiving the approval request sent by the first user comprises: acquiring engineering information of a current code engineering based on the approval request, and determining an object code warehouse associated with the engineering information according to the engineering information; determining a target merging request identifier corresponding to the approval request according to the target code warehouse, if the corresponding target merging request identifier does not exist, creating a new merging request and acquiring the identifier of the new merging request as the target merging request identifier; Sending a page request instruction carrying the target merging request identifier to the code hosting platform, and acquiring page data corresponding to the target merging request identifier; And loading and displaying the code merging request page obtained through the page data rendering.
  3. 3. The method for pushing a message according to claim 2, wherein said parsing the page data of the code merge request page and obtaining the request data associated with the code merge request includes: Based on the structured node data generated in the process of rendering the code merging request page, determining page structure information of the code merging request page according to a page analysis rule corresponding to the target code hosting platform; positioning a first display area corresponding to the basic information of the merging request and a second display area corresponding to the interactive information of the merging request in the page structure information; analyzing from the first display area to obtain basic information associated with the merging request; Analyzing from the second display area to obtain interaction information associated with the merging request; the request data in a predetermined format is generated based on the basic information and the interactive information.
  4. 4. The message pushing method according to claim 3, wherein the determining the second user and the message pushing channel corresponding to the first user according to the request data and a preset rule set, wherein the preset rule set includes at least one of a second user determining rule and a pushing channel selecting rule, and the method includes: determining an event type for triggering a push message based on the basic information and the interaction information; Acquiring the corresponding second user determination rule in the preset rule set according to the event type, and identifying a target second user from the request data; Determining a message pushing channel corresponding to the target second user in a pushing channel selection rule according to the user attribute, the belonging group information and the historical message delivery preference of the target second user; and taking the target second user and the message pushing channel as receiving configuration of message pushing processing.
  5. 5. The method for pushing a message according to claim 4, wherein said constructing a notification message containing said request data in response to said first user triggering a first preset event comprises: Responding to the detection that the first preset event is triggered, and acquiring the request data corresponding to the current merging request; And constructing the notification message according to the basic information and the interaction information in the request data and a preset message format, so that the notification message at least comprises the target merging request identification for identifying the current merging request and the request data associated with the merging request.
  6. 6. The message pushing method according to claim 4, wherein the responding to the second user triggering a second preset event, constructing an approval feedback message, and pushing the approval feedback message to the first user through the message pushing channel corresponding to the first user, includes: In response to detecting that the second preset event is triggered, obtaining approval result information associated with the current approval operation; Based on the approval result information and the request data associated with the merging request, constructing an approval feedback message according to a preset message format, wherein the approval feedback message at least comprises an approval state for identifying the approval operation and the target merging request identification; And pushing the approval feedback message to the first user through the message pushing channel of the first user corresponding to the second user.
  7. 7. A message pushing method as claimed in claim 6, characterized in that the method further comprises: responding to the notification message or the approval feedback message to generate a corresponding push task, and associating the push task with the target merging request identification; Monitoring a pushing result returned by the message pushing channel in response to the completion of the pushing task; Responding to the pushing result as pushing failure, and re-executing the message pushing task; And executing the message pushing task through a standby message pushing channel in response to the retry times of the pushing task reaching a preset threshold.
  8. 8. A message pushing device, the device comprising: the page loading module is used for loading a code merging request page of the code hosting platform in response to receiving an approval request sent by the first user; the data acquisition module is used for analyzing the page data of the code merging request page and acquiring request data associated with the code merging request; the receiving configuration determining module is used for determining a second user corresponding to the first user and a message pushing channel according to the request data and a preset rule set; The notification message creation module is used for responding to the first preset event triggered by the first user and constructing a notification message containing the request data; The execution pushing module is used for pushing the notification message to the second user through the message pushing channel corresponding to the first user; And the message feedback module is used for responding to the second preset event triggered by the second user, constructing approval feedback messages and pushing the approval feedback messages to the first user through the message pushing channel corresponding to the first user.
  9. 9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 7 when the computer program is executed by the processor.
  10. 10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.

Description

Message pushing method and device, computer equipment and storage medium Technical Field The present application relates to the field of information processing technologies, and in particular, to a message pushing method, a device, a computer device, and a storage medium. Background In the research and development collaboration process, after finishing code modification, a developer needs to fill in information such as change content, risk explanation and the like in a combined application page of a webpage interface and submit approval. After submission, in order for the second user to be aware of in time, the developer is typically required to perform a number of additional operations outside the page, such as manually copying the links and descriptions of the combined application, and then switching to paste in the chat tool and send to the relevant second user. Meanwhile, the second user often needs to enter the chat tool again to manually feed back the result after the second user completes the audit. These operations involve multiple cross-page, cross-tool manual interactions, which are cumbersome and prone to omission. The current common notification mode comprises mail reminding provided by a platform or notification service built by a team, but the mail reminding has lower attention in actual work and cannot meet the requirement of real-time communication, and the self-built notification service can realize automatic access but requires additional research and development investment, server deployment and maintenance work. These approaches have significant shortcomings in terms of automation, cost, and user experience, and still fail to reduce the repetitive manual interaction operations of the developer and the second user in the approval process. Disclosure of Invention The application provides a message pushing method, a device, computer equipment and a storage medium, which can improve the real-time property of approval notification. In one aspect, the present application provides a message pushing method, including: Responding to the received approval request sent by the first user, and loading a code merging request page of the code hosting platform; analyzing page data of the code merging request page, and acquiring request data associated with the code merging request; Determining a second user corresponding to the first user and a message pushing channel according to the request data and a preset rule set; responding to a first user triggering a first preset event, and constructing a notification message containing request data; pushing the notification message to a second user through a message pushing channel corresponding to the first user; And responding to the second user triggering a second preset event, constructing an approval feedback message, and pushing the approval feedback message to the first user through a message pushing channel corresponding to the first user. In another aspect, the present application provides a message pushing device, including: the page loading module is used for loading a code merging request page of the code hosting platform in response to receiving an approval request sent by the first user; The data acquisition module is used for analyzing the page data of the code merging request page and acquiring request data associated with the code merging request; The receiving configuration determining module is used for determining a second user corresponding to the first user and a message pushing channel according to the request data and a preset rule set; the notification message creation module is used for responding to the first preset event triggered by the first user to construct a notification message containing request data; the execution pushing module is used for pushing the notification message to the second user through a message pushing channel corresponding to the first user; the message feedback module is used for responding to a second preset event triggered by a second user, constructing approval feedback messages and pushing the approval feedback messages to the first user through a message pushing channel corresponding to the first user. In yet another aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the message pushing method of the first aspect. In yet another aspect, the present application provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the message pushing method of the first aspect when executing the computer program. According to the message pushing method, the device, the computer equipment and the storage medium, after a user initiates an approval request, the method can automatically load and analyze the combined request page of the code hosting platform, extract key information related to the req