Blockchain-based Page Display Method, System, Device, Medium and Product
By implementing a blockchain-based page display method in the blockchain network, counting the operation and transaction frequency of the chain module and determining the display mode, the problem of poor combination of blockchain and page display in the existing technology is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202110190723.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-19
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2041-02-19
AI Technical Summary
The existing technology is difficult to effectively combine blockchain technology and page display technology, resulting in poor user experience.
By implementing a blockchain-based page display method on node devices in the blockchain network, the operation frequency and transaction frequency of each chain module are counted, the page display mode is determined based on these data, and each chain module is displayed on the page.
Improve the user experience and enhance the flexibility of page display and user operation convenience by giving priority to displaying the chain modules that users frequently access and transactions.
Smart Images

Figure CN112966151B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of blockchain technology, specifically to web application technology based on blockchain technology, and more specifically to a page display method, system, electronic device, computer-readable storage medium, and program product based on blockchain. Background Art
[0002] Blockchain is a new type of application technology set of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithm. From a data perspective, blockchain is a chain-like data structure formed by combining data blocks in a sequential connection manner according to time sequence, and the data structure is guaranteed to be tamper-proof and forgery-proof through cryptographic means. From a technical perspective, blockchain technology integrates a variety of different technologies. By constructing a blockchain network, each node in the network obtains a complete copy of the database, and based on the consensus mechanism and competitive computing, it maintains the update of the blockchain-based database. Thus, the decentralization and de-trust of data storage and management are realized through the end-to-end network composed of numerous node communications.
[0003] Currently, combining blockchain technology with specific application services has become a trend. Users can obtain business information in the blockchain by querying the information of the blockchain stored in the blockchain network to understand the business situation. Based on this, a solution that combines blockchain technology and page display technology is needed to improve the user experience. Summary of the Invention
[0004] In view of the above problems, some embodiments of the present disclosure provide a page display method, system, electronic device, computer-readable storage medium, and program product based on blockchain, which can improve the user experience.
[0005] According to one aspect of the embodiments of the present disclosure, a page display method based on blockchain is provided. The page display method is applied to any node device in the blockchain network. The page includes a plurality of chain modules. The page display method based on blockchain includes the following steps:
[0006] Count the number of times each chain module is clicked and triggered to obtain the operation frequency of each chain module;
[0007] Count the number of blocks included in each chain module to obtain the transaction frequency of each chain module;
[0008] Determine the page display mode based on at least one of the operation frequency and the transaction frequency; and
[0009] Based on the determined page display mode, display each chain module on the page.
[0010] According to some embodiments of the present disclosure, the page display mode includes at least one of the following modes:
[0011] Mode 1: Display the chain modules with high operation frequency in the front of the page;
[0012] Mode 2: Display the chain modules with operation frequency higher than a specified threshold in the front of the page;
[0013] Mode 3: Display the chain modules with high transaction frequency in the front of the page; and
[0014] Mode 4: Display the chain modules with a higher sum of operation frequency and transaction frequency in the front of the page.
[0015] According to some embodiments of the present disclosure, the blockchain-based page display method further includes:
[0016] Bind click listening operation events to each chain module;
[0017] Encapsulate functions for the click listening operation events; and
[0018] According to the function, count the number of times each chain module is clicked and triggered.
[0019] According to some embodiments of the present disclosure, the blockchain-based page display method further includes:
[0020] Record the transaction requests sent by each blockchain terminal through blockchain technology;
[0021] In response to each transaction, generate a block on the corresponding chain module; and
[0022] Count the number of blocks of each chain module.
[0023] According to some embodiments of the present disclosure, the function includes a first parameter and a second parameter. The first parameter is the unique identifier of the blockchain module, and the second parameter is the timer time specified by the user.
[0024] According to some embodiments of the present disclosure, the step of counting the number of times each chain module is clicked and triggered according to the function includes:
[0025] During the process that the user clicks a chain module to trigger a listening operation event, if the time for the user to view or operate the chain module is greater than or equal to the second parameter, the number of times the chain module is clicked and triggered is incremented by 1; if the time for the user to view or operate the chain module is less than the second parameter, the number of times the chain module is clicked and triggered remains unchanged.
[0026] According to some embodiments of the present disclosure, the blockchain-based page display method further includes: for chain modules with the same operation frequency or transaction frequency, displaying the chain modules on the page according to the creation time of the chain modules.
[0027] According to some embodiments of the present disclosure, the unit of the second parameter is one selected from milliseconds, seconds, minutes, hours, days, weeks, months or years.
[0028] According to another aspect of the embodiments of the present disclosure, there is provided a blockchain-based page display system, the page display system including:
[0029] An operation frequency acquisition module, configured to count the number of times each chain module is clicked and triggered to obtain the operation frequency of each chain module;
[0030] A transaction frequency acquisition module, configured to count the number of blocks included in each chain module to obtain the transaction frequency of each chain module;
[0031] A page mode determination module, configured to determine a page display mode based on at least one of the operation frequency and the transaction frequency; and
[0032] A page display module, configured to display each chain module in the page based on the determined page display mode.
[0033] According to some embodiments of the present disclosure, the page display mode includes at least one of the following modes:
[0034] Mode 1: Display the chain modules with high operation frequency in the front of the page;
[0035] Mode 2: Display the chain modules with an operation frequency higher than a specified threshold in the front of the page;
[0036] Mode 3: Display the chain modules with high transaction frequency in the front of the page; and
[0037] Mode 4: Display the chain modules with a higher sum of operation frequency and transaction frequency in the front of the page.
[0038] According to yet another aspect of the embodiments of the present disclosure, there is provided an electronic device, including: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors are caused to execute the above-mentioned blockchain-based page display method.
[0039] According to still another aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, on which executable instructions are stored, and when the instructions are executed by a processor, the processor is caused to execute the above-mentioned blockchain-based page display method.
[0040] According to another aspect of the embodiments of the present disclosure, there is provided a computer program product including a computer program which, when executed by a processor, implements the above-mentioned blockchain-based page display method. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, the above content and other objects, features and advantages of the present disclosure will become clearer. In the drawings:
[0042] Figure 1 is a flowchart of a blockchain-based page display method according to some exemplary embodiments of the present disclosure;
[0043] Figure 2 is a flowchart of the step of counting the number of times each chain module is clicked and triggered in the blockchain-based page display method according to some exemplary embodiments of the present disclosure;
[0044] Figure 3 is a flowchart of the step of counting the number of blocks included in each chain module in the blockchain-based page display method according to some exemplary embodiments of the present disclosure;
[0045] Figure 4 is a detailed flowchart of a blockchain-based page display method according to some exemplary embodiments of the present disclosure;
[0046] Figure 5 is a flowchart of a browser rendering to generate a page;
[0047] Figure 6 schematically shows the architecture of an HTML DOM tree;
[0048] Figure 7 schematically shows an application scenario diagram of a blockchain-based page display system according to an embodiment of the present disclosure;
[0049] Figure 8 schematically shows a structural block diagram of a blockchain-based page display system according to an embodiment of the present disclosure; and
[0050] Figure 9 schematically shows a block diagram of an electronic device suitable for implementing the above-mentioned blockchain-based page display method according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0051] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In the following detailed description, for the sake of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. However, it is obvious that one or more embodiments can also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts of the present disclosure.
[0052] The terms used herein are merely for describing specific embodiments and are not intended to limit the present disclosure. Terms such as "comprising" and "including" used herein indicate the presence of the described features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0053] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0054] In the case of using expressions such as "at least one of A, B, and C, etc.", generally, it should be interpreted according to the meaning commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include, but is not limited to, a system having only A, only B, only C, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.).
[0055] Embodiments of the present disclosure provide a blockchain-based page display method, system, electronic device, computer-readable storage medium, and program product. The page display method is applied to any node device in a blockchain network. The page includes a plurality of chain modules. The blockchain-based page display method includes the following steps: obtaining the operation frequency of each chain module by counting the number of times each chain module is clicked and triggered; obtaining the transaction frequency of each chain module by counting the number of blocks included in each chain module; and displaying each chain module on the page in at least one of the following modes: Mode 1: Displaying the chain module with a high operation frequency in the front of the page; Mode 2: Displaying the chain module with an operation frequency higher than a specified threshold in the front of the page; Mode 3: Displaying the chain module with a high transaction frequency in the front of the page; and Mode 4: Displaying the chain module with a higher sum of operation frequency and transaction frequency in the front of the page. In the embodiments of the present disclosure, according to the user's habit information, the chain information that the user wants can be preferentially displayed, improving the flexibility of chain display and the convenience of user operation, thereby improving the user experience.
[0056] Figure 1 is a flowchart of a blockchain-based page display method according to some exemplary embodiments of the present disclosure. The page display method is applied to any node device in a blockchain network, and the page includes multiple chain modules. As Figure 1 shown, the blockchain-based page display method may include operation S110 to operation S140, and the blockchain-based page display method may be executed by a processor.
[0057] In operation S110, count the number of times each chain module is clicked and triggered to obtain the operation frequency of each chain module.
[0058] In operation S120, count the number of blocks included in each chain module to obtain the transaction frequency of each chain module.
[0059] In operation S130, determine the page display mode based on at least one of the operation frequency and the transaction frequency.
[0060] For example, the page display mode includes at least one of the following modes: Mode 1: Display the chain modules with high operation frequency at the front of the page; Mode 2: Display the chain modules with operation frequency higher than a specified threshold at the front of the page; Mode 3: Display the chain modules with high transaction frequency at the front of the page; and Mode 4: Display the chain modules with a higher sum of operation frequency and transaction frequency at the front of the page.
[0061] In operation S140, display each chain module in the page based on the determined page display mode.
[0062] It should be noted that the blockchain-based page display method may be implemented through a client, a blockchain node server, and a database server. For example, the client may be installed on a user device (such as a smart phone, a tablet computer, a PAD handheld terminal, a laptop computer, a desktop computer). For smart phones, tablet computers, and PAD handheld terminals, the client may be in the form of an APP (application program) or a web page. For laptop computers and desktop computers, the client may be in the form of a desktop application or a web page.
[0063] Figure 2 is a flowchart of the step of counting the number of times each chain module is clicked and triggered in the blockchain-based page display method according to some exemplary embodiments of the present disclosure. For example, the blockchain-based page display method may further include operation S210 to operation S230.
[0064] In operation S210, bind a click listening operation event to each chain module.
[0065] In operation S220, encapsulate a function for the click listening operation event.
[0066] In operation S230, according to the function, the number of times each chain module is clicked and triggered is counted.
[0067] For example, the function may include a first parameter m and a second parameter n, wherein the first parameter m is a unique identifier of the blockchain module, and the second parameter n is a specified timer time. For example, the unit of the second parameter n is one selected from milliseconds, seconds, minutes, hours, days, weeks, months, or years.
[0068] For example, according to the function, counting the number of times each chain module is clicked and triggered may include: in the process of a user clicking a chain module to trigger a monitoring operation event, if the time the user views or operates the chain module is greater than or equal to the second parameter n, the number of times the chain module is clicked and triggered is increased by 1; if the time the user views or operates the chain module is less than the second parameter n, the number of times the chain module is clicked and triggered remains unchanged.
[0069] For example, after a user clicks on a link to trigger a listening event, if the user continues to operate on the page associated with the chain master within time n, the user's motion trajectory of the link (i.e., the operation frequency) will be increased by 1, and the operation frequency will be transmitted and saved to the database by calling the background interface. After the data is successfully stored, the function timer operation will be cleared; if the user ends any operation on the page associated with the chain master in advance within time n, the timer operation will be terminated accordingly, and the motion trajectory of the chain within time n will remain unchanged, i.e., the operation frequency will remain unchanged.
[0070] That is to say, the user's viewing or operation of each chain within time n will not be recorded; when the viewing or operation time of a chain exceeds time n, the system will record the user's operation frequency on this chain plus 1 and request to save the record. Through such operation, invalid movement behaviors can be discarded and the user's effective operation information can be counted.
[0071] Figure 3 The flowchart is a step of counting the number of blocks included in each chain module in the blockchain-based page display method according to some exemplary embodiments of the present disclosure. For example, the blockchain-based page display method may also include operations S310 to S330.
[0072] In operation S310, the transaction requests issued by each blockchain terminal are recorded through blockchain technology.
[0073] In operation S320, in response to each transaction, a block is packaged and generated on the corresponding chain module.
[0074] In operation S330, the number of blocks of each chain module is counted.
[0075] In the embodiments of the present disclosure, according to the user behavior and movement habit information, ineffective movement behaviors are discarded, and the user's high-frequency behaviors are accurately grasped; according to the chain transaction frequency, the high-frequency transaction chains are preferentially displayed; moreover, the chains desired by the user can be preferentially displayed in multiple ways, improving the flexibility of chain display and increasing the convenience of user operations.
[0076] Next, a blockchain-based page display method according to an embodiment of the present disclosure will be described in detail with reference to some specific exemplary embodiments.
[0077] Figure 4 is a detailed flowchart of a blockchain-based page display method according to some exemplary embodiments of the present disclosure.
[0078] First, the basic working process of a browser for displaying a page is briefly introduced. The rendering engine of the browser first obtains the content of the requested document through the network, for example, in the form of 8K chunks. Figure 5 is a flowchart of a browser rendering to generate a page. Refer to Figure 5 , after obtaining the content of the document, the rendering engine can perform the following operations S510 to S540.
[0079] In operation S510, the browser parses the HTML and constructs a DOM tree.
[0080] The HTML DOM defines a standard method for accessing and operating on an HTML document. The DOM represents the HTML document as a tree structure. Figure 6 Schematically shows the architecture of an HTML DOM tree.
[0081] The Document Object Model (DOM) is a platform- and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of a document. The DOM standard is divided into 3 different parts: Core DOM, the standard model for any structured document; XML DOM, the standard model for XML documents; and HTML DOM, the standard model for HTML documents.
[0082] Refer to Figure 6 , according to the HTML DOM standard, all content in an HTML document is represented as nodes in the DOM tree. For example, the entire document is a document node, each HTML element is an element node, the text within an HTML element is a text node, each HTML attribute is an attribute node, and comments are comment nodes.
[0083] In operation S520, the DOM tree and CSS are combined to generate a rendering tree. Then, it parses the style information in the external CSS file and style tags. This style information and the visibility instructions in the HTML will be used to construct another tree - the rendering tree. The rendering tree consists of rectangles containing attributes such as color and size, which will be displayed on the screen in the correct order.
[0084] In operation S530, the rendering tree is laid out and the geometry is calculated. After the rendering tree is constructed, the layout process will be executed, which will determine the exact coordinates of each node on the screen.
[0085] In operation S540, the rendering tree is displayed on the screen. That is, the rendering tree is traversed and each node is drawn using the UI backend layer.
[0086] Return reference Figure 4 , the blockchain-based page display method can perform the following operations S401 to S413.
[0087] In operation S401, the user opens the page to be viewed through a browser, and the page includes multiple chain modules. For example, in this operation, a request is sent to the backend through the backend interface to obtain the chain data information of the chain modules in the database.
[0088] In operation S402, the browser parses the HTML through the above method to construct a DOM tree.
[0089] In operation S403, a click listener function f(m, n) is bound to the chain node, where the parameter m is the unique identifier of the blockchain module and the parameter n is the specified timer time. For example, the monitoring operation event can be encapsulated into a function, and the function includes the first parameter m and the second parameter n. Among them, the parameter n can be user-defined, that is, the user can set the statistical period to facilitate the collection of more real and effective data and set the timer operation according to needs.
[0090] In operation S404, the DOM tree and CSS are combined to generate a rendering tree.
[0091] In operations S405 to S413, the page display mode is determined.
[0092] For example, select at least one of the following patterns as the pattern for page display. Pattern 1: Prioritize displaying modules or regions with high operation frequencies. For example, display the chain modules with high operation frequencies at the front of the page. Pattern 2: Prioritize displaying modules or regions with high operation frequencies. For example, display the chain modules with operation frequencies higher than a specified threshold at the front of the page. Pattern 3: Prioritize displaying modules or regions with high transaction frequencies. For example, display the chain modules with high transaction frequencies at the front of the page. And Pattern 4: Prioritize displaying modules or regions with a higher sum of transaction frequency and operation frequency. For example, display the chain modules with a higher sum of operation frequency and transaction frequency at the front of the page.
[0093] For example, in Pattern 1, the respective chain modules can be sorted in descending order of operation frequency, and then the respective chain modules are displayed in descending order of operation frequency on the page.
[0094] For example, in Pattern 2, the operation frequencies of the respective chain modules can be compared with a specified threshold (i.e., the specified operation frequency threshold), and the operation frequencies higher than the specified threshold are extracted. For the chain modules with operation frequencies higher than the specified threshold that are extracted, they are sorted in descending order of operation frequency, and then the respective chain modules are displayed in descending order of operation frequency on the page. For the chain modules with operation frequencies lower than the specified threshold, they can be sorted in the order of creation time, and then the respective chain modules are displayed in the order of creation time on the page. In this pattern, by setting a specified threshold, the number of chain modules that need to be sorted can be reduced, thereby reducing the computational amount.
[0095] For example, in Pattern 3, the respective chain modules can be sorted in descending order of transaction frequency, and then the respective chain modules are displayed in descending order of transaction frequency on the page.
[0096] For example, in Pattern 4, the sum of the transaction frequency (e.g., the number of transactions) and the operation frequency (e.g., the number of times clicked and triggered) can be calculated, the respective chain modules are sorted in descending order of the sum of the two, and then the respective chain modules are displayed in descending order of the sum of the two on the page.
[0097] In an embodiment of the present disclosure, the blockchain-based page display method may further include: for chain modules with the same operation frequency or transaction frequency, display the chain modules on the page according to the creation time of the chain modules. For example, the respective chain modules can be sorted in the order from new to old according to the creation time, and then the respective chain modules are displayed in the order from new to old according to the creation time on the page.
[0098] Refer to Figure 4, in operation S405, it is determined whether to adopt the fusion mode. For example, the fusion mode is a page display mode determined based on both the operation frequency and the transaction frequency. If the fusion mode is adopted, operation S410 is executed; if the fusion mode is not adopted, operation S406 is executed.
[0099] In operation S410, the sum of the transaction frequency and the operation frequency is calculated. For example, the number of blocks corresponding to the chain and the number of clicks can be added together to obtain the sum of the transaction frequency and the operation frequency.
[0100] In operation S411, it is determined that the page display mode is the above-mentioned mode four.
[0101] In operation S406, it is determined whether to determine the page display mode based on the operation frequency. If so, operation S407 is executed; if not, operation S409 is executed.
[0102] In operation S409, it is determined that the page display mode is the above-mentioned mode three.
[0103] In operation S407, it is determined whether a specified threshold is set. If so, operation S412 is executed; if not, operation S408 is executed.
[0104] In operation S412, it is determined whether the operation frequency has reached the specified threshold. If so, operation S413 is executed.
[0105] In operation S413, it is determined that the page display mode is the above-mentioned mode two.
[0106] In operation S408, it is determined that the page display mode is the above-mentioned mode one.
[0107] After determining the page display mode, operation S414 is executed. In operation S414, each chain module is displayed on the page in the determined page display mode.
[0108] Figure 7 Schematically shows an application scenario diagram of a blockchain-based page display system according to an embodiment of the present disclosure. As Figure 7 shown, the application scenario 700 according to this embodiment may include various blockchain terminals 101, 102, 103, 105 and a network 104 for connecting each blockchain terminal. The network 104 is used to provide a medium for communication links between the blockchain terminals 101, 102, 103, 105. The network 104 may include various connection types, such as wired, wireless communication links or fiber optic cables, etc. The blockchain terminals 101, 102, 103, 105 include but are not limited to smart phones, tablet computers, laptop portable computers, desktop computers, etc.
[0109] It should be understood, Figure 7The numbers of blockchain terminals and networks in [it] are merely illustrative. According to the implementation requirements, there can be any number of blockchain terminals and networks.
[0110] Some exemplary embodiments of the present disclosure also provide a blockchain-based page display system. The following will be combined with Figure 8 to describe this blockchain-based page display system in detail. Figure 8 Schematically shows a structural block diagram of a blockchain-based page display system according to an embodiment of the present disclosure. As Figure 8 shown, this blockchain-based page display system 800 includes an operation frequency acquisition module 810, a transaction frequency acquisition module 820, a page mode determination module 830, and a page display module 840.
[0111] The operation frequency acquisition module 810 is used to count the number of times each chain module is clicked and triggered to obtain the operation frequency of each chain module. In some embodiments, the operation frequency acquisition module 810 can be used to execute the operation S110 described above, which will not be elaborated here.
[0112] The transaction frequency acquisition module 820 is used to count the number of blocks included in each chain module to obtain the transaction frequency of each chain module. In some embodiments, the transaction frequency acquisition module 820 can be used to execute the operation S120 described above, which will not be elaborated here.
[0113] The page mode determination module 830 is used to determine the page display mode based on at least one of the operation frequency and the transaction frequency. In some embodiments, the page mode determination module 830 can be used to execute the operation S130 described above, which will not be elaborated here.
[0114] The page display module 840 is used to display each chain module in the page based on the determined page display mode. In some embodiments, the page display module 840 can be used to execute the operation S140 described above, which will not be elaborated here.
[0115] The page display mode includes at least one of the following modes: Mode 1: Display the chain modules with high operation frequency in the front of the page; Mode 2: Display the chain modules with operation frequency higher than a specified threshold in the front of the page; Mode 3: Display the chain modules with high transaction frequency in the front of the page; and Mode 4: Display the chain modules with a higher sum of operation frequency and transaction frequency in the front of the page.
[0116] According to some embodiments of the present disclosure, any multiple of the operation frequency acquisition module 810, the transaction frequency acquisition module 820, the page mode determination module 830, and the page display module 840 may be combined and implemented in one module, or any one of them may be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules may be combined with at least part of the functions of other modules and implemented in one module. According to some embodiments of the present disclosure, at least one of the operation frequency acquisition module 810, the transaction frequency acquisition module 820, the page mode determination module 830, and the page display module 840 may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on chip, a system on a substrate, a system in a package, an application specific integrated circuit (ASIC), or any other reasonable way of integrating or packaging circuits, etc., implemented by hardware or firmware, or implemented in any one of the three implementation manners of software, hardware, and firmware, or in an appropriate combination of any several of them. Alternatively, at least one of the operation frequency acquisition module 810, the transaction frequency acquisition module 820, the page mode determination module 830, and the page display module 840 may be at least partially implemented as a computer program module, which can execute corresponding functions when the computer program module is run.
[0117] In an embodiment of the present disclosure, a blockchain-based web application system is provided, which can analyze the data obtained from user behavior monitoring. Based on the analysis results, it can understand the user's behavior habits, thereby finding out the problems existing in the enterprise marketing environment such as websites and promotion channels, helping the enterprise to discover high-conversion pages, making the enterprise's marketing more accurate and effective, improving the business conversion rate, and thus enhancing the enterprise's advertising revenue.
[0118] Figure 9 A block diagram of an electronic device suitable for implementing the above blockchain-based page display method according to an embodiment of the present disclosure is schematically shown.
[0119] As Figure 9 shown, the electronic device 900 according to an embodiment of the present disclosure includes a processor 901, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 902 or the program loaded from the storage section 908 into the random access memory (RAM) 903. The processor 901 may include, for example, a general microprocessor (such as a CPU), an instruction set processor, and / or a related chipset, and / or a dedicated microprocessor (such as an application specific integrated circuit (ASIC)), etc. The processor 901 may also include on-board memory for caching purposes. The processor 901 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0120] In the RAM 903, various programs and data required for the operation of the electronic device 900 are stored. The processor 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. The processor 901 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 902 and / or the RAM 903. It should be noted that the programs may also be stored in one or more memories other than the ROM 902 and the RAM 903. The processor 901 may also perform various operations of the method flow according to the embodiments of the present disclosure by executing programs stored in the one or more memories.
[0121] According to some embodiments of the present disclosure, the electronic device 900 may further include an input / output (I / O) interface 905, and the input / output (I / O) interface 905 is also connected to the bus 904. The electronic device 900 may further include one or more of the following components connected to the I / O interface 905: an input portion 906 including a keyboard, a mouse, etc.; an output portion 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker, etc.; a storage portion 908 including a hard disk, etc.; and a communication portion 909 including a network interface card such as a LAN card, a modem, etc. The communication portion 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed so that a computer program read from it can be installed into the storage portion 908 as needed.
[0122] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist separately without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the one or more programs are executed, the method according to the embodiments of the present disclosure is implemented.
[0123] According to some embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program, which can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to some embodiments of the present disclosure, the computer-readable storage medium may include the above-described ROM 902 and / or RAM 903 and / or one or more memories other than ROM 902 and RAM 903.
[0124] Embodiments of the present disclosure also include a computer program product, which includes a computer program that contains program code for performing the method shown in the flowchart. When the computer program product runs in a computer system, the program code is used to enable the computer system to implement the item recommendation method provided by the embodiments of the present disclosure.
[0125] When the computer program is executed by the processor 901, it performs the above functions defined in the system / apparatus of the embodiments of the present disclosure. According to some embodiments of the present disclosure, the above-described systems, apparatuses, modules, units, etc. may be implemented by computer program modules.
[0126] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices and magnetic storage devices. In another embodiment, the computer program may also be transmitted and distributed in the form of a signal on a network medium and downloaded and installed through the communication part 909, and / or installed from the removable medium 911. The program code contained in the computer program may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0127] In such an embodiment, the computer program may be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the processor 901, it performs the above functions defined in the system of the embodiments of the present disclosure. According to some embodiments of the present disclosure, the above-described systems, devices, apparatuses, modules, units, etc. may be implemented by computer program modules.
[0128] According to some embodiments of the present disclosure, the program code for executing the computer programs provided by the embodiments of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. The programming languages include, but are not limited to, such as Java, C++, Python, the "C" language, or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (e.g., by using an Internet service provider to connect through the Internet).
[0129] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and combinations of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0130] Those skilled in the art can understand that the features recited in the various embodiments and / or claims of the present disclosure can be combined or / and combined in various ways, even if such combinations or combinations are not explicitly recited in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features recited in the various embodiments and / or claims of the present disclosure can be combined and / or combined in various ways. All such combinations and / or combinations fall within the scope of the present disclosure.
[0131] The embodiments of the present disclosure have been described above. However, these embodiments are merely for illustrative purposes and not for limiting the scope of the present disclosure. Although the embodiments have been described separately above, this does not mean that the measures in each embodiment cannot be used advantageously in combination. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art can make various substitutions and modifications, and these substitutions and modifications should all fall within the scope of the present disclosure.
Claims
1. A page display method based on blockchain, which is applied to any node device in the blockchain network. The page includes multiple chain modules. Characterized in that, The page display method based on blockchain includes the following steps: Count the number of times each chain module is clicked and triggered to obtain the operation frequency of each chain module; Count the number of blocks included in each chain module to obtain the transaction frequency of each chain module; Determine the page display mode based on at least one of the operation frequency and the transaction frequency; and Based on the determined page display mode, display each chain module on the page; The page display mode includes at least one of the following modes: Mode 1: Display the chain modules with high operation frequency in the front of the page; Mode 2: Display the chain modules with operation frequency higher than the specified threshold in the front of the page; Mode 3: Display the chain modules with high transaction frequency in the front of the page; and Mode 4: Display the chain modules with a higher sum of operation frequency and transaction frequency in the front of the page; Based on at least one of the operation frequency and the transaction frequency, determining the page display mode includes: Determine whether to adopt the fusion mode; the fusion mode is a page display mode determined based on both the operation frequency and the transaction frequency; If the fusion mode is adopted, calculate the sum of the transaction frequency and the operation frequency, and determine the page display mode as Mode 4; If the fusion mode is not adopted, determine whether to determine the page display mode based on the operation frequency. If the page display mode is determined based on the operation frequency, determine whether a specified threshold is set; if the page display mode is not determined based on the operation frequency, determine the page display mode as Mode 3; If the specified threshold has been set, determine whether the operation frequency has reached the specified threshold. If the operation frequency reaches the specified threshold, determine the page display mode as Mode 2; If the specified threshold has not been set, determine the page display mode as Mode 1.
2. The page display method based on blockchain according to claim 1, Characterized in that, The page display method based on blockchain further includes: Bind click listening operation events to each chain module; Encapsulate functions for the click listening operation events; and According to the function, count the number of times each chain module is clicked and triggered.
3. The page display method based on blockchain according to claim 1, Characterized in that, The page display method based on blockchain further includes: Record the transaction requests sent by each blockchain terminal through blockchain technology; In response to each transaction, generate a block and package it on the corresponding chain module; and Count the number of blocks of each chain module.
4. The page display method based on blockchain according to claim 2, Characterized in that, The function includes a first parameter and a second parameter. The first parameter is the unique identifier of the blockchain module, and the second parameter is the timer time specified by the user.
5. The page display method based on blockchain according to claim 4, Characterized in that, Counting the number of times each chain module is clicked and triggered according to the function includes: During the process that a user clicks a chain module to trigger a monitoring operation event, if the time when the user views or operates the chain module is greater than or equal to the second parameter, the number of times the chain module is clicked and triggered is incremented by 1; if the time when the user views or operates the chain module is less than the second parameter, the number of times the chain module is clicked and triggered remains unchanged.
6. The blockchain-based page display method according to claim 1, wherein, the blockchain-based page display method further includes: for chain modules with the same operation frequency or transaction frequency, displaying the chain modules on the page according to the creation time of the chain modules.
7. The blockchain-based page display method according to claim 4 or 5, wherein, the unit of the second parameter is selected from milliseconds, seconds, minutes, hours, days, weeks, months or years.
8. A blockchain-based page display system, wherein, the page display system includes: an operation frequency acquisition module, configured to count the number of times each chain module is clicked and triggered to obtain the operation frequency of each chain module; a transaction frequency acquisition module, configured to count the number of blocks included in each chain module to obtain the transaction frequency of each chain module; a page mode determination module, configured to determine a page display mode based on at least one of the operation frequency and the transaction frequency; and a page display module, configured to display each chain module on the page based on the determined page display mode; the page display mode includes at least one of the following modes: Mode 1: Displaying the chain modules with high operation frequency in the front of the page; Mode 2: Displaying the chain modules with operation frequency higher than a specified threshold in the front of the page; Mode 3: Displaying the chain modules with high transaction frequency in the front of the page; and Mode 4: Displaying the chain modules with a higher sum of operation frequency and transaction frequency in the front of the page; the page mode determination module is further configured to: determine whether to adopt a fusion mode; the fusion mode is a page display mode determined based on both the operation frequency and the transaction frequency; if the fusion mode is adopted, calculate the sum of the transaction frequency and the operation frequency, and determine the page display mode as Mode 4; if the fusion mode is not adopted, determine whether to determine the page display mode based on the operation frequency, if the page display mode is determined based on the operation frequency, determine whether a specified threshold is set; if the page display mode is not determined based on the operation frequency, determine the page display mode as Mode 3; if the specified threshold has been set, determine whether the operation frequency has reached the specified threshold, if the operation frequency reaches the specified threshold, determine the page display mode as Mode 2; if the specified threshold has not been set, determine the page display mode as Mode 1.
9. An electronic device, including: one or more processors; a storage device for storing one or more programs, Wherein, when the one or more programs are executed by the one or more processors, the one or more processors are caused to execute the blockchain-based page display method according to any one of claims 1 to 7.
10. A computer-readable storage medium having executable instructions stored thereon, which when executed by a processor cause the processor to execute the blockchain-based page display method according to any one of claims 1 to 7.
11. A computer program product comprising a computer program, which when executed by a processor implements the blockchain-based page display method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method and device for generating web page snapshot
CN109325160A
Personalized page display processing method, device and apparatus and readable storage medium
CN110457615A