Information display method and related equipment

The information display template component is imported through dual data channel acquisition and unified data interface function, which solves the real-time and stability of data display in the existing technology, realizes real-time information display and reduces development costs.

CN115146053BActive Publication Date: 2024-11-22武汉斗鱼鱼乐网络科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110334478.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-29
Publication Date
2024-11-22
Estimated Expiration
2041-03-29

AI Technical Summary

Technical Problem

The existing technology cannot meet the real-time and stability of information display during data display, and a single programming method requires cooperation from multiple departments, resulting in high development costs.

Method used

The dual data channel is used to obtain real-time data and basic data, and the preset information display template components are imported through the unified data interface function to realize the real-time display of information.

Benefits of technology

Through the data transmission method of dual data channels, the real-time data transmission speed is ensured, the real-time and stability of information display is achieved, the lag of data acquisition by a single interface is avoided, and the development cost is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115146053B_ABST
    Figure CN115146053B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses an information display method and related equipment, the method comprising: receiving a user's information display request; acquiring basic data and real-time data corresponding to the information display request based on dual data channels, wherein the dual data channels include two data channels generated by different creation methods; based on the dual data channels and a unified data interface function, importing the real-time data and the basic data into a preset information display template component for information display, wherein the unified data interface function is an interface function that can correspond to the two data channels. The technical solution of the embodiment of the present invention solves the lag problem in the prior art of only pulling data from the boot interface or only pulling data from the hypertext preprocessor when displaying information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of computer technology, and in particular to an information display method and related equipment. Background Art

[0002] When displaying data, the existing technical solutions only obtain data from the hypertext preprocessor and the boot interface. When obtaining data from the boot interface, data can only be obtained when the client is turned on. When obtaining data from the hypertext preprocessor, data can only be obtained at a certain time. Data acquisition is not combined with the user's real-time information display request, and thus the real-time nature of information display cannot be met. Asynchronous data pulling to render a complex interface is also difficult to meet the stability requirements of information display. At the same time, when displaying data, if it is only implemented by a single programming method, more cross-departmental cooperation processes are required, and many programming languages ​​are required to complete a task, thereby increasing the development cost of the project. Summary of the invention

[0003] The embodiment of the present invention provides an information display method and related equipment, which realizes real-time display of data corresponding to an information display request.

[0004] In a first aspect, an embodiment of the present invention provides an information display method, which is used in a client, comprising:

[0005] Receive information display request from user;

[0006] Acquiring basic data and real-time data corresponding to the information display request based on dual data channels, wherein the dual data channels include two data channels generated by different types of creation methods;

[0007] Based on the above dual data channels and the unified data interface function, the above real-time data and the above basic data are imported into a preset information display template component for information display, wherein the above unified data interface function is an interface function that can correspond to the above two data channels.

[0008] Preferably, before receiving the user's information display request, the method further includes:

[0009] Perform initialization settings according to the init method;

[0010] The preset information display template component is established, wherein the preset information display template component inherits from the UIView view, and the preset information display template component has independence.

[0011] Preferably, the step of establishing the preset information display template component includes:

[0012] Create the initial preset information display component according to the initRootView method;

[0013] Add a progress bar to the above initial preset information display component through a preset function to obtain a target preset information display component;

[0014] The layout of the target preset information display component is adjusted to obtain the preset information display template component.

[0015] Preferably, the step of importing the real-time data and the basic data into a preset information display template component for display based on the dual data channels and the unified data interface function includes:

[0016] Based on the dual data channels, a model of the real-time data and a model of the basic data are respectively obtained;

[0017] Call the unified data interface function to import the model into the preset information display component;

[0018] The preset information display component displays the real-time data and the basic data.

[0019] Preferably, the step of acquiring the model of the real-time data based on the dual data channels includes:

[0020] Monitor the above information display request;

[0021] If the above information display request calls the function, a dictionary of real-time data corresponding to the above information display request is obtained based on the above dual data channels;

[0022] The above dictionary is converted into a model to obtain the model of the above real-time data.

[0023] Preferably, before the step of acquiring the basic data and real-time data corresponding to the above-mentioned information display request based on the dual data channels, the method further includes:

[0024] Define the above polling function;

[0025] Construct the above initial poller based on the above polling function;

[0026] A timer is set for the initial poller to generate the information poller.

[0027] Preferably, the step of setting a timer for the initial poller to generate the information poller comprises:

[0028] Set the callback panel for the above timer;

[0029] If the callback panel of the above timer is called back, the callback function will be triggered:

[0030] (void)turntableLotteryManager:(DYTurntableLotteryManager*)turntableLotteryManager timerTick:(NSTimeInterval)timestamp

[0031] Among them, the turntableLotteryManager function is a function that is triggered every second, timestamp is the current timestamp, and nextGetTime is the timestamp of the next successful information display request interface after the current successful information display request interface.

[0032] Obtain the above nextGetTime and the above timestamp according to the above callback function;

[0033] The above-mentioned information poller is generated according to the above-mentioned nextGetTime and the above-mentioned timestamp setting polling frequency.

[0034] In a second aspect, an embodiment of the present invention provides an information display device, characterized in that it includes:

[0035] A request receiving module, used to receive a user's information display request;

[0036] A data receiving module, used for acquiring basic data and real-time data corresponding to the information display request based on dual data channels, wherein the dual data channels include two data channels generated by different creation methods;

[0037] The information display module is used to import the above-mentioned real-time data and the above-mentioned basic data into a preset information display template component for information display based on the above-mentioned dual data channels and unified data interface function, wherein the above-mentioned unified data interface function is an interface function that can correspond to the above-mentioned two data channels.

[0038] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is used to implement the steps of the information display method as described above when executing the computer program stored in the memory.

[0039] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, the steps of the information display method as described above are implemented.

[0040] The embodiments of the above invention have the following advantages or beneficial effects:

[0041] By receiving the user's information display request; obtaining the basic data and real-time data corresponding to the above information display request based on the dual data channels, wherein the above dual data channels include two data channels generated by different creation methods; based on the above dual data channels and the unified data interface function, importing the above real-time data and the above basic data into the preset information display template component for information display, wherein the above unified data interface function is an interface function that can correspond to the above two data channels. A dual data channel data transmission method is adopted to distinguish the transmission process of the information to be displayed, and the real-time data is transmitted through a faster data channel, thereby ensuring the transmission speed of the above real-time data, and further ensuring the real-time nature of information display; according to the user's information display request, the real-time data and basic data corresponding to the above information display request are obtained, avoiding the lag of only obtaining data from the hypertext preprocessor and the boot interface, and realizing the real-time nature of information display according to the information display request; based on the above dual data channels and the unified data interface function, the above real-time data and the above basic data are imported into a preset information display template component for information display, wherein the above unified data interface function is an interface function that can correspond to the above two data channels, and by establishing a preset information display template component with an interface function that can correspond to the above two data channels, the information display of the above real-time data and the above basic data is guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 is a flow chart of an information display method provided by an embodiment of the present invention;

[0043] Figure 2 is a structural schematic diagram of an information display device provided by an embodiment of the present invention;

[0044] Figure 3 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention;

[0045] Figure 4 It is a structural schematic diagram of a storage medium provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0046] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0047] Figure 1This is a flow chart of an information display method provided by an embodiment of the present invention. The information display method provided by this embodiment can be applied to scenarios where real-time information display is required in actual development. The method can be executed by an information display device, which can be implemented by software and / or hardware, and is usually integrated in a terminal.

[0048] like Figure 1 As shown, an embodiment of the present invention provides an information display method for a client, which specifically includes the following steps:

[0049] Step S101: receiving a user's information display request;

[0050] Exemplarily, basic data and real-time data corresponding to the information display request are obtained according to the user's information display request, which ensures the real-time nature of the information display, avoids the situation where there is no response after the user sends an information display request, and improves the user experience.

[0051] In a possible implementation manner, before the above step of receiving the user's information display request, the method further includes:

[0052] Initialization settings are performed according to the init method, which includes calling the parent class method to facilitate the generation of the preset information display template component;

[0053] A preset information display template component is established, wherein the preset information display template component inherits from the UIView view and has independence.

[0054] Exemplarily, the independent preset information display template component is easy to insert into the original interface, and the independent preset information display template component is easy to maintain without the need to modify and maintain other components.

[0055] Exemplarily, the step of establishing the preset information display template component includes:

[0056] Establishing an initial preset information display component according to the initRootView method, wherein the initRootView method is a method for setting the view of the initial preset information display component by calling a system function;

[0057] Adding a progress bar to the initial preset information display component through a preset function to obtain a target preset information display component, wherein the preset function is a calling function for adding a progress bar to the initial preset information display component;

[0058] Exemplarily, a custom progress bar function DYBTurnProcessView is added to the above-mentioned initial preset information display component, and the above-mentioned custom progress bar function generates a DYBTurnProcessView view. The above-mentioned DYBTurnProcessView view can display the current task progress level and progress percentage in real time, so as to facilitate understanding of the current task status.

