CN110737462B - Control method, device and storage medium for functional components in application program - Google Patents

Control method, device and storage medium for functional components in application program Download PDF

Info

Publication number
CN110737462B
CN110737462B CN201910978763.6A CN201910978763A CN110737462B CN 110737462 B CN110737462 B CN 110737462B CN 201910978763 A CN201910978763 A CN 201910978763A CN 110737462 B CN110737462 B CN 110737462B
Authority
CN
China
Prior art keywords
server
starting
information
application
functional component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910978763.6A
Other languages
Chinese (zh)
Other versions
CN110737462A (en
Inventor
杨威伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910978763.6A priority Critical patent/CN110737462B/en
Publication of CN110737462A publication Critical patent/CN110737462A/en
Application granted granted Critical
Publication of CN110737462B publication Critical patent/CN110737462B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/77Game security or game management aspects involving data related to game devices or game servers, e.g. configuration data, software version or amount of memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to a method and a device for controlling functional components in an application program, computer equipment and a storage medium, and relates to the technical field of network application. The method comprises the following steps: the block chain server receives starting advance notice information and an intelligent contract sent by a developer terminal of an application program; sending the starting advance notice information to an application server corresponding to the application program; and sending a starting instruction to the logic server when the starting time is up by executing the intelligent contract, and instructing the logic server to start the functional component. According to the scheme, the block chain server issues the starting advance notice information and executes the intelligent contract, so that the functional component which is notified by the starting advance notice information can be started on time as far as possible, and the reliability of starting advance notice of the functional component is improved.

Description

Control method, device and storage medium for functional components in application program
Technical Field
The present application relates to the field of network application technologies, and in particular, to a method, a device, and a storage medium for controlling a functional component in an application program.
Background
In some applications, certain functional components may be turned on or off at limited times. For example, in some game-like applications, some activities for players to participate in may be started in a limited time.
In the related art, in order to enable the player user to know the activity time and details in the game in time, the game facilitator usually issues an activity notice in advance to inform the player of the activity time and play. For example, the game facilitator may publish the activity preview within the game, or the game facilitator may publish the activity preview outside the game via a web page. When the activity starting time is up, the game operator can start the corresponding functional component in the game server, namely start the corresponding activity.
However, in the related art, the timing of starting the activity is manually controlled by the game operator, and in many cases, the starting delay of the functional component is likely to occur, so that the reliability of the starting notice of the functional component is low.
Disclosure of Invention
The embodiment of the application provides a control method, equipment and a storage medium for a functional component in an application program, which can improve the reliability of starting notice of the functional component, and the technical scheme is as follows:
in one aspect, a method for controlling a functional component in an application is provided, where the method is performed by a blockchain server, and the blockchain server is a server provided in a blockchain, and the method includes:
receiving starting advance notice information and an intelligent contract sent by a developer terminal of the application program; the starting forecasting information is used for forecasting the starting time of the functional component;
sending the starting advance notice information to an application server corresponding to the application program, so that the application server sends the starting advance notice information to a user terminal; the application server comprises a logic server providing logic support for the application program;
and sending a starting instruction to the logic server when the starting time is reached by executing the intelligent contract, wherein the starting instruction is used for instructing the logic server to start the functional component.
In one aspect, a method of controlling a functional component within an application, the method being performed by a logical server providing logical support for the application, the method comprising:
receiving starting advance notice information sent by a block chain server, wherein the starting advance notice information is used for notifying the starting time of the functional component in advance;
sending the starting advance notice information to a user terminal;
starting the functional component when a starting instruction is received; the starting indication is an indication sent by the blockchain server when the starting time is reached by executing an intelligent contract.
In one aspect, a method for starting announcement information presentation is provided, where the method is performed by a user terminal, and the method includes:
sending a forecast information acquisition request to an application server;
receiving starting advance notice information sent by the application server and source information of the starting advance notice information, wherein the source information is used for indicating that the starting advance notice information comes from a block chain; the notice information is used for noticing the starting time of the functional component in the application program;
and displaying the starting forecast information and the source information.
In one aspect, an apparatus for controlling a functional component within an application program is provided, the apparatus being used in a blockchain server, the blockchain server being a server provided in a blockchain, the apparatus including:
the first receiving module is used for receiving starting advance notice information and an intelligent contract sent by a developer terminal of the application program; the starting forecasting information is used for forecasting the starting time of the functional component;
the information sending module is used for sending the starting advance notice information to an application server corresponding to the application program so that the application server can send the starting advance notice information to the user terminal; the application server comprises a logic server providing logic support for the application program;
and the starting indication sending module is used for sending a starting indication to the logic server when the starting time is up by executing the intelligent contract, and the starting indication is used for indicating the logic server to start the functional component.
In a possible implementation manner, the information sending module is configured to,
and sending the starting forecast information to the application server by executing the intelligent contract.
In a possible implementation manner, the start indication sending module is configured to,
and sending the starting indication containing a first protocol message to the logic server when the starting time is reached by executing the intelligent contract, wherein the first protocol message contains a first identifier for triggering the starting of the functional component.
In one possible implementation, the apparatus further includes:
and the closing indication sending module is used for sending a closing indication to the logic server when the closing time of the functional component is reached by executing the intelligent contract, and the closing indication is used for indicating the logic server to close the functional component.
In a possible implementation manner, the close indication sending module is configured to,
and sending the closing indication containing a second protocol message to the logic server when the closing time is reached by executing the intelligent contract, wherein the second protocol message contains a second identifier for triggering the functional component to be closed.
In one aspect, an apparatus for controlling a functional component within an application, the apparatus being used in a logical server providing logical support for the application, the apparatus comprising:
the information receiving module is used for receiving starting forecast information sent by the blockchain server, wherein the starting forecast information is used for forecasting the starting time of the functional component;
the information sending module is used for sending the starting advance notice information to the user terminal;
the starting module is used for starting the functional component when a starting instruction is received; the starting indication is an indication sent by the blockchain server when the starting time is reached by executing an intelligent contract.
In one possible implementation, the apparatus further includes:
and the source information sending module is used for sending the source information of the starting advance notice information to the user terminal, and the source information is used for indicating that the starting advance notice information is from a block chain.
In a possible implementation manner, the start instruction includes a first protocol message, and the first protocol message includes a first identifier that triggers the start of the functional component.
In one possible implementation, the apparatus further includes:
the closing module is used for closing the functional component when receiving a closing instruction; the closing indication is an indication sent by the blockchain server when the closing time of the functional component is reached by executing an intelligent contract.
In a possible implementation manner, the shutdown indication includes a second protocol message, and the second protocol message includes a second identifier that triggers the functional component to start.
In one aspect, a computer device is provided, which includes a processor and a memory, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement a control method of a functional component in the application program or a method for starting a preview information presentation.
In one aspect, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a code set, or a set of instructions is stored, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor to implement a control method of a functional component in the application program or a method for presenting notification information.
The technical scheme provided by the application can comprise the following beneficial effects:
the developer terminal uploads the starting forecast information corresponding to the functional components in the application program and an intelligent contract used for starting the functional components to a block chain server in a block chain, the block chain server issues the starting forecast information to the application server, and when the starting time is up, a logic server automatically controlling the application program starts the functional components by executing the intelligent contract.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
FIG. 1 is a block chain system architecture diagram provided in an exemplary embodiment of the present application;
FIG. 2 is a block diagram of an exemplary embodiment of the present application;
FIG. 3 is a control system configuration diagram of functional components within an application to which various embodiments of the present application relate;
FIG. 4 is a flowchart illustrating a method for controlling functional components within an application according to an exemplary embodiment of the present application;
FIG. 5 is a schematic illustration of an in-game activity control flow according to the embodiment shown in FIG. 4;
fig. 6 is a flowchart illustrating a method for presenting forecast information according to an exemplary embodiment of the present application;
FIG. 7 is a flowchart illustrating a method for controlling functional components within an application according to an exemplary embodiment of the present application;
FIG. 8 is a diagram illustrating the presentation of start-up notice information according to the embodiment shown in FIG. 7;
FIG. 9 is a schematic illustration of an in-game activity control flow provided by an exemplary embodiment of the present application;
FIG. 10 is a block diagram illustrating the architecture of a control device for functional components within an application according to an exemplary embodiment;
FIG. 11 is a block diagram illustrating the architecture of a control device for functional components within an application according to an exemplary embodiment;
fig. 12 is a block diagram showing the construction of a notice information presentation apparatus according to an exemplary embodiment;
FIG. 13 is a schematic diagram illustrating a configuration of a computer device in accordance with an illustrative embodiment;
fig. 14 is a block diagram illustrating a structure of a terminal according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
It is to be understood that reference herein to "a number" means one or more and "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The system related to the embodiment of the invention can be a distributed system formed by connecting a client, a plurality of nodes (any form of computing equipment in an access network, such as a server and a user terminal) through a network communication mode.
Taking a distributed system as an example of a blockchain system, please refer to fig. 1, which shows a schematic structural diagram of the blockchain system according to various embodiments of the present application. As shown in fig. 1, the distributed system 100 is applied in a blockchain system, and is formed by a plurality of nodes (any form of computing devices in an access network, such as servers and user terminals) and clients, and a Peer-To-Peer (P2P, Peer To Peer) network is formed between the nodes, and the P2P Protocol is an application layer Protocol running on top of a Transmission Control Protocol (TCP). In a distributed system, any machine, such as a server or a terminal, can join to become a node, and the node comprises a hardware layer, a middle layer, an operating system layer and an application layer.
Referring to the functions of each node in the blockchain system shown in fig. 1, the functions involved include:
1) routing, a basic function that a node has, is used to support communication between nodes.
Besides the routing function, the node may also have the following functions:
2) the application is used for being deployed in a block chain, realizing specific services according to actual service requirements, recording data related to the realization functions to form recording data, carrying a digital signature in the recording data to represent a source of task data, and sending the recording data to other nodes in the block chain system, so that the other nodes add the recording data to a temporary block when the source and integrity of the recording data are verified successfully.
For example, the services implemented by the application include:
2.1) wallet, for providing the function of transaction of electronic money, including initiating transaction (i.e. sending the transaction record of current transaction to other nodes in the blockchain system, after the other nodes are successfully verified, storing the record data of transaction in the temporary blocks of the blockchain as the response of confirming the transaction is valid; of course, the wallet also supports the querying of the electronic money remaining in the electronic money address.
And 2.2) sharing the account book, wherein the shared account book is used for providing functions of operations such as storage, query and modification of account data, record data of the operations on the account data are sent to other nodes in the block chain system, and after the other nodes verify the validity, the record data are stored in a temporary block as a response for acknowledging that the account data are valid, and confirmation can be sent to the node initiating the operations.
2.3) Intelligent contracts, computerized agreements, which can enforce the terms of a contract, implemented by codes deployed on a shared ledger for execution when certain conditions are met, for completing automated transactions according to actual business requirement codes, such as querying the logistics status of goods purchased by a buyer, transferring the buyer's electronic money to the merchant's address after the buyer signs for the goods; of course, smart contracts are not limited to executing contracts for trading, but may also execute contracts that process received information.
3) And the Block chain comprises a series of blocks (blocks) which are mutually connected according to the generated chronological order, new blocks cannot be removed once being added into the Block chain, and recorded data submitted by nodes in the Block chain system are recorded in the blocks.
Referring to fig. 2, a schematic diagram of a Block Structure (Block Structure) according to various embodiments of the present application is shown, where each Block includes a hash value of a transaction record stored in the Block (hash value of the Block) and a hash value of a previous Block, and the blocks are connected by the hash values to form a Block chain. The block may include information such as a time stamp at the time of block generation. A block chain (Blockchain), which is essentially a decentralized database, is a string of data blocks associated by using cryptography, and each data block contains related information for verifying the validity (anti-counterfeiting) of the information and generating a next block.
Referring to fig. 3, a control system configuration diagram of a functional component in an application according to various embodiments of the present application is shown. As shown in fig. 3, the system includes an application developer terminal 310, a blockchain server 320, an application server 330, and a user terminal 340.
The developer terminal 310 may be a terminal used by a developer of a functional component in an application program. As in the embodiment of the present application, after the developer terminal 310 completes development of the functional component in the application, the functional component is released to the logical server providing support for the application.
The developer terminal 310 may be a computer device such as a personal computer, a portable computer, or a personal workstation.
Blockchain server 320 may be a node in a blockchain system.
The application server 330 may be a server corresponding to the application program, for example, the application server 330 may include the above logic server, and optionally, the application server 330 may further include a WEB server or the like that publishes information or a WEB page corresponding to the above application program.
The blockchain server 320 and the application server 330 may be one server, or the blockchain server 320 and the application server 330 may be a server cluster formed by a plurality of servers, or the blockchain server 320 and the application server 330 may include one or more virtualization platforms, or the blockchain server 320 and the application server 330 may also be one cloud computing service center.
The blockchain server 320 and the application server 330 may be composed of one or more functional units. Blockchain server 320 and application server 330 may also include database servers.
The user terminal 340 may be a terminal corresponding to a user of the application. For example, the user terminal 340 may be a smart phone, a tablet computer, an e-book reader, a personal computer, a portable computer, and the like.
The connection between the developer terminal 310 and the blockchain server 320, between the blockchain server 320 and the application server 330, and between the application server 330 and the user terminal 340 may be through a communication network. Optionally, the communication network is a wired network or a wireless network.
Optionally, the wireless network or wired network described above uses standard communication techniques and/or protocols. The Network is typically the Internet, but may be any Network including, but not limited to, a Local Area Network (LAN), a Metropolitan Area Network (MAN), a Wide Area Network (WAN), a mobile, wireline or wireless Network, a private Network, or any combination of virtual private networks. In some embodiments, data exchanged over a network is represented using techniques and/or formats including Hypertext Mark-up Language (HTML), Extensible Markup Language (XML), and the like. All or some of the links may also be encrypted using conventional encryption techniques such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec). In other embodiments, custom and/or dedicated data communication techniques may also be used in place of, or in addition to, the data communication techniques described above.
Referring to fig. 4, a flowchart illustrating a method for controlling a functional component in an application according to an exemplary embodiment of the present application is shown. The control method of the functional components within the application program may be executed by each device in the system shown in fig. 3 described above. As shown in fig. 4, the method for controlling the functional components in the application program may include the steps of:
step 410, the blockchain server receives the starting forecast information and the intelligent contract sent by the developer terminal of the application program; the startup forecast information is for forecasting the startup time of the functional component.
In this embodiment, after the functional component of the application program is developed, the developer terminal uploads start advance notice information to the blockchain server, and an intelligent contract for controlling the functional component.
The functional components are program components for controlling the application program to start corresponding functions in a specified time period. For example, the application may be a game-like application, and the functional component may be a program component that controls time-limited activities in the game.
Wherein, the activities in the game refer to certain game objects which are played in the game at a limited time. For example, an activity in a game may refer to giving a player a mission or goal for a certain period of time, and when the player completes the mission or goal, the player may receive a certain award, such as a virtual item or a bonus of credit, etc.
Optionally, the start forecast information may include start and stop times corresponding to the functional components and information of function introduction, for example, the start forecast information may be an electronic poster or the like of a certain event in the game application.
Optionally, the start forecasting information and the intelligent contract may be uploaded independently, or the start forecasting information may be set in the intelligent contract.
In step 420, the blockchain server sends the start-up notice information to the application server corresponding to the application program, and the application server receives the start-up notice information.
The application server includes a logical server that provides logical support for the application program.
For example, when the application is a game-like application, the logic server may be a game server that provides logic support for the game (e.g., logic to control the operation of the game).
Optionally, the application server may further include other servers besides the logic server of the application program, for example, the application server may be a WEB server, and the WEB server may externally release the information related to the application degree. For example, the WEB server may be a server corresponding to an official website of a game application level.
In step 430, the application server sends the start-up notice information to the user terminal.
Optionally, when the application server provides a logic server for the application program and the application program is installed in the user terminal, the logic server may send the start-up notice information to the application program in the user terminal.
Optionally, when the application server is a WEB server, the WEB server may send the start announcement information to the user terminal through a WEB page, for example, to a browser in the user terminal.
In step 440, the user terminal displays the start-up notice information.
Optionally, when the application program in the user terminal receives the start-up notice information from the logic server, the start-up notice information may be displayed in an interface of the application program.
Optionally, when the user terminal receives the start-up notice information from the WEB server, the start-up notice information may be displayed in a WEB page.
Step 450, the blockchain server sends a start instruction to the logic server when the start time is reached by executing the intelligent contract; the logical server receives the launch indication.
Wherein, the start instruction is used for instructing the logic server to start the functional component.
In the embodiment of the application, the intelligent contract is automatically executed in the blockchain server, and correspondingly, when the blockchain server executes the intelligent contract, the start instruction is automatically sent to the logic server of the application program according to the execution logic of the intelligent contract when the start time is up, and correspondingly, the logic server receives the start instruction.
The logic server starts the functional component upon receiving a start indication, step 460.
After receiving the start instruction, the logic server of the application program may start a corresponding functional component in the application program.
Taking the above application as an example of a game-like application, please refer to fig. 5, which shows a schematic diagram of a control flow of an in-game activity according to an embodiment of the present application. As shown in fig. 5, the above process includes the following steps:
s51, the developer terminal of the game application records the activity content information and the intelligent contract to the blockchain server; the intelligent contract has the function of automatically starting the activities in the game after the date set by the activities arrives.
The activity content information corresponds to the start notice information in the embodiment shown in fig. 4 or fig. 5.
S52, the WEB server and the game server respectively obtain the activity content information from the blockchain server.
In this embodiment of the present application, when the WEB server or the game server receives a request for querying an activity preview from the user terminal, the activity content information may be acquired from the blockchain server.
Alternatively, the blockchain server may actively send the active content information to the WEB server and the game server.
And S53, the WEB server and/or the game server pushes the activity content information to the user terminal.
For example, the WEB server may push the activity content information to the user terminal through the WEB when receiving the user terminal to inquire about the activity preview through the WEB.
The game server can push the activity content information to the user terminal in the game when receiving the activity preview inquired by the user terminal in the game.
And after receiving the activity content information, the user terminal can display the activity content information.
S54, the blockchain server instructs the game server to start the event by the smart contract after the date set for the event arrives.
In summary, in the solution shown in the embodiment of the present application, the developer terminal uploads the start advance notice information corresponding to the functional component in the application program and the smart contract for starting the functional component to the blockchain server in the blockchain, the blockchain server issues the start advance notice information to the application server, and when the start time arrives, the logic server that automatically controls the application program starts the functional component by executing the smart contract.
In the scheme shown in fig. 4, the start-up notice information is distributed through the block chain, and the intelligent contract in the block chain automatically triggers the start-up of the functional component when the start-up time arrives, so as to ensure that the functional component notified by the start-up notice information can start up on time, and the user terminal side can also prompt the user for the reliability of the start-up notice information through a specific mark.
On the basis of the scheme shown in fig. 4, please refer to fig. 6, which shows a flowchart of a method for presenting start-up notice information according to an exemplary embodiment of the present application. The method for presenting the start-up notice information may be performed by a user terminal, which may be the user terminal 340 in the system shown in fig. 3. As shown in fig. 6, the method for presenting the start-up notice information may include the steps of:
step 610, sending a notice information acquisition request to the application server.
In the embodiment of the present application, after the blockchain server receives the startup forecast information and the intelligent contract sent by the developer terminal of the application and sends the startup forecast information to the application server (the logic server and/or the WEB server of the application), when the user terminal accesses the startup forecast information in a game or accesses a WEB page containing the startup forecast information through a browser, the user terminal may send a forecast information acquisition request to the application server.
For example, when the user accesses the start-up notice information in the application, the user terminal transmits the notice information acquisition request to the logic server of the application through the application.
For another example, when the user accesses the start-up notice information in the WEB page, the user terminal sends the notice information acquisition request to the WEB server through the browser.
Step 620, receiving the start-up forecast information sent by the application server and the source information of the start-up forecast information.
Wherein the source information is used for indicating that the start forecast information is from a block chain; the trailer information is used to forecast the start time of a functional component in an application.
In the solution shown in the embodiment of the present application, the application server sends the start advance notice information to the user terminal, and informs the user terminal of the source of the start advance notice information through the source information.
Step 630, the start-up preview information and the source information are displayed.
Correspondingly, when the user terminal displays the starting forecasting information, the user terminal can also display the source information of the starting forecasting information so as to prompt the user whether the starting forecasting information is highly credible.
For example, if the source information indicates that the startup forecast information is from a block chain, the user terminal may further display a block chain authentication identifier when displaying the startup forecast information, which indicates that the startup forecast information is highly reliable information subjected to block chain authentication.
In summary, in the solution shown in the embodiment of the present application, after the blockchain server receives the start-up notice information and the intelligent contract sent by the developer terminal of the application program and sends the start-up notice information to the application server, the user terminal may obtain the start-up notice information from the application server, and the source information indicating that the start-up notice information is derived from the blockchain, and display the start-up notice information and the source information, thereby implementing the display of the start-up notice information authenticated by the blockchain to the user, and improving the reliability of the start-up notice information.
Referring to fig. 7, a flowchart illustrating a method for controlling a functional component in an application according to an exemplary embodiment of the present application is shown. The control method of the functional components within the application program may be executed by each device in the system shown in fig. 3 described above. As shown in fig. 7, the method for controlling the functional components in the application program may include the steps of:
step 710, the blockchain server receives the start forecasting information and the intelligent contract sent by the developer terminal of the application program; the startup forecast information is for forecasting the startup time of the functional component.
In one possible implementation, the start-up preview information and the smart contract may be uploaded independently.
For example, the start forecasting information and the intelligent contract are uploaded to the blockchain server according to a specified data format, and after receiving the start forecasting information and the intelligent contract, the blockchain server correspondingly stores the start forecasting information and the intelligent contract.
In another possible implementation manner, the start-up notice information may also be set in the intelligent contract.
For example, when the developer develops the intelligent contract, the developer writes the information content of the startup notice information into the intelligent contract, and when the startup notice information and the intelligent contract are uploaded, the intelligent contract in which the startup notice information is written is uploaded to the block chain server, and the block chain server stores the intelligent contract accordingly.
Step 720, the blockchain server sends the start-up notice information to the application server corresponding to the application program, and the application server receives the start-up notice information.
In this embodiment, the blockchain server may send the start notice information to the application server through an execution logic built in the blockchain server.
For example, when the developer terminal uploads the startup forecast information and the intelligent contract to the blockchain server, the developer terminal may specify an application program corresponding to the startup forecast information and the intelligent contract, and after receiving the startup forecast information and the intelligent contract uploaded according to a specified format, the blockchain server may send the startup forecast information to the corresponding application server according to the specified application program; or after receiving the request of the application server, sending the starting advance notice information to the corresponding application server.
Or, when uploading the start advance notice information and the intelligent contract to the blockchain server, the developer terminal may also directly specify the corresponding application server, and after receiving the start advance notice information and the intelligent contract uploaded according to the specified format, the blockchain server may send the start advance notice information to the corresponding application server; or after receiving the request of the application server, sending the starting advance notice information to the corresponding application server.
In another possible implementation manner, the blockchain server may further send the start prediction information to the application server by executing the intelligent contract. For example, when the intelligent contract is written with the startup forecast information in advance, the blockchain server may execute the intelligent contract after receiving the intelligent contract, and the intelligent contract may automatically send the startup forecast information to the corresponding application server when being executed; alternatively, the smart contract may be executed, and the start notice information may be sent to the corresponding application server after receiving a request from the application server.
In step 730, the application server sends the start-up notice information to the user terminal.
In the solution shown in the embodiment of the present application, after receiving the start advance notice information sent by the blockchain server, the application server may actively send the start advance notice information to the user terminal.
For example, when the application server provides a logic server for the application program and the application program is installed in the user terminal, and the user terminal receives an operation of displaying a specified page in the application program, the application server may send a request for obtaining startup preview information to the logic server, and after receiving the request, the logic server sends the startup preview information to the user terminal.
For another example, when the application server is a WEB server, if the user terminal accesses a WEB page corresponding to the WEB server, and the WEB page is a page for displaying the start advance notice information, the WEB server sends the start advance notice information to the user terminal.
Optionally, in this embodiment of the application, when sending the start-up notice information, the blockchain server may further send source information of the start-up notice information to the user terminal, where the source information is used to indicate that the start-up notice information is derived from a blockchain.
For example, the application server may send the source information to the user terminal through a specified protocol, where the source information includes a correspondence between an identifier of the start-up announcement information and an identifier, and the identifier is used to indicate whether the start-up announcement information corresponding to the identifier is sourced from the block chain.
Alternatively, the source information may be sent together with the startup forecast information, for example, the application server may carry an identifier in a header of the startup forecast information, where the identifier indicates whether the startup forecast information corresponding to the identifier is sourced from the blockchain.
For example, if the identifier is "0001", it indicates that the source and the block chain of the startup forecast information corresponding to the identifier are present, and if the identifier is "0000", it indicates that the startup forecast information corresponding to the identifier is not the source and the block chain.
In step 740, the user terminal displays the start-up notice information.
Optionally, when the application server further sends source information indicating that the start-up preview information is from the block chain, the user terminal further displays the start-up preview information and the source information.
For example, please refer to fig. 8, which illustrates a schematic diagram of the presentation of the notice information according to the embodiment of the present application. In fig. 8, an interface 810 of an application program includes a virtual poster 811 for launching forecast information, and a source pattern 812 is displayed in a lower left corner of the virtual poster 811 in an overlapping manner, wherein the source pattern 812 indicates that the launch forecast information displayed by the virtual poster 811 comes from a block chain.
Step 750, the blockchain server sends a start instruction to the logic server when the start time is reached by executing the intelligent contract; the logical server receives the launch indication.
In this embodiment, the blockchain server may execute the intelligent contract, and send a start instruction to the logic server when the start time arrives according to the execution logic of the intelligent contract.
For example, in one possible implementation, after the smart contract is uploaded to the blockchain server, the local time of the blockchain server is acquired at the initial start, the time is counted from the acquired local time, and when the counted time reaches the start time, a start instruction is sent to the logic server.
In another possible implementation manner, after the intelligent contract is uploaded to the logic server, a listener is registered with the blockchain server during initial startup, the listener is configured to listen to an event that the startup time reaches, when the startup time reaches, the blockchain server sends a corresponding event to the intelligent contract, and after receiving the event, the intelligent contract may send a startup instruction to the logic server.
Optionally, when sending the start instruction to the logical server when the start time arrives through the intelligent contract, the blockchain server may send the start instruction including a first protocol message to the logical server when the start time arrives by executing the intelligent contract, where the first protocol message includes a first identifier that triggers the start of the functional component.
The protocol corresponding to the first protocol message may be a private protocol between the blockchain server and the logic server, and the logic server parses the message content in the first protocol message after receiving the first protocol message, and may confirm that the start instruction is received when the parsed message content includes the first identifier.
Alternatively, the Protocol corresponding to the first Protocol message may also be a general Protocol, such as a hypertext Transfer Protocol (HTTP) Protocol.
The logical server launches the functional component upon receiving the launch indication, step 760.
In this embodiment of the application, after receiving the start instruction (for example, parsing the first identifier), the logic server of the application may start a corresponding functional component in the application.
For example, taking the application program as a game-like application program as an example, and taking an example that the functional component corresponds to a certain time-limited activity in the game as an example, after the logic server receives the first protocol message sent by the blockchain server and parses the first identifier from the first protocol message, the activity in the game may be started, so that the user in the game experiences the activity.
Step 770, the blockchain server sends a closing indication to the logic server when the closing time of the functional component is reached by executing the intelligent contract; accordingly, the logical server receives the shutdown indication.
Wherein the shutdown indication is used to instruct the logical server to shutdown the functional component.
In the embodiment of the present application, if the function corresponding to the functional component is a time-limited function and the function has an explicit end time (i.e., the shutdown time), the blockchain server may send a shutdown instruction to the logical server when the shutdown time arrives.
Optionally, when the shutdown instruction is sent to the logical server when the shutdown time of the functional component arrives by executing the intelligent contract, the blockchain server may send the shutdown instruction including a second protocol message to the logical server when the shutdown time arrives by executing the intelligent contract, where the second protocol message includes a second identifier that triggers shutdown of the functional component.
The sending of the close indication is similar to the sending of the start indication, and is not described herein again.
In step 780, the logic server shuts down the functional component when receiving the shutdown indication.
In this embodiment, after receiving the shutdown instruction, the logic server may shut down the functional component.
For example, taking the application program as a game application program as an example, and taking the case that the functional component corresponds to a certain time-limited activity in the game as an example, after the logic server receives the second protocol message sent by the blockchain server and parses the second identifier from the second protocol message, the activity in the game can be closed.
In summary, in the solution shown in the embodiment of the present application, the developer terminal uploads the start advance notice information corresponding to the functional component in the application program and the smart contract for starting the functional component to the blockchain server in the blockchain, the blockchain server issues the start advance notice information to the application server, and when the start time arrives, the logic server that automatically controls the application program starts the functional component by executing the smart contract.
Taking the above application as an example of a game-like application, please refer to fig. 9, which shows a schematic diagram of a control flow of an in-game activity provided by an exemplary embodiment of the present application. As shown in fig. 9, the above process includes the following steps:
s91, the developer terminal of the game application records the activity content information and the intelligent contract to the blockchain server; the intelligent contract has the function of automatically starting the activities in the game after the date set by the activities arrives.
The activity content information corresponds to the start notice information in the embodiment shown in fig. 4 or fig. 5.
S92, the WEB server and the game server respectively obtain the activity content information from the blockchain server.
In this embodiment of the present application, when the WEB server or the game server receives a request for querying an activity preview from the user terminal, the activity content information may be acquired from the blockchain server.
Alternatively, the blockchain server may actively send the active content information to the WEB server and the game server.
And S93, the WEB server and/or the game server pushes the activity content information to the user terminal.
For example, the WEB server may push the activity content information to the user terminal through the WEB when receiving the user terminal to inquire about the activity preview through the WEB.
The game server can push the activity content information to the user terminal in the game when receiving the activity preview inquired by the user terminal in the game.
When the WEB server and/or the game server pushes the activity content information to the user terminal, source information is also sent to the user terminal so as to indicate the source and the block chain of the activity content information of the user terminal.
And after receiving the activity content information, the user terminal can display the activity content information.
Optionally, the user terminal may display the source information (i.e., a tag for blockchain authentication) on the active content information in addition to the active content information.
S94, the blockchain server instructs the game server to start the event by the smart contract after the start date set for the event has arrived.
S95, when the end date of the event is reached, the blockchain server instructs the game server to end the event by an intelligent contract.
According to the scheme shown in the embodiment of the application, the active logic is changed from the way that a development group manually opens a switch into the way that the block chain code automatically runs, and errors possibly caused by manual maintenance are saved. In addition, the scheme shown in the embodiment of the application also enhances the cognition of the new player on the activity, facilitates the correct establishment of the expectation of the new player on the future and improves the retention probability of the new player. Trust in activity stability is also enhanced for old players.
The scheme shown in the embodiment of the application supports a large number of activity configurations in the technical aspect, can facilitate the new player to quickly know all the content of the future activities, is beneficial to establishing a correct expectation for the new player, and improves long-term retention. Meanwhile, the function of automatic execution of the block chain effectively prevents the development group from modifying or canceling the activity content, and in turn forces the development group to have more careful thinking and design on future activities.
Fig. 10 is a block diagram illustrating the structure of a control device of a functional component within an application according to an exemplary embodiment. The control device of the functional components in the application program may be implemented as all or part of the blockchain server arranged in the blockchain in a hardware or software and hardware combination manner, so as to execute all or part of the steps executed by the blockchain server in the method shown in the corresponding embodiment of fig. 4 or fig. 7. The control means of the functional components within the application may comprise:
a first receiving module 1001, configured to receive start advance notice information and an intelligent contract sent by a developer terminal of the application; the starting forecasting information is used for forecasting the starting time of the functional component;
an information sending module 1002, configured to send the start forecasting information to an application server corresponding to the application program, so that the application server sends the start forecasting information to a user terminal; the application server comprises a logic server providing logic support for the application program;
a start instruction sending module 1003, configured to send a start instruction to the logic server when the start time is reached by executing the intelligent contract, where the start instruction is used to instruct the logic server to start the functional component.
In a possible implementation manner, the information sending module 1002 is configured to,
and sending the starting forecast information to the application server by executing the intelligent contract.
In a possible implementation manner, the start indication sending module 1003 is configured to,
and sending the starting indication containing a first protocol message to the logic server when the starting time is reached by executing the intelligent contract, wherein the first protocol message contains a first identifier for triggering the starting of the functional component.
In one possible implementation, the apparatus further includes:
and the closing indication sending module is used for sending a closing indication to the logic server when the closing time of the functional component is reached by executing the intelligent contract, and the closing indication is used for indicating the logic server to close the functional component.
In a possible implementation manner, the close indication sending module is configured to,
and sending the closing indication containing a second protocol message to the logic server when the closing time is reached by executing the intelligent contract, wherein the second protocol message contains a second identifier for triggering the functional component to be closed.
In summary, in the solution shown in the embodiment of the present application, the developer terminal uploads the start advance notice information corresponding to the functional component in the application program and the smart contract for starting the functional component to the blockchain server in the blockchain, the blockchain server issues the start advance notice information to the application server, and when the start time arrives, the logic server that automatically controls the application program starts the functional component by executing the smart contract.
Fig. 11 is a block diagram illustrating a configuration of a control apparatus of a functional component within an application according to an exemplary embodiment. The control device of the functional components in the application program may be implemented by hardware or a combination of hardware and software as all or part of a logic server providing logic support for the application program, so as to execute all or part of the steps executed by the logic server in the method shown in the corresponding embodiment in fig. 4 or fig. 7. The control means of the functional components within the application may comprise:
an information receiving module 1101, configured to receive start forecasting information sent by a blockchain server, where the start forecasting information is used to forecast start time of the functional component;
an information sending module 1102, configured to send the start announcement information to a user terminal;
a starting module 1103, configured to start the functional component when receiving a starting instruction; the starting indication is an indication sent by the blockchain server when the starting time is reached by executing an intelligent contract.
In one possible implementation, the apparatus further includes:
and the source information sending module is used for sending the source information of the starting advance notice information to the user terminal, and the source information is used for indicating that the starting advance notice information is from a block chain.
In a possible implementation manner, the start instruction includes a first protocol message, and the first protocol message includes a first identifier that triggers the start of the functional component.
In one possible implementation, the apparatus further includes:
the closing module is used for closing the functional component when receiving a closing instruction; the closing indication is an indication sent by the blockchain server when the closing time of the functional component is reached by executing an intelligent contract.
In a possible implementation manner, the shutdown indication includes a second protocol message, and the second protocol message includes a second identifier that triggers the functional component to start.
In summary, in the solution shown in the embodiment of the present application, the developer terminal uploads the start advance notice information corresponding to the functional component in the application program and the smart contract for starting the functional component to the blockchain server in the blockchain, the blockchain server issues the start advance notice information to the logical server, and when the start time arrives, the logical server automatically controlling the application program starts the functional component by executing the smart contract.
Fig. 12 is a block diagram showing the configuration of a notice information presentation apparatus according to an exemplary embodiment. The device for displaying the start-up notice information may be implemented as all or part of the user terminal in a hardware or software and hardware combination manner, so as to execute all or part of the steps executed by the user terminal in the method shown in the embodiment corresponding to fig. 6 or fig. 7. The start-up notice information presentation apparatus may include:
a request sending module 1201, configured to send a preview information obtaining request to an application server;
an information receiving module 1202, configured to receive start announcement information sent by the application server and source information of the start announcement information, where the source information is used to indicate that the start announcement information is from a block chain; the notice information is used for noticing the starting time of the functional component in the application program;
an information displaying module 1203, displaying the start-up notice information and the source information.
In summary, in the solution shown in the embodiment of the present application, after the blockchain server receives the start-up notice information and the intelligent contract sent by the developer terminal of the application program and sends the start-up notice information to the application server, the user terminal may obtain the start-up notice information from the application server, and the source information indicating that the start-up notice information is derived from the blockchain, and display the start-up notice information and the source information, thereby implementing the display of the start-up notice information authenticated by the blockchain to the user, and improving the reliability of the start-up notice information.
FIG. 13 is a block diagram illustrating a computer device according to an example embodiment. The computer device may be implemented as a blockchain server 320 or an application terminal 330 in the implementation environment shown in fig. 3 described above. The computer device 1300 includes a Central Processing Unit (CPU)1301, a system memory 1304 including a Random Access Memory (RAM)1302 and a Read Only Memory (ROM)1303, and a system bus 1305 connecting the system memory 1304 and the central processing unit 1301. The server 1300 also includes a basic input/output system (I/O system) 1306, which facilitates transfer of information between devices within the computer, and a mass storage device 1307 for storing an operating system 1313, application programs 1314, and other program modules 1315.
The basic input/output system 1306 includes a display 1308 for displaying information and an input device 1309, such as a mouse, keyboard, etc., for a user to input information. Wherein the display 1308 and input device 1309 are connected to the central processing unit 1301 through an input-output controller 1310 connected to the system bus 1305. The basic input/output system 1306 may also include an input/output controller 1310 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input-output controller 1310 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 1307 is connected to the central processing unit 1301 through a mass storage controller (not shown) connected to the system bus 1305. The mass storage device 1307 and its associated computer-readable media provide non-volatile storage for the server 1300. That is, the mass storage device 1307 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM drive.
Without loss of generality, the computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 1304 and mass storage device 1307 described above may be collectively referred to as memory.
The server 1300 may be connected to the internet or other network devices through a network interface unit 1311 connected to the system bus 1305.
The memory further includes one or more programs, the one or more programs are stored in the memory, and the central processor 1301 executes the one or more programs to implement the steps executed by the blockchain server or the application server (including the logic server) in the intelligent contract auditing method shown in fig. 4 or 7.
The present application further provides a computer program product, which when run on a computer, causes the computer to perform the steps performed by the blockchain server or the application servers (including the logic servers) in the methods provided by the above-described method embodiments.
Fig. 14 is a block diagram illustrating a structure of a terminal 1400 according to an example embodiment. The terminal 1400 may be the user terminal 340 in the system shown in fig. 3.
In general, terminal 1400 includes: a processor 1401, and a memory 1402.
Processor 1401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 1401 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1401 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1401 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing content that the display screen needs to display. In some embodiments, processor 1401 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 1402 may include one or more computer-readable storage media, which may be non-transitory. Memory 1402 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1402 is used to store at least one instruction for execution by processor 1401 to implement the steps performed by the user terminal in the methods provided by the method embodiments herein.
In some embodiments, terminal 1400 may further optionally include: a peripheral device interface 1403 and at least one peripheral device. The processor 1401, the memory 1402, and the peripheral device interface 1403 may be connected by buses or signal lines. Each peripheral device may be connected to the peripheral device interface 1403 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1404, touch display 1405, camera 1406, audio circuitry 1407, and power supply 1409.
The peripheral device interface 1403 can be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 1401 and the memory 1402. In some embodiments, the processor 1401, memory 1402, and peripheral interface 1403 are integrated on the same chip or circuit board; in some other embodiments, any one or both of the processor 1401, the memory 1402, and the peripheral device interface 1403 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 1404 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 1404 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 1404 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1404 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 1404 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1405 is used to display a UI (user interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1405 is a touch display screen, the display screen 1405 also has the ability to capture touch signals at or above the surface of the display screen 1405. The touch signal may be input to the processor 1401 for processing as a control signal. At this point, the display 1405 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, the display 1405 may be one, providing the front panel of the terminal 1400; in other embodiments, display 1405 may be at least two, respectively disposed on different surfaces of terminal 1400 or in a folded design; in still other embodiments, display 1405 may be a flexible display disposed on a curved surface or on a folded surface of terminal 1400. Even further, the display 1405 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display 1405 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 1406 is used to capture images or video. Optionally, camera assembly 1406 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1406 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1407 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1401 for processing or inputting the electric signals to the radio frequency circuit 1404 to realize voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided, each at a different location of terminal 1400. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is then used to convert electrical signals from the processor 1401 or the radio frequency circuit 1404 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuit 1407 may also include a headphone jack.
Power supply 1409 is used to power the various components of terminal 1400. The power source 1409 may be alternating current, direct current, disposable or rechargeable. When the power source 1409 comprises a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1400 also includes one or more sensors 1410. The one or more sensors 1410 include, but are not limited to: acceleration sensor 1411, gyro sensor 1412, pressure sensor 1413, optical sensor 1415, and proximity sensor 1416.
The acceleration sensor 1411 may detect the magnitude of acceleration on three coordinate axes of a coordinate system established with the terminal 1400. For example, the acceleration sensor 1411 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1401 can control the touch display 1405 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1411. The acceleration sensor 1411 may also be used for the acquisition of motion data of a game or a user.
The gyro sensor 1412 may detect a body direction and a rotation angle of the terminal 1400, and the gyro sensor 1412 and the acceleration sensor 1411 may cooperate to collect a 3D motion of the user on the terminal 1400. The processor 1401 can realize the following functions according to the data collected by the gyro sensor 1412: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 1413 may be disposed on the side bezel of terminal 1400 and/or underlying touch display 1405. When the pressure sensor 1413 is disposed on the side frame of the terminal 1400, the user's holding signal of the terminal 1400 can be detected, and the processor 1401 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1413. When the pressure sensor 1413 is disposed at the lower layer of the touch display 1405, the processor 1401 controls the operability control on the UI interface according to the pressure operation of the user on the touch display 1405. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The optical sensor 1415 is used to collect ambient light intensity. In one embodiment, processor 1401 can control the display brightness of touch display 1405 based on the ambient light intensity collected by optical sensor 1415. Specifically, when the ambient light intensity is high, the display luminance of the touch display 1405 is increased; when the ambient light intensity is low, the display brightness of the touch display 1405 is turned down. In another embodiment, the processor 1401 can also dynamically adjust the shooting parameters of the camera assembly 1406 according to the intensity of the ambient light collected by the optical sensor 1415.
Proximity sensor 1416, also known as a distance sensor, is typically disposed on the front panel of terminal 1400. The proximity sensor 1416 is used to collect the distance between the user and the front surface of the terminal 1400. In one embodiment, when proximity sensor 1416 detects that the distance between the user and the front face of terminal 1400 is gradually decreased, processor 1401 controls touch display 1405 to switch from a bright screen state to a dark screen state; when proximity sensor 1416 detects that the distance between the user and the front face of terminal 1400 is gradually increasing, processor 1401 controls touch display 1405 to switch from a breath-screen state to a bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 14 is not intended to be limiting with respect to terminal 1400 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be employed.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, which may be a computer readable storage medium contained in a memory of the above embodiments; or it may be a separate computer-readable storage medium not incorporated in the terminal. The computer readable storage medium has stored therein at least one instruction, at least one program, a set of codes or a set of instructions that is loaded and executed by the processor to implement all or part of the steps performed by the blockchain server, the application server (including the logic server) or the user terminal in the method as described in fig. 4, 6 or 7.
Optionally, the computer-readable storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a Solid State Drive (SSD), or an optical disc. The Random Access Memory may include a resistive Random Access Memory (ReRAM) and a Dynamic Random Access Memory (DRAM). The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (15)

1. A method of controlling a functional component within an application, the method being performed by a blockchain server, the blockchain server being a server disposed in a blockchain, the method comprising:
receiving starting advance notice information and an intelligent contract sent by a developer terminal of the application program; the starting forecasting information is used for forecasting the starting time of the functional component;
sending the starting advance notice information to an application server corresponding to the application program, so that the application server sends the starting advance notice information to a user terminal; the application server comprises a logic server providing logic support for the application program;
and sending a starting instruction to the logic server when the starting time is reached by executing the intelligent contract, wherein the starting instruction is used for instructing the logic server to start the functional component.
2. The method according to claim 1, wherein the sending the start notice information to the application server corresponding to the application program comprises:
and sending the starting forecast information to the application server by executing the intelligent contract.
3. The method of claim 1, wherein sending, by the intelligent contract, a launch indication to the logical server upon arrival of the launch time comprises:
and sending the starting indication containing a first protocol message to the logic server when the starting time is reached by executing the intelligent contract, wherein the first protocol message contains a first identifier for triggering the starting of the functional component.
4. The method of claim 1, further comprising:
and sending a closing indication to the logic server when the closing time of the functional component is reached by executing the intelligent contract, wherein the closing indication is used for indicating the logic server to close the functional component.
5. The method of claim 4, wherein sending a shutdown indication to the logical server when a shutdown time of the functional component is reached by executing the intelligent contract comprises:
and sending the closing indication containing a second protocol message to the logic server when the closing time is reached by executing the intelligent contract, wherein the second protocol message contains a second identifier for triggering the functional component to be closed.
6. A method of controlling a functional component within an application, the method being performed by a logical server providing logical support for the application, the method comprising:
receiving starting advance notice information sent by a block chain server, wherein the starting advance notice information is used for predicting the starting time of the functional component;
sending the starting advance notice information to a user terminal;
starting the functional component when a starting instruction is received; the starting indication is an indication sent by the blockchain server when the starting time is reached by executing an intelligent contract.
7. The method of claim 6, further comprising:
and sending source information of the starting forecast information to the user terminal, wherein the source information is used for indicating that the starting forecast information is from a block chain.
8. The method of claim 6, wherein the initiation indication comprises a first protocol message, and wherein the first protocol message comprises a first identifier that triggers the initiation of the functional component.
9. The method of claim 6, further comprising:
closing the functional component upon receiving a close indication; the closing indication is an indication sent by the blockchain server when the closing time of the functional component is reached by executing an intelligent contract.
10. The method of claim 9, wherein the shutdown indication comprises a second protocol message, and wherein the second protocol message comprises a second identifier that triggers the functional component to be started.
11. A method for starting announcement information presentation, the method being performed by a user terminal, the method comprising:
sending a forecast information acquisition request to an application server;
receiving starting advance notice information sent by the application server and source information of the starting advance notice information, wherein the source information is used for indicating that the starting advance notice information comes from a block chain; the starting forecast information is used for forecasting the starting time of the functional components in the application program; the starting forecast information is sent to the application server after the block chain server receives the starting forecast information and the intelligent contract sent by the developer terminal of the application program; the intelligent contract is used for triggering the blockchain server to send a starting instruction when a starting time is reached when the intelligent contract is executed by the blockchain server; the starting indication is used for indicating the application server to start a functional component;
and displaying the starting forecast information and the source information.
12. An apparatus for controlling a functional component within an application, the apparatus being used in a blockchain server, the blockchain server being a server provided in a blockchain, the apparatus comprising:
the first receiving module is used for receiving starting advance notice information and an intelligent contract sent by a developer terminal of the application program; the starting forecasting information is used for forecasting the starting time of the functional component;
the information sending module is used for sending the starting advance notice information to an application server corresponding to the application program so that the application server can send the starting advance notice information to the user terminal; the application server comprises a logic server providing logic support for the application program;
and the starting indication sending module is used for sending a starting indication to the logic server when the starting time is up by executing the intelligent contract, and the starting indication is used for indicating the logic server to start the functional component.
13. An apparatus for controlling functional components within an application, the apparatus being for use in a logical server providing logical support for the application, the apparatus comprising:
the information receiving module is used for receiving starting forecast information sent by the block chain server, and the starting forecast information is used for forecasting the starting time of the functional component;
the information sending module is used for sending the starting advance notice information to the user terminal;
the starting module is used for starting the functional component when a starting instruction is received; the starting indication is an indication sent by the blockchain server when the starting time is reached by executing an intelligent contract.
14. A computer device comprising a processor and a memory, said memory having stored therein at least one instruction, at least one program, set of codes or set of instructions, said at least one instruction, said at least one program, said set of codes or set of instructions being loaded and executed by said processor to implement a method of controlling a functional component within an application program according to any one of claims 1 to 10.
15. A computer readable storage medium, having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement a method of controlling a functional component within an application program according to any one of claims 1 to 10.
CN201910978763.6A 2019-10-15 2019-10-15 Control method, device and storage medium for functional components in application program Active CN110737462B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910978763.6A CN110737462B (en) 2019-10-15 2019-10-15 Control method, device and storage medium for functional components in application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910978763.6A CN110737462B (en) 2019-10-15 2019-10-15 Control method, device and storage medium for functional components in application program

Publications (2)

Publication Number Publication Date
CN110737462A CN110737462A (en) 2020-01-31
CN110737462B true CN110737462B (en) 2022-04-01

Family

ID=69270027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910978763.6A Active CN110737462B (en) 2019-10-15 2019-10-15 Control method, device and storage medium for functional components in application program

Country Status (1)

Country Link
CN (1) CN110737462B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111290696A (en) * 2020-02-26 2020-06-16 平安银行股份有限公司 Flow control method and device for application program assembly
CN114860340A (en) * 2022-05-17 2022-08-05 中国平安财产保险股份有限公司 Starting control method, device, equipment and storage medium for configuring logic code

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015101340A1 (en) * 2013-12-31 2015-07-09 广州华多网络科技有限公司 Function activation method and device
CN107644083A (en) * 2017-09-22 2018-01-30 中国联合网络通信集团有限公司 The recognition methods of message header and information and content conformity and equipment
CN108810148A (en) * 2018-06-15 2018-11-13 青岛宇硕云联信息科技有限公司 Cloud mobile phone interaction system, method and device based on block chain
CN109388923A (en) * 2017-08-14 2019-02-26 上海策赢网络科技有限公司 A kind of program excutive method and device
CN109410007A (en) * 2018-10-30 2019-03-01 杭州复杂美科技有限公司 A kind of picture arrangement game method and system, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015101340A1 (en) * 2013-12-31 2015-07-09 广州华多网络科技有限公司 Function activation method and device
CN109388923A (en) * 2017-08-14 2019-02-26 上海策赢网络科技有限公司 A kind of program excutive method and device
CN107644083A (en) * 2017-09-22 2018-01-30 中国联合网络通信集团有限公司 The recognition methods of message header and information and content conformity and equipment
CN108810148A (en) * 2018-06-15 2018-11-13 青岛宇硕云联信息科技有限公司 Cloud mobile phone interaction system, method and device based on block chain
CN109410007A (en) * 2018-10-30 2019-03-01 杭州复杂美科技有限公司 A kind of picture arrangement game method and system, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"WebSocket(2)---实现游戏公告功能";雨点的名字;《博客园 公开网址:https://www.cnblogs.com/qdhxhz/p/9438954.html》;20180807;第1-5页 *

Also Published As

Publication number Publication date
CN110737462A (en) 2020-01-31

Similar Documents

Publication Publication Date Title
CN110585699B (en) Control method, device and equipment of cloud game and storage medium
CN110971414B (en) Method, device, terminal and server for generating signature
CN111245745B (en) Message sending method, device, node equipment and storage medium
CN109600678B (en) Information display method, device and system, server, terminal and storage medium
CN110674022B (en) Behavior data acquisition method and device and storage medium
CN111339086B (en) Block processing method, and data query method and device based on block chain
CN111340482B (en) Conflict detection method, device, node equipment and storage medium
CN110933113B (en) Block chain-based interactive behavior detection method, device, equipment and storage medium
CN110597924B (en) Block chain-based user identification processing method, device, equipment and storage medium
CN110569220B (en) Game resource file display method and device, terminal and storage medium
CN113204298A (en) Method and device for displaying release progress, electronic equipment and storage medium
CN111667371B (en) Resource aggregation method, system, device and storage medium based on block chain
CN111741334A (en) Live broadcast data generation method, live broadcast data display method, device and equipment
CN111241115A (en) Data synchronization method, device, equipment and storage medium
CN110737462B (en) Control method, device and storage medium for functional components in application program
CN111061550A (en) Task processing method, device, equipment and storage medium
CN111080371A (en) Method, device and storage medium for issuing resources to user account
CN111212074A (en) Qualification determination method, device, equipment and storage medium based on block chain
CN111198922B (en) Game resource management method and device based on block chain
CN111760296A (en) Team forming processing method, team forming processing device, terminal, server and storage medium
CN108829464B (en) Service starting method and device, computer equipment and storage medium
CN110597840A (en) Partner relationship establishing method, device, equipment and storage medium based on block chain
CN110570289A (en) service processing method, device, equipment and storage medium based on block chain
CN110971692B (en) Method and device for opening service and computer storage medium
CN110806864B (en) Virtual card obtaining and issuing method, device, equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant