Data processing method and device, electronic equipment and storage medium
By using the set of page numbers and identification information to generate a binary sequence and then converting it into non-binary data, the problem of large data transmission volume under page constraints is solved, achieving efficient data transmission and accurate push information display.
Patent Information
- Application Number
- CN202310101974.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-28
- Publication Date
- 2026-01-20
- Estimated Expiration
- 2043-01-28
AI Technical Summary
When dealing with page constraints, the amount of data transmitted in related technologies is large, resulting in low efficiency.
By obtaining the set of page numbers and identification information corresponding to the push information, the binary sequence is determined and converted to generate non-binary first-conversion data, thereby reducing the amount of data transmission.
It effectively reduces data transmission volume, improves transmission efficiency, and ensures that the terminal accurately controls the display of pushed information.
Smart Images

Figure CN116244023B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of computer, and particularly relates to a data processing method and device, electronic equipment and storage medium. BACKGROUND
[0002] With the development of Internet technology, the interaction between applications and users becomes more and more frequent. In order to enable users to quickly obtain important information, push information is often sent to users. However, there are some application pages that do not allow the display of push information, such as live scene pages, so page constraints are needed. In related technologies, page constraints are often performed by using page names, which makes the content of page constraints complex, and the data transmission amount is large when data transmission is performed. SUMMARY
[0003] The data processing method and device, electronic equipment and storage medium provided by the present disclosure at least solve the problem of large data transmission amount in page constraints in related technologies. The technical solutions of the present disclosure are as follows.
[0004] According to a first aspect of an embodiment of the present disclosure, a data processing method is provided, applied to a server, comprising:
[0005] obtaining a page serial number set corresponding to push information and identification information corresponding to the page serial number set; the page serial number set comprises at least one first page serial number, and one first page serial number corresponds to one application page of a target application; the identification information is used to indicate whether to display the push information;
[0006] determining a binary sequence based on the page serial number set; one first value in the binary sequence corresponds to one first page serial number, and one second value in the binary sequence corresponds to one second page serial number; the second page serial number is a missing page serial number between the first page serial numbers;
[0007] converting the binary sequence to obtain first conversion data in non-binary form;
[0008] sending the push information, the first conversion data and the identification information to a terminal.
[0009] Optionally, after the step of obtaining first conversion data in non-binary form, the method further comprises:
[0010] performing character conversion on the first conversion data based on a character encoding table to determine second conversion data;
[0011] The step of sending the push information, the first conversion data and the identification information to a terminal comprises:
[0012] Send the push information, the second conversion data and the identification information to a terminal.
[0013] Optionally, the step of obtaining the page serial number set corresponding to the push information comprises:
[0014] Obtain a page name set corresponding to the push information.
[0015] Determine the page serial number set corresponding to the page name set based on a pre-set mapping relationship table of page names and page serial numbers.
[0016] Optionally, the step of determining the binary sequence based on the page serial number set comprises:
[0017] Determine a second page serial number based on a first page serial number in the page serial number set.
[0018] Arrange a first value corresponding to each first page serial number and a second value corresponding to each second page serial number in the order of page serial numbers to obtain a binary sequence.
[0019] According to a second aspect of the embodiments of the present disclosure, a data processing method applied to a terminal is provided, comprising:
[0020] Obtain push information, first conversion data and identification information; the first conversion data is non-binary data; the identification information is used to indicate whether to display the push information;
[0021] Perform binary conversion on the first conversion data to obtain a binary sequence; a first value in the binary sequence corresponds to a first page serial number, and a second value in the binary sequence corresponds to a second page serial number; the second page serial number is a missing page serial number between the first page serial numbers;
[0022] Determine a page serial number set based on the binary sequence; the page serial number set comprises at least one first page serial number; one first page serial number corresponds to an application page of a target application;
[0023] Control display of the push information on a current page of the terminal based on the identification information and the page serial number set.
[0024] Optionally, the step of obtaining the first conversion data comprises:
[0025] Receive second conversion data;
[0026] Perform character conversion on the second conversion data based on a character encoding table to obtain the first conversion data.
[0027] Optionally, the step of controlling the display of the push information on the current page of the terminal based on the identification information and the set of page numbers comprises:
[0028] obtaining a current page of a terminal;
[0029] in a case where the identification information indicates that the push information is to be displayed and the application page corresponding to the set of page numbers comprises the current page, displaying the push information on the current page;
[0030] in a case where the identification information indicates that the push information is to be displayed and the application page corresponding to the set of page numbers does not comprise the current page, not displaying the push information on the current page;
[0031] in a case where the identification information indicates that the push information is not to be displayed and the application page corresponding to the set of page numbers comprises the current page, not displaying the push information on the current page;
[0032] in a case where the identification information indicates that the push information is not to be displayed and the application page corresponding to the set of page numbers does not comprise the current page, displaying the push information on the current page.
[0033] According to a third aspect of the embodiments of the present disclosure, a data processing apparatus is provided, configured in a server, comprising:
[0034] a data obtaining module configured to obtain a set of page numbers corresponding to push information and identification information corresponding to the set of page numbers; the set of page numbers comprises at least one first page number, and one first page number corresponds to one application page of a target application; the identification information is used to indicate whether the push information is to be displayed;
[0035] a sequence determining module configured to determine a binary sequence based on the set of page numbers; one first value in the binary sequence corresponds to one first page number, and one second value in the binary sequence corresponds to one second page number; the second page number is a missing page number between the first page numbers;
[0036] a data converting module configured to convert the binary sequence to obtain first converted data which is non-binary;
[0037] a data sending module configured to send the push information, the first converted data and the identification information to a terminal.
[0038] Optionally, the apparatus further comprises:
[0039] The character conversion module is configured to perform character conversion on the first conversion data based on a character encoding table to determine second conversion data.
[0040] The data sending module is further configured to send the push information, the second conversion data, and the identification information to a terminal.
[0041] Optionally, the data obtaining module comprises:
[0042] The name obtaining unit is configured to obtain a page name set corresponding to the push information.
[0043] The serial number obtaining unit is configured to determine a page serial number set corresponding to the page name set based on a pre-set mapping relationship table of page names and page serial numbers.
[0044] Optionally, the sequence determining module comprises:
[0045] The serial number determining unit is configured to determine a second page serial number based on a first page serial number in the page serial number set.
[0046] The sequence determining unit is configured to arrange a first value corresponding to each first page serial number and a second value corresponding to each second page serial number in a sequence of page serial numbers to obtain a binary sequence.
[0047] According to a fourth aspect of the embodiments of the present disclosure, a data processing apparatus configured in a terminal is provided, comprising:
[0048] The information obtaining module is configured to obtain push information, first conversion data, and identification information; the first conversion data is non-binary data; and the identification information is used to indicate whether to display the push information.
[0049] The data determining module is configured to perform binary conversion on the first conversion data to obtain a binary sequence; a first value in the binary sequence corresponds to a first page serial number, and a second value in the binary sequence corresponds to a second page serial number; and the second page serial number is a missing page serial number between the first page serial numbers.
[0050] The set determining module is configured to determine a page serial number set based on the binary sequence; the page serial number set comprises at least one first page serial number; and one first page serial number corresponds to an application page of a target application.
[0051] The display control module is configured to control display of the push information on a current page of the terminal based on the identification information and the page serial number set.
[0052] Optionally, the information obtaining module comprises:
[0053] a data receiving unit configured to receive second conversion data;
[0054] a data conversion unit configured to perform character conversion on the second conversion data based on a character encoding table to obtain the first conversion data.
[0055] Optionally, the display control module comprises:
[0056] a current page obtaining unit configured to obtain a current page of a terminal;
[0057] a first data display unit configured to display the push information on the current page in a case where the identification information is used to instruct to display the push information and the application page corresponding to the page serial number set comprises the current page;
[0058] a second data display unit configured to not display the push information on the current page in a case where the identification information is used to instruct to display the push information and the application page corresponding to the page serial number set does not comprise the current page;
[0059] a third data display unit configured to not display the push information on the current page in a case where the identification information is used to instruct not to display the push information and the application page corresponding to the page serial number set comprises the current page;
[0060] a fourth data display unit configured to display the push information on the current page in a case where the identification information is used to instruct not to display the push information and the application page corresponding to the page serial number set does not comprise the current page.
[0061] According to a fifth aspect of the embodiments of the present disclosure, an electronic device is provided, comprising:
[0062] a processor;
[0063] a memory for storing instructions executable by the processor;
[0064] wherein the processor is configured to execute the instructions to implement the data processing method according to the first aspect, or to implement the data processing method according to the second aspect.
[0065] According to a sixth aspect of the embodiments of the present disclosure, a storage medium is provided, which, when instructions in the storage medium are executed by a processor, enables a server to execute the data processing method according to the first aspect, or enables a terminal to execute the data processing method according to the second aspect.
[0066] According to a seventh aspect of the embodiments of the present disclosure, a computer program product is provided, comprising computer programs or computer instructions, wherein the computer programs or computer instructions are executed by a processor to implement the data processing method of the first aspect or the data processing method of the second aspect.
[0067] The technical solutions provided by the embodiments of the present disclosure at least have the following beneficial effects:
[0068] The embodiments of the present disclosure obtain the page serial number set corresponding to the push information, that is, the application page is represented by the page serial number, avoiding directly using the page name with a long length, effectively reducing the data transmission amount. The binary sequence corresponding to the page serial number set is further determined, and the first value and the second value in the binary sequence are used to represent the constraint page of the push information, which can further simplify the data. After obtaining the binary sequence, the binary sequence is converted to obtain the non-binary first conversion data, and the data length of the non-binary first conversion data is less than that of the binary sequence, thereby achieving a further reduction in data transmission amount. Thus, when the push information, the first conversion data and the identification information are sent to the terminal, the data transmission amount is small, the data transmission time is short, the efficiency is high, and the terminal can accurately control the display of the push information on the current page of the terminal according to the first conversion data and the identification information.
[0069] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0070] The accompanying drawings, which are incorporated into and form part of the specification, illustrate embodiments consistent with the present disclosure and, together with the specification, serve to explain the principles of the present disclosure, and do not constitute an undue limitation on the present disclosure.
[0071] Figure 1 is an application environment schematic diagram of a data processing method according to an exemplary embodiment;
[0072] Figure 2 is a flow of a data processing method according to an exemplary embodiment Figure 1 ;
[0073] Figure 3 is a flow of a data processing method according to an exemplary embodiment Figure 2 ;
[0074] Figure 4 is a flow of a data processing method according to an exemplary embodiment Figure 3 ;
[0075] Figure 5is a schematic diagram of a binary sequence in a data processing method according to an exemplary embodiment;
[0076] Figure 6 is a flow chart of another data processing method according to an exemplary embodiment;
[0077] Figure 7 is a flow chart of another data processing method according to an exemplary embodiment;
[0078] Figure 8 is a block diagram of a data processing apparatus according to an exemplary embodiment;
[0079] Figure 9 is a block diagram of another data processing apparatus according to an exemplary embodiment;
[0080] Figure 10 is a block diagram of a terminal according to an exemplary embodiment;
[0081] Figure 11 is a block diagram of a server according to an exemplary embodiment. DETAILED DESCRIPTION
[0082] In order to make the ordinary person skilled in the art better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be described clearly and completely below in conjunction with the drawings.
[0083] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation described in the following exemplary embodiments does not represent all implementations consistent with the present disclosure. Rather, they are only examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0084] Please refer to Figure 1 which shows an application environment schematic diagram of a data processing method according to an exemplary embodiment, which can include a terminal 11 and a server 12, and the terminal 11 and the server 12 are connected through a wireless network.
[0085] The terminal 11 can be at least one of a smart phone, a tablet computer, a notebook computer, a desktop computer, an augmented reality terminal, a wireless terminal, a laptop computer, and the like, but is not limited thereto. The terminal 11 has a communication function and can access a wired network or a wireless network. The terminal 11 is installed with a client software, i.e., a target application, which provides a man-machine interactive function. The target application can be an independent application program or a subprogram in an application program. The target application can be a short video application.
[0086] The server 12 can be a stand-alone physical server, a server cluster composed of multiple physical servers, or a distributed file system. The server 12 can also be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms. Alternatively, the number of servers 12 can be more or less, which is not limited in the embodiments of the present disclosure. Of course, the server 12 can also include other functional servers to provide more comprehensive and diversified services. Specifically, the server 12 is a background server of the target application.
[0087] In the embodiments of the present disclosure, the server 12 is configured to obtain a page serial number set corresponding to push information and identification information corresponding to the page serial number set; determine a binary sequence based on the page serial number set; convert the binary sequence to obtain first conversion data in a non-binary form; and send the push information, the first conversion data, and the identification information to the terminal.
[0088] In the embodiments of the present disclosure, the terminal 11 is configured to obtain the push information, the first conversion data, and the identification information; perform binary conversion on the first conversion data to obtain a binary sequence; determine a page serial number set based on the binary sequence; and control display of the push information on a current page of the terminal based on the identification information and the page serial number set.
[0089] Those skilled in the art can know that the number of terminals can be only one, tens, or hundreds, or more. The number and type of the terminal are not limited in the embodiments of the present disclosure.
[0090] Figure 2 is a flowchart of a data processing method according to an exemplary embodiment, which can be used in the server as shown in Figure 1 includes the following steps.
[0091] In step S21, the server acquires a page serial number set corresponding to the push information, and identification information corresponding to the page serial number set; the page serial number set includes at least one first page serial number, and one first page serial number corresponds to one application page of a target application; the identification information is used to indicate whether to display the push information.
[0092] In this step, the page serial number set includes at least one first page serial number, and one first page serial number corresponds to one application page of a target application; using the page serial number instead of the longer page name can effectively compress the data. The first page serial number in the page serial number set is used to constrain the push information, and the specific constraint manner is further embodied through the identification information corresponding to the page serial number set.
[0093] The identification information is used to indicate whether to display the push information on the application page corresponding to the first page serial number. That is, the identification information includes two possible cases: one is to indicate to display the push information on the application page corresponding to the first page serial number; and the other is to indicate not to display the push information on the application page corresponding to the first page serial number.
[0094] For example, the page serial number set acquired is [0, 1, 2, 3, 4, 5, 6, 7], and the identification information indicates to display the push information on the application page corresponding to the first page serial number. Specifically, the identification information can be a "white list", that is, the push information is displayed on the eight application pages corresponding to the first page serial numbers "0", "1", "2", "3", "4", "5", "6", and "7", and the push information is not displayed on other application pages except the eight application pages. As can be seen, the page serial number set and the identification information accurately constrain the push information.
[0095] For example, the page serial number set acquired is [0, 1, 2, 3, 4, 5, 6, 7], and the identification information indicates not to display the push information on the application page corresponding to the first page serial number. Specifically, the identification information can be a "black list", that is, the push information is not displayed on the eight application pages corresponding to the first page serial numbers "0", "1", "2", "3", "4", "5", "6", and "7", and the push information is displayed on other application pages except the eight application pages. As can be seen, the page serial number set and the identification information accurately constrain the push information.
[0096] Optionally, the application page corresponding to the first page serial number is derived from one target application, that is, the pages in one target application are accurately constrained.
[0097] Optionally, the application page corresponding to the first page serial number is derived from at least two target applications, so that cross-application page constraint can be realized.
[0098] In step S22, the server determines a binary sequence based on the set of page sequence numbers; a first value in the binary sequence corresponds to a first page sequence number, and a second value in the binary sequence corresponds to a second page sequence number; the second page sequence number is a missing page sequence number between the first page sequence numbers.
[0099] Specifically, the first page sequence numbers in the set of page sequence numbers are encoded in binary to obtain the binary sequence. In the binary sequence, a first value corresponds to a first page sequence number, i.e., there are as many first values as there are first page sequence numbers. A second value corresponds to a second page sequence number, the first value being different from the second value. If the first value is 1, the second value is 0; if the first value is 0, the second value is 1. The second page sequence number is a missing page sequence number between at least one first page sequence number included in the set of page sequence numbers, i.e., the second page sequence number is determined based on the first page sequence numbers. Specifically, the second page sequence number is a missing page sequence number between the minimum first page sequence number and the maximum first page sequence number and not included in the set of page sequence numbers.
[0100] The second page sequence number and the first page sequence number have opposite constraints on the push information. If the first page sequence number is used to constrain the page sequence number on which the push information is displayed, the second page sequence number is the page sequence number on which the push information is not displayed. If the first page sequence number is used to constrain the page on which the push information is not displayed, the second page sequence number is the page sequence number on which the push information is displayed. In the binary sequence, a first value represents a first page sequence number, and a second value represents a second page sequence number, i.e., the binary sequence can accurately represent the constrained page. The binary data structure is simple, which is conducive to reducing the data transmission amount to the terminal.
[0101] For example, if the set of page sequence numbers is [0, 1, 2, 3, 4, 5, 6, 7], the first page sequence numbers are consecutive, and there is no missing page sequence number between the minimum first page sequence number "0" and the maximum first page sequence number "7". At this time, there is no second page sequence number, and the corresponding binary sequence of the set of page sequence numbers can be "11111111", in which the first value is 1. If the set of page sequence numbers is [0, 1, 3, 4, 6, 7], the missing page sequence numbers between the minimum first page sequence number "0" and the maximum first page sequence number "7" that are not first page sequence numbers are "2" and "5", i.e., the second page sequence numbers are "2" and "5", and the corresponding binary sequence of the set of page sequence numbers can be "11011011".
[0102] In step S23, the server converts the binary sequence to obtain non-binary first conversion data.
[0103] Because the length of the binary sequence is usually long, in order to further compress the data transmission, the binary sequence is converted to obtain the first converted data which is non-binary.
[0104] Specifically, the binary sequence is divided to obtain at least one binary segment, and each binary segment is converted to obtain the first converted data.
[0105] For example, there is a page number set [0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 13, 15], and the corresponding binary sequence can be [1111111011101101]. 8 bits (one byte length) are set as the preset length, the binary sequence is divided by using the preset length to obtain two binary segments "11111110" and "11101101", and "11111110" and "11101101" are converted to obtain a byte array of length 2 ([127, -73]). Thus, it can be seen that by further converting the binary sequence, more concise first converted data can be obtained. It should be noted that the binary sequence can also be divided in other ways, such as 5 bits as the preset length, and when the obtained binary segment is converted, it can also be converted to decimal data, octal data, hexadecimal data, etc. Non-binary data, to obtain first converted data composed of several numbers, to compress the binary sequence.
[0106] In step S24, the server sends the push information, the first converted data and the identification information to the terminal.
[0107] After determining the first converted data, the push information, the first converted data and the identification information are sent to the terminal. The content of the first converted data is relatively concise, so the data transmission amount can be effectively reduced, the data transmission time is shorter, and the efficiency is higher. After the terminal obtains the push information, the first converted data and the identification information, the first converted data and the identification information are used to control the display of the push information on the current page of the terminal.
[0108] Specifically, after the terminal obtains the push information, the first converted data and the identification information, the first converted data is binary converted to obtain a binary sequence, a page number set is obtained according to the binary sequence, and the display of the push information on the current page of the terminal is controlled according to the identification information and the page number set.
[0109] In the technical solution provided in the present disclosure, the page serial number set corresponding to the push information is obtained, that is, the application page is represented by using the page serial number, so as to avoid directly using the page name with long length, and effectively reduce the data transmission amount. The binary sequence corresponding to the page serial number set is further determined, the first value and the second value in the binary sequence are used to represent the constraint page of the push information, and the data can be further simplified. After the binary sequence is obtained, the binary sequence is converted to obtain the non-binary first conversion data, the data length of the non-binary first conversion data is less than that of the binary sequence, and the data transmission amount is reduced again. Therefore, when the push information, the first conversion data and the identification information are sent to the terminal, the data transmission amount is small, the data transmission time is short, the efficiency is high, and the terminal can accurately control the display of the push information on the current page of the terminal according to the first conversion data and the identification information.
[0110] The above data processing method will be further exemplarily described below.
[0111] For a certain push information, the push information needs to be constrained to be displayed in the page set in the following table, if the page name is used for page constraint, each page name is a long character, if there are many pages, many characters need to be transmitted, for the following 8 pages, if the original value is issued plus the middle separator, a total of about 400 characters are needed, the data transmission amount is obviously large.
[0112] Table 1
[0113]
[0114] If the page serial numbers corresponding to each application page of the target application are set in advance, as shown in Table 2:
[0115] Table 2
[0116]
[0117] The set composed of the constraint pages corresponding to the above push information is [0, 1, 2, 3, 4, 5, 6, 7], and the data obtained by data transmission is effectively compressed. The binary sequence [11111111] corresponding to the page serial number set is determined, the binary sequence is converted to obtain byte [-1] as the first conversion data, and it can be seen that the data of the first conversion data is short, and the data transmission amount is small when transmitting to the terminal.
[0118] Figure 3 A flowchart of a data processing method according to an example embodiment is shown, which can be used in a server as shown in Figure 1 The data processing method includes the following steps.
[0119] In step S31, the server acquires a page name set corresponding to the push information, and identification information corresponding to the page name set; the identification information is used to indicate whether to display the push information.
[0120] Each page name in the page name set is used to constrain the push information, so the page name set is page constraint data configured for the push information. Specifically, as shown in Figure 4 the page is specified for different push (push), i.e., the page name set and the identification information are determined for different push information, the allowed display page corresponding to the push information is determined, or the disallowed display page corresponding to the push is determined.
[0121] The identification information can be a white list or a black list. The white list page: the current page of the terminal can only be displayed in the white list; the black list page: the current page of the terminal cannot be displayed in the black list. Of course, the identification information can also be an unconstrained page, which can be displayed on any page. At this time, the identification information and the push information can be directly issued to the terminal, i.e., no need to constrain the push. Specifically, as shown in Figure 4 the identification information is configured and issued to the terminal as a switch, so that the terminal can identify the issued identification information subsequently.
[0122] Optionally, the push information can be an in-site push information. The in-site push information is push information displayed in a target application, which is used to make the user know important information in time. Specifically, the in-site push information is popped up at the top of the target application when the target application is opened. The specific content of the in-site push information can be update information, comment information, private message information, notification information, etc., such as "XX you follow has published the latest comment", "your friend sends you a private message", "XX live will be performed at XX time", "XX function will be stopped at XX time", etc. Correspondingly, the page name set includes the page name of at least one application page of a target application. In a possible application scenario, the target application is A application, when the user uses B application, the in-site push information will not be popped up and displayed, when the user uses A application, the in-site push information is received and displayed.
[0123] Optionally, the push notification can also be a general push notification, which pops up at the top of the target application when the target application is open, and can also be displayed as a pop-up window when the target application is not open. In one possible application scenario, the target application is application A, and a general push notification will also be displayed when the user uses application B. In this case, if the page name set includes page names from multiple target applications, cross-application page constraints can be implemented. If the page name set includes the page names of at least one application page of a target application, it is possible to display the general push notification arbitrarily when the target application is not open, and to constrain the general push notification through the page name set when the target application is open.
[0124] In step S32, the server determines the set of page numbers corresponding to the set of page names based on a pre-set mapping table between page names and page numbers.
[0125] Specifically, the mapping table is shown in Table 2. After obtaining the set of page names, each page name in the set is matched with its corresponding first page number in the mapping table to form a set of page numbers. This conversion from page name to page number effectively achieves data compression.
[0126] Furthermore, such as Figure 4 As shown, after determining the mapping table, the server sends this table as page configuration to the terminal, enabling the terminal to accurately convert between page numbers and page names. The mapping table can be updated periodically, such as the server sending page configuration to the terminal once a week at a preset time.
[0127] It should be noted that because the set of page names and the set of page numbers are related by conversion, the identification information corresponding to the set of page names is the same as the identification information corresponding to the set of page numbers.
[0128] For example, if an application has 100 pages, and 29 pages are allowed to display push notifications, then the set of page numbers consisting of the first page numbers of these 29 pages is:
[0129] on_pages=[0,1,2,3,4,5,6,
[0130] 8,9,10,12,13,15,
[0131] 16,17,18,20,21,22,23,
[0132] 25,26,28,29,30,31,
[0133] 34, 35, 39).
[0134] In step S33, the server determines the second page number based on the first page number in the page number set.
[0135] Specifically, the second page number is the missing page number that is not a first page number between the smallest and largest first page numbers. For the page number set consisting of the above 29 second page numbers, the second page numbers include [7,11,14,19,24,27,32,33,36,37,38].
[0136] In step S34, the server arranges the first value corresponding to each first page number and the second value corresponding to each second page number in the order of the page numbers to obtain a binary sequence.
[0137] Specifically, the first page number and the second page number are assigned different values and arranged in the order of the page numbers to obtain the corresponding binary sequence.
[0138] For example, using bit 0 to represent disallowed and bit 1 to represent allowed, and arranging the bits in page sequence order, we can form the following bit stream, i.e., binary sequence:
[0139] 11111110111011101111011110111011100110001.
[0140] Of course, you can also use a 0 bit to represent allowed and a 1 bit to represent disallowed, and arrange the bits together in page sequence to form the following bit stream, i.e., binary sequence:
[0141] 0000000100010010000100001001000011001110.
[0142] In step S35, the server converts the binary sequence to obtain non-binary first converted data.
[0143] like Figure 5 As shown, the binary sequence is divided into groups of 8 bits to obtain 5 binary segments. The 5 binary segments are then converted sequentially from the least significant bit to the most significant bit to obtain the first non-binary converted data, which is a byte array of length 5, namely byte[127, -73, -9, -10, -116]. This compresses the 29 page names into a byte array of length 5, which can effectively reduce the amount of data transmission.
[0144] In step S36, the server performs character conversion on the first conversion data based on the character encoding table to determine the second conversion data.
[0145] In this step, the character encoding table is used for character conversion to encrypt the data, and the first conversion data is converted by character to make the obtained second conversion data have higher security when data transmission is performed, thereby avoiding leakage of the page name.
[0146] For example, the character encoding table is a base64 encoding table, and the first conversion data byte[127, -73, -9, -10, -116] is base64 encoded to obtain the second conversion data f__7f39_ow (10 characters). The page configuration of the push information is compressed twice from the page name set in step S31 to the second conversion data in step S36, that is, the page configuration compression algorithm in steps S31 and S36. Figure 4
[0147] In step S37, the server sends the push information, the second conversion data, and the identification information to the terminal.
[0148] In this step, after obtaining the push information, the second conversion, and the identification information, the push information, the second conversion data, and the identification information are sent to the terminal (corresponding to the push in step S36). Figure 4 In this step, after obtaining the push information, the second conversion, and the identification information, the push information, the second conversion data, and the identification information are sent to the terminal (corresponding to the push in step S36).
[0149] In the technical solution provided in the disclosure, the page name set is converted by using the mapping relationship table to obtain a page serial number set with a smaller data amount. The first value corresponding to the first page serial number in the page serial number set and the second value corresponding to the second page serial number are sorted according to the order of the page serial numbers to obtain a binary sequence with a simple structure. The first value in the binary sequence and the sequence position of the first value, and the second value and the sequence position of the second value can accurately represent the constraint page of the push information. The binary sequence is converted to obtain non-binary first conversion data, and the data length of the non-binary first conversion data is smaller than that of the binary sequence, thereby realizing re-compression of the data transmission amount. The first conversion data is encrypted by using the character encoding table to obtain second conversion data, so that when the push information, the second conversion data, and the identification information are sent to the terminal, the data transmission amount is small, the data transmission time is short, the efficiency is high, the security is good, and the terminal can accurately control the display of the push information on the current page of the terminal according to the first conversion data and the identification information.
[0150] Figure 6 is a flowchart of a data processing method according to an example embodiment, which can be used forFigure 1 The terminal shown includes the following steps.
[0151] In step S61, the terminal acquires the push information, the first conversion data, and the identification information; the first conversion data is non-binary data; and the identification information is used to indicate whether to display the push information.
[0152] In an embodiment, the server sends the push information, the first conversion data, and the identification information to the terminal, and the terminal receives the push information, the first conversion data, and the identification information, and acquires the push information, the first conversion data, and the identification information.
[0153] In an embodiment, the server sends the push information, the second conversion data, and the identification information to the terminal; the terminal receives the second conversion data, and the push information and the identification information, and then performs character conversion on the second conversion data based on a character encoding table to obtain the first conversion data.
[0154] Specifically, after receiving the second conversion data, the terminal needs to decrypt the second conversion data based on the same character encoding table to obtain the second conversion data, because the second conversion data is data obtained by the server based on the character encoding table.
[0155] For example, the terminal receives the second conversion data f__7f39_ow (10 characters) and performs base64 conversion to obtain a byte array, i.e., [127, -73, -9, -10, -116].
[0156] In step S62, the first conversion data is converted into a binary sequence; one first value in the binary sequence corresponds to one first page sequence number, and one second value in the binary sequence corresponds to one second page sequence number; the second page sequence number is a missing page sequence number between the first page sequence numbers.
[0157] In this step, the first conversion data is a result obtained by the server compressing the page sequence number set, so after the terminal receives the first conversion data, the first conversion data is decompressed, i.e., the non-binary first conversion data is converted into a binary sequence. For example, if the received first conversion data is byte [-1], the first conversion data is converted into a binary sequence [11111111]. If the byte array [127, -73, -9, -10, -116] is received, the binary sequence shown below is obtained. Figure 5
[0158] Specifically, a first value in the obtained binary sequence corresponds to a first page number, and a second value corresponds to a second page number, the first value and the second value are different, and the second page number is a missing page number between the first page number, i.e., the second page number does not belong to the page number set.
[0159] In step S63, based on the binary sequence, a page number set is determined, and the page number set includes at least one first page number; and the first page number corresponds to an application page of the target application.
[0160] In this step, according to a first value in the binary sequence, a first page number is determined, and the first page number constitutes the page number set. Specifically, the value at each sequence position of the binary sequence is checked, if it is the first value, the sequence position number corresponding to the first value is determined, and the first page number is determined according to the sequence position number.
[0161] When the server divides the binary sequence by byte, the terminal checks each byte, each byte is 8 bits, and corresponds to 8 page numbers. It is checked whether each bit is the first value such as 1. When it is 1, it means that the corresponding page number exists. Taking the first byte 127 of the byte array [127, -73, -9, -10, -116] as an example, 127 is converted to binary 11111110. It can be directly seen from the binary that the page includes 0, 1, 2, 3, 4, 5, and 6, because there are 8 bits in total, 0-6 bits are 1, and the 7th bit is 0. When the code is implemented, j is looped from 0 to 7, and is ANDed with 0x1 left shifted by j bits. The result is 1, which means that the bit meets the requirement, and then the page number j is obtained. Similarly, the same operation is performed on the other bytes, and the page number needs to be modified when calculating the page number. The array number of the byte is i, i is from 0 to 4 (a total of 4 bytes), and the page number num is calculated as num = 8 * i + j, so that the page number set is obtained. The step of obtaining the page number set corresponds to Figure 4 The process in which the terminal decompresses the page configuration compression algorithm.
[0162] In step S64, based on the identification information and the page number set, the display of the push information on the current page of the terminal is controlled.
[0163] In this step, the page constrained by the page number set needs to be indicated by the identification information to determine how to constrain, whether the application page corresponding to the page number set displays the push information or the application page corresponding to the page number set does not display the push information.
[0164] Specifically, a current page of the terminal is acquired, the current page of the terminal is compared with an application page corresponding to the page serial number set, and according to a comparison result and the identification information, the push information is controlled to be displayed on the current page of the terminal.
[0165] In an embodiment, based on the page serial number set, based on the mapping relationship table, a page name set is determined, a current page name is acquired, and it is determined whether the page name set contains the current page name. As shown in FIG. Figure 4 In the embodiment, the terminal determines the page configuration, that is, the mapping relationship table, and determines the page name set to perform page verification.
[0166] In an embodiment, a current page name is determined, based on the mapping relationship table, a current page serial number is determined, and it is determined whether the page serial number set contains the current page serial number.
[0167] When the identification information and the page serial number set are used to control the push information to be displayed on the current page of the terminal, the following possible cases exist:
[0168] In a case where the identification information is used to indicate that the push information is to be displayed, and the application page corresponding to the page serial number set includes the current page, the push information is displayed on the current page. That is, the page serial number set corresponds to a white list page, and the current page belongs to the white list page, so the push information is displayed on the current page.
[0169] In a case where the identification information is used to indicate that the push information is to be displayed, and the application page corresponding to the page serial number set does not include the current page, the push information is not displayed on the current page. That is, the page serial number set corresponds to a white list page, and the current page does not belong to the white list page, so the push information is not displayed on the current page.
[0170] In a case where the identification information is used to indicate that the push information is not to be displayed, and the application page corresponding to the page serial number set includes the current page, the push information is not displayed on the current page. That is, the page serial number set corresponds to a black list page, and the current page belongs to the black list page, so the push information is not displayed on the current page.
[0171] In a case where the identification information is used to indicate that the push information is not to be displayed, and the application page corresponding to the page serial number set does not include the current page, the push information is displayed on the current page. That is, the page serial number set corresponds to a black list page, and the current page does not belong to the black list page, so the push information is displayed on the current page.
[0172] In a possible implementation, the identification information is used to indicate that the white list is enabled, or the black list is enabled. Figure 7As shown, when starting to display the push, the current page name is acquired, and then it is determined whether to open the whitelist. If it is determined according to the identification information that the whitelist is opened, that is, the application page corresponding to the page number set is a whitelist page, and the current page name is in the whitelist, that is, the application page corresponding to the page number set includes the current page, then the push information is started to be displayed on the current page. If the current page name is not in the whitelist, that is, the application page corresponding to the page number set does not include the current page, the push is discarded without display. If it is determined according to the identification information that the whitelist is not opened and the blacklist is not opened, at this time, the push information has no page constraint, and can be started to be displayed on the current page. If it is determined according to the identification information that the whitelist is not opened but the blacklist is opened, that is, the application page corresponding to the page number set is a blacklist page, and the current page name is in the blacklist, that is, the application page corresponding to the page number set includes the current page, then the push is discarded without display. If the current page name is not in the blacklist, that is, the application page corresponding to the page number set does not include the current page, then the push information is started to be displayed on the current page.
[0173] In the technical solution provided in the present disclosure, after the terminal acquires the push information, the first conversion data and the identification information, the first conversion data is converted to obtain a binary sequence, and then the binary sequence is converted to obtain a page number set. Therefore, after the current page is acquired, the current page is compared with the application page corresponding to the page number set, and according to the comparison result and the identification information, whether to display the push information on the current page is accurately controlled. Through step-by-step conversion of the received data with small transmission amount, data for page constraint of the push information is obtained, and the display of the push information on the current page is accurately controlled.
[0174] Figure 8 FIG. 1 is a block diagram of a data processing apparatus according to an example embodiment. The apparatus is configured in a server and includes a data acquisition module 81, a sequence determination module 82, a data conversion module 83 and a data sending module 84.
[0175] The data acquisition module 81 is configured to acquire a page number set corresponding to push information and identification information corresponding to the page number set. The page number set includes at least one first page number, and one first page number corresponds to one application page of a target application. The identification information is used to indicate whether to display the push information.
[0176] The sequence determination module 82 is configured to determine a binary sequence based on the page number set. One first value in the binary sequence corresponds to one first page number, and one second value in the binary sequence corresponds to one second page number. The second page number is a missing page number between the first page numbers.
[0177] The data conversion module 83 is configured to convert the binary sequence to obtain non-binary first conversion data.
[0178] The data sending module 84 is configured to send the push information, the first conversion data and the identification information to the terminal.
[0179] In an example embodiment of the present disclosure, the apparatus further comprises:
[0180] The character conversion module is configured to perform character conversion on the first conversion data based on a character encoding table to determine second conversion data.
[0181] The data sending module is further configured to send the push information, the second conversion data and the identification information to the terminal.
[0182] In an example embodiment of the present disclosure, the data acquisition module comprises:
[0183] The name acquisition unit is configured to acquire a page name set corresponding to the push information.
[0184] The serial number acquisition unit is configured to determine a page serial number set corresponding to the page name set based on a pre-set mapping relationship table of page names and page serial numbers.
[0185] In an example embodiment of the present disclosure, the sequence determination module comprises:
[0186] The serial number determination unit is configured to determine a second page serial number based on a first page serial number in the page serial number set.
[0187] The sequence determination unit is configured to arrange a first value corresponding to each first page serial number and a second value corresponding to each second page serial number in the order of the page serial numbers to obtain the binary sequence.
[0188] Figure 9 is a block diagram of a data processing apparatus according to an example embodiment. The apparatus is configured in a terminal and comprises an information acquisition module 91, a data determination module 92, a set determination module 93 and a display control module 94.
[0189] The information acquisition module 91 is configured to acquire push information, first conversion data and identification information; the first conversion data is non-binary data; and the identification information is used to indicate whether to display the push information.
[0190] The data determination module 92 is configured to perform binary conversion on the first conversion data to obtain a binary sequence; one first value in the binary sequence corresponds to one first page serial number, and one second value in the binary sequence corresponds to one second page serial number; the second page serial number is a missing page serial number between the first page serial numbers.
[0191] The set determination module 93 is configured to determine a page serial number set based on the binary sequence, the page serial number set including at least one first page serial number; and one first page serial number corresponds to one application page of the target application.
[0192] The display control module 94 is configured to control display of the push information on the current page of the terminal based on the identification information and the page serial number set.
[0193] In an example embodiment of the present disclosure, the information acquisition module comprises:
[0194] The data receiving unit is configured to receive the second conversion data;
[0195] The data conversion unit is configured to perform character conversion on the second conversion data based on the character encoding table to obtain the first conversion data.
[0196] In an example embodiment of the present disclosure, the display control module comprises:
[0197] The current page acquisition unit is configured to acquire the current page of the terminal;
[0198] The first data display unit is configured to display the push information on the current page in a case where the identification information is used to instruct to display the push information and the application page corresponding to the page serial number set includes the current page;
[0199] The second data display unit is configured to not display the push information on the current page in a case where the identification information is used to instruct to display the push information and the application page corresponding to the page serial number set does not include the current page;
[0200] The third data display unit is configured to not display the push information on the current page in a case where the identification information is used to instruct not to display the push information and the application page corresponding to the page serial number set includes the current page;
[0201] The fourth data display unit is configured to display the push information on the current page in a case where the identification information is used to instruct not to display the push information and the application page corresponding to the page serial number set does not include the current page.
[0202] As to the apparatus in the above embodiments, the specific manners in which various modules perform operations have been described in detail in the embodiments of the method, and will not be described herein.
[0203] Figure 10is a block diagram of a terminal according to an exemplary embodiment. The terminal 1000 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.
[0204] Referring to Figure 10 The terminal 1000 can include one or more of the following components: a processing component 1002, a memory 1004, a power supply component 1006, a multimedia component 1008, an audio
[0205] The processing component 1002 usually controls overall operations of the terminal 1000, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1002 can include one or more processors 1020 to execute instructions to complete all or a part of steps of the above methods. In addition, the processing component 1002 can include one or more modules to facilitate interaction between the processing component 1002 and other components. For example, the processing component 1002 can include a multimedia module to facilitate the interaction between the multimedia component 1008 and the processing component 1002.
[0206] The memory 1004 is configured to store various types of data to support operations of the terminal 1000. Examples of these data include instructions to operate any application programs or methods on the terminal 1000, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1004 can be implemented by any type of volatile or non-volatile storage devices or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0207] The power supply component 1006 supplies electric power for the various components of the terminal 1000. The power supply component 1006 can include a power supply management system, one or more power supplies, and other components associated with generating, managing and distributing electric power for the terminal 1000.
[0208] The multimedia component 1008 includes a screen providing an output interface between the terminal 1000 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors for sensing a touch, a slide and a gesture on the touch panel. The touch sensor can not only sense a boundary of a touching or a sliding action, but also detect duration and pressure related to the touching or sliding action. In some embodiments, the multimedia component 1008 includes a front camera and / or a rear camera. The front camera and / or the rear camera can receive external multimedia data when the terminal 1000 is in an operation mode, such as a shooting mode or a video mode. Each of the front and rear camera can be a fixed optical lens system or have a focal length and optical zooming capability.
[0209] The audio component 1010 is configured to output and / or input audio signals. For example, the audio component 1010 includes a microphone (MIC) configured to receive external audio signals when the terminal 1000 is in an operation mode, such as a call mode, a recording mode and a voice recognition mode. The received audio signals can be further stored in the memory 1004 or transmitted via the communication component 1016. In some embodiments, the audio component 1010 further includes a speaker for outputting audio signals.
[0210] The I / O interface 1012 provides an interface between the processing component 1002 and peripheral interface modules, which can be a keypad, a click wheel, buttons, and the like. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.
[0211] The sensor component 1014 includes one or more sensors for providing various state assessments for the terminal 1000. For example, the sensor component 1014 can detect an open / closed state of the terminal 1000, relative positioning of components, such as a display and a keypad of the terminal 1000, a change in position of the terminal 1000 or a component of the terminal 1000, presence or absence of user contact with the terminal 1000, an orientation or acceleration / deceleration of the terminal 1000, and a temperature change of the terminal 1000. The sensor component 1014 can include a proximity sensor configured to detect presence of a nearby object without any physical touch. The sensor component 1014 can further include a light sensor such as a CMOS or CCD image sensor for use in an imaging application. In some embodiments, the sensor component 1014 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0212] Communication component 1016 is configured to facilitate wired or wireless communication between terminal 1000 and other devices. Terminal 1000 can access wireless networks based on communication standards, such as WiFi, carrier networks (such as 2G, 3G, 4G, or 5G), or combinations thereof. In one exemplary embodiment, communication component 1016 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 1016 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0213] In an exemplary embodiment, the terminal 1000 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the data processing method described above.
[0214] Figure 11 This is a schematic diagram illustrating the structure of a server according to an exemplary embodiment. (Refer to...) Figure 11 Server 1100 includes processing component 1122, which further includes one or more processors, and memory resources represented by memory 1132 for storing instructions, such as applications, that can be executed by processing component 1122. The applications stored in memory 1132 may include one or more modules, each corresponding to a set of instructions. Furthermore, processing component 1122 is configured to execute instructions to perform the aforementioned data processing implementation method.
[0215] Server 1100 may also include a power supply component 1126 configured to perform power management of server 1100, a wired or wireless network interface 1150 configured to connect server 1100 to a network, and an input / output (I / O) interface 1158. Server 1100 may operate on an operating system stored in memory 1132, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or similar.
[0216] In the example embodiment, a storage medium including instructions which, when executed by a processor of a server or terminal, enable the server or terminal to perform the data processing method described above is also provided. Optionally, the storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0217] In the example embodiment, a computer program product including readable program code executable by a processor of a server or terminal to accomplish the data processing method described above is also provided. Optionally, the program code can be stored in a storage medium of the terminal or server, which can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc. Other embodiments of the disclosure will be apparent to those skilled in the art upon consideration of the specification and practice of the disclosure. This application is intended to cover any variations, uses, or adaptations of the disclosure that are deemed to fall within the general principles of the disclosure and include examples of the disclosure that are apparent to those skilled in the art and that include common general knowledge or custom in the art not specifically disclosed. The specification and examples are to be regarded as illustrative only, and the true scope and spirit of the disclosure are indicated by the following claims.
[0218] It should be understood that the present disclosure is not limited to the precise structures described above and illustrated in the drawings and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the claims that follow.
Claims
1. A data processing method, characterized in that, Applied to servers, including: Obtain the set of page numbers corresponding to the push information, and the identification information corresponding to the set of page numbers; the set of page numbers includes at least one first page number, and each first page number corresponds to an application page of the target application; the identification information is used to indicate whether to display the push information; Based on the set of page numbers, a binary sequence is determined; a first value in the binary sequence corresponds to a first page number, and a second value in the binary sequence corresponds to a second page number; the second page number is the missing page number between the first page numbers. The binary sequence is converted to obtain non-binary first converted data; The push information, the first conversion data, and the identification information are sent to the terminal.
2. The method according to claim 1, characterized in that, After obtaining the non-binary first conversion data step, the method further includes: Based on the character encoding table, the first converted data is converted into characters to determine the second converted data; The step of sending the push information, the first conversion data, and the identification information to the terminal includes: The push information, the second conversion data, and the identification information are sent to the terminal.
3. The method according to claim 1, characterized in that, The step of obtaining the set of page numbers corresponding to the push information includes: Retrieve the set of page names corresponding to the push notifications; Based on a pre-set mapping table between page names and page numbers, the set of page numbers corresponding to the set of page names is determined.
4. The method according to claim 1, characterized in that, The step of determining the binary sequence based on the set of page numbers includes: The second page number is determined based on the first page number in the set of page numbers. Arrange the first value corresponding to each first page number and the second value corresponding to each second page number in order of page number to obtain a binary sequence.
5. A data processing method, characterized in that, Applied to terminals, including: The system acquires push notification information, first conversion data, and identification information; the first conversion data is non-binary data; the identification information is used to indicate whether to display the push notification information. The first converted data is converted into binary to obtain a binary sequence; a first value in the binary sequence corresponds to a first page number, and a second value in the binary sequence corresponds to a second page number; the second page number is the missing page number between the first page numbers. Based on the binary sequence, a set of page numbers is determined, the set of page numbers including at least one first page number; one first page number corresponds to one application page of the target application; Based on the identification information and the set of page numbers, the display of the push information on the current page of the terminal is controlled.
6. The method according to claim 5, characterized in that, The step of obtaining the first transformed data includes: Receive the second converted data; Based on the character encoding table, the second converted data is converted into characters to obtain the first converted data.
7. The method according to claim 5, characterized in that, The step of controlling the display of the push information on the current page of the terminal based on the identification information and the page sequence set includes: Get the current page of the terminal; When the identification information is used to indicate the display of the push information, and the application page corresponding to the page sequence number set includes the current page, the push information is displayed on the current page; If the identification information is used to indicate the display of the push information, and the application page corresponding to the page sequence number set does not include the current page, the push information will not be displayed on the current page. If the identification information is used to indicate that the push information is not to be displayed, and the application page corresponding to the page sequence number set includes the current page, then the push information is not displayed on the current page. When the identification information indicates that the push information should not be displayed, and the application page corresponding to the page number set does not include the current page, the push information is displayed on the current page.
8. A data processing apparatus, characterized in that, Configured on the server, including: The data acquisition module is configured to acquire a set of page numbers corresponding to the push information and an identification information corresponding to the set of page numbers; the set of page numbers includes at least one first page number, and each first page number corresponds to an application page of the target application; the identification information is used to indicate whether to display the push information. The sequence determination module is configured to determine a binary sequence based on the set of page numbers; a first value in the binary sequence corresponds to a first page number, and a second value in the binary sequence corresponds to a second page number; the second page number is the missing page number between the first page numbers. The data conversion module is configured to convert the binary sequence to obtain non-binary first converted data; The data sending module is configured to send the push information, the first conversion data, and the identification information to the terminal.
9. A data processing apparatus, characterized in that, Configured on the terminal, including: The information acquisition module is configured to acquire push information, first conversion data, and identification information; the first conversion data is non-binary data; the identification information is used to indicate whether to display the push information. The data determination module is configured to perform binary conversion on the first converted data to obtain a binary sequence; a first value in the binary sequence corresponds to a first page number, and a second value in the binary sequence corresponds to a second page number; the second page number is the missing page number between the first page numbers. The set determination module is configured to determine a set of page numbers based on the binary sequence, the set of page numbers including at least one first page number; one first page number corresponds to an application page of the target application; The display control module is configured to control the display of the push information on the current page of the terminal based on the identification information and the set of page numbers.
10. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the data processing method as described in any one of claims 1 to 4, or to implement the data processing method as described in any one of claims 5 to 7.
11. A storage medium, when executed by an instruction processor in the storage medium, enables a server to perform the data processing method as described in any one of claims 1 to 4, or enables a terminal to perform the data processing method as described in any one of claims 5 to 7.
Citation Information
Patent Citations
Application pushing method, mobile terminal and computer readable storage medium
CN110795167A
Message display method and device, terminal, server and medium
CN114968052A