[0059] Adjusting the layout of the target preset information display component to obtain the preset information display component;

[0060] Exemplarily, according to the preset layout information, the automatic layout of the above-mentioned target preset information display component is realized by inheriting and overriding the call to the layoutSubviews method. Furthermore, the above-mentioned layoutSubviews method realizes the automatic layout in combination with the preset layout information by calling [super layoutSubviews];

[0061] Exemplarily, the layout of the preset information display component is preset in multiple modes, and four modes are taken as examples as follows:

[0062] / / 0-inactive state

[0063] / / 1-activated, continuous upgrade status

[0064] / / 2-Activate, has reached the top level,

[0065] / / 3-Ended (display the last round of information)

[0066] According to different modes, different preset information display template components are obtained, which improves the applicability of the preset information display template components and brings a better user experience.

[0067] Step S102: acquiring basic data and real-time data corresponding to the information display request based on dual data channels, wherein the dual data channels include two data channels generated by different types of creation methods;

[0068] Exemplarily, the above-mentioned dual data channels include two data channels generated by different creation methods, which can transmit the real-time data corresponding to the above-mentioned information display request through the C++ data channel, and the basic data corresponding to the above-mentioned information display request through the PHP data channel. The C++ data channel ensures that the real-time data corresponding to the above-mentioned information display request is transmitted faster, thereby ensuring the real-time nature of information display.

[0069] In a possible implementation, the step of acquiring basic data corresponding to the information display request based on the dual data channels includes:

[0070] Define the above polling function;

[0071] Construct the above initial poller based on the above polling function;

[0072] A timer is set for the initial poller to generate the information poller.

[0073] Exemplarily, a request component requset for initiating the above-mentioned information display request is established according to the creation request maker, and a polling function refreshSpaceTravelData is defined based on the above-mentioned request component, and the above-mentioned polling function refreshSpaceTravelData is used to cyclically access the above-mentioned information display request according to the above-mentioned request component, obtain the data of the preset information display component corresponding to the above-mentioned information display request, and use the above-mentioned data of the preset information display component corresponding to the above-mentioned information display request as basic data, and convert the above-mentioned basic data dictionary into a model;

[0074] Exemplarily, the step of setting a timer for the initial poller to generate the information poller includes:

[0075] Set the callback panel for the above timer;

[0076] If the callback panel of the above timer is called back, the callback function will be triggered:

[0077] (void)turntableLotteryManager:(DYTurntableLotteryManager*)turntableLotteryManager timerTick:(NSTimeInterval)timestamp

[0078] Among them, the turntableLotteryManager function is a function that can be triggered at any time. When the above turntableLotteryManager function is triggered by the above information display request, the timestamp is obtained. The above timestamp is the current timestamp. The timestamp of the next success of the above information display request interface after the current success of the above information display request interface is calculated and recorded as nextGetTime;

[0079] Obtain the above nextGetTime and the above timestamp according to the above callback function;

[0080] The above-mentioned information poller is generated according to the above-mentioned nextGetTime and the above-mentioned timestamp setting polling frequency.

[0081] Exemplarily, the numerical values ​​of the above-mentioned nextGetTime and the above-mentioned timestamp are compared. If the above-mentioned nextGetTime is greater than the above-mentioned timestamp, the above-mentioned polling function refreshSpaceTravelData is called again, and the initial nextGetTime data is returned through the server-side scripting language php interface. The polling time is calculated based on the above-mentioned initial nextGetTime data and the preset time. The frequency of polling is set by the above-mentioned nextGetTime and the above-mentioned timestamp to avoid the error of human interference in the frequency of polling;

[0082] For example, if the above-mentioned PHP interface returns 10, it means that the above-mentioned polling function refreshSpaceTravelData initiates a poll every 10 seconds, then the above-mentioned current timestamp is added with 10 seconds to obtain the initial nextGetTime data; if the above-mentioned preset time is 60, then the above-mentioned initial nextGetTime data is added with 60 seconds to obtain the timestamp nextGetTime of the next successful information display request interface after the current information display request interface succeeds, thereby realizing the polling frequency setting by the above-mentioned nextGetTime and the above-mentioned timestamp.

[0083] Exemplarily, the poller obtains the user's information display request every once in a while, replacing the function of the preset information display component in the existing solution that needs to push the user's information display request every once in a while, and realizes the process of the server side obtaining the user's information display request by itself, without the need for a large number of personnel to participate, while avoiding the untimely processing of the information display request, thereby ensuring the real-time nature of the information display.

[0084] In a possible implementation, the step of acquiring the real-time data corresponding to the information display request based on the dual data channels includes:

[0085] Monitor the information display request of the above users;

[0086] When the user's information display request calls the function, the real-time data corresponding to the user's information display request is converted into a dictionary;

[0087] The above dictionary is converted into a model to obtain the model of the above real-time data.

[0088] Exemplarily, the monitoring of the user's information display request is achieved by subscribing to the user's information display request, and the subscription method is:

[0089] [DYSocketManager.sharedInstancesubscribeMessage:@[@"lwlt",@"lucky_wheel_star_pool_subscribe"]];

[0090] Among them, DYSocketManager is the preset socket message management class, the sharedInstance method is the method to obtain the above preset management class, the subscribeMessage method is the function method of subscribing to the message, and by obtaining the preset socket message management class, the socket message is detected, and then according to the subscribeMessage method, the process of subscribing to the client's message is realized, and the information display request of the above user is monitored in real time, so that the real-time display of information can be realized.

[0091] Exemplarily, when the user's information display request is monitored, a function is called to obtain real-time data corresponding to the user's information display request, wherein the function is:

[0092] (void)sockeSpaceTravel:(NSDictionary*)msgDict

[0093] Among them, sockeSpaceTravel is a function for receiving client messages, which is used to receive the above-mentioned information display request from the above-mentioned client; (NSDictionary*)msgDict is a real-time data dictionary for receiving the above-mentioned information display request. The above-mentioned real-time data dictionary is converted into a model through msgDict, and then the real-time data corresponding to the above-mentioned information display request is obtained in real time, thereby realizing the real-time display of information. The subscription solution is adopted to screen all user requests, which greatly saves traffic and reduces unnecessary data processing.

[0094] Exemplary method of converting a dictionary into a model is:

[0095] DYLTSpaceTravelModel*model=[DYLTSpaceTravelModel yy_modelWithDictionary:msgDict]

[0096] Among them, modelWithDictionary is a method for converting a dictionary into a model, and DYLTSpaceTravelModel*model is the final converted model; by calling the display function refreshDataWithDYLTSpaceTravelModel of the preset information display component, the model is displayed in the preset information display component.

[0097] Step S103: Based on the dual data channels and the unified data interface function, the real-time data and the basic data are imported into a preset information display template component for information display, wherein the unified data interface function is an interface function that can correspond to the two data channels.

[0098] In a possible implementation, the step of importing the real-time data and the basic data into a preset information display component for display based on the dual data channels and the unified data interface function includes:

[0099] Based on the dual data channels, a model of the real-time data and a model of the basic data are respectively obtained;

[0100] Call the unified data interface function to import the model into the preset information display component;

[0101] The preset information display component displays the real-time data and the basic data.

[0102] Exemplarily, the model of the basic data is obtained through the PHP data channel, and the real-time data is obtained through the C++ data channel. The interface function unified with the PHP data channel and the C++ data channel is set as follows:

[0103] (void)refreshDataWithDYLTSpaceTravelModel:(DYLTSpaceTravelModel*)model wherein refreshDataWithDYLTSpaceTravelModel is the function name of the above interface function, the above interface function does not need to return a value and is recorded as void, the model of the above real-time data and the model of the above basic data are used as the parameter model of the above interface function, the type of the above parameter is DYLTSpaceTravelModel, and the model of the above real-time data and the model of the above basic data are called by the above interface function, thereby realizing the process of the above preset information display component displaying the above real-time data and the above basic data;

[0104] When the above-mentioned preset information display component displays the above-mentioned real-time data and the above-mentioned basic data, the above-mentioned unified interface function refreshDataWithDYLTSpaceTravelModel determines the timing of the above-mentioned information display request, thereby ensuring that the model of the above-mentioned real-time data and the model of the above-mentioned basic data called each time are the models to be called by the above-mentioned information display request with a later timing, thereby avoiding the display errors of the above-mentioned preset information display component, and realizing that a unified data interface can simultaneously update the preset information display component in real time, avoiding the inconvenience caused by display errors.

[0105] The technical solution of this embodiment is to receive a user's information display request; obtain basic data and real-time data corresponding to the above information display request based on dual data channels, wherein the above dual data channels include two data channels generated by different creation methods; based on the above dual data channels and a unified data interface function, import the above real-time data and the above basic data into a preset information display template component for information display, wherein the above unified data interface function is an interface function that can correspond to the above two data channels. A dual data channel data transmission method is adopted to distinguish the transmission process of the information to be displayed, and the real-time data is transmitted through a faster data channel, thereby ensuring the transmission speed of the above real-time data, and further ensuring the real-time nature of information display; according to the user's information display request, the real-time data and basic data corresponding to the above information display request are obtained, avoiding the lag of only obtaining data from the hypertext preprocessor and the boot interface, and realizing the real-time nature of information display according to the information display request; based on the above dual data channels and the unified data interface function, the above real-time data and the above basic data are imported into a preset information display template component for information display, wherein the above unified data interface function is an interface function that can correspond to the above two data channels, and by establishing a preset information display template component with an interface function that can correspond to the above two data channels, the information display of the above real-time data and the above basic data is guaranteed.

[0106] The following is an embodiment of an information display device provided by an embodiment of the present invention. The device and the information display methods of the above-mentioned embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the information display device, reference can be made to the embodiments of the above-mentioned information display method.

[0107] In one possible real-time approach, such as Figure 2 As shown, an embodiment of the present invention provides an information display device, which is used for a client, including:

[0108] A request receiving module 201 is used to receive a user's information display request;

[0109] The data receiving module 202 is used to obtain basic data and real-time data corresponding to the information display request based on dual data channels, wherein the dual data channels include two data channels generated by different creation methods;

[0110] The information display module 203 is used to import the above-mentioned real-time data and the above-mentioned basic data into the preset information display template component for information display based on the above-mentioned dual data channels and the unified data interface function, wherein the above-mentioned unified data interface function is an interface function that can correspond to the above-mentioned two data channels.

[0111] By receiving the user's information display request; obtaining the basic data and real-time data corresponding to the above information display request based on the dual data channels, wherein the above dual data channels include two data channels generated by different creation methods; based on the above dual data channels and the unified data interface function, importing the above real-time data and the above basic data into the preset information display template component for information display, wherein the above unified data interface function is an interface function that can correspond to the above two data channels. A dual data channel data transmission method is adopted to distinguish the transmission process of the information to be displayed, and the real-time data is transmitted through a faster data channel, thereby ensuring the transmission speed of the above real-time data, and further ensuring the real-time nature of information display; according to the user's information display request, the real-time data and basic data corresponding to the above information display request are obtained, avoiding the lag of only obtaining data from the hypertext preprocessor and the boot interface, and realizing the real-time nature of information display according to the information display request; based on the above dual data channels and the unified data interface function, the above real-time data and the above basic data are imported into a preset information display template component for information display, wherein the above unified data interface function is an interface function that can correspond to the above two data channels, and by establishing a preset information display template component with an interface function that can correspond to the above two data channels, the information display of the above real-time data and the above basic data is guaranteed.

[0112] In one possible real-time approach, Figure 3 As shown, an embodiment of the present invention provides an electronic device, including a memory 310, a processor 320, and a computer program 311 stored in the memory 320 and executable on the processor 320, wherein the processor 320 implements the following when executing the computer program 311: receiving a user's information display request; acquiring basic data and real-time data corresponding to the above information display request based on dual data channels, wherein the above dual data channels include two data channels generated by different creation methods; based on the above dual data channels and a unified data interface function, importing the above real-time data and the above basic data into a preset information display template component for information display, wherein the above unified data interface function is an interface function that can correspond to the above two data channels.

[0113] By receiving the user's information display request; obtaining the basic data and real-time data corresponding to the above information display request based on the dual data channels, wherein the above dual data channels include two data channels generated by different creation methods; based on the above dual data channels and the unified data interface function, importing the above real-time data and the above basic data into the preset information display template component for information display, wherein the above unified data interface function is an interface function that can correspond to the above two data channels. A dual data channel data transmission method is adopted to distinguish the transmission process of the information to be displayed, and the real-time data is transmitted through a faster data channel, thereby ensuring the transmission speed of the above real-time data, and further ensuring the real-time nature of information display; according to the user's information display request, the real-time data and basic data corresponding to the above information display request are obtained, avoiding the lag of only obtaining data from the hypertext preprocessor and the boot interface, and realizing the real-time nature of information display according to the information display request; based on the above dual data channels and the unified data interface function, the above real-time data and the above basic data are imported into a preset information display template component for information display, wherein the above unified data interface function is an interface function that can correspond to the above two data channels, and by establishing a preset information display template component with an interface function that can correspond to the above two data channels, the information display of the above real-time data and the above basic data is guaranteed.

[0114] Since the electronic device introduced in this embodiment is a device used to implement an information display device in the embodiment of the present application, based on the method introduced in the embodiment of the present application, technical personnel in this field can understand the specific implementation mode of the electronic device of this embodiment and its various variations. Therefore, how the electronic device implements the method in the embodiment of the present application is not introduced in detail here. As long as the equipment used by technical personnel in this field to implement the method in the embodiment of the present application is within the scope of protection of this application.

[0115] In one possible real-time approach, Figure 4 As shown, this embodiment provides a computer-readable storage medium 400, on which a computer program 411 is stored, and when the computer program 411 is executed by a processor, it implements: receiving a user's information display request; obtaining basic data and real-time data corresponding to the above information display request based on dual data channels, wherein the above dual data channels include two data channels generated by different creation methods; based on the above dual data channels and a unified data interface function, importing the above real-time data and the above basic data into a preset information display template component for information display, wherein the above unified data interface function is an interface function that can correspond to the above two data channels.

[0116] By receiving the user's information display request; obtaining the basic data and real-time data corresponding to the above information display request based on the dual data channels, wherein the above dual data channels include two data channels generated by different creation methods; based on the above dual data channels and the unified data interface function, importing the above real-time data and the above basic data into the preset information display template component for information display, wherein the above unified data interface function is an interface function that can correspond to the above two data channels. A dual data channel data transmission method is adopted to distinguish the transmission process of the information to be displayed, and the real-time data is transmitted through a faster data channel, thereby ensuring the transmission speed of the above real-time data, and further ensuring the real-time nature of information display; according to the user's information display request, the real-time data and basic data corresponding to the above information display request are obtained, avoiding the lag of only obtaining data from the hypertext preprocessor and the boot interface, and realizing the real-time nature of information display according to the information display request; based on the above dual data channels and the unified data interface function, the above real-time data and the above basic data are imported into a preset information display template component for information display, wherein the above unified data interface function is an interface function that can correspond to the above two data channels, and by establishing a preset information display template component with an interface function that can correspond to the above two data channels, the information display of the above real-time data and the above basic data is guaranteed.

[0117] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0118] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0119] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0120] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0121] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0122] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described above, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. An information display method, used in a client, characterized in that: include: Receive information display request from user; Acquiring basic data and real-time data corresponding to the information display request based on dual data channels, wherein the dual data channels include two data channels generated by different types of creation methods; Based on the dual data channels and the unified data interface function, the real-time data and the basic data are imported into a preset information display template component for information display, wherein the unified data interface function is an interface function that can correspond to the two data channels; Also includes: Use the init method to perform initialization settings; Establishing the preset information display template component, wherein the preset information display template component inherits from the UIView view and the preset information display template component has independence; The step of establishing the preset information display template component includes: Use the initRootView method to create the initial preset information display component; Adding a progress bar to the initial preset information display component through a preset function to obtain a target preset information display component; Adjusting the layout of the target preset information display component to obtain the preset information display template component; The step of importing the real-time data and the basic data into a preset information display template component for display based on the dual data channels and the unified data interface function comprises: Based on the dual data channels, respectively acquire a model of the real-time data and a model of the basic data; Calling the unified data interface function to import the model into the preset information display component; Display the real-time data and the basic data through the preset information display component; The step of acquiring the model of the real-time data based on the dual data channels comprises: Monitoring the information display request; When the information display request calls a function, a dictionary of real-time data corresponding to the information display request is obtained based on the dual data channels; Converting the dictionary into a model to obtain a model of the real-time data; Before the step of acquiring basic data and real-time data corresponding to the information display request based on the dual data channels, the method further includes: Define the polling function; Building an initial poller based on the polling function; Setting a timer for the initial poller to generate an information poller; The step of setting a timer for the initial poller to generate the information poller comprises: Set the callback panel of the timer; If the callback panel of the timer is called back, the callback function is triggered: (void)turntableLotteryManager:(DYTurntableLotteryManager *)turntableLotteryManager timerTick:(NSTimeInterval)timestamp The turntableLotteryManager function is a function that is triggered every second, timestamp is the current timestamp, and nextGetTime is the timestamp of the next success of the information display request interface after the current information display request interface succeeds; Obtain the nextGetTime and the timestamp according to the callback function; The information poller is generated by setting the polling frequency according to the nextGetTime and the timestamp.

2. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is used to implement the steps of the information display method as claimed in claim 1 when executing the computer program stored in the memory.

3. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the information display method according to claim 1 are implemented.