Data rendering method and device, equipment and storage medium

By using candidate encoding conversion methods and adjusting encoding conversion methods when pushing data between the WEB terminal and the mobile terminal, the problem of data misalignment and garbled codes is solved, and the rendering success rate and user experience are improved.

CN118672818APending Publication Date: 2024-09-20BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410825578.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

When pushing data between the WEB terminal and the mobile terminal, problems such as misalignment and garbled characters are prone to occur, resulting in the data not being displayed properly and the user experience being poor.

Method used

By determining the candidate encoding conversion method, based on the encoding language and attribute information of the data push terminal and the display terminal, the encoding conversion of the page data to be rendered is performed. If the rendering result is abnormal, the encoding conversion method is adjusted to improve the rendering success rate.

Benefits of technology

It improves the rendering success rate of data on the display terminal, ensures that users can view data normally, improves user experience, and reduces the time and cost of manual conversion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118672818A
    Figure CN118672818A
Patent Text Reader

Abstract

The invention discloses a data rendering method and device, equipment and a storage medium, which can be applied to the financial field or other fields. When a data pushing terminal pushes to-be-rendered page data to a data display terminal for rendering, a candidate code conversion mode is used for performing code conversion operation on the to-be-rendered page data, and the used candidate code conversion mode is matched with a coding language of the data pushing terminal and attribute information of the data display terminal; and the probability of successful rendering of the pushed to-be-rendered page data on the data display terminal is improved. Besides, during rendering on the data display terminal, if the rendering result is abnormal, the candidate code conversion mode is adjusted, the to-be-rendered page data is subjected to code conversion operation based on the adjusted candidate code conversion mode, and then rendering operation is performed, so that the page rendering success probability is further improved, and the rendering efficiency is improved. A user can normally view the data, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data rendering, and more specifically, to a data rendering method, device, equipment and storage medium. Background Art

[0002] When displaying a page, the WEB (World Wide Web) terminal and the mobile terminal will perform data rendering operations on their own display interfaces to display data that can be recognized by the user.

[0003] With the continuous development of data push, it is now necessary to push page data from the WEB side to the mobile side for display, or push page data from the mobile side to the WEB side for display. In this scenario, when the pushed data is rendered, problems such as dislocation and garbled characters will occur, making it impossible to display the data normally, and users cannot view the data normally, resulting in a poor user experience. Summary of the invention

[0004] In view of this, the present invention discloses a data rendering method, device, equipment and storage medium to solve the problem that when page data from a WEB end is pushed to a mobile end for display, or when page data from a mobile end is pushed to a WEB end for display, problems such as dislocation and garbled characters may occur, making it impossible for data to be displayed normally, and users cannot view data normally, resulting in a poor user experience.

[0005] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0006] A data rendering method, applied to a data display terminal, the data rendering method comprising:

[0007] Determine the data push terminal for pushing the page data to be rendered;

[0008] Determining a candidate encoding conversion method based on the encoding language of the data push terminal and the attribute information of the data display terminal;

[0009] Performing a coding conversion operation on the to-be-rendered page data according to the candidate coding conversion mode to obtain target rendering page data, and performing a rendering operation on the target rendering page data to obtain a rendering result;

[0010] If the rendering result is abnormal, the candidate encoding conversion mode is adjusted, and the rendering operation is performed after the encoding conversion operation is performed on the to-be-rendered page data based on the adjusted candidate encoding conversion mode.

[0011] Optionally, determining a candidate encoding conversion mode based on the encoding language of the data push terminal and the attribute information of the data display terminal includes:

[0012] Acquiring the coding language of the data push terminal and acquiring the attribute information of the data display terminal;

[0013] Acquire a pre-configured mapping relationship; the mapping relationship includes a coding language of a data push terminal, attribute information of a data display terminal, and a correspondence relationship between multi-level queue data; the multi-level queue data includes a first-level queue configured with a meta-format of the data push terminal, a second-level queue configured with a meta-format of the data display terminal, and a third-level queue configured with a meta-format attribute set of the data display terminal; the meta-format of the data display terminal in the second-level queue corresponds one-to-one to the meta-format attribute set of the data display terminal in the third-level queue;

[0014] Querying and obtaining multi-level queue data corresponding to the coding language of the data push terminal and the attribute information of the data display terminal from the mapping relationship;

[0015] The multi-level queue data obtained by the query is used as a candidate encoding conversion method.

[0016] Optionally, the process of generating the mapping relationship includes:

[0017] For the target coding language of the data push terminal and the target attribute information of the data display terminal, obtaining a coding file sample corresponding to the target coding language and the target attribute information, wherein the coding file sample includes a first coding file sample before a coding conversion operation and a second coding file sample after a coding conversion operation;

[0018] If the second encoded file sample can be rendered normally, a comparison operation is performed on the first encoded file sample and the second encoded file sample to obtain a meta-format of the data push terminal, a meta-format of the data display terminal, and a meta-format attribute set corresponding to the meta-format of the data display terminal;

[0019] The meta-format of the data push terminal, the meta-format of the data display terminal and the meta-format attribute set corresponding to the meta-format of the data display terminal are respectively stored in corresponding queues, and a correspondence between the queue storing data, the target coding language of the data push terminal and the target attribute information of the data display terminal is established to obtain a mapping relationship; the queue includes a first-level queue, a second-level queue or a third-level queue.

[0020] Optionally, when the second encoded file sample cannot be rendered normally, the method further includes:

[0021] Acquire adjustment scheme data for adjusting the second encoded file sample to obtain a third encoded file sample that can be rendered normally;

[0022] A mapping relationship is determined based on the adjustment scheme data, a comparison result of the first encoded file sample and the third encoded file sample.

[0023] Optionally, performing a code conversion operation on the to-be-rendered page data according to the candidate code conversion mode to obtain target rendering page data, and performing a rendering operation on the target rendering page data to obtain a rendering result, including:

[0024] According to the arrangement order of the meta-formats of the data display terminals in the secondary queue, the meta-formats of the data display terminals and the meta-format attribute sets corresponding to the meta-formats of the data display terminals in the tertiary queue are used in sequence to perform encoding conversion operations on the to-be-rendered page data to obtain corresponding target rendering page data, and rendering operations are performed on the target rendering page data until a rendering result that displays normally is obtained or a rendering result that displays abnormally is obtained after all the meta-formats of the data display terminals are used.

[0025] Optionally, adjusting the candidate encoding conversion mode includes:

[0026] Obtaining a rendering anomaly detection result corresponding to the rendering result;

[0027] Determine an adjustment method corresponding to the rendering anomaly detection result;

[0028] According to the adjustment method, an adjustment operation is performed on the candidate encoding conversion method.

[0029] A data rendering device, applied to a data display terminal, comprising:

[0030] A terminal determination module, used to determine a data push terminal for pushing the page data to be rendered;

[0031] A mode determination module, used to determine a candidate encoding conversion mode based on the encoding language of the data push terminal and the attribute information of the data display terminal;

[0032] A rendering module, configured to perform a coding conversion operation on the to-be-rendered page data according to the candidate coding conversion mode to obtain target rendering page data, and perform a rendering operation on the target rendering page data to obtain a rendering result;

[0033] The adjustment module is used to adjust the candidate encoding conversion mode if the rendering result is displayed abnormally, so as to perform an encoding conversion operation on the to-be-rendered page data based on the adjusted candidate encoding conversion mode and then perform a rendering operation.

[0034] Optionally, the mode determination module includes:

[0035] A data acquisition submodule, used to acquire the coding language of the data push terminal and acquire the attribute information of the data display terminal;

[0036] A relationship acquisition submodule, used to acquire a pre-configured mapping relationship; the mapping relationship includes the coding language of the data push terminal, the attribute information of the data display terminal and the corresponding relationship of the multi-level queue data; the multi-level queue data includes a first-level queue configured with the meta-format of the data push terminal, a second-level queue configured with the meta-format of the data display terminal and a third-level queue configured with the meta-format attribute set of the data display terminal; the meta-format of the data display terminal in the second-level queue corresponds one-to-one with the meta-format attribute set of the data display terminal in the third-level queue;

[0037] A data query submodule, used to query and obtain multi-level queue data corresponding to the coding language of the data push terminal and the attribute information of the data display terminal from the mapping relationship;

[0038] The data determination submodule is used to use the multi-level queue data obtained by query as a candidate encoding conversion method.

[0039] An electronic device comprising a memory and a processor;

[0040] The memory is used to store at least one instruction;

[0041] The processor is used to execute the at least one instruction to implement the above data rendering method.

[0042] A computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, the data rendering method is implemented.

[0043] Compared with the prior art, the present invention has the following beneficial effects:

[0044] It can be seen from the above technical solutions that the present invention discloses a data rendering method, device, equipment and storage medium. In the present invention, when the data push terminal pushes the page data to be rendered to the data display terminal for rendering, the candidate encoding conversion method will be used to perform encoding conversion operation on the page data to be rendered, and the candidate encoding conversion method used matches the encoding language of the data push terminal and the attribute information of the data display terminal, so that the candidate encoding conversion method is adapted to the data push terminal and the data display terminal, thereby improving the probability of successful rendering of the pushed page data to be rendered on the data display terminal. In addition, in the present invention, when rendering on the data display terminal, if the rendering result is displayed abnormally, the candidate encoding conversion method will be adjusted, so as to perform the encoding conversion operation on the page data to be rendered based on the adjusted candidate encoding conversion method and then perform the rendering operation, thereby further improving the probability of successful page rendering, so that the user can view the data normally and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the disclosed drawings without paying creative work.

[0046] Figure 1 A flowchart of a data rendering method disclosed in an embodiment of the present invention;

[0047] Figure 2 A flowchart of a method for determining a candidate encoding conversion mode disclosed in an embodiment of the present invention;

[0048] Figure 3 A flowchart of a method for adjusting a candidate encoding conversion mode disclosed in an embodiment of the present invention;

[0049] Figure 4 A flowchart of a method for determining a mapping relationship disclosed in an embodiment of the present invention;

[0050] Figure 5 A schematic diagram of the structure of a data rendering device disclosed in an embodiment of the present invention;

[0051] Figure 6 The present invention is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0053] With the continuous development of data push, it is now necessary to push page data from the WEB side to the mobile side for display, or push page data from the mobile side to the WEB side for display. In this scenario, when the pushed data is rendered, problems such as dislocation and garbled characters will occur, making it impossible to display the data normally, and users cannot view the data normally, resulting in a poor user experience.

[0054] For example, when a user searches for certain content through a mobile terminal or manual voice, if the content of the search is the method of transferring money, the background will search the knowledge base for the content corresponding to the method of transferring money. After the search is obtained, in order to facilitate the user's search, the search results can be pushed to the user's mobile terminal, such as the user's mobile phone. In addition, since the search results are in the background, the display style of the WEB terminal is different from that of the mobile terminal. Pushing the WEB page directly to the mobile terminal will cause problems such as misalignment, garbled characters, and blank spaces when the mobile terminal is displayed, making it impossible for the user to view the data normally.

[0055] In order to ensure that the web page can be displayed normally on the mobile terminal, in actual applications, it may be pushed and rendered after manual conversion and inspection. This method is time-consuming and labor-intensive to implement, and has low efficiency in batch data push scenarios.

[0056] In order to solve the problems of low efficiency, time-consuming and labor-intensive manual conversion, the present invention can pre-compare the converted coded file samples to obtain the coding mapping relationship before and after the conversion, so that when coding conversion is required, the coding mapping relationship can be used to perform automated coding conversion operations to meet the display requirements of the data display terminal, so that users can view the data normally.

[0057] Furthermore, after converting the code using the above-mentioned code mapping relationship, there is no guarantee that the conversion results can be displayed normally. In order to further adjust the above-mentioned code mapping relationship, for example, if garbled characters occur when the converted data is displayed, and according to conversion experience, if adding or modifying an attribute of a certain label can solve the garbled character problem, then the above-mentioned code mapping relationship can be adjusted, such as adding the content of a certain attribute of a label, to better solve the garbled character problem.

[0058] Taking pushing data from the WEB end to the mobile end for display as an example, the present invention can realize the transmission of WEB end data to the mobile end, and dynamically perform format conversion and add adaptive styles according to the type of the mobile end, thereby realizing automatic format conversion from the WEB end format to the multi-channel end, reducing the amount of manual participation, and improving the experience of data push and rendering.

[0059] On the basis of the above contents, the present invention discloses a data rendering method, device, equipment and storage medium. In the present invention, when the data push terminal pushes the page data to be rendered to the data display terminal for rendering, the candidate encoding conversion method will be used to perform encoding conversion operation on the page data to be rendered, and the candidate encoding conversion method used matches the encoding language of the data push terminal and the attribute information of the data display terminal, so that the candidate encoding conversion method is adapted to the data push terminal and the data display terminal, thereby improving the probability of successful rendering of the pushed page data to be rendered on the data display terminal. In addition, in the present invention, when rendering on the data display terminal, if the rendering result is displayed abnormally, the candidate encoding conversion method will be adjusted, so as to perform the encoding conversion operation on the page data to be rendered based on the adjusted candidate encoding conversion method and then perform the rendering operation, thereby further improving the probability of successful page rendering, so that the user can view the data normally and improve the user experience.

[0060] It should be noted that the data rendering method, device, equipment and storage medium provided by the present invention can be used in the financial field or other fields, for example, can be used in data push application scenarios in the financial field. Other fields are any fields other than the financial field, for example, the page rendering field. The above is only an example and does not limit the application field of the data rendering method, device, equipment and storage medium provided by the present invention.

[0061] An embodiment of the present invention provides a data rendering method, and the execution subject may be a data display terminal. In this embodiment, if the WEB end pushes page data to the mobile end, the data display terminal is the mobile end, and if the mobile end pushes page data to the WEB end, the data display terminal is the WEB end. In this embodiment, the WEB end pushes page data to the mobile end as an example for explanation.

[0062] Reference Figure 1 , data rendering methods can include:

[0063] S11, determining a data push terminal to which to push the page data to be rendered.

[0064] In this embodiment, taking the example of pushing page data from the WEB end to the mobile end, the data push terminal is the WEB end. This embodiment mainly focuses on the coding language of the WEB end. Different coding languages ​​use different meta formats.

[0065] The coding language may be HTML4 (HTML: Hyper Text Markup Language), HTML5, Vue, etc. Meta format refers to the basic format in the coding file for rendering the page, and is the basic grammatical unit that constitutes the coding file. Meta format may include content such as tags. In addition, when the meta format is a tag, the tag has corresponding tag data.

[0066] For example, a web-side HTML meta format is as follows XXXXXXXX, which is an HTML title. An Android-side meta format is as follows <script src=https: can.jsdeliver.net bpm vue@2>< / script> XXXXXXXX.

[0067] In this embodiment, a determined data push terminal, such as WEB terminal A, pushes the data of the page to be rendered to the mobile terminal, so that the mobile terminal renders the page.

[0068] S12: Determine a candidate encoding conversion method based on the encoding language of the data push terminal and the attribute information of the data display terminal.

[0069] Specifically, when performing code conversion, the candidate code conversion method is related to the coding language of the data push terminal, and the coding language makes the meta format of the WEB end different. In addition, the candidate code conversion method is related to the attribute information of the data display terminal, that is, the terminal that needs to render the page, and the attribute information can be screen size, resolution, operating system, etc.

[0070] In this embodiment, the candidate encoding conversion mode determined based on the encoding language of the data push terminal and the attribute information of the data display terminal can match the data push terminal and the data display terminal, thereby increasing the probability of successful rendering.

[0071] In practical applications, refer to Figure 2 , step S12 may include:

[0072] S21. Acquire the coding language of the data push terminal, and acquire the attribute information of the data display terminal.

[0073] The coding language of the data push terminal may be the one that is sent when the data push terminal sends the page data to be rendered, and the data display terminal may directly obtain it.

[0074] Alternatively, after the data push terminal sends the to-be-rendered page data to the data display terminal, the data display terminal requests the coding language data from the data push terminal, and the data push terminal then sends the coding language data to the data display terminal.

[0075] The attribute information of the data display terminal may be stored in a storage device of the data display terminal, such as a memory or a database, and may be directly obtained.

[0076] S22. Obtain a pre-configured mapping relationship.

[0077] The mapping relationship includes the corresponding relationship between the coding language of the data push terminal, the attribute information of the data display terminal and the multi-level queue data.

[0078] For example, the coding language of WEB terminal A is HTML5, and the attribute information of the mobile phone is: the operating system is XX system, the screen size is M*N, and the resolution is W, which corresponds to the corresponding multi-level queue data.

[0079] In actual applications, the multi-level queue data includes a first-level queue, a second-level queue and a third-level queue. The content of the first-level queue is the meta-format of the data push terminal, the content of the second-level queue is the meta-format of the data display terminal, and the content of the third-level queue is the meta-format attribute set of the data display terminal.

[0080] Among them, examples of the meta-format of the data push terminal and the meta-format of the data display terminal can refer to the above corresponding description. The meta-format attribute set of the data display terminal includes a set of attributes corresponding to the meta-format. In actual applications, the content of the meta-format attribute set can be empty or not empty, and the attribute content depends on the actual configuration.

[0081] The contents in the secondary queue and the tertiary queue are both related to the data display terminal. Generally speaking, the meta-format of the data display terminal in the secondary queue corresponds to the meta-format attribute set of the data display terminal in the tertiary queue.

[0082] For example, the secondary queue stores five meta formats, which are meta formats supported by the data display terminal, that is, using any meta format will most likely result in normal rendering results on the data display terminal. For each meta format, there is a corresponding meta format attribute set in the third-level queue, and the content can be empty or not empty, that is, there are five meta format attribute sets in the third-level queue.

[0083] S23: Query and obtain, from the mapping relationship, multi-level queue data corresponding to the coding language of the data push terminal and the attribute information of the data display terminal.

[0084] In this embodiment, after obtaining the above mapping relationship, multi-level queue data corresponding to the coding language of the data push terminal and the attribute information of the data display terminal is obtained directly by table lookup or the like.

[0085] S24. The multi-level queue data obtained by the query is used as a candidate encoding conversion method.

[0086] Specifically, the multi-level queue data obtained by the query includes the data content of the third-level queue, wherein there may be multiple meta-formats in the second-level queue, and there is a meta-format attribute set corresponding to the meta-format in the third-level queue. Then, each meta-format in the second-level queue and the meta-format attribute set matching it in the third-level queue are a candidate encoding conversion method. The number of candidate encoding conversion methods is not limited and can be one or more.

[0087] In this embodiment, a mapping relationship is pre-configured, in which a plurality of feasible candidate encoding conversion methods are stored, and subsequent encoding conversion operations can be performed based on the candidate encoding conversion methods to ensure that the page of the data display terminal can be rendered normally without problems such as dislocation and garbled characters.

[0088] It should be noted that, in this embodiment, the mobile terminal determines the candidate encoding conversion method. In addition, the WEB terminal can directly determine the candidate encoding conversion method (the determination process is the same as the mobile terminal determination process), push it to the mobile terminal, and the mobile terminal directly uses the candidate encoding conversion method to execute step S13.

[0089] S13: performing a coding conversion operation on the to-be-rendered page data according to the candidate coding conversion mode to obtain target rendering page data, and performing a rendering operation on the target rendering page data to obtain a rendering result.

[0090] In actual applications, according to the content of step S12, the number of candidate encoding conversion methods is one or more, corresponding to the number of meta-formats in the secondary queue. In subsequent encoding conversions, the meta-formats in the secondary queue can be used to perform encoding conversion operations in sequence.

[0091] To elaborate, the meta-formats in the secondary queue are in order, and the meta-formats in the front are formats with higher usage frequency or higher encoding conversion success rates. Then, according to the order of arrangement of the meta-formats of the data display terminal in the secondary queue, the meta-formats of the data display terminal and the meta-format attribute set corresponding to the meta-format of the data display terminal in the tertiary queue can be used in sequence to perform encoding conversion operations on the to-be-rendered page data to obtain corresponding target rendering page data, and rendering operations are performed on the target rendering page data until a normal rendering result is obtained or an abnormal rendering result is obtained after all the meta-formats of the data display terminal are used.

[0092] In detail, taking the example of five meta-formats in the secondary queue, the first meta-format is used for encoding conversion. During encoding conversion, the object of conversion is the page data to be rendered, which can be tags, attributes, and tag content. For the page data to be rendered, the meta-format is converted from the meta-format of the WEB end in the primary queue to the meta-format of the mobile end in the secondary queue. During encoding conversion, the meta-format attribute set corresponding to the selected meta-format in the third-level queue is needed. After the encoding conversion is completed, the rendering result will be obtained.

[0093] In this embodiment, the rendering result is detected to determine whether the rendering result is displayed normally or abnormally.

[0094] During the specific detection, the preset detection content and the detection method corresponding to the preset detection content can be obtained. The preset detection content can be garbled, misaligned, blank, deformed, etc., and the detection method corresponding to the preset detection content can be configured according to the actual situation.

[0095] Then, the preset detection content is detected using the detection method corresponding to the preset detection content to obtain a rendering detection result. That is, in this embodiment, the rendering detection result is a judgment result such as whether there is garbled code, whether there is dislocation, whether there is blank, whether the page object is deformed, etc.

[0096] If the rendering detection result shows that there are no garbled characters, misalignment, blanks, etc., it means that the rendering result is displayed normally. If there is at least one of the garbled characters, misalignment, blanks, etc., it means that the rendering result is displayed abnormally. Then continue to use the next meta-format in the secondary queue and the meta-format attribute set corresponding to the meta-format in the tertiary queue to perform the encoding conversion operation until a normal rendering result is obtained. Alternatively, after using all the meta-formats in the secondary queue, it is found that any meta-format cannot guarantee the normal display of the rendering result, that is, any meta-format stores a rendering result with abnormal display, then it can also be stopped.

[0097] S14: If the rendering result is abnormal, the candidate encoding conversion mode is adjusted, so as to perform an encoding conversion operation on the to-be-rendered page data based on the adjusted candidate encoding conversion mode and then perform a rendering operation.

[0098] Specifically, after the step S13, the rendering results obtained are all abnormal, which means that any of the meta formats in the secondary queue cannot be used for the mobile terminal in the embodiment of the present invention. Therefore, it is necessary to adjust the candidate encoding conversion method. The adjustment process can be to increase the content of the meta format in the secondary queue, or to adjust the content of the meta format attribute set in the tertiary queue. For the specific implementation process, refer to Figure 5 , step S14 may include:

[0099] S31. Obtain a rendering anomaly detection result corresponding to the rendering result.

[0100] In this embodiment, when adjusting the candidate encoding conversion method, it is necessary to make targeted adjustments to the problems existing in this rendering, such as garbled or misaligned problems, and the rendering anomaly detection result corresponding to the rendering result should be obtained. In actual applications, since there are multiple meta-formats in the secondary queue, there will be multiple rendering results. In this embodiment, the rendering result with the least rendering anomaly problems can be selected, and the rendering result with the easiest problem to solve can be selected. The specific selection of which rendering result can be based on the actual configuration. In addition, each rendering result obtained can also obtain its corresponding rendering anomaly detection result.

[0101] After selecting a rendering result, you can obtain the rendering anomaly detection result corresponding to the rendering result.

[0102] S32: Determine an adjustment method corresponding to the rendering anomaly detection result.

[0103] Specifically, after the rendering anomaly detection result is known, a more commonly used solution, that is, an adjustment method, for the rendering anomaly detection result may be determined.

[0104] In this embodiment, the adjustment method corresponding to the rendering anomaly detection result can be manually configured based on experience. For example, when the rendering anomaly is misalignment, the problem can be avoided by adding the content of a certain attribute in the meta-format attribute set corresponding to a certain meta-format. In this case, the adjustment method is to add the content of a certain attribute in the meta-format attribute set corresponding to the meta-format.

[0105] When the rendering exception is garbled characters, a certain meta format can often be used to circumvent the problem. The adjustment method can be to add this meta format.

[0106] S33: According to the adjustment method, adjust the candidate encoding conversion method.

[0107] After the adjustment method is determined, the candidate encoding conversion methods are adjusted using the adjustment method.

[0108] After the adjustment is completed, the contents in the secondary queue and the tertiary queue will be updated. If a new meta-format is added to the secondary queue, the new meta-format can be used for encoding conversion. After the encoding conversion, new rendering is performed to determine again whether the rendering is normal. If not, manual intervention can be performed to solve the problem.

[0109] If the third-level queue adjusts the meta-format attribute set of a certain meta-format, the meta-format and meta-format attribute set can be used for encoding conversion operations. After encoding conversion, new rendering is performed to determine again whether the rendering is normal. If it is abnormal, manual intervention can be performed to solve the problem.

[0110] If both the secondary queue and the tertiary queue have been adjusted, encoding conversion can be performed in sequence according to the adjustment method until a normal rendering result is obtained or if all adjustment methods are verified and no normal rendering result is displayed, manual intervention is performed.

[0111] It should be noted that, in this embodiment, it is the mobile terminal that adjusts the candidate encoding conversion mode. In addition, the WEB terminal can directly adjust the candidate encoding conversion mode and push it to the mobile terminal. The mobile terminal directly uses the adjusted candidate encoding conversion mode for encoding conversion and rendering.

[0112] In this embodiment, since the candidate encoding conversion modes are readjusted, the possibility of normal rendering can be increased, and the reliability and accuracy of data rendering can be improved.

[0113] In this embodiment, when the data push terminal pushes the page data to be rendered to the data display terminal for rendering, the candidate encoding conversion method will be used to perform encoding conversion operations on the page data to be rendered, and the candidate encoding conversion method used matches the encoding language of the data push terminal and the attribute information of the data display terminal, so that the candidate encoding conversion method is adapted to the data push terminal and the data display terminal, thereby improving the probability of successful rendering of the pushed page data to be rendered on the data display terminal. In addition, in the present invention, when rendering on the data display terminal, if the rendering result is displayed abnormally, the candidate encoding conversion method will be adjusted, so that the encoding conversion operation is performed on the page data to be rendered based on the adjusted candidate encoding conversion method, and then the rendering operation is performed, thereby further improving the probability of successful page rendering, so that users can view data normally, and improve user experience.

[0114] In addition, when the application system has the demand for data push, the present invention sets up a three-level format conversion queue for the pushed data, and renders and displays it according to the three-level queue on the channel side. When an exception occurs in the conversion, custom attributes can also be set to complete the display adaptation of the channel side device, which can solve the format rendering problem in most scenarios and improve the user experience of data push and display.

[0115] The above embodiment mentions the mapping relationship. In this embodiment, the generation process of the mapping relationship is introduced. Figure 4 , the generation process of the mapping relationship includes:

[0116] S41. With respect to a target coding language of the data push terminal and target attribute information of the data display terminal, obtain a coding file sample corresponding to the target coding language and the target attribute information.

[0117] In detail, when the full amount of channel data is pre-pushed in the past, the format of the WEB side is manually converted before pushing, forming multiple converted data and pushing them. Then, these manually formatted data can be used.

[0118] In practical applications, since there are various coding languages ​​on the WEB side and various attribute information on the mobile side, in actual processing, the data before and after conversion can be compared based on the coding language and attribute information.

[0119] In this embodiment, all the coding languages ​​and all the attribute information involved are first counted, and each coding language and each attribute information are arranged and combined to obtain multiple combinations of coding languages ​​and attribute information. The coding language in each combination is called the target coding language, and the attribute information in each combination is called the target attribute information. That is, in this embodiment, each coding language and each attribute information are analyzed.

[0120] According to the target coding language and target attribute information, the corresponding coding file samples will be screened out from the historically processed conversion data.

[0121] The encoded file sample includes a first encoded file sample before the encoding conversion operation and a second encoded file sample after the encoding conversion operation.

[0122] In this embodiment, the conversion of the first coded file sample into the second coded file sample may be performed manually. The number of the first coded file samples and the second coded file samples is the same and corresponds one to one. Alternatively, one first coded file sample corresponds to multiple second coded file samples, that is, the same first coded file sample can be encoded into different second coded file samples to achieve display on the same terminal or different terminals.

[0123] S42, determining whether the second encoded file sample can be rendered normally; if so, executing step S43; if not, executing step S45.

[0124] Specifically, the above detection method may be used to perform a rendering detection operation on the second encoded file sample to determine whether it can be rendered normally.

[0125] It should be noted that, in actual applications, there are multiple second encoded file samples, and for each second encoded file sample, it is determined whether it can be rendered normally.

[0126] S43: performing a comparison operation on the first encoded file sample and the second encoded file sample to obtain the meta-format of the data push terminal, the meta-format of the data display terminal, and a meta-format attribute set corresponding to the meta-format of the data display terminal.

[0127] If so, the second encoded file sample can be rendered normally, indicating that the second encoded file sample is available. At this time, the first encoded file sample and the second encoded file sample are trained.

[0128] In the training set, the data of the second encoded file sample is compared with the data of the first encoded file sample before conversion one by one, the encoding correspondence before and after the conversion is statistically analyzed, and the WEB end meta-format, the meta-format of the corresponding attribute information and the meta-format attribute set are registered according to the encoding language, and the above results are used to generate a multi-level queue template set.

[0129] For example, during the comparison, the same tags, the same tag contents, and the same attribute contents of the two encoded files before and after the conversion may be compared in sequence to establish a corresponding relationship between the two.

[0130] S44, respectively storing the meta-format of the data push terminal, the meta-format of the data display terminal, and the meta-format attribute set corresponding to the meta-format of the data display terminal in corresponding queues, establishing a correspondence between the queue storing data, the target coding language of the data push terminal, and the target attribute information of the data display terminal, and obtaining a mapping relationship.

[0131] The queue includes a first-level queue, a second-level queue or a third-level queue.

[0132] After obtaining the WEB end meta-format, the meta-format of the corresponding attribute information and the meta-format attribute set through step S43, the WEB end meta-format is stored or registered in the first-level queue, the meta-format of the attribute information is stored or registered in the second-level queue, and the meta-format attribute set is stored or registered in the third-level queue. Then, a correspondence between the first-, second- and third-level queues and the target coding language of the above-mentioned data push terminal and the target attribute information of the data display terminal is established to obtain a mapping relationship.

[0133] S45: Obtain adjustment solution data for adjusting the second encoded file sample to obtain a third encoded file sample that can be rendered normally.

[0134] Specifically, when the second encoded file sample cannot be rendered normally, that is, there is an abnormal display style, it means that the second encoded file sample cannot be used normally. At this time, the second encoded file sample can be manually adjusted to obtain a third encoded file sample that can be rendered normally, and the adjustment process can be recorded. In this embodiment, the recorded adjustment process is called adjustment plan data, and the adjustment plan data can be, for example, adding attribute information.

[0135] S46: Determine a mapping relationship based on the adjustment scheme data, a comparison result of the first encoded file sample and the third encoded file sample.

[0136] In this embodiment, when determining the mapping relationship, if it is a part of the third encoded file sample that does not involve the adjustment scheme, a comparison is performed in accordance with step S43; if it is a part of the design adjustment scheme, a comparison is performed according to the content of the adjustment scheme. After obtaining the comparison result, the mapping relationship is obtained by referring to the content of step S44.

[0137] It should be noted that the meta-format of the first-level queue can also be generated when the second encoded file sample is not determined. The second-level queue completes the encoding conversion based on the sample comparison statistics. The third-level queue is set when the channel side tries to render and a problem occurs and adjusts the plan. If there is no problem with the rendering, the third-level queue can be set. That is, at this time, at least one meta-format attribute set in the third-level queue is empty.

[0138] In this embodiment, a mapping relationship that serves as a reference for the encoding conversion can be generated based on the encoding files before and after the pre-conversion. When the encoding conversion is performed subsequently, there is no need for manual conversion. The meta-format in the mapping relationship can be directly called for conversion, thereby achieving the goal of standardized display of data on multiple channels, reducing the workload of manual participation and improving efficiency.

[0139] In order to enable those skilled in the art to more clearly understand the present invention, an example of pushing a credit card loan process page on the WEB side to the mobile phone side is now used for explanation. At this time, the mobile phone side can obtain the coding language of the WEB side and the attribute information of the mobile phone side, query the mapping relationship, obtain the three-level queue data, and perform encoding conversion according to the meta-format in the secondary queue and the meta-format attribute set in the tertiary queue. If the conversion is successful and the page rendering is successful, stop. If the rendering is unsuccessful, adjust the meta-format in the secondary queue and the meta-format attribute set in the tertiary queue to obtain a new method, and then use the new method to convert and render. If successful, the result is obtained. If not successful, manual intervention is performed.

[0140] Based on the above data rendering method embodiment, another embodiment of the present invention provides a data rendering device, which is applied to a data display terminal, referring to Figure 5 , the data rendering device comprises:

[0141] The terminal determination module 11 is used to determine the data push terminal to which the page data to be rendered is pushed;

[0142] A mode determination module 12, configured to determine a candidate encoding conversion mode based on the encoding language of the data push terminal and the attribute information of the data display terminal;

[0143] The rendering module 13 is used to perform a coding conversion operation on the to-be-rendered page data according to the candidate coding conversion mode to obtain target rendering page data, and perform a rendering operation on the target rendering page data to obtain a rendering result;

[0144] The adjustment module 14 is configured to adjust the candidate encoding conversion mode if the rendering result is abnormal, so as to perform an encoding conversion operation on the to-be-rendered page data based on the adjusted candidate encoding conversion mode and then perform a rendering operation.

[0145] Further, the mode determination module includes:

[0146] A data acquisition submodule, used to acquire the coding language of the data push terminal and acquire the attribute information of the data display terminal;

[0147] A relationship acquisition submodule, used to acquire a pre-configured mapping relationship; the mapping relationship includes the coding language of the data push terminal, the attribute information of the data display terminal and the corresponding relationship of the multi-level queue data; the multi-level queue data includes a first-level queue configured with the meta-format of the data push terminal, a second-level queue configured with the meta-format of the data display terminal and a third-level queue configured with the meta-format attribute set of the data display terminal; the meta-format of the data display terminal in the second-level queue corresponds one-to-one with the meta-format attribute set of the data display terminal in the third-level queue;

[0148] A data query submodule, used to query and obtain multi-level queue data corresponding to the coding language of the data push terminal and the attribute information of the data display terminal from the mapping relationship;

[0149] The data determination submodule is used to use the multi-level queue data obtained by query as a candidate encoding conversion method.

[0150] Furthermore, a relationship generation module is included, and the relationship generation module includes:

[0151] A sample acquisition submodule is used to acquire, with respect to a target coding language of the data push terminal and target attribute information of the data display terminal, a coding file sample corresponding to the target coding language and the target attribute information, wherein the coding file sample includes a first coding file sample before a coding conversion operation and a second coding file sample after a coding conversion operation;

[0152] a comparison submodule, configured to, if the second encoded file sample can be rendered normally, compare the first encoded file sample and the second encoded file sample to obtain the meta-format of the data push terminal, the meta-format of the data display terminal, and a meta-format attribute set corresponding to the meta-format of the data display terminal;

[0153] The first relationship generation submodule is used to store the meta-format of the data push terminal, the meta-format of the data display terminal, and the meta-format attribute set corresponding to the meta-format of the data display terminal in corresponding queues, establish a correspondence between the queue storing data, the target coding language of the data push terminal, and the target attribute information of the data display terminal, and obtain a mapping relationship; the queue includes a first-level queue, a second-level queue, or a third-level queue.

[0154] Furthermore, the relationship generation module further includes:

[0155] A first adjustment submodule, configured to obtain adjustment scheme data for adjusting the second encoded file sample to obtain a third encoded file sample that can be rendered normally, when the second encoded file sample cannot be rendered normally;

[0156] The second relationship generating submodule is used to determine a mapping relationship based on the adjustment scheme data, a comparison result of the first encoding file sample and the third encoding file sample.

[0157] Further, the rendering module 13 is specifically used for:

[0158] According to the arrangement order of the meta-formats of the data display terminals in the secondary queue, the meta-formats of the data display terminals and the meta-format attribute sets corresponding to the meta-formats of the data display terminals in the tertiary queue are used in sequence to perform encoding conversion operations on the to-be-rendered page data to obtain corresponding target rendering page data, and rendering operations are performed on the target rendering page data until a rendering result that displays normally is obtained or a rendering result that displays abnormally is obtained after all the meta-formats of the data display terminals are used.

[0159] Further, the adjustment module 14 includes:

[0160] An anomaly detection submodule, used to obtain a rendering anomaly detection result corresponding to the rendering result;

[0161] A method determination submodule, used to determine an adjustment method corresponding to the rendering anomaly detection result;

[0162] The second adjustment submodule is used to adjust the candidate encoding conversion mode according to the adjustment mode.

[0163] In this embodiment, when the data push terminal pushes the page data to be rendered to the data display terminal for rendering, the candidate encoding conversion method will be used to perform encoding conversion operations on the page data to be rendered, and the candidate encoding conversion method used matches the encoding language of the data push terminal and the attribute information of the data display terminal, so that the candidate encoding conversion method is adapted to the data push terminal and the data display terminal, thereby improving the probability of successful rendering of the pushed page data to be rendered on the data display terminal. In addition, in the present invention, when rendering on the data display terminal, if the rendering result is displayed abnormally, the candidate encoding conversion method will be adjusted, so that the encoding conversion operation is performed on the page data to be rendered based on the adjusted candidate encoding conversion method, and then the rendering operation is performed, thereby further improving the probability of successful page rendering, so that users can view data normally, and improve user experience.

[0164] It should be noted that, for the working process of each module and sub-module in this embodiment, please refer to the corresponding description in the above embodiment, which will not be repeated here.

[0165] Corresponding to the above embodiment, Figure 6 As shown, the present invention also provides an electronic device, which may include: a processor 1 and a memory 2;

[0166] The processor 1 and the memory 2 communicate with each other via a communication bus 3;

[0167] Processor 1, configured to execute at least one instruction;

[0168] Memory 2, for storing at least one instruction; the instruction is stored in a computer program;

[0169] The processor 1 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.

[0170] The memory 2 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0171] Among them, the processor executes at least one instruction to implement the above-mentioned data rendering method.

[0172] Corresponding to the above embodiment, another embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores at least one instruction, and the at least one instruction implements the above data rendering method when executed by a processor.

[0173] In this embodiment, when the data push terminal pushes the page data to be rendered to the data display terminal for rendering, the candidate encoding conversion method will be used to perform encoding conversion operations on the page data to be rendered, and the candidate encoding conversion method used matches the encoding language of the data push terminal and the attribute information of the data display terminal, so that the candidate encoding conversion method is adapted to the data push terminal and the data display terminal, thereby improving the probability of successful rendering of the pushed page data to be rendered on the data display terminal. In addition, in the present invention, when rendering on the data display terminal, if the rendering result is displayed abnormally, the candidate encoding conversion method will be adjusted, so that the encoding conversion operation is performed on the page data to be rendered based on the adjusted candidate encoding conversion method, and then the rendering operation is performed, thereby further improving the probability of successful page rendering, so that users can view data normally, and improve user experience.

[0174] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0175] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0176] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A data rendering method, It is characterized in that Applied to a data display terminal, the data rendering method includes: Determine the data push terminal for pushing the page data to be rendered; Determining a candidate encoding conversion method based on the encoding language of the data push terminal and the attribute information of the data display terminal; Performing a coding conversion operation on the to-be-rendered page data according to the candidate coding conversion mode to obtain target rendering page data, and performing a rendering operation on the target rendering page data to obtain a rendering result; If the rendering result is abnormal, the candidate encoding conversion mode is adjusted, and the rendering operation is performed after the encoding conversion operation is performed on the to-be-rendered page data based on the adjusted candidate encoding conversion mode.

2. The data rendering method according to claim 1, It is characterized in that Determining a candidate encoding conversion method based on the encoding language of the data push terminal and the attribute information of the data display terminal includes: Acquiring the coding language of the data push terminal and acquiring the attribute information of the data display terminal; Acquire a pre-configured mapping relationship; the mapping relationship includes a coding language of a data push terminal, attribute information of a data display terminal, and a correspondence relationship between multi-level queue data; the multi-level queue data includes a first-level queue configured with a meta-format of the data push terminal, a second-level queue configured with a meta-format of the data display terminal, and a third-level queue configured with a meta-format attribute set of the data display terminal; the meta-format of the data display terminal in the second-level queue corresponds one-to-one to the meta-format attribute set of the data display terminal in the third-level queue; Querying and obtaining multi-level queue data corresponding to the coding language of the data push terminal and the attribute information of the data display terminal from the mapping relationship; The multi-level queue data obtained by the query is used as a candidate encoding conversion method.

3. The data rendering method according to claim 2, It is characterized in that The generation process of the mapping relationship includes: For the target coding language of the data push terminal and the target attribute information of the data display terminal, obtaining a coding file sample corresponding to the target coding language and the target attribute information, wherein the coding file sample includes a first coding file sample before a coding conversion operation and a second coding file sample after a coding conversion operation; If the second encoded file sample can be rendered normally, a comparison operation is performed on the first encoded file sample and the second encoded file sample to obtain a meta-format of the data push terminal, a meta-format of the data display terminal, and a meta-format attribute set corresponding to the meta-format of the data display terminal; The meta-format of the data push terminal, the meta-format of the data display terminal and the meta-format attribute set corresponding to the meta-format of the data display terminal are respectively stored in corresponding queues, and a correspondence between the queue storing data, the target coding language of the data push terminal and the target attribute information of the data display terminal is established to obtain a mapping relationship; the queue includes a first-level queue, a second-level queue or a third-level queue.

4. The data rendering method according to claim 3, It is characterized in that In the case that the second encoded file sample cannot be rendered normally, the method further includes: Acquire adjustment scheme data for adjusting the second encoded file sample to obtain a third encoded file sample that can be rendered normally; A mapping relationship is determined based on the adjustment scheme data, a comparison result of the first encoded file sample and the third encoded file sample.

5. The data rendering method according to claim 2, It is characterized in that Performing a coding conversion operation on the to-be-rendered page data according to the candidate coding conversion mode to obtain target rendering page data, and performing a rendering operation on the target rendering page data to obtain a rendering result, including: According to the arrangement order of the meta-formats of the data display terminals in the secondary queue, the meta-formats of the data display terminals and the meta-format attribute sets corresponding to the meta-formats of the data display terminals in the tertiary queue are used in sequence to perform encoding conversion operations on the to-be-rendered page data to obtain corresponding target rendering page data, and rendering operations are performed on the target rendering page data until a rendering result that displays normally is obtained or a rendering result that displays abnormally is obtained after all the meta-formats of the data display terminals are used.

6. The data rendering method according to claim 1, It is characterized in that The candidate encoding conversion mode is adjusted, including: Obtaining a rendering anomaly detection result corresponding to the rendering result; Determine an adjustment method corresponding to the rendering anomaly detection result; According to the adjustment method, an adjustment operation is performed on the candidate encoding conversion method.

7. A data rendering device, It is characterized in that Applied to a data display terminal, the data rendering device comprises: A terminal determination module, used to determine a data push terminal for pushing the page data to be rendered; A mode determination module, used to determine a candidate encoding conversion mode based on the encoding language of the data push terminal and the attribute information of the data display terminal; A rendering module, configured to perform a coding conversion operation on the to-be-rendered page data according to the candidate coding conversion mode to obtain target rendering page data, and perform a rendering operation on the target rendering page data to obtain a rendering result; The adjustment module is used to adjust the candidate encoding conversion mode if the rendering result is displayed abnormally, so as to perform an encoding conversion operation on the to-be-rendered page data based on the adjusted candidate encoding conversion mode and then perform a rendering operation.

8. The data rendering device according to claim 7, It is characterized in that The mode determination module includes: A data acquisition submodule, used to acquire the coding language of the data push terminal and acquire the attribute information of the data display terminal; A relationship acquisition submodule, used to acquire a pre-configured mapping relationship; the mapping relationship includes the coding language of the data push terminal, the attribute information of the data display terminal and the corresponding relationship of the multi-level queue data; the multi-level queue data includes a first-level queue configured with the meta-format of the data push terminal, a second-level queue configured with the meta-format of the data display terminal and a third-level queue configured with the meta-format attribute set of the data display terminal; the meta-format of the data display terminal in the second-level queue corresponds one-to-one with the meta-format attribute set of the data display terminal in the third-level queue; A data query submodule, used to query and obtain multi-level queue data corresponding to the coding language of the data push terminal and the attribute information of the data display terminal from the mapping relationship; The data determination submodule is used to use the multi-level queue data obtained by query as a candidate encoding conversion method.

9. An electronic device, It is characterized in that The electronic device comprises a memory and a processor; The memory is used to store at least one instruction; The processor is used to execute the at least one instruction to implement the data rendering method according to any one of claims 1 to 6.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, the data rendering method according to any one of claims 1 to 6 is implemented.