Message pushing method, message pushing device, electronic equipment and storage medium
By determining the target message category and push area associated with the user during the message push process, accurate message push is achieved, which solves the problems of interference and increased power consumption caused by users receiving irrelevant messages, and improves the pertinence and accuracy of messages.
Patent Information
- Application Number
- CN202410934248.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-11
AI Technical Summary
During the message push process, users may receive a large number of irrelevant messages, resulting in interference and increased power consumption.
By determining the target message category associated with the user and the current push area, and pushing messages when these areas overlap, we can accurately push location-related messages to users and reduce the push of irrelevant messages.
It improves the pertinence and accuracy of messages, reduces user interference and power consumption, and reduces the number of irrelevant messages pushed.
Smart Images

Figure CN118764455A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and more specifically, to a message pushing method, a message pushing device, an electronic device and a storage medium. Background Art
[0002] At present, in the process of message push, the common practice is to push messages within the user's permission to the user according to the user's permission. The problem with this method is that when more message categories need to be pushed, more irrelevant messages may be pushed to the user, which may cause greater interference to the user. Summary of the invention
[0003] The present application provides a message push method, a message push device, an electronic device and a storage medium, which can reduce the interference that may be caused to the user during the message push process.
[0004] In a first aspect, a message push method is provided, the method comprising:
[0005] determining a target message category associated with the user from at least one message category;
[0006] Determine a first push area where the user is currently located from multiple push areas;
[0007] Determine a second push area from the multiple push areas; wherein the second push area is a push area where messages of the target message category need to be pushed;
[0008] When the first push area overlaps with the second push area, messages of the target message category are pushed to the user.
[0009] In the embodiment of the present application, in the process of pushing messages to the user, the target message category associated with the user is determined from at least one message category, and the first push area where the user is currently located is determined from multiple push areas, and the second push area where the target message category needs to be pushed is determined from multiple push areas, and then, when the first push area overlaps with the second push area, the message of the target message category is pushed to the user. In this way, when the user is at a specific location, a message of the target message category corresponding to the specific location and related to the user can be pushed to the user, so that the message can be related to the user and the location of the user, thereby improving the pertinence of the message, achieving accurate message push, reducing the number of irrelevant messages pushed to the user, and further reducing the interference that may be caused to the user in the message push.
[0010] Optionally, determining the second push area from the multiple push areas includes: determining the second push area configured for the target message category from the multiple push areas; or determining the second push area from the multiple push areas based on a push range parameter corresponding to the target message category.
[0011] In an embodiment of the present application, in the process of determining the second push area, the second push area pre-configured for the target message category can be determined, or the second push area can be determined according to the push range parameters corresponding to the target message category, which can facilitate the user to flexibly set the second push area corresponding to the target message category.
[0012] Optionally, the push range parameters include a push distance, and determining the second push area from the multiple push areas based on the push range parameters corresponding to the target message category includes: determining a third push area from the multiple push areas; wherein the third push area is a push area for publishing messages of the target message category; determining the second push area from the multiple push areas; wherein the distance between the second push area and the third push area is less than or equal to the push distance.
[0013] In an embodiment of the present application, the second push area is determined based on the third push area of the target message category and the push distance corresponding to the target message category, so that the influence range of the message of the target message category does not exceed the range limited by the push distance. On the basis of improving the pertinence of the message, the influence range of the message can be effectively controlled.
[0014] Optionally, before determining the second push area from the multiple push areas based on the push range parameters corresponding to the target message category, the method also includes: determining a target message from at least one message of the target message category; wherein the target message is a message to be pushed to the user among the at least one message; and obtaining the push range parameters pre-configured for the target message.
[0015] In the embodiment of the present application, the second push area is determined according to the push range parameters corresponding to the target message, and different push range parameters can be set for different messages in the message category, so that different influence ranges can be set for different messages.
[0016] Optionally, determining the second push area configured for the target message category from the multiple push areas includes: determining a target message from at least one message of the target message category; wherein the target message is a message to be pushed to the user from the at least one message; and determining the second push area configured for the target message from the multiple push areas.
[0017] In the embodiment of the present application, during the message push process, the second push area is determined according to the push area configured for the message, which can facilitate setting corresponding push areas for different messages of the same message category.
[0018] Optionally, before determining the second push area from the multiple push areas, the method further includes: determining an area division rule corresponding to the target message category; and determining the multiple push areas obtained by dividing the spatial area based on the area division rule.
[0019] In the embodiment of the present application, different area division rules are set for different message categories, which can facilitate users to flexibly push messages of different message categories to users in different areas.
[0020] Optionally, pushing the message of the target message category to the user includes: determining a push time period corresponding to the target message category; and pushing the message of the target message category to the user when the current time is within the push time period.
[0021] In an embodiment of the present application, in the process of pushing messages to users, messages are pushed to users when the current time is within the push time period corresponding to the target message category. The message push time can be controlled to reduce the interference that may be caused to users due to inappropriate push time.
[0022] Optionally, the multiple push areas are three-dimensional push areas, and determining the first push area where the user is currently located from the multiple push areas includes: determining the longitude, latitude and altitude of the user; for each push area in the multiple push areas, if the longitude and latitude are within the longitude and latitude range corresponding to the push area, and the altitude is within the altitude range corresponding to the push area, then determining the push area as the first push area.
[0023] In the embodiment of the present application, the push area can be a three-dimensional push area, and the first push area where the user is located can be determined from multiple three-dimensional push areas according to the user's latitude, longitude and altitude. When the push area is a three-dimensional push area, it can facilitate the push of messages to users at different altitudes, thereby improving the pertinence and accuracy of message push.
[0024] In a second aspect, a message push device is provided, the device comprising:
[0025] a determination module, configured to determine a target message category associated with a user from at least one message category;
[0026] The determination module is further used to determine the first push area where the user is currently located from the multiple push areas;
[0027] The determination module is further used to determine a second push area from the multiple push areas; wherein the second push area is a push area where messages of the target message category need to be pushed;
[0028] A push module is used to push the message of the target message category to the user when the first push area overlaps with the second push area.
[0029] In a third aspect, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store executable program code; the processor is used to call and run the executable program code from the memory, so that the electronic device executes the message push method in any possible implementation of the first aspect above.
[0030] In a fourth aspect, a storage medium is provided, which stores an executable program code. When the executable program code runs on an electronic device, the electronic device executes the message push method in any possible implementation of the first aspect.
[0031] In a fifth aspect, an executable program code product is provided, which includes: an executable program code, which, when executed on an electronic device, enables the electronic device to execute the message push method in any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0033] Figure 2 This is a step flow of a message push method provided by an embodiment of the present application;
[0034] Figure 3 This is a schematic diagram of the division of a spatial area provided in an embodiment of the present application;
[0035] Figure 4 It is a schematic diagram of the operation of a message push system provided in an embodiment of the present application;
[0036] Figure 5 It is a structural diagram of a message push device provided in an embodiment of the present application;
[0037] Figure 6 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] The technical solution in the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0039] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0040] At present, in the process of message push, the common practice is to push messages within the user's permission to the user according to the user's permission. The problem with this method is that when there are many message categories that need to be pushed, some irrelevant messages may be pushed to the user. When a large number of irrelevant messages are pushed to the user, it may interfere with the user's normal work and life.
[0041] Among them, the message category can also be called a message type or a message item. Taking the message push in the park as an example, the park is, for example, a campus, and the message push scenarios involved include equipment inspection, security patrol, attendance inspection, space use, regional consultation and other different scenarios. The message categories in the security patrol scenario include security equipment alarm messages, AI analysis alarm messages, voice alarm messages, etc. The message categories in the equipment inspection scenario include equipment status messages, etc. The message categories in the attendance inspection scenario include attendance system messages, timetable system messages, class sign attendance messages, etc. The message categories in the space use scenario include meeting / classroom use messages, library / concert hall seat reservation messages, gymnasium venue reservation messages, etc. The message categories in the regional consultation scenario include security key area messages, regional activity information messages, etc.
[0042] Users on campus can be divided into equipment operation and maintenance personnel, security personnel, teaching staff, teachers and students, managers, etc. For each user, if messages of multiple message categories are pushed to the user without distinction, some messages may have no practical effect on the user, and thus may cause interference to the user. Taking teachers and students as an example, teachers and students do not need to pay attention to messages in scenarios such as equipment inspection, security patrol, and attendance inspection. If messages in these scenarios are pushed to teachers and students, it may cause great interference to their normal work and life.
[0043] In order to solve the above technical problems, an embodiment of the present application provides a message push method. During the message push process, a target message category associated with a user is first determined, and the push area where the user is located (hereinafter referred to as the first push area) is determined, as well as a push area where messages of the target message category need to be pushed (hereinafter referred to as the second push area). When the first push area overlaps with the second push area, messages of the target message category are pushed to the user.
[0044] During the message push process, when the user is in a specific location (i.e., the second push area), messages of a target message category related to the specific location and the user can be pushed to the user, so that the message can be related to the user and the user's location, improving the pertinence of the message and achieving accurate message push, thereby reducing the number of irrelevant messages pushed to the user, and further reducing the interference that may be caused to the user in the message push. In addition, when the number of pushed messages is reduced, the power consumption during the message push and reception process can be reduced.
[0045] As in the above example, the campus can be divided into multiple push areas, and associated message categories can be set for each user on campus. The message categories associated with the user are the message categories that need to be pushed to the user. For example, the message categories associated with teachers and students can include conference / classroom usage messages, library / concert hall seat reservation messages, and gymnasium venue reservation messages. The message categories associated with security personnel can include security equipment alarm messages, AI analysis alarm messages, and voice alarm messages.
[0046] Furthermore, the message categories that need to be pushed in each push area can be determined in advance, and the corresponding push areas can be configured according to the message categories. For example, when the push areas are areas used for teaching and learning such as teaching buildings, libraries, and gymnasiums, the corresponding message categories can be set to include conference / classroom usage messages, library / concert hall seat reservation messages, and gymnasium venue reservation messages, that is, the message categories that need to be pushed in push areas such as teaching buildings, libraries, and gymnasiums include conference / classroom usage messages, library / concert hall seat reservation messages, and gymnasium venue reservation messages.
[0047] In the process of pushing messages to teachers and students (i.e., users with the roles of teachers and students), target message categories associated with teachers and students can be determined from multiple message categories, a first push area where teachers and students are located can be determined from multiple push areas, and a second push area corresponding to the target message category can be determined. When the first push area overlaps with the second push area, messages of the target message category can be pushed to teachers and students. This can significantly reduce the number of messages pushed to teachers and students, thereby reducing the interference that may be caused to teachers and students during the message push process.
[0048] See also Figure 1 , Figure 1 Schematic diagram of the principle of a message push method provided by an embodiment of the present application. Figure 1 As shown, the scenario includes a service layer and a terminal layer. The service layer includes a business server, a push server, a management server, etc., and the terminal layer includes a message receiving terminal and a message publishing terminal.
[0049] Among them, the business server can manage user information and message categories, such as registering user information and configuring message categories. The message publishing terminal is a terminal for publishing messages, such as computers, mobile phones, servers and other devices that can generate and publish messages, as well as security equipment and inspection equipment and other devices that can generate and publish related messages. The management server is connected to the message publishing terminal, can receive messages published by the message publishing terminal, and forward the received messages to the push server. The message receiving terminal is a terminal for receiving messages, such as mobile phones, computers, tablet computers and other devices. The push server is connected to the message receiving terminal, and can use the message push method provided in the implementation of this application to push messages to the message receiving terminal used by the user.
[0050] In actual applications, one or more message categories can be pre-set through the business server. For example, the message categories in the security patrol scenario include security equipment alarm messages, AI analysis alarm messages, and voice alarm messages. At the same time, one or more associated message categories can be set for the user in advance based on the user's authority, age, role, and occupation. The message category associated with the user is the message category that needs to be pushed to the user. At the same time, for each message category, a corresponding push area can be configured for the message category. The above is only an illustrative example, and the specific method of setting the message category associated with the user may include but is not limited to the above example.
[0051] See also Figure 2 , Figure 2 This is a step flow of a message push method provided by an embodiment of the present application. The execution subject of the method is, for example, the push server in the above example, such as Figure 2 As shown, the method includes:
[0052] Step 201: Determine a target message category associated with a user from at least one message category.
[0053] The target message category associated with the user is the message category that needs to be pushed to the user.
[0054] Exemplarily, when the message receiving terminal needs to obtain relevant messages, it can send a message request to the push server, and the message request includes the identity of the user using the message receiving terminal. After receiving the message request, the push server can determine at least one target message category associated with the user from one or more pre-set message categories according to the user's identity.
[0055] As in the above example, when the user is a teacher or student, the message categories pre-configured for the user include conference / classroom usage messages, library / concert hall seat reservation messages, and gymnasium venue reservation messages. When the user is determined to be a teacher or student based on the user's identity, the target message categories can be determined to include the three message categories of conference / classroom usage messages, library / concert hall seat reservation messages, and gymnasium venue reservation messages.
[0056] Step 202: Determine a first push area where the user is currently located from multiple push areas.
[0057] Exemplarily, the spatial area affected by the message can be divided in advance to divide the spatial area into multiple push areas. In the process of sending a message request to the push server, the message receiving end can locate the location of the message receiving end to obtain location information, and the location of the message receiving end is the location of the user. Then, a message request including location information can be sent to the push server. Correspondingly, after receiving the message request, the push server can determine the first push area where the user is currently located from multiple push areas according to the location information in the message request.
[0058] like Figure 3 As shown, Figure 3 : is a schematic diagram of the division of a spatial region provided in an embodiment of the present application. The campus is located in a spatial region 300 defined by longitude X1, longitude X2, latitude Y1, and latitude Y2. In the process of dividing the spatial region 300, the longitude range and latitude range of the spatial region 300 can be determined. The longitude range is the spatial range between longitude X1 and longitude X2, and the latitude range is the spatial range between latitude Y1 and latitude Y2. The longitude range and latitude range can be divided into equal intervals to divide the spatial region 300 into Figure 3 The (13×11) push areas shown.
[0059] Alternatively, the spatial area 300 may be divided according to the buildings in the spatial area 300. For example, the area where the school gate is located may be divided into a push area, and the playground, lake, library, gymnasium, teaching building and laboratory building may be divided into a push area respectively. It should be understood that the above are only exemplary examples, and the specific method of dividing the spatial area may include but is not limited to the above examples.
[0060] Optionally, the user's location information may include the user's latitude and longitude information (including longitude and latitude). After acquiring the user's location information, for multiple push areas, if the user's longitude and latitude are within a certain push area, the push area is determined to be the first push area.
[0061] Step 203: Determine a second push area from multiple push areas.
[0062] The second push area is a push area for messages of a target message category.
[0063] Exemplarily, after receiving the message request, the push server can determine the second push area where the target message category needs to be pushed from multiple push areas. In combination with the above example, the message categories associated with security personnel include security equipment alarm messages, AI analysis alarm messages, and voice alarm messages. When the user is a security personnel, the push areas corresponding to the security equipment alarm messages, AI analysis alarm messages, and voice alarm messages can be pre-set as push area 301, push area 302, push area 303, and push area 304. In this way, after determining that the target message categories associated with the user include security equipment alarm messages, AI analysis alarm messages, and voice alarm messages, it can be determined that the second push area includes push area 301, push area 302, push area 303, and push area 304.
[0064] For another example, when the spatial area 300 is divided according to the buildings in the spatial area 300, the push area for the message categories such as conference / classroom usage messages, library / concert hall seat reservation messages, and gymnasium venue reservation messages that need to be pushed can be set to include teaching buildings, libraries, laboratory buildings, and gymnasiums. In the case where the message categories associated with teachers and students are pre-set to include conference / classroom usage messages, library / concert hall seat reservation messages, and gymnasium venue reservation messages, when it is determined that the user is a teacher or student, it can be determined that the second push area includes all teaching buildings, libraries, laboratory buildings, and gymnasiums in the spatial area 300.
[0065] Step 204: When the first push area and the second push area overlap, push messages of the target message category to the user.
[0066] In this embodiment, after determining the first push area and the second push area, it can be determined whether the first push area overlaps with the second push area. If the first push area and the second push area overlap, it can be determined that the first push area where the user is currently located is the second push area where messages of the target message category need to be pushed, and messages of the target message category can be pushed to the user. For example, when the user is a security personnel, it can be determined that the second push area includes push area 301, push area 302, push area 303, and push area 304. At this time, if the first push area is one of push area 301, push area 302, push area 303, and push area 304, it can be determined that the first push area overlaps with the second push area, and messages of the target message category such as security equipment alarm messages, AI analysis alarm messages, and voice alarm messages can be pushed to the user.
[0067] For another example, when the user is a teacher or student, and the second push area is determined to include a teaching building, a library, a laboratory building and a gymnasium, if the first push area where the user is located is one of the teaching building, the library, the laboratory building and the gymnasium, it can be determined that the first push area overlaps with the second push area. At this time, messages of target message categories such as meeting / classroom usage messages, library / concert hall seat reservation messages, and gymnasium venue reservation messages can be pushed to the user.
[0068] In the embodiment of the present application, in the process of pushing messages to the user, the target message category associated with the user is determined from at least one message category, and the first push area where the user is currently located is determined from multiple push areas, and the second push area where the target message category needs to be pushed is determined from multiple push areas, and then, when the first push area overlaps with the second push area, the message of the target message category is pushed to the user. In this way, when the user is at a specific location, a message of the target message category corresponding to the specific location and related to the user can be pushed to the user, so that the message can be related to the user and the location of the user, thereby improving the pertinence of the message, achieving accurate message push, reducing the number of irrelevant messages pushed to the user, and further reducing the interference that may be caused to the user in the message push.
[0069] Optionally, the step of determining the second push area from the multiple push areas may include:
[0070] determining a second push zone configured for the target message category from among the plurality of push zones;
[0071] Alternatively, based on the push range parameter corresponding to the target message category, the second push area is determined from multiple push areas.
[0072] In one embodiment, a corresponding push area may be pre-configured for each message category. As described above, when it is necessary to push messages of the three message categories of security device alarm messages, AI analysis alarm messages, and voice alarm messages to users in push area 301, push area 302, push area 303, and push area 304, the push areas corresponding to the three message categories may be pre-set to include push area 301, push area 302, push area 303, and push area 304.
[0073] In this way, when it is determined that the target message categories include security equipment alarm messages, AI analysis alarm messages and voice alarm messages, it can be determined that the second push area includes push area 301, push area 302, push area 303 and push area 304.
[0074] In another embodiment, a corresponding push range parameter may be set in advance for each message category, and the push range parameter is used to limit the impact range of the message. In the process of determining the second push area, the second push area may be determined from multiple push areas according to the push range parameter of the target message category. For example, multiple push areas in a spatial area may be classified, and a corresponding area type may be set for each push area. The push range parameter may be type information of the second push area. Figure 3 As shown, the area types of push areas 301 to 304 can be set as security areas, the area types of the push areas where the library and the gymnasium are located can be set as teaching areas, and the area type of the push area where the lake is located can be set as leisure areas.
[0075] Taking the security device alarm message as an example, the push range parameter corresponding to the security device alarm message can be set as the type information of the security area. When it is determined that the target message category includes the security device alarm message, the push range parameter pre-configured for the security device alarm message can be determined first, and the push range parameter is the type information of the security area. Then, according to the type information of the security area, the push area 301 to the push area 304 with the area type of the security area can be determined from the multiple push areas as the second push area.
[0076] It should be understood that the above are merely illustrative examples, and specific types of push range parameters may include but are not limited to the above examples.
[0077] In an embodiment of the present application, in the process of determining the second push area, the second push area pre-configured for the target message category can be determined, or the second push area can be determined according to the push range parameters corresponding to the target message category, which can facilitate the user to flexibly set the second push area corresponding to the target message category.
[0078] Optionally, the push range parameter includes a push distance, and the step of determining the second push area from multiple push areas based on the push range parameter corresponding to the target message category may include:
[0079] Determining a third push area from the plurality of push areas; wherein the third push area is a push area for publishing messages of the target message category;
[0080] A second push area is determined from the plurality of push areas; wherein a distance between the second push area and the third push area is less than or equal to the push distance.
[0081] In some embodiments, the push range parameter may be a push distance. In the process of determining the second push area, the second push area may be determined from multiple push areas according to the push distance and the push area of the target message category. For example, for the message category of the venue reservation message of the gymnasium, the corresponding push distance may be preset to 200 meters. The venue reservation message of the gymnasium may be published by the message publishing terminal in the gymnasium.
[0082] In the process of determining the second push area, if it is determined that the target message category includes a stadium venue reservation message, the stadium that publishes the stadium venue reservation message can first be determined as the third push area from multiple push areas, and the push distance corresponding to the venue reservation message stored in advance can be obtained. After that, a circle center area with a radius of 200 meters with the stadium as the center can be determined from the spatial area, and the push area located in the circle center area can be determined as the second push area.
[0083] In an embodiment of the present application, the second push area is determined based on the third push area of the target message category and the push distance corresponding to the target message category, so that the influence range of the message of the target message category does not exceed the range limited by the push distance. On the basis of improving the pertinence of the message, the influence range of the message can be effectively controlled.
[0084] Optionally, before determining the second push area from the multiple push areas based on the push range parameter corresponding to the target message category, the method may further include:
[0085] Determining a target message from at least one message of a target message category; wherein the target message is a message to be pushed to a user from the at least one message;
[0086] The push scope parameters pre-configured for the target message are obtained.
[0087] In some embodiments, different push range parameters may be configured for different messages in the same message category, and the push range parameter corresponding to the target message category may be a push range parameter of a target message to be pushed to a user from messages of at least one target message category currently available. Before determining the second push area, the target message to be pushed to the user may be determined from messages of at least one target message category currently available, and the push range parameter pre-configured for the target message may be obtained, and the second push area may be determined according to the push range parameter.
[0088] Optionally, the target message to be pushed to the user may be the latest message among messages of at least one target message category, or a message among messages of at least one target message category that has not yet been pushed to the user.
[0089] Exemplarily, for each message category, the push server can establish a message queue corresponding to the message category, and store messages of the message category through the message queue. Taking the venue reservation message of the gymnasium as an example, the push server can establish a corresponding message queue, and when storing each venue reservation message received, a timestamp can be set for the venue reservation message, and each venue reservation message is stored in the order of the timestamp, and the timestamp is the generation time of the venue reservation message.
[0090] When the target message is the latest message, when it is determined that the target message category includes a venue reservation message, the target message with a timestamp adjacent to the current time can be obtained from the message queue corresponding to the venue reservation message. Then, the push distance pre-configured for the target message can be obtained, and the second push area can be determined based on the push distance. Alternatively, when the target message is a message that has not been pushed to the user, the target message that has not been pushed to the user can be obtained from the message queue corresponding to the venue reservation message, the push distance pre-configured for the target message can be obtained, and the second push area can be determined based on the push distance.
[0091] In the embodiment of the present application, the second push area is determined according to the push range parameters corresponding to the target message, and different push range parameters can be set for different messages in the message category, so that different influence ranges can be set for different messages.
[0092] Optionally, determining a second push area configured for a target message category from a plurality of push areas includes:
[0093] Determining a target message from at least one message of a target message category; wherein the target message is a message to be pushed to a user from the at least one message;
[0094] A second push zone configured for the target message is determined from the plurality of push zones.
[0095] In another embodiment, different push areas may be configured for different messages in the same message category, and the second push area configured for the target message category may be a push area for the target message to be pushed to the user among the messages of at least one target message category currently available. Before determining the second push area, the target message to be pushed to the user may be determined from the messages of at least one target message category currently available, and the push area pre-configured for the target message may be obtained, and the push area pre-configured for the target message may be determined as the second push area.
[0096] In the embodiment of the present application, during the message push process, the second push area is determined according to the push area configured for the message, which can facilitate setting corresponding push areas for different messages of the same message category.
[0097] Optionally, before determining the second push area from the multiple push areas, the method may further include:
[0098] Determine the regional division rules corresponding to the target message category;
[0099] A plurality of push areas are determined by dividing the spatial area based on an area division rule.
[0100] In some embodiments, for different message categories, different area division rules may be used to divide the spatial area to obtain multiple push areas corresponding to each message category. Before determining the first push area and the second push area, multiple push areas divided based on the area division rules corresponding to the target message category may be pre-determined, and then the first push area and the second push area are determined from the multiple push areas.
[0101] For example, for a seat reservation message for a library or concert hall, you can use Figure 3 The area division rule shown (the area division rule may be marked as the first area division rule) divides the space area 300 into multiple push areas. For the venue reservation message of the gymnasium, the area division rule (the area division rule may be marked as the second area division rule) is to divide the space area 300 according to the buildings in the space area 300, and divide the space area 300 into multiple push areas.
[0102] Before determining the first push area and the second push area, for seat reservation messages, the first area division rule corresponding to the seat reservation message can be determined, and multiple push areas divided according to the first area division rule can be determined, and then the first push area and the second push area can be determined from the multiple push areas. For venue reservation messages, the second area division rule corresponding to the venue reservation message can be determined, and then multiple push areas divided according to the second area division rule can be determined, and then the first push area and the second push area can be determined from the multiple push areas. For seat reservation messages and venue reservation messages, since the two message categories correspond to different area division rules, different first push areas and second push areas can be determined for the two message categories.
[0103] Afterwards, for the venue reservation message, the venue reservation message can be pushed to the user when the determined first push area overlaps with the second push area. For the seat reservation message, the seat reservation message can be pushed to the user when the determined first push area overlaps with the second push area.
[0104] In the embodiment of the present application, different area division rules are set for different message categories, which can facilitate users to flexibly push messages of different message categories to users in different areas.
[0105] Optionally, push messages of target message categories to the user, including:
[0106] Determine the push time period corresponding to the target message category;
[0107] When the current time is within the push time period, messages of the target message category are pushed to the user.
[0108] In one embodiment, corresponding push time periods may be set for different message categories, so that corresponding messages are pushed to users within the push time periods corresponding to the message categories. Taking the seat reservation message of the library / concert hall as an example, the push time period for the seat reservation message may be set from 12 noon to 2 pm every day, and from 18 pm to 10 pm after school every day. When the target message category is a seat reservation message, in the process of pushing the seat reservation message to the user, the push time period pre-set for the seat reservation message may be obtained, and the current time may be determined. If the current time is within the push time period, the target message is obtained from the message queue corresponding to the seat reservation message, and then the target message is pushed to the user. On the contrary, if the current time is not within the push time period, the target message is not pushed to the user.
[0109] In an embodiment of the present application, in the process of pushing messages to users, messages are pushed to users when the current time is within the push time period corresponding to the target message category. The message push time can be controlled to reduce the interference that may be caused to users due to inappropriate push time.
[0110] Optionally, the multiple push areas are three-dimensional push areas, and determining a first push area where the user is currently located from the multiple push areas includes:
[0111] Determine the user's latitude, longitude and altitude;
[0112] For each of the multiple push areas, if the longitude and latitude are within the longitude and latitude range corresponding to the push area, and the altitude is within the altitude range corresponding to the push area, the push area is determined as the first push area.
[0113] In some embodiments, the spatial region may be a three-dimensional spatial region. Figure 3 Taking the campus shown as an example, the spatial region includes a three-dimensional spatial region between longitude X1 and longitude X2, between latitude Y1 and latitude Y2, and between height H1 and height H2 (not shown in the figure), height H1 can be the lowest altitude in the campus, and height H2 can be the highest altitude in the campus. In the division process, an octree cutting method can be used to divide the three-dimensional spatial region into multiple three-dimensional grids, each three-dimensional grid is a push area, and a unique area identifier can be set for each three-dimensional grid.
[0114] In the process of determining the first push area, the user's location information can be obtained, and the location information includes the user's longitude and latitude, and the user's height (i.e., altitude). Then, the three-dimensional grid where the user's longitude, latitude, and altitude are located can be determined from multiple three-dimensional grids, and the three-dimensional grid is the first push area. The three-dimensional grid where the longitude, latitude, and altitude are located refers to the longitude being within the longitude range of the three-dimensional grid, the latitude being within the latitude range of the three-dimensional grid, and the altitude being within the altitude range of the three-dimensional grid.
[0115] Similarly, for each message category, a three-dimensional grid corresponding to the message category can be set, and the three-dimensional grid corresponding to the message category is the push area where the message category needs to be pushed. In the process of determining the second push area, the three-dimensional grid corresponding to the target message category can be determined, that is, the second push area.
[0116] In the embodiment of the present application, the push area can be a three-dimensional push area, and the first push area where the user is located can be determined from multiple three-dimensional push areas according to the user's latitude, longitude and altitude. When the push area is a three-dimensional push area, it can facilitate the push of messages to users at different altitudes, thereby improving the pertinence and accuracy of message push.
[0117] See also Figure 4 , Figure 4 Schematic diagram of the operation of a message push system provided in an embodiment of the present application. The system includes a business server, a push server and a user terminal, as well as a management server not shown. The user terminal is Figure 1 The message receiving end is shown in FIG. Figure 4 As shown, the method includes:
[0118] Step 401: Perform spatial modeling on the spatial region.
[0119] Step 402: Divide the spatial area into regions.
[0120] In this embodiment, the push server can pre-model the spatial region to obtain a three-dimensional spatial model corresponding to the spatial region, and divide the three-dimensional spatial model into regions to divide the three-dimensional spatial model into multiple three-dimensional push regions. The three-dimensional spatial model can be divided using the octree cutting method described above.
[0121] Step 403: Create a message category.
[0122] Step 404: configure a corresponding push area for the message category.
[0123] Step 405: Store the push area corresponding to the message category.
[0124] In this embodiment, the system maintenance personnel can create one or more message categories through the business server, configure the corresponding push area for each message category in the push server, and store the message category and the corresponding push area in the push server. At the same time, the management server can create a message queue corresponding to the message category, receive the message sent by the message publisher, and store each message in the corresponding message queue.
[0125] Step 406: Send a message request to the push server.
[0126] Step 407: Determine the first push area where the user is located.
[0127] Step 408: Determine the target message category associated with the user.
[0128] Step 409: Determine a second push area corresponding to the target message category.
[0129] Step 410: When the first push area and the second push area overlap, push messages of the target message category to the user.
[0130] In this embodiment, during the message push process, the user terminal may send a message request to the push server, and the message request may include the user's location information. After receiving the message request, the push server may determine one or more target message categories from at least one stored message category based on the user's authority, identity representation, and age. For each target message category, it can be determined that the target message category corresponds to multiple push areas, and the multiple push areas corresponding to the target message category are multiple push areas obtained by dividing based on the area division rules corresponding to the target message category. Afterwards, the first push area where the user is located can be determined from the multiple push areas based on the location information in the message request, and the second push area corresponding to the target message category can be determined from the multiple push areas. Finally, when the first push area overlaps with the second push area, messages of the target message category are pushed to the user, and when the first push area does not overlap with the second push area, messages of the target message category are not pushed to the user.
[0131] Combination of the above Figures 1 to 4 The message push method provided by the embodiment of the present application is described in detail; Figure 5 and Figure 6 The device embodiments of the present application are described in detail. It should be understood that the device in the embodiments of the present application can execute the various methods of the aforementioned embodiments of the present application, that is, the specific working processes of the following various products can refer to the corresponding processes in the aforementioned method embodiments.
[0132] Figure 5 Schematic diagram of a message push device provided in an embodiment of the present application. Figure 5 As shown, the message push device 500 includes:
[0133] A determination module 501, configured to determine a target message category associated with a user from at least one message category;
[0134] The determining module 501 is further configured to determine a first push area where the user is currently located from among multiple push areas;
[0135] The determination module 501 is further used to determine a second push area from the multiple push areas; wherein the second push area is a push area where messages of the target message category need to be pushed;
[0136] The push module 502 is configured to push the message of the target message category to the user when the first push area overlaps with the second push area.
[0137] Optionally, the determination module 501 is specifically configured to determine the second push area configured for the target message category from the multiple push areas; or, based on a push range parameter corresponding to the target message category, determine the second push area from the multiple push areas.
[0138] Optionally, the push range parameters include a push distance, and the determination module 501 is specifically used to determine a third push area from the multiple push areas; wherein the third push area is a push area for publishing messages of the target message category; the second push area is determined from the multiple push areas; wherein the distance between the second push area and the third push area is less than or equal to the push distance.
[0139] Optionally, the determination module 501 is also used to determine a target message from at least one message of the target message category; wherein the target message is a message to be pushed to the user from the at least one message; and obtain the push range parameters pre-configured for the target message.
[0140] Optionally, the determination module 501 is specifically used to determine the target message from at least one message of the target message category; wherein the target message is the message to be pushed to the user in the at least one message; and determine the second push area configured for the target message from the multiple push areas.
[0141] Optionally, the determination module 501 is further configured to determine a region division rule corresponding to the target message category; and determine the multiple push regions obtained by dividing the spatial region based on the region division rule.
[0142] Optionally, the push module 502 is specifically configured to determine a push time period corresponding to the target message category; and when the current time is within the push time period, push messages of the target message category to the user.
[0143] Optionally, the multiple push areas are three-dimensional push areas, and the determination module 501 is specifically used to determine the longitude, latitude and altitude of the user; for each push area among the multiple push areas, if the longitude and latitude are within the longitude and latitude range corresponding to the push area, and the altitude is within the altitude range corresponding to the push area, then the push area is determined as the first push area.
[0144] It should be noted that the message push device 500 is implemented in the form of a functional unit. The term "module" here can be implemented in the form of software and / or hardware, and is not specifically limited to this.
[0145] For example, a "module" may be a software program, a hardware circuit, or a combination of the two that implements the above functions. The hardware circuit may include an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor, or a group processor, etc.) and a memory for executing one or more software or firmware programs, a combined logic circuit, and / or other suitable components that support the described functions.
[0146] Therefore, the units of each example described in the embodiments of the present application can be implemented by electronic hardware, or a combination of electronic equipment software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0147] In this embodiment, the functional modules of the device can be divided according to the above method example. For example, each functional module can be corresponded, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0148] It should be understood that the device provided in this embodiment is used to execute the above-mentioned message pushing method, and thus can achieve the same effect as the above-mentioned implementation method.
[0149] In the case of an integrated unit, the device may include a processing module and a storage module. The processing module may be a processor or a controller, which may implement or execute various exemplary logic blocks, modules and circuits shown in conjunction with the disclosure of the present application. The processor may also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module may be a memory.
[0150] In addition, the device provided in the embodiments of the present application may specifically be a chip, component or module, and the chip may include a connected processor and memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute a message push method provided in the above embodiments.
[0151] The present application also provides a storage medium, in which executable program code is stored. When the executable program code is run on an electronic device, the electronic device executes the above-mentioned related method steps to implement a message push method provided in the above-mentioned embodiment. Among them, the electronic device readable storage medium may include but is not limited to any type of disk, including floppy disk, optical disk, Digital Video Disc (DVD), Compact Disc Read-Only Memory (CD-ROM), micro drive and magneto-optical disk, Read-Only Memory (ROM), Random Access Memory (RAM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable read only memory (EEPROM), Dynamic Random Access Memory (DRAM), Video Random Access Memory (VRAM), flash memory device, magnetic card or optical card, nano system (including molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.
[0152] The present application also provides an executable program code product. When the executable program code product is run on an electronic device, the electronic device executes the above-mentioned related steps to implement a message push method provided in the above-mentioned embodiment.
[0153] Among them, the storage medium, executable program code product or chip provided in this application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0154] Figure 6 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device is, for example, the push server in the above example.
[0155] For example, Figure 6 As shown, the electronic device 600 includes: a memory 610 and a processor 620, wherein the memory 610 stores an executable program code 630, and the processor 620 is used to call and execute the executable program code 630 to perform a message push method.
[0156] Exemplarily, the memory 610 can be used to store relevant programs of the message push method provided in the embodiments of the present application; the processor 620 can call the relevant programs of the message push method stored in the memory 610 to execute the message push method in the embodiments of the present application.
[0157] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0158] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0159] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A message push method, characterized in that: The method comprises: determining a target message category associated with the user from at least one message category; Determine a first push area where the user is currently located from multiple push areas; Determine a second push area from the multiple push areas; wherein the second push area is a push area where messages of the target message category need to be pushed; When the first push area overlaps with the second push area, messages of the target message category are pushed to the user.
2. The method according to claim 1, characterized in that The determining a second push area from the multiple push areas comprises: determining the second push area configured for the target message category from the plurality of push areas; Alternatively, based on the push range parameter corresponding to the target message category, the second push area is determined from the multiple push areas.
3. The method according to claim 2, characterized in that The push range parameter includes a push distance, and determining the second push area from the multiple push areas based on the push range parameter corresponding to the target message category includes: Determine a third push area from the multiple push areas; wherein the third push area is a push area for publishing messages of the target message category; The second push area is determined from the multiple push areas; wherein a distance between the second push area and the third push area is less than or equal to the push distance.
4. The method according to claim 2, characterized in that Before determining the second push area from the multiple push areas based on the push range parameter corresponding to the target message category, the method further includes: Determining a target message from at least one message of the target message category; wherein the target message is a message to be pushed to the user among the at least one message; The push scope parameters pre-configured for the target message are obtained.
5. The method according to claim 2, characterized in that The determining the second push area configured for the target message category from the multiple push areas includes: Determining a target message from at least one message of the target message category; wherein the target message is a message to be pushed to the user among the at least one message; The second push zone configured for the target message is determined from among the plurality of push zones.
6. The method according to claim 1, characterized in that Before determining the second push area from the multiple push areas, the method further includes: Determine the area division rule corresponding to the target message category; The plurality of push areas obtained by dividing the spatial area based on the area division rule is determined.
7. The method according to claim 1, characterized in that The pushing of the message of the target message category to the user includes: Determine the push time period corresponding to the target message category; When the current time is within the push time period, messages of the target message category are pushed to the user.
8. The method according to claim 1, characterized in that The multiple push areas are three-dimensional push areas, and determining the first push area where the user is currently located from the multiple push areas includes: Determining the latitude, longitude and altitude of the user; For each push area among the multiple push areas, if the longitude and latitude are within the longitude and latitude range corresponding to the push area, and the altitude is within the altitude range corresponding to the push area, the push area is determined as the first push area.
9. A message push device, characterized in that: The device comprises: a determination module, configured to determine a target message category associated with a user from at least one message category; The determination module is further used to determine the first push area where the user is currently located from multiple push areas; The determination module is further used to determine a second push area from the multiple push areas; wherein the second push area is a push area where messages of the target message category need to be pushed; A push module is used to push the message of the target message category to the user when the first push area overlaps with the second push area.
10. An electronic device, characterized in that: include: A memory for storing executable program codes; A processor, configured to call and run the executable program code from the memory, so that the electronic device executes the message push method as described in any one of claims 1 to 8.
11. A storage medium, characterized in that: The storage medium stores executable program codes, and when the executable program codes are executed, the message pushing method according to any one of claims 1 to 8 is implemented.
