CN118803037A - Message processing method, device, electronic device, storage medium and program product - Google Patents
Message processing method, device, electronic device, storage medium and program product Download PDFInfo
- Publication number
- CN118803037A CN118803037A CN202410623956.0A CN202410623956A CN118803037A CN 118803037 A CN118803037 A CN 118803037A CN 202410623956 A CN202410623956 A CN 202410623956A CN 118803037 A CN118803037 A CN 118803037A
- Authority
- CN
- China
- Prior art keywords
- subscription
- message
- level
- request
- terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 21
- 238000012545 processing Methods 0.000 claims abstract description 39
- 238000000034 method Methods 0.000 claims description 90
- 230000002452 interceptive effect Effects 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 14
- 238000004891 communication Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 8
- 230000003993 interaction Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000007726 management method Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000007246 mechanism Effects 0.000 description 3
- 239000000203 mixture Substances 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 230000011664 signaling Effects 0.000 description 3
- 238000013524 data verification Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 206010048669 Terminal state Diseases 0.000 description 1
- 238000007792 addition Methods 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000000354 decomposition reaction Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000006798 recombination Effects 0.000 description 1
- 238000005215 recombination Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域Technical Field
本公开涉及通信技术领域,尤其涉及一种消息处理方法、装置、电子设备、存储介质和程序产品。The present disclosure relates to the field of communication technology, and in particular to a message processing method, device, electronic device, storage medium and program product.
背景技术Background Art
目前,关于消息的处理方式主要是采用将所有相关的通知消息全部推送到终端侧进行订阅处理,以得到订阅消息。然而,这样的消息处理方式比较单一固化,不适用于多种应用场景。同时,现有的消息处理采用的是全量数据,容易造成网络拥塞,降低了处理效率。At present, the main way to process messages is to push all relevant notification messages to the terminal side for subscription processing to obtain subscription messages. However, this message processing method is relatively single and rigid, and is not suitable for a variety of application scenarios. At the same time, the existing message processing uses full data, which is easy to cause network congestion and reduce processing efficiency.
发明内容Summary of the invention
鉴于上述问题而提出了本公开。本公开提供了一种消息处理方法、装置、电子设备、存储介质和程序产品。The present disclosure is proposed in view of the above problems. The present disclosure provides a message processing method, device, electronic device, storage medium and program product.
根据本公开的第一方面,提供了一种消息处理方法,应用于终端,方法包括:获取终端当前的状态信息;基于状态信息,向订阅平台发送第一请求;第一请求携带状态信息或订阅消息的属性信息;接收来自于订阅平台的第一消息。According to a first aspect of the present disclosure, a message processing method is provided, which is applied to a terminal, and the method includes: obtaining current status information of the terminal; based on the status information, sending a first request to a subscription platform; the first request carries status information or attribute information of the subscription message; and receiving a first message from the subscription platform.
此外,根据本公开第一方面的方法,状态信息包括如下至少一种:屏幕状态、电量状态、网络状态。In addition, according to the method of the first aspect of the present disclosure, the status information includes at least one of the following: screen status, battery status, and network status.
此外,根据本公开第一方面的方法,基于状态信息,向订阅平台发送第一请求,包括:基于状态信息,在预设的订阅级别中确定终端当前对应的目标级别;订阅级别用于指示订阅消息的重要程度;向订阅平台发送第一请求,第一请求携带订阅消息的属性信息;属性信息包括如下至少一种:目标级别、目标级别对应的消息标识。In addition, according to the method of the first aspect of the present disclosure, based on the status information, a first request is sent to the subscription platform, including: based on the status information, determining the target level currently corresponding to the terminal in the preset subscription level; the subscription level is used to indicate the importance of the subscription message; sending a first request to the subscription platform, the first request carries attribute information of the subscription message; the attribute information includes at least one of the following: target level, message identifier corresponding to the target level.
此外,根据本公开第一方面的方法,目标级别对应的消息标识,包括:第一集合中的消息标识;其中,第一集合为目标级别对应的消息集合;第二集合中的消息标识;其中,第二集合为重要程度高于目标级别的其他订阅级别对应的消息集合;其中,按照重要程度降序排序,订阅级别依次包括如下至少一种:第一级别、第二级别、第三级别、第四级别;其中,第一级别对应于关键消息层的订阅消息;第二级别对应于一般消息层的订阅消息;第三级别对应于互动消息层的订阅消息;第四级别对应于可忽略消息层的订阅消息。In addition, according to the method of the first aspect of the present disclosure, the message identifiers corresponding to the target level include: message identifiers in the first set; wherein the first set is the message set corresponding to the target level; message identifiers in the second set; wherein the second set is the message set corresponding to other subscription levels with higher importance than the target level; wherein, sorted in descending order of importance, the subscription levels include at least one of the following: first level, second level, third level, fourth level; wherein the first level corresponds to subscription messages of the key message layer; the second level corresponds to subscription messages of the general message layer; the third level corresponds to subscription messages of the interactive message layer; and the fourth level corresponds to subscription messages of the ignorable message layer.
此外,根据本公开第一方面的方法,基于状态信息,在预设的订阅级别中确定终端当前对应的目标级别,包括:当屏幕状态为息屏状态时,确定目标级别为第一级别;或者,当屏幕状态为亮屏状态时,确定目标级别为第三级别。In addition, according to the method of the first aspect of the present disclosure, based on the status information, the target level currently corresponding to the terminal is determined in the preset subscription level, including: when the screen status is the screen-off state, determining the target level as the first level; or, when the screen status is the screen-on state, determining the target level as the third level.
此外,根据本公开第一方面的方法,当终端当前的屏幕状态为由息屏状态转为亮屏状态时,方法还包括:向订阅平台发送第二请求,第二请求用于请求订阅平台反馈息屏状态期间的未订阅消息;未订阅消息包括:第二级别和/或第三级别的消息;接收来自于订阅平台的第二消息。In addition, according to the method of the first aspect of the present disclosure, when the current screen state of the terminal changes from the screen-off state to the screen-on state, the method also includes: sending a second request to the subscription platform, the second request is used to request the subscription platform to feedback unsubscribed messages during the screen-off state; the unsubscribed messages include: second-level and/or third-level messages; receiving a second message from the subscription platform.
此外,根据本公开第一方面的方法,第一请求用于请求订阅第一消息;和/或,第三请求用于请求取消订阅第三消息,第三消息为已订阅的与状态信息不符的消息。In addition, according to the method of the first aspect of the present disclosure, the first request is used to request subscription to a first message; and/or, the third request is used to request cancellation of subscription to a third message, where the third message is a subscribed message that does not match the status information.
根据本公开的第一方面,提供了一种消息处理方法,应用于订阅平台,方法包括:接收来自于终端的第一请求;第一请求携带终端的状态信息或订阅消息的属性信息;基于第一请求,更新订阅平台中维护的订阅关系;当接收到任意一个第一消息时,基于订阅关系,向目标终端发送第一消息。According to the first aspect of the present disclosure, a message processing method is provided, which is applied to a subscription platform, and the method includes: receiving a first request from a terminal; the first request carries status information of the terminal or attribute information of a subscription message; based on the first request, updating a subscription relationship maintained in the subscription platform; when any first message is received, sending a first message to a target terminal based on the subscription relationship.
此外,根据本公开第二方面的方法,方法还包括:以位图形式,维护订阅关系;其中,订阅关系以任意一个第一用户的用户标识为键,以第二用户的用户标识为值进行存储;其中,第一用户与第二用户具备订阅关系;其中,订阅关系包括:订阅者关系与被订阅者关系。In addition, according to the method of the second aspect of the present disclosure, the method also includes: maintaining a subscription relationship in the form of a bitmap; wherein the subscription relationship is stored with the user identifier of any first user as the key and the user identifier of the second user as the value; wherein the first user and the second user have a subscription relationship; wherein the subscription relationship includes: a subscriber relationship and a subscribed relationship.
此外,根据本公开第二方面的方法,基于第一请求,更新订阅平台中维护的订阅关系,包括:基于第一请求,确定第一请求对应的第三用户;第三用户为第一请求所指示的订阅对象;建立终端对应的第一用户与第三用户之间的订阅关系;其中,订阅关系包括:订阅者关系与被订阅者关系;在订阅平台中存储订阅关系。In addition, according to the method of the second aspect of the present disclosure, based on the first request, the subscription relationship maintained in the subscription platform is updated, including: based on the first request, determining the third user corresponding to the first request; the third user is the subscription object indicated by the first request; establishing a subscription relationship between the first user corresponding to the terminal and the third user; wherein the subscription relationship includes: a subscriber relationship and a subscribed relationship; and storing the subscription relationship in the subscription platform.
此外,根据本公开第二方面的方法,基于第一请求,确定第一请求对应的第三用户,包括:基于第一请求的订阅类型,获取订阅类型对应的联系人集合;基于联系人集合,确定第三用户;其中,订阅类型包括如下至少一种:联系人订阅、企业订阅和成员订阅。In addition, according to the method of the second aspect of the present disclosure, based on the first request, determining the third user corresponding to the first request includes: based on the subscription type of the first request, obtaining a contact set corresponding to the subscription type; based on the contact set, determining the third user; wherein the subscription type includes at least one of the following: contact subscription, enterprise subscription, and member subscription.
此外,根据本公开第二方面的方法,基于订阅关系,向目标终端发送第一消息,包括:基于订阅关系,确定第一消息对应的目标终端;获取各目标终端当前对应的目标级别;当第一消息属于目标级别时,向目标终端发送第一消息。In addition, according to the method of the second aspect of the present disclosure, a first message is sent to the target terminal based on a subscription relationship, including: determining the target terminal corresponding to the first message based on the subscription relationship; obtaining the target level currently corresponding to each target terminal; and when the first message belongs to the target level, sending the first message to the target terminal.
此外,根据本公开第二方面的方法,方法还包括:基于第一请求中携带的状态消息,确定在预设的订阅级别中确定终端当前对应的目标级别;订阅级别用于指示订阅消息的重要程度;缓存或更新目标级别。In addition, according to the method of the second aspect of the present disclosure, the method also includes: determining the target level currently corresponding to the terminal in the preset subscription level based on the status message carried in the first request; the subscription level is used to indicate the importance of the subscription message; caching or updating the target level.
此外,根据本公开第二方面的方法,基于第一请求中携带的状态消息,确定在预设的订阅级别中确定终端当前对应的目标级别,包括:当第一请求中携带的屏幕状态为息屏状态时,确定目标级别为第一级别;或者,当第一请求中携带的屏幕状态为亮屏状态时,确定目标级别为第三级别。In addition, according to the method of the second aspect of the present disclosure, based on the status message carried in the first request, the target level currently corresponding to the terminal is determined in the preset subscription level, including: when the screen status carried in the first request is the screen-off state, the target level is determined to be the first level; or, when the screen status carried in the first request is the screen-on state, the target level is determined to be the third level.
此外,根据本公开第二方面的方法,当第一请求中屏幕状态为由息屏状态转为亮屏状态时,方法还包括:接收来自于终端的第二请求,第二请求用于请求反馈息屏状态期间的未订阅消息;未订阅消息包括:第二级别和/或第三级别的消息;向终端发送第二消息;第二消息携带息屏状态期间的未订阅消息。In addition, according to the method of the second aspect of the present disclosure, when the screen state in the first request changes from the screen-off state to the screen-on state, the method also includes: receiving a second request from the terminal, the second request is used to request feedback of unsubscribed messages during the screen-off state; the unsubscribed messages include: second-level and/or third-level messages; sending a second message to the terminal; the second message carries the unsubscribed messages during the screen-off state.
根据本公开的第三方面,提供了一种消息处理装置,设置于终端,装置包括:获取单元,用于获取终端当前的状态信息;发送单元,用于基于状态信息,向订阅平台发送第一请求;第一请求携带状态信息或订阅消息的属性信息;接收单元,用于接收来自于订阅平台的第一消息。According to a third aspect of the present disclosure, a message processing device is provided, which is arranged in a terminal, and the device includes: an acquisition unit, used to acquire current status information of the terminal; a sending unit, used to send a first request to a subscription platform based on the status information; the first request carries status information or attribute information of the subscription message; and a receiving unit, used to receive a first message from the subscription platform.
根据本公开的第四方面,提供了一种消息处理装置,设置于订阅平台,装置包括:接收单元,用于接收来自于终端的第一请求;第一请求携带终端的状态信息或订阅消息的属性信息;更新单元,用于基于第一请求,更新订阅平台中维护的订阅关系;发送单元,用于当接收到任意一个第一消息时,基于订阅关系,向目标终端发送第一消息。According to a fourth aspect of the present disclosure, a message processing device is provided, which is arranged on a subscription platform, and the device includes: a receiving unit, used to receive a first request from a terminal; the first request carries status information of the terminal or attribute information of the subscription message; an updating unit, used to update the subscription relationship maintained in the subscription platform based on the first request; and a sending unit, used to send the first message to the target terminal based on the subscription relationship when any first message is received.
根据本公开的第五方面,提供了一种电子设备,包括:存储器,用于存储计算机可读指令;以及处理器,用于运行计算机可读指令,使得电子设备执行如任一实施例的方法。According to a fifth aspect of the present disclosure, an electronic device is provided, comprising: a memory for storing computer-readable instructions; and a processor for executing the computer-readable instructions so that the electronic device executes a method as in any embodiment.
根据本公开的第六方面,提供了一种非瞬时性计算机可读存储介质,用于存储计算机可读指令,当计算机可读指令由处理器执行时,使得处理器执行如任一实施例的方法。According to a sixth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided for storing computer-readable instructions, which, when executed by a processor, causes the processor to execute a method as in any one of the embodiments.
根据本公开的第七方面,提供了一种计算机程序产品,包括计算机程序,计算机程序被处理器执行时实现如任一实施例的方法。According to a seventh aspect of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the method of any embodiment is implemented.
本公开提供了一种消息处理方法、装置、电子设备、存储介质和程序产品,终端可以获取自身的状态信息,终端可以基于状态信息确定向订阅平台发送第一请求,第一请求信息携带状态信息或订阅消息的属性信息。最后终端可以接收来自于订阅平台的第一消息。第一消息可以理解为第一请求的响应消息。这样,终端就可以基于本身的状态信息决定需要进行哪些数据的订阅处理,以此终端就能动态地调整数据订阅和处理策略,以实现更为灵活,智能化的管理,可以满足多种需求,适用于多种应用场景。同时,订阅平台不再是将所有的相关消息(全量数据)全部推送给终端,而是根据终端发送的请求选择性的对应发送订阅信息。这样终端和订阅平台的相互配合就解决了网络拥塞的问题,提高了处理效率。The present disclosure provides a message processing method, device, electronic device, storage medium and program product. The terminal can obtain its own status information. The terminal can determine to send a first request to a subscription platform based on the status information. The first request information carries the status information or the attribute information of the subscription message. Finally, the terminal can receive a first message from the subscription platform. The first message can be understood as a response message to the first request. In this way, the terminal can determine which data needs to be subscribed based on its own status information, so that the terminal can dynamically adjust the data subscription and processing strategy to achieve more flexible and intelligent management, which can meet various needs and is suitable for various application scenarios. At the same time, the subscription platform no longer pushes all relevant messages (full data) to the terminal, but selectively sends subscription information according to the request sent by the terminal. In this way, the mutual cooperation between the terminal and the subscription platform solves the problem of network congestion and improves processing efficiency.
要理解的是,前面的一般描述和下面的详细描述两者都是示例性的,并且意图在于提供要求保护的技术的进一步说明。It is to be understood that both the foregoing general description and the following detailed description are exemplary, and are intended to provide further explanation of the technology as claimed.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
通过结合附图对本公开实施例进行更详细的描述,本公开的上述以及其它目的、特征和优势将变得更加明显。附图用来提供对本公开实施例的进一步理解,并且构成说明书的一部分,与本公开实施例一起用于解释本公开,并不构成对本公开的限制。在附图中,相同的参考标号通常代表相同部件或步骤。The above and other purposes, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
图1是本公开实施例的系统模块框架图。FIG. 1 is a system module framework diagram of an embodiment of the present disclosure.
图2是本公开实施例的消息处理方法的交互图。FIG. 2 is an interaction diagram of the message processing method according to an embodiment of the present disclosure.
图3为本公开实施例提供的判断确定目标级别的方法。FIG. 3 is a method for determining a target level provided by an embodiment of the present disclosure.
图4为本公开实施例提供的联系人订阅的流程图。FIG. 4 is a flow chart of contact subscription provided by an embodiment of the present disclosure.
图5为本公开实施例提供的企业订阅的流程图。FIG5 is a flow chart of enterprise subscription provided by an embodiment of the present disclosure.
图6为本公开实施例提供的成员订阅的流程图。FIG6 is a flowchart of member subscription provided by an embodiment of the present disclosure.
图7为本公开实施例提供的一种消息处理装置的结构框图。FIG. 7 is a structural block diagram of a message processing device provided in an embodiment of the present disclosure.
图8为本公开实施例提供的一种消息处理装置的结构框图。FIG8 is a structural block diagram of a message processing device provided in an embodiment of the present disclosure.
图9为本公开实施例提供的一种电子设备的硬件框图;FIG9 is a hardware block diagram of an electronic device provided in an embodiment of the present disclosure;
图10为本公开实施例提供的一种计算机可读存储介质的示意图。FIG. 10 is a schematic diagram of a computer-readable storage medium provided in an embodiment of the present disclosure.
具体实施方式DETAILED DESCRIPTION
为了使得本公开的目的、技术方案和优点更为明显,下面将参照附图详细描述根据本公开的示例实施例。显然,所描述的实施例仅仅是本公开的一部分实施例,而不是本公开的全部实施例,应理解,本公开不受这里描述的示例实施例的限制。In order to make the purpose, technical solution and advantages of the present disclosure more obvious, the exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described here.
目前,关于消息的处理方式主要是采用将所有相关的通知消息全部推送到终端侧进行订阅处理,以得到订阅消息。然而,这样的消息处理方式比较单一固化,不适用于多种应用场景。同时,现有的消息推送采用的是推送全量数据的方式,容易造成网络拥塞,降低了处理效率。At present, the main way to process messages is to push all relevant notification messages to the terminal side for subscription processing to obtain subscription messages. However, this message processing method is relatively single and rigid, and is not suitable for a variety of application scenarios. At the same time, the existing message push uses the method of pushing full data, which is easy to cause network congestion and reduce processing efficiency.
以此,本申请提出了一种消息处理方法,可以使得终端基于本身的状态信息灵活调整订阅数据,以及订阅平台不再是将所有全量数据推送给终端,而是基于终端的请求选择性的对应发送订阅数据,这样解决了网络拥塞的问题,提高了处理效率。首先,图1是本公开实施例的系统模块框架图。如图1所示,其中,整个消息处理的系统包括:终端101和订阅平台102。In this way, the present application proposes a message processing method, which can enable the terminal to flexibly adjust the subscription data based on its own status information, and the subscription platform no longer pushes all the full data to the terminal, but selectively sends the subscription data based on the terminal's request, thereby solving the problem of network congestion and improving processing efficiency. First, Figure 1 is a system module framework diagram of an embodiment of the present disclosure. As shown in Figure 1, the entire message processing system includes: a terminal 101 and a subscription platform 102.
终端101,也可以称为终端设备、移动台、移动终端等,能够与订阅平台侧进行通信。终端可以是应用(app)或信息系统(web),在本公开实施例中,终端主要的作用为(1)提供与用户的交互功能:登录建连、频道\临时会话的创建、监听、申请\释放话语权等。(2)语音采集、编解码、播放、对讲相关数据的采集等。Terminal 101, which may also be referred to as terminal equipment, mobile station, mobile terminal, etc., is capable of communicating with the subscription platform side. The terminal may be an application (app) or an information system (web). In the embodiments of the present disclosure, the terminal mainly functions as follows: (1) providing interactive functions with users: login and connection establishment, channel/temporary session creation, monitoring, application/release of speech rights, etc. (2) voice collection, encoding and decoding, playback, collection of intercom-related data, etc.
订阅平台102,也可以称为订阅服务器、服务器等,可以实现与终端设备的订阅消息服务。在本公开实施例中,订阅平台102包括但不限于如下至少一种:信令服务、对讲服务和成员服务。The subscription platform 102, which may also be referred to as a subscription server, server, etc., may implement subscription message services with terminal devices. In the disclosed embodiment, the subscription platform 102 includes but is not limited to at least one of the following: signaling services, intercom services, and member services.
其中,信令服务主要作用是:(1)维护与终端的网络套接字(web Socket)的网络通信协议连接;(2)转发上下行的信令数据。对讲服务主要作用是:(1)接收处理临时会话或临时会话的创建;(2)接收处理话语权申请;维护频道或临时会话成员关系、优先级。成员服务主要作用是:(1)维护用户基础信息(如角色、账号等)、关联的设备信息;(2)用户登录鉴权;(3)在离线状态维护。Among them, the main functions of the signaling service are: (1) maintaining the network communication protocol connection with the terminal's web socket; (2) forwarding uplink and downlink signaling data. The main functions of the intercom service are: (1) receiving and processing temporary sessions or the creation of temporary sessions; (2) receiving and processing applications for speaking rights; maintaining channel or temporary session membership and priority. The main functions of the member service are: (1) maintaining user basic information (such as role, account, etc.) and associated device information; (2) user login authentication; (3) maintenance in offline state.
接着,请参考图2,图2是本公开实施例的消息处理方法的交互图。如图2所示,该方法包括:Next, please refer to Figure 2, which is an interaction diagram of the message processing method of the embodiment of the present disclosure. As shown in Figure 2, the method includes:
在步骤S101中,终端获取当前的状态信息。In step S101, the terminal obtains current status information.
在本公开实施例中,终端可以通过收集来获取其自身的当前状态信息。其中,终端的状态信息包括但不限于如下至少一种:屏幕状态、电量状态、网络状态。屏幕状态可以为屏幕为亮屏状态;屏幕为息屏状态。电量状态可以包括但不限于终端设备的电池剩余电量、充电状态等至少一种。网络状态包括但不限于设备是否连接到网络、连接类型(如Wi-Fi、蜂窝数据)、网络信号强度等至少一种。而获取状态信息的具体方式在此不作限定,可以根据实际需要进行灵活调整。In the disclosed embodiments, the terminal can obtain its own current status information by collecting. Among them, the status information of the terminal includes but is not limited to at least one of the following: screen status, power status, and network status. The screen status can be the screen is in the bright screen state; the screen is in the off screen state. The power status may include but is not limited to at least one of the remaining battery power and charging status of the terminal device. The network status includes but is not limited to whether the device is connected to the network, the connection type (such as Wi-Fi, cellular data), the network signal strength, etc. The specific method of obtaining the status information is not limited here, and can be flexibly adjusted according to actual needs.
在步骤S102中,终端基于状态信息,向订阅平台发送第一请求;第一请求携带状态信息或订阅消息的属性信息。In step S102, the terminal sends a first request to the subscription platform based on the state information; the first request carries the state information or attribute information of the subscription message.
在本公开实施例中,终端在获取了当前的状态信息后,会根据这些信息分析自身的需求,并据此向订阅平台发送第一请求。其中,第一请求为请求订阅第一消息。第一消息为第一请求的响应消息,第一消息携带终端的订阅消息,其可以包括但不限于如下至少一种:状态信息对应的订阅消息或属性信息对应的订阅消息。In the embodiment of the present disclosure, after obtaining the current state information, the terminal analyzes its own needs based on the information and sends a first request to the subscription platform accordingly. The first request is a request to subscribe to a first message. The first message is a response message to the first request, and the first message carries the subscription message of the terminal, which may include but is not limited to at least one of the following: a subscription message corresponding to the state information or a subscription message corresponding to the attribute information.
第一请求携带的信息为状态信息或订阅消息的属性信息。当第一请求携带的是状态信息的时候,终端向订阅平台直接发送状态信息,需要订阅平台根据状态信息确定终端订阅哪些消息;当第一请求携带的是订阅信息的属性信息时,终端可以直接向订阅平台发送订阅消息。The information carried by the first request is status information or attribute information of the subscription message. When the first request carries status information, the terminal directly sends the status information to the subscription platform, and the subscription platform needs to determine which messages the terminal subscribes to based on the status information; when the first request carries attribute information of the subscription information, the terminal can directly send the subscription message to the subscription platform.
同时,需要注意的是,第一请求是请求订阅消息的,终端向订阅平台发送当前第一请求可以为以当前的第一请求为标准得到订阅消息。但是,若是存在新的第一请求,则新的第一请求可以覆盖当前的第一请求,得到新的第一请求的订阅消息。即,终端可以重复向订阅平台发送第一请求,来及时调整自身所要订阅的订阅消息。此外,在其他的实施例中,终端也可以通过向订阅平台发送第三消息,来取消之前订阅的某些订阅消息。At the same time, it should be noted that the first request is a request for subscription messages, and the terminal sends the current first request to the subscription platform to obtain subscription messages based on the current first request. However, if there is a new first request, the new first request can overwrite the current first request and obtain the subscription message of the new first request. That is, the terminal can repeatedly send the first request to the subscription platform to timely adjust the subscription messages to which it wants to subscribe. In addition, in other embodiments, the terminal can also cancel certain subscription messages previously subscribed by sending a third message to the subscription platform.
在步骤S103中,订阅平台接收来自于终端的第一请求。In step S103, the subscription platform receives a first request from the terminal.
在本公开实施例中,订阅平台可以通过调用应用程序编程接口(API)的方式接收来自于终端的第一请求。订阅平台接收第一请求的方式在此不作限定。In the embodiment of the present disclosure, the subscription platform may receive the first request from the terminal by calling an application programming interface (API). The manner in which the subscription platform receives the first request is not limited herein.
在步骤S104中,订阅平台基于第一请求,更新订阅平台中维护的订阅关系。In step S104, the subscription platform updates the subscription relationship maintained in the subscription platform based on the first request.
在本公开实施例中,订阅平台会根据接收到的第一请求,更新订阅平台维护的订阅关系。其中,订阅关系包括订阅者关系和被订阅者关系。订阅者关系至少包括:“订阅者”与“该订阅者所订阅的各被订阅者”之间的关系,即,每个订阅者与其被订阅者之间关系。被订阅者关系至少包括:“被订阅者”与“订阅该被订阅者的各订阅者”之间的关系,即,每个被订阅者与其订阅者之间关系。In the embodiment of the present disclosure, the subscription platform will update the subscription relationship maintained by the subscription platform according to the received first request. The subscription relationship includes a subscriber relationship and a subscriber relationship. The subscriber relationship includes at least: the relationship between a "subscriber" and "each subscriber subscribed by the subscriber", that is, the relationship between each subscriber and its subscriber. The subscriber relationship includes at least: the relationship between a "subscriber" and "each subscriber who subscribes to the subscriber", that is, the relationship between each subscriber and its subscriber.
具体地,订阅平台可以解析接收到的第一请求,可以请求进行数据验证。若请求数据验证有效,则查询现有的订阅关系,若存在订阅关系,更新订阅状态(如:从非活跃状态改为活跃状态);若不存在订阅关系,创建新的订阅关系来实现订阅关系的更新。具体的更新的方式在此不作限定。Specifically, the subscription platform can parse the received first request and request data verification. If the requested data verification is valid, the existing subscription relationship is queried. If a subscription relationship exists, the subscription status is updated (e.g., from an inactive status to an active status); if a subscription relationship does not exist, a new subscription relationship is created to update the subscription relationship. The specific update method is not limited here.
在步骤S105中,当接收到任意一个第一消息时,订阅平台基于订阅关系,向目标终端发送第一消息。In step S105, when any first message is received, the subscription platform sends the first message to the target terminal based on the subscription relationship.
在步骤S106中,终端接收来自于订阅平台的第一消息。In step S106, the terminal receives a first message from the subscription platform.
在本公开实施例中,目标终端为订阅平台订阅关系中确定的终端。第一消息可以理解为第一请求的响应消息,第一消息携带终端的订阅消息,其可以包括但不限于如下至少一种:状态信息对应的订阅消息或属性信息对应的订阅消息。而当接收到任意一个第一消息时,订阅平台会基于订阅关系,向目标终端发送第一消息。具体地,可以通过API接口、消息队列、实时通信等的至少一种方式来接收第一消息。当接收到任意一个第一消息时,订阅平台可以解析消息内容,基于解析的消息内容,订阅平台可以查找自身维护的订阅关系,筛选出所有订阅的目标终端。对于每个目标终端,订阅平台可以使用适当的通信协议或机制等的至少一种,将第一消息发送给目标终端。而终端接收来自于订阅平台的第一消息,完成整个消息处理过程。In the disclosed embodiment, the target terminal is a terminal determined in the subscription relationship of the subscription platform. The first message can be understood as a response message to the first request, and the first message carries the subscription message of the terminal, which may include but is not limited to at least one of the following: a subscription message corresponding to the status information or a subscription message corresponding to the attribute information. When any first message is received, the subscription platform will send the first message to the target terminal based on the subscription relationship. Specifically, the first message can be received through at least one of an API interface, a message queue, and real-time communication. When any first message is received, the subscription platform can parse the message content, and based on the parsed message content, the subscription platform can search for the subscription relationship maintained by itself and filter out all subscribed target terminals. For each target terminal, the subscription platform can use at least one of an appropriate communication protocol or mechanism to send the first message to the target terminal. The terminal receives the first message from the subscription platform and completes the entire message processing process.
综上,终端就可以基于本身的状态信息决定需要进行哪些数据的订阅处理,终端就能动态地调整数据订阅和处理策略,以实现更为灵活,智能化的管理,适用于多种应用场景。同时,终端利用的是本身的状态信息而不是整个全量数据去进行消息处理,这样解决了网络拥塞的问题,提高了处理效率。In summary, the terminal can decide which data needs to be subscribed based on its own status information, and can dynamically adjust data subscription and processing strategies to achieve more flexible and intelligent management, which is suitable for a variety of application scenarios. At the same time, the terminal uses its own status information instead of the entire amount of data to process messages, which solves the problem of network congestion and improves processing efficiency.
如前文所述,本公开实施例中正是基于终端的状态信息确定订阅请求的设计,使得终端能动态地调整数据订阅和处理策略,实现更智能灵活的关系。以下,具体介绍终端将如何利用状态信息确定第一请求。As mentioned above, the design of determining the subscription request based on the terminal's state information in the disclosed embodiment enables the terminal to dynamically adjust the data subscription and processing strategy to achieve a more intelligent and flexible relationship. The following specifically introduces how the terminal will use the state information to determine the first request.
根据本公开实施例的终端基于状态信息,向订阅平台发送第一请求的方法包括:According to an embodiment of the present disclosure, a method in which a terminal sends a first request to a subscription platform based on state information includes:
基于状态信息,在预设的订阅级别中确定终端当前对应的目标级别;订阅级别用于指示订阅消息的重要程度;Based on the status information, determine the target level currently corresponding to the terminal in the preset subscription level; the subscription level is used to indicate the importance of the subscription message;
向订阅平台发送第一请求,第一请求携带订阅消息的属性信息;属性信息包括如下至少一种:目标级别、目标级别对应的消息标识。A first request is sent to the subscription platform, where the first request carries attribute information of the subscription message; the attribute information includes at least one of the following: a target level and a message identifier corresponding to the target level.
其中,状态消息可以包括但不限于如下至少一种:屏幕状态、电量状态和网络状态。而预设的订阅级别是用于指示用户订阅消息的重要程度。示例性的一种实施例中,可以设置多个级别,每个级别有各自对应的订阅消息;例如,订阅级别可以包括第一级别(关键)、第二级别(一般)、第三级别(互动)、第四级别(可忽略),应理解,本公开对各级别的命名方式与消息级别定义方式均无特别限制。具体地订阅级别和订阅级别的消息标识的对应在下文阐述。Among them, the status message may include but is not limited to at least one of the following: screen status, power status and network status. The preset subscription level is used to indicate the importance of the user's subscription message. In an exemplary embodiment, multiple levels can be set, and each level has its own corresponding subscription message; for example, the subscription level may include the first level (critical), the second level (general), the third level (interactive), and the fourth level (ignorable). It should be understood that the present disclosure has no special restrictions on the naming method of each level and the message level definition method. The specific correspondence between the subscription level and the message identifier of the subscription level is explained below.
终端基于本身的状态信息在上述预设的订阅级别中确定目标级别的方法可以是判断是否满足预设条件(每个订阅级别都有预设的满足条件)。如:每个订阅级别都有对应的屏幕状态、电量状态和网络状态等的至少一个的满足条件(如:满足屏幕状态为亮屏的条件则为第一级别),若是满足该预设条件,则将该订阅级别确定为目标级别。The method for the terminal to determine the target level in the above-mentioned preset subscription levels based on its own status information may be to determine whether a preset condition is met (each subscription level has a preset satisfaction condition). For example, each subscription level has a corresponding screen state, power state, network state, etc., and at least one satisfaction condition (for example, if the screen state is bright, it is the first level). If the preset condition is met, the subscription level is determined as the target level.
终端基于本身的状态信息在上述预设的订阅级别中确定目标级别的方法也可以是判断是否满足预设对应关系(每个订阅级别都有预设的对应关系)。如:每个订阅级别都有屏幕状态、电量状态和网络状态等的至少一个的对应关系(如:电量状态大于百分之六十为第一级别),若是满足该预设的对应关系,则将该订阅级别确定为目标级别,具体的预设的对应关系的设置,在此不作限定。The method for the terminal to determine the target level in the above-mentioned preset subscription levels based on its own status information can also be to determine whether the preset corresponding relationship is satisfied (each subscription level has a preset corresponding relationship). For example, each subscription level has at least one corresponding relationship among the screen status, power status and network status (for example, the power status greater than 60% is the first level). If the preset corresponding relationship is satisfied, the subscription level is determined as the target level. The specific setting of the preset corresponding relationship is not limited here.
终端根据确定的目标级别向订阅平台发送第一请求,而第一请求携带着终端想订阅消息的属性信息。属性信息可以包括:目标级别和目标级别对应的消息标识等的至少一种。当属性信息为目标级别,直接向订阅平台发送目标级别,订阅平台自行基于级别确定订阅消息的类型,并更新订阅关系(即,订阅平台知道自身维护的级别和消息类型的对应关系)。当属性信息为目标级别的消息标识,订阅平台可以根据消息标识进行订阅关系的更新。其中,消息标识可以理解为是消息名称。当属性信息为目标级别和目标级别对应的消息标识时,可以利用上述的任意一种方式发送第一请求,也可以组合发送第一请求,在此不作限定。The terminal sends a first request to the subscription platform according to the determined target level, and the first request carries the attribute information of the message that the terminal wants to subscribe to. The attribute information may include: at least one of the target level and the message identifier corresponding to the target level. When the attribute information is the target level, the target level is sent directly to the subscription platform, and the subscription platform determines the type of subscription message based on the level and updates the subscription relationship (that is, the subscription platform knows the correspondence between the level and the message type maintained by itself). When the attribute information is the message identifier of the target level, the subscription platform can update the subscription relationship according to the message identifier. Among them, the message identifier can be understood as the message name. When the attribute information is the target level and the message identifier corresponding to the target level, the first request can be sent using any of the above methods, or the first request can be sent in combination, which is not limited here.
示例性的,在本公开实施例中,终端可以在初始化后,确立与订阅平台之间的安全通信协议,可以采用加密技术确保通信的机密性,建立持续稳定的消息订阅通道,同时设置定期的心跳检测机制。持续监测自身的状态,根据状态确定向订阅平台发送订阅请求。其中,加密技术可以保证消息的安全性,包括但不限于如下至少一种:非对称加密、高级加密标准加密(Advanced Encryption Standard,AES)。消息订阅的通道为实时通信的通道,是一直存在的。只要用户终端上线,就可以实时进行消息订阅。而心跳检测机制可以保证终端与订阅平台之间的通道的有效性。以此,终端持续监测自身状态根据消息订阅通道完成订阅请求的发送。Exemplarily, in the disclosed embodiment, after initialization, the terminal can establish a secure communication protocol with the subscription platform, can use encryption technology to ensure the confidentiality of communication, establish a continuous and stable message subscription channel, and set up a regular heartbeat detection mechanism. Continuously monitor its own status and send a subscription request to the subscription platform based on the status. Among them, encryption technology can ensure the security of messages, including but not limited to at least one of the following: asymmetric encryption, Advanced Encryption Standard encryption (Advanced Encryption Standard, AES). The channel for message subscription is a real-time communication channel and always exists. As long as the user terminal is online, message subscription can be performed in real time. The heartbeat detection mechanism can ensure the validity of the channel between the terminal and the subscription platform. In this way, the terminal continuously monitors its own status and completes the sending of subscription requests according to the message subscription channel.
如前文所述,终端可以基于状态信息确定目标级别,向订阅平台发送第一请求,第一请求中携带属性信息包括目标级别和目标级别对应的消息标识,以下具体说明目标级别和消息标识的对应关系。As described above, the terminal can determine the target level based on the status information and send a first request to the subscription platform. The first request carries attribute information including the target level and the message identifier corresponding to the target level. The corresponding relationship between the target level and the message identifier is specifically described below.
如下,目标级别对应的消息标识,包括:As follows, the message identifiers corresponding to the target levels include:
第一集合中的消息标识;其中,第一集合为目标级别对应的消息集合;Message identifiers in the first set; wherein the first set is a message set corresponding to the target level;
第二集合中的消息标识;其中,第二集合为重要程度高于目标级别的其他订阅级别对应的消息集合;Message identifiers in the second set; wherein the second set is a set of messages corresponding to other subscription levels whose importance is higher than the target level;
在本公开实施例中,目标级别对应的消息标识包括第一集合的消息标识和第二集合的消息标识。In the embodiment of the present disclosure, the message identifiers corresponding to the target level include message identifiers of a first set and message identifiers of a second set.
第一集合为目标级别对应的消息集合。目标级别是用户当前关注或订阅的级别,该集合包含所有属于这个级别的消息标识。消息标识可以理解为消息名称。The first set is the message set corresponding to the target level. The target level is the level that the user is currently following or subscribing to. This set contains all message identifiers belonging to this level. The message identifier can be understood as the message name.
第二集合为重要程度高于目标级别的其他订阅级别对应的消息集合,该集合包含所有重要程度高于目标级别的其他订阅级别的消息标识。其中,其他订阅级别可以为一个或者多个,以至于第二集合也可以为一个或者多个。例如,如果目标级别是第二级别(一般消息层),那么第二集合将包含所有属于第一级别(关键消息层)的消息标识。The second set is a message set corresponding to other subscription levels with a higher degree of importance than the target level, and the set includes all message identifiers of other subscription levels with a higher degree of importance than the target level. Among them, the other subscription levels can be one or more, so that the second set can also be one or more. For example, if the target level is the second level (general message layer), then the second set will include all message identifiers belonging to the first level (critical message layer).
在一种可能的实施例中,其中,按照重要程度降序排序,订阅级别依次包括如下至少一种:第一级别、第二级别、第三级别、第四级别;In a possible embodiment, the subscription levels, in descending order of importance, include at least one of the following: a first level, a second level, a third level, and a fourth level;
其中,第一级别对应于关键消息层的订阅消息;Among them, the first level corresponds to the subscription messages of the key message layer;
第二级别对应于一般消息层的订阅消息;The second level corresponds to subscription messages at the general message layer;
第三级别对应于互动消息层的订阅消息;The third level corresponds to subscription messages at the interactive messaging layer;
第四级别对应于可忽略消息层的订阅消息。The fourth level corresponds to subscription messages that ignore the message layer.
其中,订阅级别可以按照重要程度降序进行排列的,可以包括但不限于:第一级别、第二级别、第三级别和第四级别。每个订阅级别对应一个消息集合,该集合包含所有属于该级别的消息标识。The subscription levels may be arranged in descending order of importance, and may include but are not limited to: level 1, level 2, level 3, and level 4. Each subscription level corresponds to a message set, which includes all message identifiers belonging to the level.
具体的,第一级别(关键消息层):这个级别对应于关键消息层的订阅消息。这些消息具有最高的重要性和优先级,需要立即关注和处理。第二级别(一般消息层):这个级别对应于一般消息层的订阅消息。这些消息的重要性低于第一级别,但仍然需要被用户注意和处理。第三级别(互动消息层):这个级别对应于互动消息层的订阅消息。这些消息可以是用户之间的交互信息,或者是需要用户参与或反馈的信息。第四级别(可忽略消息层):这个级别对应于可忽略消息层的订阅消息。这些消息的重要性最低,用户可以选择性地忽略它们。Specifically, the first level (critical message layer): this level corresponds to the subscription messages of the critical message layer. These messages have the highest importance and priority and require immediate attention and processing. The second level (general message layer): this level corresponds to the subscription messages of the general message layer. The importance of these messages is lower than the first level, but still needs to be noticed and processed by the user. The third level (interactive message layer): this level corresponds to the subscription messages of the interactive message layer. These messages can be interactive information between users, or information that requires user participation or feedback. The fourth level (ignorable message layer): this level corresponds to the subscription messages of the ignorable message layer. These messages are of the lowest importance, and users can selectively ignore them.
示例性的,在本公开实施例中,1级(关键消息层,即第一级别)对应的订阅消息可以包括但不限于如下至少一种:对讲功能的关键操作、话语权控制、呼叫和挂断以及广播消息等,这些操作对业务流程至关重要。2级(一般消息层,即第二级别)对应的订阅消息可以包括但不限于如下至少在一种:囊括了群组的创建和解散、对讲时长的设定等日常操作,虽然重要性稍次,但仍然对业务的正常进行至关重要。3级(界面互动消息层,即第三级别)对应的订阅消息可以包括但不限于如下至少一种:成员的添加和删除、即时消息(IM消息)以及频道数量等与界面交互相关的操作,是用户与系统之间互动的基本通知。4级(可暂时忽略消息层,即第四级别)对应的订阅消息可以包括但不限于如下至少一种:成员在线数的变动、群组属性修改(如改名)、群主转让等,这一层级的消息相对较为次要,用户在特定情境下可选择性地忽略。Exemplarily, in the disclosed embodiment, the subscription message corresponding to level 1 (key message layer, i.e., the first level) may include, but is not limited to, at least one of the following: key operations of the intercom function, speech control, calling and hanging up, and broadcasting messages, etc., which are critical to the business process. The subscription message corresponding to level 2 (general message layer, i.e., the second level) may include, but is not limited to, at least one of the following: daily operations such as the creation and disbanding of groups and the setting of intercom duration, which are less important but still critical to the normal operation of the business. The subscription message corresponding to level 3 (interface interaction message layer, i.e., the third level) may include, but is not limited to, at least one of the following: operations related to interface interaction such as adding and deleting members, instant messaging (IM messages), and the number of channels, which are basic notifications for interaction between users and the system. The subscription message corresponding to level 4 (temporarily ignorable message layer, i.e., the fourth level) may include, but is not limited to, at least one of the following: changes in the number of members online, group attribute modifications (such as name changes), group owner transfers, etc. Messages at this level are relatively minor, and users can selectively ignore them in specific situations.
如前文所述,终端可以根据自身的状态信息在预设的订阅级别中确定终端当前对应的目标级别,以此向订阅平台发送第一请求进行消息的订阅。以下,将具体说明终端是如何基于状态信息,在预设的订阅级别中确定目标级别的。As described above, the terminal can determine the target level currently corresponding to the terminal in the preset subscription level according to its own state information, and send a first request to the subscription platform to subscribe to the message. The following will specifically describe how the terminal determines the target level in the preset subscription level based on the state information.
如下,当终端的状态信息为屏幕状态时,终端基于状态信息在预设的订阅级别中确定终端当前对应的目标级别的方法包括:As follows, when the status information of the terminal is the screen status, the method for the terminal to determine the target level currently corresponding to the terminal in the preset subscription level based on the status information includes:
当屏幕状态为息屏状态时,确定目标级别为第一级别;When the screen state is the screen-off state, determining the target level to be the first level;
或者,or,
当屏幕状态为亮屏状态时,确定目标级别为第三级别。When the screen state is the bright screen state, the target level is determined to be the third level.
在本公开实施例中,终端的状态信息为屏幕状态,包括息屏状态、亮屏状态。具体而言,终端可以持续监测屏幕状态(例如,可以创建监测进程来实现屏幕状态的持续监测),以确定其屏幕状态是否为亮屏状态。In the disclosed embodiment, the terminal status information is the screen status, including the screen off status and the screen on status. Specifically, the terminal can continuously monitor the screen status (for example, a monitoring process can be created to implement continuous monitoring of the screen status) to determine whether its screen status is the screen on status.
当屏幕状态为息屏状态(当前屏幕处于关闭或休眠状态)时,就会确定当前的目标级别为第一级别。当目标级别为第一级别时,没有重要程度大于当前目标级别的其他订阅级别的消息集合,也就意味着息屏状态只能订阅得到第一级别的消息。当屏幕状态为亮屏状态(当前屏幕处于开启状态)时,就会确定当前的目标级别为第三级别,当目标级别为第三级别时,除了本级别的消息集合外还有重要程度高于当前级别的第二级别和/或第一级别,也就意味着亮屏状态时,除了目标级别为第三级别的消息可以进行订阅得到外,还可以订阅得到第二级别和/或第一级别相对应的消息。When the screen state is the screen-off state (the current screen is off or in sleep state), the current target level is determined to be the first level. When the target level is the first level, there is no message set of other subscription levels that is more important than the current target level, which means that only the first level messages can be subscribed in the screen-off state. When the screen state is the screen-on state (the current screen is on), the current target level is determined to be the third level. When the target level is the third level, in addition to the message set of this level, there are also the second level and/or the first level that are more important than the current level, which means that in the screen-on state, in addition to the messages of the target level of the third level that can be subscribed, you can also subscribe to the messages corresponding to the second level and/or the first level.
当然,终端当前的屏幕状态还有可能从息屏状态转为亮屏状态,而当终端当前的屏幕状态为由息屏状态转为亮屏状态时,确定目标级别的方法包括:Of course, the current screen state of the terminal may also change from the off-screen state to the bright-screen state. When the current screen state of the terminal changes from the off-screen state to the bright-screen state, the method for determining the target level includes:
向订阅平台发送第二请求,第二请求用于请求订阅平台反馈息屏状态期间的未订阅消息;未订阅消息包括:第二级别和/或第三级别的消息;Sending a second request to the subscription platform, the second request is used to request the subscription platform to feedback unsubscribed messages during the screen-off state; the unsubscribed messages include: second-level and/or third-level messages;
接收来自于订阅平台的第二消息。A second message is received from the subscription platform.
在本公开实施例中,当终端的屏幕状态由息屏状态转为亮屏状态时,终端就会向订阅平台发送第二请求,这个请求的目的是获取在设备处于息屏状态期间,用户未订阅但属于第二级别和/或第三级别的消息。接着,接收订阅平台发送的第二消息,以达到完整了解屏幕状态变化时漏掉的消息,保证了数据的完整性。需要注意的是,终端接收订阅平台发送的第二消息时,可以和第一消息一起发送(第一消息中携带第二消息),也可以是单独发送第二消息。In the disclosed embodiment, when the screen state of the terminal changes from the screen-off state to the screen-on state, the terminal will send a second request to the subscription platform. The purpose of this request is to obtain messages that the user has not subscribed to but belong to the second level and/or the third level during the period when the device is in the screen-off state. Then, the second message sent by the subscription platform is received to fully understand the messages that are missed when the screen state changes, thereby ensuring the integrity of the data. It should be noted that when the terminal receives the second message sent by the subscription platform, it can be sent together with the first message (the second message is carried in the first message), or the second message can be sent separately.
示例性的,在本公开实施例中,当终端的状态信息为屏幕状态时,可以监测屏幕状态的通知,当接收到熄屏通知时,取消非第一级消息的订阅,降低网络负担。当亮屏时,订阅第一级消息和第二级消息,并主动获取熄屏期间未订阅的第二级消息和当前页面的第三级消息,以确保信息的实时性和完整性。For example, in the disclosed embodiment, when the terminal status information is the screen status, the notification of the screen status can be monitored, and when the screen off notification is received, the subscription of non-first-level messages is cancelled to reduce the network burden. When the screen is on, the first-level and second-level messages are subscribed, and the second-level messages that are not subscribed during the screen off period and the third-level messages of the current page are actively obtained to ensure the real-time and integrity of the information.
如下,当终端的状态信息为电量状态时,终端基于状态信息在预设的订阅级别中确定终端当前对应的目标级别的方法包括:As follows, when the status information of the terminal is the power status, the method for the terminal to determine the target level currently corresponding to the terminal in the preset subscription level based on the status information includes:
当电量状态为不充足状态时,确定目标级别为第一级别;When the power state is insufficient, determining the target level to be the first level;
或者,or,
当电量状态为充足状态时,确定目标级别为第四级别。When the power state is sufficient, the target level is determined to be the fourth level.
在本公开的另一实施例中,终端的状态信息为电量状态,包括充足状态、不充足状态。具体而言,终端的电量状态可以通过终端当前电量剩余情况或百分比来进行表示,终端可以获取这些数据来确定自身的电量状态。示例性的,当电量的剩余情况或百分比大于预设阈值时,则确定当前终端的电量状态为充足状态;当电量的剩余情况或百分比小于预设阈值时,则确定当前终端的电量状态为不充足状态。预设阈值可以自定义设置,例如,百分之五十、百分之八十等,不作穷举。In another embodiment of the present disclosure, the status information of the terminal is the power status, including a sufficient status and an insufficient status. Specifically, the power status of the terminal can be represented by the current remaining power or percentage of the terminal, and the terminal can obtain these data to determine its own power status. Exemplarily, when the remaining power or percentage is greater than a preset threshold, it is determined that the current power status of the terminal is a sufficient state; when the remaining power or percentage is less than the preset threshold, it is determined that the current power status of the terminal is an insufficient state. The preset threshold can be customized, for example, 50%, 80%, etc., without exhaustive enumeration.
当电量状态为不充足状态时,就会确定当前的目标级别为第一级别。当目标级别为第一级别时,没有重要程度大于当前目标级别的其他订阅级别的消息集合,也就意味着不充足状态只能订阅得到第一级别的消息。当电量状态为充足状态时,就会确定当前的目标级别为第四级别,当目标级别为第四级别时,除了本级别的消息集合外还有重要程度高于当前级别的第三级别、第二级别以及第一级别,也就意味着充足状态时,除了目标级别为第四级别的消息可以进行订阅得到外,还可以订阅得到第三级别、第二级别以及第一级别等的至少一种消息。When the battery status is insufficient, the current target level is determined to be the first level. When the target level is the first level, there is no message set of other subscription levels with a greater importance than the current target level, which means that in the insufficient state, only the first level messages can be subscribed. When the battery status is sufficient, the current target level is determined to be the fourth level. When the target level is the fourth level, in addition to the message set of this level, there are also the third level, the second level and the first level with a higher importance than the current level. This means that in the sufficient state, in addition to the messages of the target level of the fourth level, you can also subscribe to at least one message of the third level, the second level and the first level.
如下,当终端的状态信息为网络状态时,终端基于状态信息在预设的订阅级别中确定终端当前对应的目标级别的方法包括:As follows, when the status information of the terminal is a network status, the method for the terminal to determine the target level currently corresponding to the terminal in the preset subscription level based on the status information includes:
当网络状态为稳定状态时,确定目标级别为第一级别;When the network state is stable, the target level is determined to be the first level;
或者,or,
当网络状态为不稳定状态时,确定目标级别为第四级别。When the network state is an unstable state, the target level is determined to be the fourth level.
在本公开又一实施例中,终端的状态信息为网络状态,可以包括稳定状态、不稳定状态。终端的网络状态可以通过终端当前的信号强度来进行表示,终端可以获取这些数据来确定自身的网络状态。示例性的,当信号强度大于预设阈值时,则确定当前的网络状态为稳定状态;当信号强度小于预设阈值时,则确定当前的网络状态为不稳定状态。预设阈值可以自定义设置,例如,90毫瓦分贝、120毫瓦分贝等,在此不作穷举。In another embodiment of the present disclosure, the status information of the terminal is the network status, which may include a stable state and an unstable state. The network status of the terminal can be represented by the current signal strength of the terminal, and the terminal can obtain these data to determine its own network status. Exemplarily, when the signal strength is greater than a preset threshold, the current network status is determined to be a stable state; when the signal strength is less than the preset threshold, the current network status is determined to be an unstable state. The preset threshold can be customized, for example, 90 milliwatt decibels, 120 milliwatt decibels, etc., which are not exhaustive here.
当网络状态为不稳定状态(当前网络不稳定或没有网络等)时,就会确定当前的目标级别为第一级别。当目标级别为第一级别时,没有重要程度大于当前目标级别的其他订阅级别的消息集合,也就意味着加载不出当前页面状态只能订阅得到第一级别的消息。当网络状态为稳定状态(当前网络稳定或网络良好等)时,就会确定当前的目标级别为第四级别,当目标级别为第四级别时,除了本级别的消息集合外还有重要程度高于当前级别的第三级别、第二级别以及第一级别,也就意味着充足状态时,除了目标级别为第四级别的消息可以进行订阅得到外,还可以订阅得到第三级别、第二级别以及第一级别等的至少一种消息。When the network status is unstable (the current network is unstable or there is no network, etc.), the current target level will be determined to be the first level. When the target level is the first level, there is no message set of other subscription levels with an importance greater than the current target level, which means that the current page status cannot be loaded and only the first level messages can be subscribed. When the network status is stable (the current network is stable or the network is good, etc.), the current target level will be determined to be the fourth level. When the target level is the fourth level, in addition to the message set of this level, there are also the third level, the second level and the first level with an importance higher than the current level, which means that in sufficient state, in addition to the messages of the target level of the fourth level, you can also subscribe to at least one message of the third level, the second level and the first level.
示例性的,在本公开的实施例中,终端的状态信息可以是屏幕状态、电量状态以及网络状态,可以对屏幕状态、电量状态以及网络状态中的至少一种进行判断确定目标级别,进行消息的订阅。Exemplarily, in an embodiment of the present disclosure, the status information of the terminal may be screen status, power status, and network status. At least one of the screen status, power status, and network status may be judged to determine the target level and subscribe to messages.
如图3所示,具体地,终端可以首先进行初始化,建立与订阅服务器(订阅平台)的消息订阅通道,订阅一级消息。接着监听自身的亮屏息屏通知(屏幕状态),确定是否息屏。若是息屏,直接取消其他订阅,仅订阅第一级消息;若没有息屏(亮屏),可以订阅第二级的消息,并拉取息屏期间的其他消息。再来,监听页面变化,判断是否在页面(即判断是否发生页面跳转,是否仍处于当前页面)。若是跳转至其他页面,取消进行第三级别消息的订阅;若仍处于当前页面,可以订阅第三级别的消息。最后,监听电量状态或者网络状态,判断是否充足。若是充足状态,则进行第四级别消息的订阅;若是不充足状态,则取消进行第四级别消息的订阅。以上,终端就可以根据亮屏状态和电量状况,智能选择是否订阅四级消息。在电量充足、网络稳定的情况下,订阅四级消息,以确保用户获取所有相关信息。反之,在资源有限的情况下,取消四级消息的订阅,以节省网络资源。As shown in FIG3 , specifically, the terminal can first be initialized, establish a message subscription channel with the subscription server (subscription platform), and subscribe to the first-level message. Then monitor its own screen on/off notification (screen status) to determine whether the screen is off. If the screen is off, directly cancel other subscriptions and subscribe to only the first-level message; if the screen is not off (on), you can subscribe to the second-level message and pull other messages during the screen off period. Next, monitor page changes to determine whether it is on the page (that is, determine whether a page jump occurs and whether it is still on the current page). If it jumps to another page, cancel the subscription to the third-level message; if it is still on the current page, you can subscribe to the third-level message. Finally, monitor the power status or network status to determine whether it is sufficient. If it is sufficient, subscribe to the fourth-level message; if it is insufficient, cancel the subscription to the fourth-level message. In the above, the terminal can intelligently choose whether to subscribe to the fourth-level message according to the screen status and power status. When the power is sufficient and the network is stable, subscribe to the fourth-level message to ensure that the user obtains all relevant information. On the contrary, when resources are limited, cancel the subscription to the fourth-level message to save network resources.
需要注意的是,上述任意实施例中提到的第一请求都是用于请求订阅得到第一消息。It should be noted that the first request mentioned in any of the above embodiments is used to request subscription to obtain the first message.
基于上述实施例,进一步地,该方法还包括:终端可以向订阅平台发送第三请求。而第三请求可以用于请求取消订阅第三消息,第三消息可以理解为任意的已订阅消息。示例性的一种实施例中,第三消息可以具体为:已订阅的与状态信息不符的消息。即,终端可以根据自身的状态信息进行订阅消息的取消,节省了网络资源的浪费。Based on the above embodiment, further, the method also includes: the terminal can send a third request to the subscription platform. The third request can be used to request to unsubscribe from a third message, and the third message can be understood as any subscribed message. In an exemplary embodiment, the third message can be specifically: a subscribed message that does not match the status information. That is, the terminal can cancel the subscription message according to its own status information, saving the waste of network resources.
在本公开的实施例中,终端可以发送用于订阅信息的第一请求,也发送用于取消订阅信息的第三请求。这样可以不用重复订阅已经订阅的消息,如此,任意一个请求中携带的信息,可以不是全部要订阅或者取消订阅的信息,节省了网络资源的浪费,提升了处理的效率。In the embodiment of the present disclosure, the terminal may send a first request for subscribing to information and also send a third request for unsubscribing from information. In this way, it is not necessary to repeatedly subscribe to messages that have already been subscribed. Thus, the information carried in any request may not be all the information to be subscribed or unsubscribed, which saves the waste of network resources and improves the processing efficiency.
在本申请中,除了提供了上述终端侧的消息处理方式,还提供了订阅平台的消息处理方式。订阅平台的消息处理主要是可以进行订阅关系的高效存储和计算,以下具体说明。In this application, in addition to providing the above-mentioned terminal-side message processing method, a subscription platform message processing method is also provided. The subscription platform message processing is mainly capable of efficient storage and calculation of subscription relationships, which is described in detail below.
如下,具体说明订阅平台是如何维护订阅关系的:The following is a detailed description of how the subscription platform maintains the subscription relationship:
订阅平台可以维护订阅关系。订阅平台可以以位图形式,维护订阅关系;其中,订阅关系以任意一个第一用户的用户标识为键,以第二用户的用户标识为值进行存储;其中,第一用户与第二用户具备订阅关系;其中,订阅关系包括:订阅者关系与被订阅者关系。The subscription platform can maintain the subscription relationship. The subscription platform can maintain the subscription relationship in the form of a bitmap; wherein the subscription relationship is stored with the user ID of any first user as the key and the user ID of the second user as the value; wherein the first user and the second user have a subscription relationship; wherein the subscription relationship includes: a subscriber relationship and a subscribed relationship.
在本公开实施例中,订阅平台可以使用位图形式来维护订阅关系,位图是一种高效的数据结构选择,特别是当处理大量用户和订阅关系时。位图允许通过单个位来表示一个布尔值(可以是存在或不存在的关系)。其中,订阅关系包括订阅者关系和被订阅者关系。订阅者关系至少包括:“订阅者”与“该订阅者所订阅的各被订阅者”之间的关系,即,每个订阅者与其被订阅者之间关系。被订阅者关系至少包括:“被订阅者”与“订阅该被订阅者的各订阅者”之间的关系,即,每个被订阅者与其订阅者之间关系。In the disclosed embodiment, the subscription platform may maintain subscription relationships in the form of a bitmap, which is an efficient data structure choice, especially when dealing with a large number of users and subscription relationships. The bitmap allows a Boolean value (which may be a relationship that exists or does not exist) to be represented by a single bit. Among them, the subscription relationship includes a subscriber relationship and a subscribed relationship. The subscriber relationship includes at least: the relationship between a "subscriber" and "each subscriber subscribed by the subscriber", that is, the relationship between each subscriber and its subscriber. The subscriber relationship includes at least: the relationship between a "subscriber" and "each subscriber who subscribes to the subscriber", that is, the relationship between each subscriber and its subscriber.
具体的,订阅平台可以为每个第一用户(订阅者)维护一个位图,其中每个位可以用来表示一个的订阅关系,代表一个第一用户(订阅者)与第二用户(被订阅者)的订阅关系。如果第一用户订阅了第二用户,则相应的位将被设置为1(表示存在订阅关系)。如果第一用户没有订阅第二用户,则相应的位将被设置为0(表示不存在订阅关系)。使用第一用户的用户标识作为键(Key),用于快速检索对应的位图。位图作为值(Value)与键关联,存储了第一用户对所有潜在被订阅者的订阅状态。Specifically, the subscription platform can maintain a bitmap for each first user (subscriber), in which each bit can be used to represent a subscription relationship, representing a subscription relationship between a first user (subscriber) and a second user (subscriber). If the first user subscribes to the second user, the corresponding bit will be set to 1 (indicating the existence of a subscription relationship). If the first user does not subscribe to the second user, the corresponding bit will be set to 0 (indicating the non-existence of a subscription relationship). The user ID of the first user is used as the key (Key) to quickly retrieve the corresponding bitmap. The bitmap is associated with the key as a value (Value), storing the subscription status of the first user for all potential subscribers.
示例性的,如下表一所示:For example, the following table shows:
表一Table 1
表一表示订阅者集合,表一可以理解为位图中订阅关系具象化的表示。从表一可以看出订阅者A:[被订阅者X,被订阅者Y];订阅者B:[被订阅者Y,被订阅者Z];订阅者C:[被订阅者X]。表一可以看出订阅者关系集合中包含了每个订阅者与其订阅的被订阅者之间的关系映射。Table 1 shows the subscriber set, which can be understood as a concrete representation of the subscription relationship in the bitmap. From Table 1, we can see that Subscriber A: [Subscriber X, Subscriber Y]; Subscriber B: [Subscriber Y, Subscriber Z]; Subscriber C: [Subscriber X]. Table 1 shows that the subscriber relationship set contains the relationship mapping between each subscriber and the subscribers it subscribes to.
订阅平台可以为每个第二用户(被订阅者)维护一个位图,其中每个位可以用来表示一个的订阅关系,代表一个第二用户(被订阅者)与第一用户(订阅者)的订阅关系。如果第二用户被第一用户订阅,则相应的位将被设置为1(表示存在被订阅关系)。如果第二用户没有被第一用户订阅,则相应的位将被设置为0(表示不存在被订阅关系)。使用第二用户的用户标识作为键(Key),用于快速检索对应的位图。位图作为值(Value)与键关联,存储了第二用户被所有订阅者的订阅状态。The subscription platform can maintain a bitmap for each second user (subscriber), where each bit can be used to represent a subscription relationship, representing a subscription relationship between a second user (subscriber) and a first user (subscriber). If the second user is subscribed by the first user, the corresponding bit will be set to 1 (indicating the existence of a subscription relationship). If the second user is not subscribed by the first user, the corresponding bit will be set to 0 (indicating the non-existence of a subscription relationship). The user ID of the second user is used as the key (Key) to quickly retrieve the corresponding bitmap. The bitmap is associated with the key as a value (Value), storing the subscription status of the second user by all subscribers.
示例性的,如表二所示:For example, as shown in Table 2:
表二Table 2
表二表示被订阅者集合,表二可以理解为位图中被订阅关系具象化的表示。从表二可以看出被订阅者X:[订阅者A,订阅者C];被订阅者Y:[订阅者A,订阅者B];被订阅者Z:[订阅者B]。表二可以看出被订阅者关系集合中包含了每个被订阅者与订阅它们的订阅者之间的关系映射。Table 2 shows the set of subscribers, which can be understood as a concrete representation of the subscription relationship in the bitmap. From Table 2, we can see that Subscriber X: [Subscriber A, Subscriber C]; Subscriber Y: [Subscriber A, Subscriber B]; Subscriber Z: [Subscriber B]. Table 2 shows that the subscription relationship set contains the relationship mapping between each subscriber and the subscribers who subscribe to them.
需要注意的是,订阅平台的表一和表二可以进行单独存储,也可以共同存储到一个位图中,表一与表二的存储方式在此做限定。It should be noted that Table 1 and Table 2 of the subscription platform can be stored separately or stored together in a bitmap. The storage method of Table 1 and Table 2 is limited here.
以上,订阅平台就可以利用位图的形式进行订阅关系的高效存储。以下,将具体说明订阅平台是如何进行订阅关系的更新。As described above, the subscription platform can use the bitmap format to efficiently store the subscription relationship. The following will specifically describe how the subscription platform updates the subscription relationship.
如下,将具体说明订阅平台如何根据接收到的终端发送的第一请求,更新维护的订阅关系,方法包括:As follows, how the subscription platform updates the maintained subscription relationship according to the first request sent by the terminal is specifically described, and the method includes:
基于第一请求,确定第一请求对应的第三用户;第三用户为第一请求所指示的订阅对象;Based on the first request, determining a third user corresponding to the first request; the third user is a subscription object indicated by the first request;
建立终端对应的第一用户与第三用户之间的订阅关系;其中,订阅关系包括:订阅者关系与被订阅者关系;Establishing a subscription relationship between a first user and a third user corresponding to the terminal; wherein the subscription relationship includes: a subscriber relationship and a subscribed relationship;
在订阅平台中存储订阅关系。Store subscription relationships in the subscription platform.
在本公开实施例中,订阅平台接收到第一请求后,首先可以进行解析,识别出第一请求中对应的第三用户。第三用户为第一请求指定的订阅对象。而具体识别第一请求的信息可以为识别第三用户(被订阅者)的标识。接着,订阅平台还可以进行发起请求的终端身份验证,确保订阅操作的合法性。然后,经过验证后,订阅平台可以根据请求内容建立终端(或称为订阅者)与第三用户(被订阅者)之间的订阅关系。这一步骤可以包括记录双方的标识、订阅的级别、订阅条件、目标级别等信息。最后,还可以把建立好的订阅关系会存储在订阅平台的数据库或订阅管理系统中。这可以包括订阅者和被订阅者标识、订阅的标识、订阅级别、订阅的条件、时间戳等所有关键信息,以确保关系的可查询、更新和管理。In the disclosed embodiment, after receiving the first request, the subscription platform can first parse and identify the third user corresponding to the first request. The third user is the subscription object specified by the first request. The information for specifically identifying the first request can be an identifier for identifying the third user (subscriber). Next, the subscription platform can also perform identity authentication of the terminal that initiates the request to ensure the legitimacy of the subscription operation. Then, after verification, the subscription platform can establish a subscription relationship between the terminal (or subscriber) and the third user (subscriber) according to the request content. This step may include recording the identifiers of both parties, the level of subscription, subscription conditions, target level and other information. Finally, the established subscription relationship can also be stored in the database or subscription management system of the subscription platform. This may include all key information such as the subscriber and subscriber identifiers, subscription identifiers, subscription levels, subscription conditions, timestamps, etc., to ensure that the relationship can be queried, updated and managed.
需要注意的是,本申请的订阅类型可以包括联系人订阅、企业订阅和成员订阅。终端可以根据订阅类型的不同,选择性的向订阅平台发送第一请求,以确定第三用户。其中,终端可以选择不同的网络订阅接口类型,以订阅不同的消息。It should be noted that the subscription types of the present application may include contact subscription, enterprise subscription and member subscription. The terminal may selectively send a first request to the subscription platform to determine the third user according to the different subscription types. The terminal may select different network subscription interface types to subscribe to different messages.
如下,具体说明针对不同的订阅接口类型,订阅平台如何根据第一请求,确定第一请求对应的第三用户。The following specifically describes how the subscription platform determines the third user corresponding to the first request according to the first request for different subscription interface types.
根据本公开实施例的基于第一请求,订阅平台确定第一请求对应的第三用户的方法包括:According to an embodiment of the present disclosure, based on the first request, a method for a subscription platform to determine a third user corresponding to the first request includes:
基于第一请求的订阅类型,获取订阅类型对应的联系人集合;Based on the subscription type of the first request, obtain a contact set corresponding to the subscription type;
基于联系人集合,确定第三用户;Determining a third user based on the contact set;
其中,订阅类型包括如下至少一种:联系人订阅、企业订阅和成员订阅。The subscription type includes at least one of the following: contact subscription, enterprise subscription, and member subscription.
在本公开实施例中,订阅平台可以根据接收到的第一请求解析第一请求中的订阅类型。订阅类型包括但不限于如下至少一种:联系人订阅、企业订阅和成员订阅。接着,订阅平台可以根据订阅类型获取联系人集合,这可以通过应用程序接口的调用、查询数据库的方式等至少一种的方式获得联系人集合,获取联系人集合的方式在此不作限定。然后,在联系人集合中确定第一请求的第三用户。In the disclosed embodiment, the subscription platform may parse the subscription type in the first request according to the received first request. The subscription type includes but is not limited to at least one of the following: contact subscription, enterprise subscription, and member subscription. Then, the subscription platform may obtain the contact set according to the subscription type, which may be obtained by at least one of calling an application program interface and querying a database, and the method of obtaining the contact set is not limited here. Then, the third user of the first request is determined in the contact set.
具体地,对于联系人订阅:查询联系人列表。这可以根据第一请求中的信息(如目标用户ID、搜索条件等),查询联系人列表,得到查询结果。从查询结果中,确定第一请求对应的第三用户(即被订阅的联系人)。对于企业订阅:订阅平台可以根据接收到的企业订阅的请求,查询企业列表。这可以根据第一请求中的信息(如企业成员ID等搜索条件),查询企业列表。从查询结果中,系统确定第一请求对应的企业作为第三用户(即被订阅的企业)。对于成员订阅:订阅平台可以根据接收到的成员订阅的请求,查询成员列表,得到查询结果。成员可以指的是某个团队、群组或社区中的成员。从查询结果中,确定第一请求对应的成员作为第三用户(即被订阅的成员)。Specifically, for contact subscription: query the contact list. This can query the contact list based on the information in the first request (such as the target user ID, search conditions, etc.) to obtain the query results. From the query results, determine the third user corresponding to the first request (i.e., the subscribed contact). For enterprise subscription: the subscription platform can query the enterprise list based on the received enterprise subscription request. This can query the enterprise list based on the information in the first request (such as search conditions such as enterprise member ID). From the query results, the system determines the enterprise corresponding to the first request as the third user (i.e., the subscribed enterprise). For member subscription: the subscription platform can query the member list based on the received member subscription request to obtain the query results. Members can refer to members of a team, group or community. From the query results, determine the member corresponding to the first request as the third user (i.e., the subscribed member).
示例性的,联系人订阅的步骤如下图4所示:a.终端侧选择订阅联系人;b.订阅平台侧数据库查询联系人列表;c.订阅平台侧更新联系人订阅关系;d.订阅平台侧更新联系人被订阅关系。Exemplarily, the steps of contact subscription are shown in FIG4 below: a. The terminal side selects the subscription contact; b. The subscription platform side queries the contact list in the database; c. The subscription platform side updates the contact subscription relationship; d. The subscription platform side updates the contact subscription relationship.
示例性的,企业订阅的步骤如下图5所示:a.终端侧选择订阅企业;b.订阅平台侧数据库查询企业成员列表;c.订阅平台侧更新企业成员订阅关系;d.订阅平台侧更新企业成员被订阅关系。Exemplarily, the steps of enterprise subscription are shown in Figure 5 below: a. The terminal side selects the subscription enterprise; b. The subscription platform side queries the enterprise member list in the database; c. The subscription platform side updates the enterprise member subscription relationship; d. The subscription platform side updates the enterprise member subscription relationship.
示例性的,成员订阅的步骤如下图6所示:a.终端侧选择订阅成员;b.订阅平台侧根据提供成员ID进行订阅;c.订阅平台侧更新成员订阅关系;d.订阅平台侧更新成员被订阅关系。Exemplarily, the steps of member subscription are shown in Figure 6 below: a. The terminal side selects the subscription member; b. The subscription platform side subscribes according to the provided member ID; c. The subscription platform side updates the member subscription relationship; d. The subscription platform side updates the member subscription relationship.
以上,订阅平台就可以根据接收到的终端发送的第一请求,确定请求的第三用户,建立终端对应的第一用户与第三用户之间的订阅关系并存储。以下,具体介绍订阅平台利用上述的订阅关系向目标终端发送第一消息的方法。In the above, the subscription platform can determine the third user of the request according to the first request sent by the terminal, establish and store the subscription relationship between the first user corresponding to the terminal and the third user. The following specifically introduces the method for the subscription platform to send the first message to the target terminal using the above subscription relationship.
如下,根据本公开实施例的基于订阅关系,订阅平台向目标终端发送第一消息的方法包括:As follows, according to an embodiment of the present disclosure, a method for a subscription platform to send a first message to a target terminal based on a subscription relationship includes:
基于订阅关系,确定第一消息对应的目标终端;Based on the subscription relationship, determining a target terminal corresponding to the first message;
获取各目标终端当前对应的目标级别;Get the target level currently corresponding to each target terminal;
当第一消息属于目标级别时,向目标终端发送第一消息。When the first message belongs to the target level, the first message is sent to the target terminal.
在本公开实施例中,订阅平台首先可以解析第一消息,查询订阅关系。这些订阅关系可以存储在数据库、缓存在存储系统中。根据查询到的订阅关系,确定第一消息应该发送给哪些终端。接着,对于每个确定的目标终端,订阅平台可以获取该终端用户当前对应的目标级别。其中,获取的方法可以是实时通信得到,也可以是读取缓存得到,具体的获取方法在此不作限定。然后,将第一消息与每个目标终端对应的目标级别进行比较。这可以通过比较数字、字符串或其他标识符等至少一种方式来实现。如果第一消息属于目标终端的目标级别(即用户希望接收该级别的消息),则向该目标终端发送第一消息。发送方式的方式具体可以由终端的类型和用户的偏好设置。In the disclosed embodiment, the subscription platform may first parse the first message and query the subscription relationship. These subscription relationships may be stored in a database and cached in a storage system. Based on the queried subscription relationship, determine which terminals the first message should be sent to. Then, for each determined target terminal, the subscription platform may obtain the target level currently corresponding to the terminal user. Among them, the acquisition method may be obtained by real-time communication or by reading the cache, and the specific acquisition method is not limited here. Then, the first message is compared with the target level corresponding to each target terminal. This can be achieved by comparing at least one method such as numbers, strings or other identifiers. If the first message belongs to the target level of the target terminal (that is, the user wants to receive messages of this level), the first message is sent to the target terminal. The sending method may be specifically set by the type of terminal and the user's preference.
而需要注意的是,目标级别的确定,可以是终端本身基于状态信息确定发送的,也可以是订阅平台基于终端发送的状态信息进行确定。以下,具体说明订阅平台确定目标级别的方法。It should be noted that the target level can be determined by the terminal itself based on the status information sent, or by the subscription platform based on the status information sent by the terminal. The following specifically describes the method for the subscription platform to determine the target level.
如下,订阅平台确定目标级别的方法包括:The subscription platform determines the target level by:
基于第一请求中携带的状态消息,确定在预设的订阅级别中确定终端当前对应的目标级别;订阅级别用于指示订阅消息的重要程度;Based on the status message carried in the first request, determining a target level currently corresponding to the terminal in a preset subscription level; the subscription level is used to indicate the importance of the subscription message;
缓存或更新目标级别。Cache or update the target level.
在本公开实施例中,订阅平台接收到第一请求时,可以解析的得到该请求的状态信息。其中,状态信息可以包括但不限于如下至少一种:屏幕状态、电量状态和网络状态。接着根据解析出的状态消息和预设的订阅级别的对应关系,确定终端当前对应的目标级别。最后,订阅平台可以检查是否已经缓存了终端的目标级别。这可以通过查询本地缓存、数据库或远程服务等至少一种来实现。如果已缓存:比较缓存中的目标级别与基于当前状态消息计算出的目标级别是否相同。如果相同,则无需进一步操作;如果不同,则需要更新缓存。如果未缓存或需要更新:将新计算出的目标级别缓存起来。缓存的位置和方式取决于系统的架构和性能需求,在此不作限定。In an embodiment of the present disclosure, when the subscription platform receives the first request, it can parse and obtain the status information of the request. Among them, the status information may include but is not limited to at least one of the following: screen status, power status and network status. Then, based on the correspondence between the parsed status message and the preset subscription level, determine the target level currently corresponding to the terminal. Finally, the subscription platform can check whether the target level of the terminal has been cached. This can be achieved by querying at least one of the local cache, database or remote service. If cached: compare whether the target level in the cache is the same as the target level calculated based on the current status message. If the same, no further operation is required; if different, the cache needs to be updated. If not cached or needs to be updated: cache the newly calculated target level. The location and method of the cache depends on the architecture and performance requirements of the system, and is not limited here.
需要注意的是,目标级别的具体划分已经在上述的终端侧阐述,具体可参照前文,此处不赘述。It should be noted that the specific division of target levels has been explained on the terminal side mentioned above. Please refer to the previous text for details and will not be repeated here.
本公开还提供了一种消息处理装置。图7为本公开实施例提供的一种消息处理装置的结构框图,如图7所示,该消息处理装置700包括:The present disclosure also provides a message processing device. FIG7 is a structural block diagram of a message processing device provided by an embodiment of the present disclosure. As shown in FIG7 , the message processing device 700 includes:
获取单元701,用于获取终端当前的状态信息。The acquisition unit 701 is used to acquire the current status information of the terminal.
发送单元702,用于基于状态信息,向订阅平台发送第一请求;第一请求携带状态信息或订阅消息的属性信息。The sending unit 702 is used to send a first request to the subscription platform based on the state information; the first request carries the state information or attribute information of the subscription message.
接收单元703,用于接收来自于订阅平台的第一消息。The receiving unit 703 is configured to receive a first message from a subscription platform.
示例性的一种实施例中,状态信息包括如下至少一种:屏幕状态、电量状态、网络状态。In an exemplary embodiment, the status information includes at least one of the following: screen status, battery status, and network status.
示例性的一种实施例中,基于状态信息,向订阅平台发送第一请求,包括:基于状态信息,在预设的订阅级别中确定终端当前对应的目标级别;订阅级别用于指示订阅消息的重要程度;向订阅平台发送第一请求,第一请求携带订阅消息的属性信息;属性信息包括如下至少一种:目标级别、目标级别对应的消息标识。In an exemplary embodiment, based on the status information, a first request is sent to a subscription platform, including: based on the status information, determining a target level currently corresponding to the terminal in a preset subscription level; the subscription level is used to indicate the importance of the subscription message; a first request is sent to the subscription platform, the first request carrying attribute information of the subscription message; the attribute information includes at least one of the following: a target level, a message identifier corresponding to the target level.
示例性的一种实施例中,目标级别对应的消息标识,包括:第一集合中的消息标识;其中,第一集合为目标级别对应的消息集合;第二集合中的消息标识;其中,第二集合为重要程度高于目标级别的其他订阅级别对应的消息集合;其中,按照重要程度降序排序,订阅级别依次包括如下至少一种:第一级别、第二级别、第三级别、第四级别;其中,第一级别对应于关键消息层的订阅消息;第二级别对应于一般消息层的订阅消息;第三级别对应于互动消息层的订阅消息;第四级别对应于可忽略消息层的订阅消息。In an exemplary embodiment, the message identifiers corresponding to the target level include: message identifiers in a first set; wherein the first set is a message set corresponding to the target level; message identifiers in a second set; wherein the second set is a message set corresponding to other subscription levels whose importance is higher than the target level; wherein, sorted in descending order of importance, the subscription levels include at least one of the following: first level, second level, third level, fourth level; wherein the first level corresponds to subscription messages of a critical message layer; the second level corresponds to subscription messages of a general message layer; the third level corresponds to subscription messages of an interactive message layer; and the fourth level corresponds to subscription messages of an ignorable message layer.
示例性的一种实施例中,基于状态信息,在预设的订阅级别中确定终端当前对应的目标级别,包括:当屏幕状态为息屏状态时,确定目标级别为第一级别;或者,当屏幕状态为亮屏状态时,确定目标级别为第三级别。In an exemplary embodiment, based on the status information, the target level currently corresponding to the terminal is determined in the preset subscription level, including: when the screen status is the screen-off state, determining the target level to be the first level; or, when the screen status is the screen-on state, determining the target level to be the third level.
示例性的一种实施例中,当终端当前的屏幕状态为由息屏状态转为亮屏状态时,方法还包括:向订阅平台发送第二请求,第二请求用于请求订阅平台反馈息屏状态期间的未订阅消息;未订阅消息包括:第二级别和/或第三级别的消息;接收来自于订阅平台的第二消息。In an exemplary embodiment, when the current screen state of the terminal changes from the screen-off state to the screen-on state, the method also includes: sending a second request to the subscription platform, the second request is used to request the subscription platform to feedback unsubscribed messages during the screen-off state; the unsubscribed messages include: second-level and/or third-level messages; receiving a second message from the subscription platform.
示例性的一种实施例中,第一请求用于请求订阅第一消息;和/或,第三请求用于请求取消订阅第三消息,第三消息为已订阅的与状态信息不符的消息。In an exemplary embodiment, the first request is used to request subscription to a first message; and/or the third request is used to request unsubscription to a third message, where the third message is a subscribed message that does not match the status information.
本公开还提供了一种消息处理装置。图8为本公开实施例提供的一种消息处理装置的结构框图,如图8所示,该消息处理装置800包括:The present disclosure also provides a message processing device. FIG8 is a structural block diagram of a message processing device provided by an embodiment of the present disclosure. As shown in FIG8 , the message processing device 800 includes:
接收单元801,用于接收来自于终端的第一请求;第一请求携带终端的状态信息或订阅消息的属性信息。The receiving unit 801 is configured to receive a first request from a terminal; the first request carries the state information of the terminal or the attribute information of a subscription message.
更新单元802,用于基于第一请求,更新订阅平台中维护的订阅关系。The updating unit 802 is configured to update the subscription relationship maintained in the subscription platform based on the first request.
发送单元803,用于当接收到任意一个第一消息时,基于订阅关系,向目标终端发送第一消息。The sending unit 803 is configured to send the first message to the target terminal based on the subscription relationship when any first message is received.
示例性的一种实施例中,方法还包括:以位图形式,维护订阅关系;其中,订阅关系以任意一个第一用户的用户标识为键,以第二用户的用户标识为值进行存储;其中,第一用户与第二用户具备订阅关系;其中,订阅关系包括:订阅者关系与被订阅者关系。In an exemplary embodiment, the method also includes: maintaining a subscription relationship in a bitmap form; wherein the subscription relationship is stored using a user identifier of any first user as a key and a user identifier of a second user as a value; wherein the first user and the second user have a subscription relationship; wherein the subscription relationship includes: a subscriber relationship and a subscribed relationship.
示例性的一种实施例中,基于第一请求,更新订阅平台中维护的订阅关系,包括:基于第一请求,确定第一请求对应的第三用户;第三用户为第一请求所指示的订阅对象;建立终端对应的第一用户与第三用户之间的订阅关系;其中,订阅关系包括:订阅者关系与被订阅者关系;在订阅平台中存储订阅关系。In an exemplary embodiment, based on a first request, a subscription relationship maintained in a subscription platform is updated, including: based on the first request, determining a third user corresponding to the first request; the third user is the subscription object indicated by the first request; establishing a subscription relationship between the first user corresponding to the terminal and the third user; wherein the subscription relationship includes: a subscriber relationship and a subscribed relationship; and storing the subscription relationship in the subscription platform.
示例性的一种实施例中,基于第一请求,确定第一请求对应的第三用户,包括:基于第一请求的订阅类型,获取订阅类型对应的联系人集合;基于联系人集合,确定第三用户;其中,订阅类型包括如下至少一种:联系人订阅、企业订阅和成员订阅。In an exemplary embodiment, based on the first request, determining the third user corresponding to the first request includes: based on the subscription type of the first request, obtaining a contact set corresponding to the subscription type; based on the contact set, determining the third user; wherein the subscription type includes at least one of the following: contact subscription, enterprise subscription, and member subscription.
示例性的一种实施例中,基于订阅关系,向目标终端发送第一消息,包括:基于订阅关系,确定第一消息对应的目标终端;获取各目标终端当前对应的目标级别;当第一消息属于目标级别时,向目标终端发送第一消息。In an exemplary embodiment, sending a first message to a target terminal based on a subscription relationship includes: determining a target terminal corresponding to the first message based on the subscription relationship; obtaining a target level currently corresponding to each target terminal; and sending the first message to the target terminal when the first message belongs to the target level.
示例性的一种实施例中,方法还包括:基于第一请求中携带的状态消息,确定在预设的订阅级别中确定终端当前对应的目标级别;订阅级别用于指示订阅消息的重要程度;缓存或更新目标级别。In an exemplary embodiment, the method further includes: determining a target level currently corresponding to the terminal in a preset subscription level based on a status message carried in the first request; the subscription level is used to indicate the importance of the subscription message; and caching or updating the target level.
示例性的一种实施例中,基于第一请求中携带的状态消息,确定在预设的订阅级别中确定终端当前对应的目标级别,包括:当第一请求中携带的屏幕状态为息屏状态时,确定目标级别为第一级别;或者,当第一请求中携带的屏幕状态为亮屏状态时,确定目标级别为第三级别。In an exemplary embodiment, based on the status message carried in the first request, the target level currently corresponding to the terminal is determined in the preset subscription level, including: when the screen status carried in the first request is the screen-off state, the target level is determined to be the first level; or, when the screen status carried in the first request is the screen-on state, the target level is determined to be the third level.
示例性的一种实施例中,当第一请求中屏幕状态为由息屏状态转为亮屏状态时,方法还包括:接收来自于终端的第二请求,第二请求用于请求反馈息屏状态期间的未订阅消息;未订阅消息包括:第二级别和/或第三级别的消息;向终端发送第二消息;第二消息携带息屏状态期间的未订阅消息。In an exemplary embodiment, when the screen state in the first request changes from the screen-off state to the screen-on state, the method also includes: receiving a second request from the terminal, the second request is used to request feedback of unsubscribed messages during the screen-off state; the unsubscribed messages include: second-level and/or third-level messages; sending a second message to the terminal; the second message carries the unsubscribed messages during the screen-off state.
图9为本公开实施例提供的一种电子设备的硬件框图。根据本公开实施例的电子设备900至少包括处理器;以及存储器,用于存储计算机可读指令。当计算机可读指令由处理器加载并运行时,处理器执行本公开前文任一实施例所述的消息处理方法。FIG9 is a hardware block diagram of an electronic device provided by an embodiment of the present disclosure. The electronic device 900 according to an embodiment of the present disclosure includes at least a processor; and a memory for storing computer-readable instructions. When the computer-readable instructions are loaded and executed by the processor, the processor executes the message processing method described in any of the foregoing embodiments of the present disclosure.
图9所示的电子设备900具体地包括:中央处理单元(CPU)901、图形处理单元(GPU)902和存储器903。这些单元通过总线904互相连接。中央处理单元(CPU)901和/或图形处理单元(GPU)902可以用作上述处理器,存储器903可以用作上述存储计算机可读指令的存储器。此外,电子设备900还可以包括通信单元905、存储单元906、输出单元907、输入单元908和外部设备909,这些单元也连接到总线904。The electronic device 900 shown in FIG9 specifically includes: a central processing unit (CPU) 901, a graphics processing unit (GPU) 902, and a memory 903. These units are interconnected via a bus 904. The central processing unit (CPU) 901 and/or the graphics processing unit (GPU) 902 can be used as the above-mentioned processor, and the memory 903 can be used as the above-mentioned memory for storing computer-readable instructions. In addition, the electronic device 900 may also include a communication unit 905, a storage unit 906, an output unit 907, an input unit 908, and an external device 909, which are also connected to the bus 904.
图10为本公开实施例提供的一种计算机可读存储介质的示意图。如图10所示,根据本公开实施例的计算机可读存储介质1000其上存储有计算机可读指令1001。当计算机可读指令1001由处理器运行时,执行参照以上附图描述的根据本公开前文任一实施例所述的消息处理方法。计算机可读存储介质包括但不限于例如易失性存储器和/或非易失性存储器。易失性存储器例如可以包括随机存取存储器(RAM)和/或高速缓冲存储器(cache)等。非易失性存储器例如可以包括只读存储器(ROM)、硬盘、闪存、光盘、磁盘等。FIG10 is a schematic diagram of a computer-readable storage medium provided by an embodiment of the present disclosure. As shown in FIG10 , a computer-readable storage medium 1000 according to an embodiment of the present disclosure has computer-readable instructions 1001 stored thereon. When the computer-readable instructions 1001 are executed by a processor, the message processing method described in any of the foregoing embodiments of the present disclosure described with reference to the above figures is executed. The computer-readable storage medium includes, but is not limited to, for example, volatile memory and/or non-volatile memory. Volatile memory may, for example, include random access memory (RAM) and/or cache memory (cache), etc. Non-volatile memory may, for example, include read-only memory (ROM), hard disk, flash memory, optical disk, magnetic disk, etc.
本公开还进一步提供了一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现本公开前文任一实施例所述的消息处理方法。The present disclosure further provides a computer program product, including a computer program, which, when executed by a processor, implements the message processing method described in any of the foregoing embodiments of the present disclosure.
以上,参照附图描述了根据本公开实施例的消息处理方法、装置、电子设备、存储介质和程序产品,终端可以获取自身的状态信息,终端可以基于状态信息确定向订阅平台发送第一请求,第一请求信息携带状态信息或订阅消息的属性信息。最后终端可以接收来自于订阅平台的第一消息。第一消息可以理解为第一请求的响应消息。这样,终端就可以基于本身的状态信息决定需要进行哪些数据的订阅处理,以此终端就能动态地调整数据订阅和处理策略,以实现更为灵活,智能化的管理,可以满足多种需求,适用于多种应用场景。同时,订阅平台不再是将所有的相关消息(全量数据)全部推送给终端,而是根据终端发送的请求选择性的对应发送订阅信息。这样终端和订阅平台的相互配合就解决了网络拥塞的问题,提高了处理效率。In the above, the message processing method, device, electronic device, storage medium and program product according to the embodiments of the present disclosure are described with reference to the accompanying drawings. The terminal can obtain its own status information, and the terminal can determine to send a first request to the subscription platform based on the status information. The first request information carries the status information or the attribute information of the subscription message. Finally, the terminal can receive the first message from the subscription platform. The first message can be understood as a response message to the first request. In this way, the terminal can determine which data needs to be subscribed based on its own status information, so that the terminal can dynamically adjust the data subscription and processing strategy to achieve more flexible and intelligent management, which can meet various needs and is suitable for various application scenarios. At the same time, the subscription platform no longer pushes all relevant messages (full data) to the terminal, but selectively sends subscription information according to the request sent by the terminal. In this way, the mutual cooperation between the terminal and the subscription platform solves the problem of network congestion and improves processing efficiency.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本公开的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer 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 disclosure.
以上结合具体实施例描述了本公开的基本原理,但是,需要指出的是,在本公开中提及的优点、优势、效果等仅是示例而非限制,不能认为这些优点、优势、效果等是本公开的各个实施例必须具备的。另外,上述公开的具体细节仅是为了示例的作用和便于理解的作用,而非限制,上述细节并不限制本公开为必须采用上述具体的细节来实现。The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.
本公开中涉及的器件、装置、设备、系统的方框图仅作为例示性的例子并且不意图要求或暗示必须按照方框图示出的方式进行连接、布置、配置。如本领域技术人员将认识到的,可以按任意方式连接、布置、配置这些器件、装置、设备、系统。诸如“包括”、“包含”、“具有”等等的词语是开放性词汇,指“包括但不限于”,且可与其互换使用。这里所使用的词汇“或”和“和”指词汇“和/或”,且可与其互换使用,除非上下文明确指示不是如此。这里所使用的词汇“诸如”指词组“诸如但不限于”,且可与其互换使用。The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and/or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.
另外,如在此使用的,在以“至少一个”开始的项的列举中使用的“或”指示分离的列举,以便例如“A、B或C的至少一个”的列举意味着A或B或C,或AB或AC或BC,或ABC(即A和B和C)。此外,措辞“示例的”不意味着描述的例子是优选的或者比其他例子更好。Additionally, as used herein, "or" used in a list of items beginning with "at least one" indicates a separate list, so that, for example, a list of "at least one of A, B, or C" means A or B or C, or AB or AC or BC, or ABC (i.e., A and B and C). Furthermore, the word "exemplary" does not mean that the example described is preferred or better than other examples.
还需要指出的是,在本公开的系统和方法中,各部件或各步骤是可以分解和/或重新组合的。这些分解和/或重新组合应视为本公开的等效方案。It should also be noted that in the system and method of the present disclosure, each component or each step can be decomposed and/or recombined. Such decomposition and/or recombination should be regarded as equivalent solutions of the present disclosure.
可以不脱离由所附权利要求定义的教导的技术而进行对在此所述的技术的各种改变、替换和更改。此外,本公开的权利要求的范围不限于以上所述的处理、机器、制造、事件的组成、手段、方法和动作的具体方面。可以利用与在此所述的相应方面进行基本相同的功能或者实现基本相同的结果的当前存在的或者稍后要开发的处理、机器、制造、事件的组成、手段、方法或动作。因而,所附权利要求包括在其范围内的这样的处理、机器、制造、事件的组成、手段、方法或动作。Various changes, substitutions, and modifications of the techniques described herein may be made without departing from the teachings defined by the appended claims. Furthermore, the scope of the claims of the present disclosure is not limited to the specific aspects of the processes, machines, manufactures, compositions of events, means, methods, and actions described above. Currently existing or later to be developed processes, machines, manufactures, compositions of events, means, methods, or actions that perform substantially the same functions or achieve substantially the same results as the corresponding aspects described herein may be utilized. Thus, the appended claims include such processes, machines, manufactures, compositions of events, means, methods, or actions within their scope.
提供所公开的方面的以上描述以使本领域的任何技术人员能够做出或者使用本公开。对这些方面的各种修改对于本领域技术人员而言是非常显而易见的,并且在此定义的一般原理可以应用于其他方面而不脱离本公开的范围。因此,本公开不意图被限制到在此示出的方面,而是按照与在此公开的原理和新颖的特征一致的最宽范围。The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
为了例示和描述的目的已经给出了以上描述。此外,此描述不意图将本公开的实施例限制到在此公开的形式。尽管以上已经讨论了多个示例方面和实施例,但是本领域技术人员将认识到其某些变型、修改、改变、添加和子组合。The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims (20)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410623956.0A CN118803037A (en) | 2024-05-20 | 2024-05-20 | Message processing method, device, electronic device, storage medium and program product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410623956.0A CN118803037A (en) | 2024-05-20 | 2024-05-20 | Message processing method, device, electronic device, storage medium and program product |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118803037A true CN118803037A (en) | 2024-10-18 |
Family
ID=93027002
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410623956.0A Pending CN118803037A (en) | 2024-05-20 | 2024-05-20 | Message processing method, device, electronic device, storage medium and program product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118803037A (en) |
-
2024
- 2024-05-20 CN CN202410623956.0A patent/CN118803037A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11677850B2 (en) | Method, apparatus and system for notification | |
US8612527B2 (en) | Automatic notification system and process | |
CN111565418A (en) | A communication method and system between O-RAN and MEC | |
US7640299B2 (en) | Optimizing communication using scaleable peer groups | |
US8126836B2 (en) | Call group management using the session initiation protocol | |
US20080019300A1 (en) | Ad-hoc groups in sip/simple | |
CN101232467A (en) | Method for obtaining information using time jab in real time communicating business | |
CN101379715A (en) | Method and apparatus for updating a presence attribute | |
CN101599985B (en) | Content-obtaining method, content-receiving method, server and terminals | |
CN102308532A (en) | Point-to-multipoint push message processing method, system and server | |
CN103634409A (en) | Method and system for realizing always-online internet application | |
CN101795222A (en) | Multi-stage forward service system and method | |
CN101710902A (en) | Unstructured P2P network and data query method and index update method thereof | |
US20100332597A1 (en) | Method and system for reducing the number of presence events within a network | |
US20080208990A1 (en) | Presence system, communication terminal, server and computer program product therefor | |
CN102208988B (en) | Message processing method, system and equipment thereof | |
CN108540367A (en) | A kind of message treatment method and system | |
CN118235450A (en) | Model performance monitoring method, device, equipment and medium | |
CN102035796A (en) | Method and device for providing differentiated service in video sharing | |
CN111355986A (en) | Message processing method and device in live broadcast room and storage medium | |
CN101771691B (en) | System for converging user information and perception, convergency and decision method for user information | |
US20080208982A1 (en) | Method and system for providing status information relating to a relation between a plurality of participants | |
CN102209084B (en) | Processing method of Push message, apparatus thereof and communication system | |
CN102065099A (en) | Signaling and bearing separated communication system | |
CN102209313A (en) | Presence information subscribing method and system, resource list server and presence server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |