Information acquisition method and device, electronic equipment and readable medium
By generating and pre-saving the service index information of virtual resources and sending it directly when the business party requests, the problem of high computing resources consumption in the prior art business system when acquiring the virtual resource business information on the chain is solved, and the information acquisition efficiency is improved.
Patent Information
- Application Number
- CN202311102717.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-29
- Publication Date
- 2025-02-28
AI Technical Summary
In the prior art, when the business party obtains on-chain virtual resource business information, it requires off-chain systems to store and process data, resulting in high consumption of computing resources and low efficiency.
Provides an information acquisition method, by obtaining the service data of virtual resources, generating service index information, and after receiving the query request from the business party, it directly sends the service index information after authentication through the authentication server, thereby reducing the computing resource consumption of the business party system.
It reduces the computing resource consumption and difficulty of the business party system when acquiring data, and improves the efficiency of obtaining business index information.
Smart Images

Figure CN119538218A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an information acquisition method, device, electronic device and readable medium. Background Art
[0002] Currently, with the increasing frequency of business activities on the blockchain, the virtual resources on the chain are diverse. Currently, many off-chain resources are tokenized on the chain and then conduct business on the chain. The demand for off-chain systems to access on-chain data is also increasing.
[0003] Currently, the way to obtain on-chain virtual resource business information is usually for the off-chain system to read various business information of virtual resources in the blockchain through the interface opened by the virtual resource business platform and then process it to obtain business index information.
[0004] However, such situations usually require the business party's off-chain system to store and process the acquired business information. The business party consumes a lot of computing resources and has great difficulty in obtaining business index information, which is not conducive to the efficiency of obtaining business index information. Summary of the invention
[0005] Based on the above technical problems, the present application provides an information acquisition method, device, electronic device and readable medium to reduce the computing resources consumed by the business system in acquiring data and the difficulty of acquiring data.
[0006] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0007] According to one aspect of an embodiment of the present application, there is provided an information acquisition method, including:
[0008] Obtain business data of virtual resources;
[0009] Generate business index information of the virtual resource according to the business data of the virtual resource, wherein the business index information includes at least one of business volume change information and business price change information of the virtual resource;
[0010] Receiving a business index query request for the virtual resource from a business party, wherein the business index query request includes business party login information of the business party;
[0011] In response to the business index query request, sending the business party login information to the authentication server of the business party, so as to authenticate the business party login information through the authentication server and obtain an authentication result;
[0012] According to the authentication result, the service index information of the virtual resource is sent to the service party.
[0013] According to one aspect of an embodiment of the present application, there is provided an information acquisition device, including:
[0014] A data acquisition module configured to acquire business data of virtual resources;
[0015] A request acquisition module, configured to receive a business index query request from a business party for the virtual resource, wherein the business index query request includes business party login information of the business party;
[0016] an authentication module, configured to send the business party login information to the authentication server of the business party in response to the business index query request, so as to authenticate the business party login information through the authentication server and obtain an authentication result;
[0017] The information sending module is configured to send the business index information of the virtual resource to the business party according to the authentication result.
[0018] In some embodiments of the present application, based on the above technical solution, the data acquisition module is also configured to: query the multimedia information related to the virtual resources from the local database according to the business index query request, wherein the multimedia information in the local database is obtained from the multimedia data source; the information sending module is also configured to: send the multimedia information related to the virtual resources and the business index information to the business party according to the authentication result.
[0019] In some embodiments of the present application, based on the above technical solution, the data acquisition module is further configured to: acquire multimedia information related to the virtual resource from the multimedia data source of the virtual resource; and save the multimedia information related to the virtual resource into the local database.
[0020] In some embodiments of the present application, based on the above technical solution, the information generation module is specifically configured to: generate a price change curve of the virtual resource on each business day according to the business price in the business order corresponding to each business day in the business data of the virtual resource;
[0021] Generate a business volume change curve of the virtual resource on each business day according to the business volume in the business order corresponding to each business day in the business data of the virtual resource;
[0022] The price change curve and the business volume change curve are saved in a local database as business index information of the virtual resource.
[0023] In some embodiments of the present application, based on the above technical solution, the information generation module is further configured to: determine at least one of the starting price, ending price, maximum price and minimum price of each business day according to the business price of the business order corresponding to each business day in the business data of the virtual resource; generate a price change curve of the virtual resource on each business day according to at least one of the starting price, ending price, maximum price and minimum price of each business day.
[0024] In some embodiments of the present application, based on the above technical solution, the information generation module is also configured to: determine the time-sharing business volume within a preset time period in each business day according to the business volume of the business orders corresponding to each business day in the business data of the virtual resource; and generate a business volume change curve of the virtual resource on each business day according to the time-sharing business volume within the preset time period in each business day.
[0025] In some embodiments of the present application, based on the above technical solution, the business index query request includes business party login information; the information sending module is specifically configured to: send the business party login information to the authentication server of the business party to authenticate the business party login information through the authentication server; receive the authentication result from the authentication server; if the authentication result is passed, query the business index information of the virtual resource from the local database and send it to the business party, wherein the local database stores the business index information of the virtual resource.
[0026] In some embodiments of the present application, based on the above technical solution, the request acquisition module is also configured to: receive configuration information sent by the business party, the configuration information including the access information of the authentication server; the information sending module is also configured to: parse the business party login information from the business index query request according to the configuration information; and send the business party login information to the authentication server according to the access information of the authentication server in the configuration information.
[0027] In some embodiments of the present application, based on the above technical solution, the data acquisition module is specifically configured to: periodically call the order information and service price information of the service server of the virtual resource as the service data of the virtual resource.
[0028] In some embodiments of the present application, based on the above technical solution, the data acquisition module is specifically configured as follows: monitoring the on-chain address of the business blockchain of the virtual resource through a smart contract; obtaining the blockchain business of the virtual resource from the newly on-chain block of the business blockchain; reading the order information and business price information of the virtual resource in the blockchain business as the business data of the virtual resource.
[0029] In some embodiments of the present application, based on the above technical solution, the information sending module is specifically configured as follows: when the authentication result is that the authentication is passed, the business index information specified in the business index query request is queried from the local database; if the business index information corresponding to the business index query request does not exist in the local database, the specified data field associated with the business index information specified in the business index query request is obtained; the business data of the specified data field is processed according to the data processing strategy corresponding to the specified business index information to obtain the specified business index information; the specified business index information is sent to the business party, and the data update strategy for the specified business index information is updated in the local database.
[0030] In some embodiments of the present application, based on the above technical solution, the information sending module is also configured to: construct a reference relationship between the data field and the business index information to obtain the corresponding relationship between the specified data field and the specified business index information; construct a data processing strategy for the specified business index information according to the corresponding relationship between the specified data field and the specified business index information; delete the business index information in the local database, and generate a data update strategy for the specified business index information to update the specified business index information in the local database.
[0031] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the information acquisition method in the above technical solution by executing the executable instructions.
[0032] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the information acquisition method in the above technical solution is implemented.
[0033] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the information acquisition method provided in the above various optional implementations.
[0034] In an embodiment of the present application, the server first obtains the business data of the virtual resource, and generates the business index information of the virtual resource based on the business data. Subsequently, when the business party obtains the business index query request for the virtual resource, the business index information of the virtual resource is sent to the business party. In the scheme of the present application, the business index information is generated in advance and provided directly to the business party when the business party requests it. The off-chain system of the business party no longer needs to directly obtain the business data and store and process the business data, thereby reducing the computing resources consumed by the business party system in obtaining data and the difficulty of obtaining data, and improving the efficiency of obtaining business index information.
[0035] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0037] Figure 1 This is a system architecture for a business index information acquisition solution according to an embodiment of the present application.
[0038] Figure 2 This is a schematic diagram of a blockchain network in an embodiment of the present application.
[0039] Figure 3 This is a schematic diagram of blocks in a blockchain network in an embodiment of the present application.
[0040] Figure 4 The present invention is a flowchart of an information acquisition method according to an embodiment of the present application.
[0041] Figure 5 The present invention is a flowchart of an information acquisition method according to an embodiment of the present application.
[0042] Figure 6 The present invention is a flowchart of an information acquisition method according to an embodiment of the present application.
[0043] Figure 7 This is a schematic flowchart of the process of obtaining business index information in an embodiment of the present application.
[0044] Figure 8 The block diagram schematically shows the composition of the information acquisition device in the embodiment of the present application.
[0045] Fig. 9A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0046] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0047] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0048] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0049] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0050] It should be understood that the solution of the present application can be applied to a data service platform that provides business indicator data for off-chain systems, and is specifically applied to scenarios where business indicator data of virtual resources on the blockchain is provided to off-chain business systems of virtual resources. In such scenarios, the business of virtual resources usually occurs on the blockchain, and the off-chain system needs to obtain business data from the chain to generate and display indicator data related to the virtual resource business, such as changes in business prices and changes in business volume, etc. This requires data communication between the off-chain system and the on-chain system to complete the data transmission process. In specific scenarios, the on-chain business platform of the blockchain or virtual resources and the off-chain system usually belong to different owners and are in different network environments. The blockchain or on-chain system will provide specific data interfaces to provide business information to the outside, and the off-chain system needs to connect to these data interfaces and perform the corresponding logic implementation process to apply the acquired business data. The usual application method is data display.
[0051] As business activities on the blockchain become more frequent, the virtual resources on the chain are diverse. Currently, many off-chain resources are tokenized on the chain and then used for business on the chain. The demand for off-chain systems to access on-chain data is also increasing. Currently, the way to obtain on-chain virtual resource business information is usually for the off-chain system to read various business information of virtual resources in the blockchain through the interface opened by the virtual resource business platform and then process it to obtain business index information. However, such situations usually require the business party's off-chain system to store and process the obtained business information. The business party consumes a lot of computing resources and it is difficult to obtain business index information, which is not conducive to the efficiency of obtaining business index information.
[0052] Based on this, the technical solution of the embodiment of the present application proposes a method for obtaining information. Specifically, Figure 1 As shown, the system architecture 100 applied to the business index information acquisition system according to the embodiment of the present application may include a terminal device 110, a network 120 and a server 130. The terminal device 110 may include a smart phone, a tablet computer, a laptop computer, an intelligent voice interaction device, a smart home appliance, a vehicle terminal, an aircraft, etc. The server 130 may be a server that provides various services, which may be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network) and big data and artificial intelligence platforms. The network 120 may be a communication medium of various connection types that can provide a communication link between the terminal device 110 and the server 130, for example, it may be a wired communication link or a wireless communication link.
[0053] According to the implementation needs, the system architecture in the embodiment of the present application can have any number of terminal devices, networks and servers. For example, the server 130 can be a server group composed of multiple server devices. In addition, the technical solution provided in the embodiment of the present application can be applied to the terminal device 110, can also be applied to the server 130, or can be implemented by the terminal device 110 and the server 130 together, and the present application does not make special restrictions on this. In the embodiment of the present application, a blockchain network can be constructed between the server 130 and the terminal device 110, and the server 130 and the terminal device 110 are both added to the blockchain network as nodes of the blockchain network.
[0054] In one embodiment of the present application, the server 130 is referred to as the first node in the blockchain network, and obtains a set of pending business, which includes business information sent by the second node in the blockchain to the first node. The second node can be the terminal device 110 or another server in the server 130. The server 130 obtains the target business information from the business information of the pending business set, and the target business information includes the first communication key encrypted by the public key of the first node and the pending information encrypted by the first communication key. Subsequently, the server 130 decrypts the target business information by the private key of the first node and the first communication key to obtain the pending information. An independent local blockchain node is also run in the server 130, and the local blockchain node does not communicate with other nodes in the blockchain. The server 130 saves the pending information locally through the local blockchain node, thereby completing the processing of the pending information.
[0055] A system or service for providing business indicator data is deployed in the server 130. The server 130 first obtains the business data of the virtual resource, and then generates the business index information of the virtual resource based on the business data of the virtual resource. The business index information includes at least one of the business volume change information and the business price change information of the virtual resource. These business indicator data will be stored in the server 130. Subsequently, when the business party needs to display the business indicator data, it will request the service in the server 130 to provide the business indicator data, and the server 130 will receive the business party's business index query request for the virtual resource, and the business index query request includes the business party login information of the business party. Subsequently, in response to the business index query request, the business party login information is sent to the authentication server of the business party, so as to authenticate the business party login information through the authentication server and obtain the authentication result, and then send the business index information of the virtual resource to the business party according to the authentication result.
[0056] Specifically, when the terminal device 110 browses the page of virtual resource business information, it triggers the relevant function of displaying business indicator data, so that the server of the business party initiates a business index query request to the server 130. The server of the business party itself does not necessarily have the business capabilities of virtual resources, nor does it necessarily store the business information of virtual resources. The actual business process of virtual resources occurs in the blockchain server outside the server of the business party.
[0057] Blockchain is a peer-to-peer distributed ledger consisting of multiple nodes. Each node contains all business records, and all nodes need to verify each business. Each node in the blockchain network can be a full node or a local blockchain node. A full node can be connected to other nodes, while a local blockchain node refers to an independent node running in the blockchain and is not connected to other nodes. A local blockchain node does not participate in the consensus mechanism of the blockchain network like a full node, but it can independently verify business and create new blocks. The confidential information sent by the second node to the first node can only be decrypted by the first node to obtain the content, thereby achieving confidential communication between the two nodes.
[0058] Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks (i.e. blocks) generated by cryptographic methods. Each data block contains a batch of network business information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain is maintained by the nodes in the blockchain network. For example, in Figure 2 The blockchain network shown may include multiple nodes 201, and the multiple nodes 201 may be the various clients forming the blockchain network. Each node 201 may receive input information during normal operation, and maintain the shared data in the blockchain network based on the received input information. In order to ensure the information intercommunication within the blockchain network, there may be an information connection between each node in the blockchain network, and information may be transmitted between nodes through the above information connection. For example, when any node in the blockchain network receives input information, other nodes in the blockchain network obtain the input information according to the consensus algorithm, and store the input information as shared data, so that the data stored on all nodes in the blockchain network are consistent.
[0059] Each node in the blockchain network has a corresponding node identifier, and each node in the blockchain network can store the node identifiers of other nodes, so that the generated blocks can be broadcast to other nodes in the blockchain network according to the node identifiers of other nodes. A node identifier list can be maintained in each node, and the node name and node identifier are stored in the node identifier list accordingly. The node identifier can be an IP (Internet Protocol, a protocol for interconnecting networks) address or any other information that can be used to identify the node.
[0060] Each node in the blockchain network stores the same blockchain. The blockchain consists of multiple blocks, see Figure 3 As shown, the blockchain consists of multiple blocks. The genesis block includes a block header and a block body. The block header stores input information feature values, version numbers, timestamps, and difficulty values, and the block body stores input information. The next block of the genesis block uses the genesis block as its parent block. The next block also includes a block header and a block body. The block header stores input information feature values of the current block, feature values of the block header of the parent block, version numbers, timestamps, and difficulty values, and so on. This ensures that the block data stored in each block in the blockchain is associated with the block data stored in the parent block, thereby ensuring the security of the input information in the block.
[0061] The service data received by the server 130 may be located at Figure 3 in the block body shown.
[0062] The implementation details of the technical solution of the embodiment of the present application are described in detail below:
[0063] Figure 4 A flowchart of an information acquisition method according to an embodiment of the present application is shown. The information acquisition method is applied to a service system that provides business indicator data and can be specifically executed by a device with a computing and processing function, such as a server where the service system is located. Figure 4 As shown, the information acquisition method at least includes steps S410 to S440, which are described in detail as follows:
[0064] Step S410: obtaining business data of virtual resources.
[0065] The business platform of virtual resources can be a server of a centralized platform off-chain or a blockchain of a decentralized platform on-chain. The server that provides business indicator data usually belongs to the blockchain system. Services for obtaining business data will be pre-deployed in the server. The service will be connected to the data interface opened in the centralized platform or decentralized platform as the data source, and the business data of virtual resources will be obtained by calling these data interfaces. It is understandable that virtual resources can exist in different types, and the server can obtain business data of different types of virtual resources respectively.
[0066] Step S420: generating business index information of the virtual resource according to the business data of the virtual resource, wherein the business index information includes at least one of business volume change information and business price change information of the virtual resource.
[0067] The server will generate business index information of virtual resources based on the business data of virtual resources. Business index information is usually graphical data or statistical data. The server will parse and process the business data according to the data type required by the business index information to obtain the required business data information. The business index information contains at least one of the business volume change information and business price change information of virtual resources. Business volume change information refers to the change in the amount of virtual resources used by the business within a certain period of time, and business price change information refers to the change in the business price of virtual resources. It is understandable that the business index information can also include other forms of data, such as changes in the average price, changes in the median transaction volume, etc. The business index information can be in different forms such as bar charts, tables, icons, statistical data, and distribution curves.
[0068] Step S430: receiving a business index query request for the virtual resource from a business party, wherein the business index query request includes business party login information of the business party.
[0069] The business index query request is a request initiated by the business party when the business indicator data is needed. Usually, the business party will add a browsing page or browsing function of the business indicator information to the terminal or client application provided to the end user. The front-end page will trigger the business index query request when the user browses. The business index query request will be sent to the business party's network communication proxy server to forward the business index query request to the access service deployed in the server. The access service in the server obtains the business party's business index query request for virtual resources by communicating with the network communication proxy server. The business party's business party login information is the login information of the business party account in the business party's server or system. Taking the business party's consulting business for virtual resources as an example, the business party login information is usually the information of the user's registered account on the virtual resource consulting system. It can be understood that the login information is usually different from the account of the business party system on the service system that provides business indicator data.
[0070] Step S440, in response to the business index query request, sending the business party login information to the authentication server of the business party, so as to authenticate the business party login information through the authentication server and obtain an authentication result.
[0071] Specifically, in this embodiment, after receiving the business index query request, the server will authenticate the business index query request through the authentication server of the business party. The business index query request will contain the business party login information. After receiving the business index query request, the server will parse it, thereby reading the business party login information, and send the business party login information to the authentication server of the business party. The authentication server will perform authentication based on the business party login information, including verifying the login status of the account corresponding to the business party login information, and verifying whether the business party account has the authority to view or access the business indicator information, and generating and feeding back the authentication result based on the verification result. The server will receive the authentication result from the authentication server. If the authentication result is failed, the subsequent process will be stopped and the result of the authentication failure will be fed back to the business party. If the authentication result is passed, the server will query the business index information of the virtual resource from the local database. The local database stores the business index information of the virtual resource, which is generated and saved in the local database by the server when obtaining business data from the virtual resource business platform. Authentication is performed through the business party's authentication server to ensure that the generated business indicator data is only provided to accounts that have passed the authentication, which is beneficial to the data security of the solution.
[0072] Step S450: Sending the service index information of the virtual resource to the service party according to the authentication result.
[0073] In response to the business index query request, the server sends the business index information of the virtual resource to the business party. Specifically, the business index information will be stored in the server after being generated. After obtaining the business index query request, the server queries the required business index information based on the relevant information of the virtual resource proposed in the business index query request. For example, the business index query request will include the type of virtual resource, the type of business index information, and the time span of the data. The server queries the business index information for a business according to the filtering criteria provided by the business index query request, and feeds it back to the server of the business party.
[0074] In an embodiment of the present application, the server first obtains the business data of the virtual resource, and generates the business index information of the virtual resource based on the business data. Subsequently, when the business party obtains the business index query request for the virtual resource, the business index information of the virtual resource is sent to the business party. In the scheme of the present application, the business index information is generated in advance and provided directly to the business party when the business party requests it. The off-chain system of the business party no longer needs to directly obtain the business data and store and process the business data, thereby reducing the computing resources consumed by the business party system in obtaining data and the difficulty of obtaining data, and improving the efficiency of obtaining business index information.
[0075] In some optional embodiments of the present application, in the process of obtaining the business data of the virtual resource, the server will periodically call the order information and business price information of the business server of the virtual resource as the business data of the virtual resource. Specifically, the smart contract is deployed in the blockchain in the server. This blockchain is usually a different blockchain from the blockchain used to conduct virtual resource business. The query interface provided by the business server of the virtual resource will be called in the smart contract to read the order information and business price information of the virtual resource. The business server of the virtual resource is usually the business server of the centralized platform. The data provided by the centralized platform is usually the business information that has been parsed and sorted by the platform itself, so directly connecting with the business server of the centralized platform is conducive to improving the integrity of the obtained business data.
[0076] In some optional embodiments of the present application, in the process of obtaining the business data of virtual resources from the business platform of virtual resources, the server monitors the on-chain address of the business blockchain of the virtual resources through the smart contract, then obtains the blockchain business of the virtual resources from the new on-chain block of the business blockchain, and finally reads the order information and business price information of the virtual resources in the blockchain business as the business data of the virtual resources. By directly obtaining business information from the blockchain through the smart contract, the accuracy of the obtained data can be improved.
[0077] In some optional embodiments of the present application, before receiving the business index query request of the business party for the virtual resource, the server will first receive the configuration information sent by the business party, and the configuration information includes the access information of the authentication server. Subsequently, in the process of sending the business party login information to the authentication server of the business party, the server will parse the business party login information from the business index query request according to the configuration information, and then send the business party login information to the authentication server according to the access information of the authentication server in the configuration information. In this embodiment, the business party will complete the access process with the server in advance, that is, the parsing method of the business party's business index query request and the access information of the authentication server are pre-configured into the server, so that the server can perform the operation of request parsing and requesting authentication. By first receiving the configuration information to obtain the access information of the authentication server, the configuration process of the business party information is completed, and then authentication is performed according to the access information in the configuration information. Compared with directly establishing a communication channel between servers, it is beneficial to reduce the communication resources consumed in the authentication process.
[0078] In some embodiments of the present application, based on the above technical solution, in the process of sending the business index information of the virtual resource to the business party according to the authentication result, when the authentication result is authentication passed, the server queries the business index information specified in the business index query request from the local database, and if the business index information corresponding to the business index query request does not exist in the local database, the specified data field associated with the business index information specified in the business index query request is obtained. Then the server processes the business data of the specified data field according to the data processing strategy corresponding to the specified business index information to obtain the specified business index information, and then sends the specified business index information to the business party, and updates the data update strategy for the specified business index information in the local database. In an embodiment of the present application, if the server does not find the business index information specified in the business index query request from the local database, it means that the business index that the business party wants to browse has not been generated before. For example, the business party requires business transaction volume information counted by week, and the current business transaction volume is counted by day, then the server will obtain the specified data field associated with the business index information specified in the business index query request. The association between the business index information and the data field can be pre-stored in the database, or can be directly specified by the business party in the client, and included in the business index query request. The data processing strategy is information pre-stored in the server, which includes how to process data fields of different business index information, such as data preprocessing methods, data calculation methods, and visualization curve generation methods. After obtaining the specified business index information, the server sends the generated specified business index information to the business party, and updates the data update strategy for the specified business index information in the local database. The data update strategy is information that specifies the update frequency and data acquisition frequency for the specified business index information. For example, for weekly statistical data, the data update strategy includes the time of the last data update and the time of the next data update, and also includes the time of the last acquisition of business data of the data field associated with the business index information and the frequency of data acquisition. The business index information is generated according to the business index information specified by the client, so that the client can be allowed to customize the business index information that can be obtained, which is conducive to improving the flexibility of the solution.
[0079] In some embodiments of the present application, based on the above technical solution, before the server performs data processing on the business data of the specified data field according to the data processing strategy corresponding to the specified business index information to obtain the specified business index information, it will construct a reference relationship between the data field and the business index information to obtain the corresponding relationship between the specified data field and the specified business index information; construct the data processing strategy of the specified business index information according to the corresponding relationship between the specified data field and the specified business index information; delete the business index information in the local database, and generate a data update strategy for the specified business index information to update the specified business index information in the local database. Specifically, the reference relationship between the data field and the business index information is constructed to indicate which data fields are needed for the business index information to be calculated. For example, the data fields located in the database are taken out and spliced using a function as the business fields to be calculated, and then arithmetic calculations are performed on the business fields to be calculated through a preset calculation program to obtain the business index information corresponding to the business data fields. Subsequently, the server constructs the data processing strategy of the specified business index information according to the corresponding relationship between the specified data field and the specified business index information. The data processing strategy is used to specify the business index information that is calculated based on the specified data field. The calculation rules are usually stored in the server, which also includes how to perform data preprocessing, such as data splicing, calculating the mean, etc. Subsequently, the server will delete the business index information in the local database to free up storage space, and generate a data update strategy for the specified business index information to specify the time and frequency of generating business index information according to the new data processing strategy, thereby updating the specified business index information in the local database. By constructing a reference relationship between the data field and the business index information and constructing a data processing strategy for the specified business index information, the data processing strategy in the local database is updated, and the data processing strategy can be updated according to the needs of the business party, which is conducive to the flexibility and diversity of the solution.
[0080] In the embodiments of the present application, it is also proposed to Figure 4 Other embodiments that refine the technical solution of the embodiment shown in the figure are as follows Figure 5 As shown, in an information acquisition method of an embodiment of the present application, the following steps may be included:
[0081] Step S510, obtaining business data of virtual resources.
[0082] Optionally, the implementation details of step S510 are the same as Figure 4 The step S410 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.
[0083] Step S520: generating business index information of the virtual resource according to the business data of the virtual resource, wherein the business index information includes at least one of business volume change information and business price change information of the virtual resource.
[0084] Optionally, the implementation details of step S520 are the same as Figure 4 The step S420 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.
[0085] Step S530: receiving a business index query request for the virtual resource from a business party, wherein the business index query request includes business party login information of the business party.
[0086] Optionally, the implementation details of step S530 are the same as Figure 4 The step S430 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.
[0087] Step S540, in response to the business index query request, sending the business party login information to the authentication server of the business party, so as to authenticate the business party login information through the authentication server and obtain an authentication result.
[0088] Optionally, the implementation details of step S540 are the same as Figure 4 The step S440 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.
[0089] Step S550: query multimedia information related to the virtual resource from a local database according to the business index query request, wherein the multimedia information in the local database is obtained from a multimedia data source.
[0090] Step S560: Send the multimedia information related to the virtual resource and the service index information to the service party according to the authentication result.
[0091] In this embodiment, in addition to providing the business index information, the server also provides multimedia information related to the virtual resources. These multimedia information are obtained from the multimedia data source and are stored in the local database. The business index query request will store the relevant request content requiring the server to provide multimedia information. The server will query the multimedia information related to the virtual resources from the local database according to the business index query request. The type of virtual resources can be specified in the business index query request, and the specific requirements for the multimedia information can also be specified in the business index query request. Subsequently, the server responds to the business index query request, the server packages the multimedia information and the business index information together, and then sends the multimedia information and the business index information related to the virtual resources to the business party. By providing multimedia information to the business party, the diversity of the information provided can be improved.
[0092] In an embodiment of the present application, the server first obtains the business data of the virtual resource, and generates the business index information of the virtual resource based on the business data. Subsequently, when the business party obtains the business index query request for the virtual resource, the business index information of the virtual resource is sent to the business party. In the scheme of the present application, the business index information is generated in advance and provided directly to the business party when the business party requests it. The off-chain system of the business party no longer needs to directly obtain the business data and store and process the business data, thereby reducing the computing resources consumed by the business party system in obtaining data and the difficulty of obtaining data, and improving the efficiency of obtaining business index information.
[0093] In some optional embodiments of the present application, in the process of obtaining the business data of the virtual resource, the server will periodically call the order information and business price information of the business server of the virtual resource as the business data of the virtual resource. Specifically, the smart contract is deployed in the blockchain in the server. This blockchain is usually a different blockchain from the blockchain used to conduct virtual resource business. The query interface provided by the business server of the virtual resource will be called in the smart contract to read the order information and business price information of the virtual resource. The business server of the virtual resource is usually the business server of the centralized platform. The data provided by the centralized platform is usually the business information that has been parsed and sorted by the platform itself, so directly connecting with the business server of the centralized platform is conducive to improving the integrity of the obtained business data.
[0094] In some optional embodiments of the present application, in the process of obtaining the business data of virtual resources from the business platform of virtual resources, the server monitors the on-chain address of the business blockchain of the virtual resources through the smart contract, then obtains the blockchain business of the virtual resources from the new on-chain block of the business blockchain, and finally reads the order information and business price information of the virtual resources in the blockchain business as the business data of the virtual resources. By directly obtaining business information from the blockchain through the smart contract, the accuracy of the obtained data can be improved.
[0095] In some optional embodiments of the present application, before querying the multimedia information related to the virtual resource from the local database according to the business index query request, the server will obtain the multimedia information related to the virtual resource from the multimedia data source of the virtual resource; and save the multimedia information related to the virtual resource to the local database. Specifically, a synchronization service for synchronizing multimedia information will be deployed in the server, and the synchronization service will synchronize with the multimedia data source. The multimedia data source is usually an external information platform, and the synchronization service collects multimedia information related to the virtual resource from the external information platform and saves it to the local database for subsequent use. By collecting multimedia information in advance, the efficiency of sending business index information is avoided from being affected by the retrieval of multimedia information related to virtual resources, thereby improving the response speed to business index query requests.
[0096] In the embodiments of the present application, it is also proposed to Figure 4 In this embodiment, the business data includes at least one business order for a business day, specifically, Figure 6 As shown, in an information acquisition method of an embodiment of the present application, the following steps may be included:
[0097] Step S610: Acquire business data of virtual resources.
[0098] Optionally, the implementation details of step S610 are the same as Figure 4 The step S410 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.
[0099] Step S620: generating a price change curve of the virtual resource on each business day according to the business price in the business order corresponding to each business day in the business data of the virtual resource.
[0100] Step S630 , generating a business volume variation curve of the virtual resource on each business day according to the business volume in the business order corresponding to each business day in the business data of the virtual resource.
[0101] Step S640: Save the price change curve and the business volume change curve in a local database as business index information of the virtual resource, wherein the business index information includes at least one of business volume change information and business price change information of the virtual resource.
[0102] Specifically, in this embodiment, the server generates a price change curve of the virtual resource on each business day according to the business price in the business order corresponding to each business day in the business data of the virtual resource. The price change curve can specifically be a transaction price or a quotation and other types of prices, such as an average price or a maximum price. The server also generates a business volume change curve of the virtual resource on each business day according to the business volume in the business order corresponding to each business day in the business data of the virtual resource. Similar to the price change curve, it can be a transaction volume or a listed business volume and other types of business volume, such as a daily average business volume or a total business volume. After generating the required information, the server saves the price change curve and the business volume change curve to a local database as the business index information of the virtual resource. By pre-generating various types of curves contained in the business index information and saving them in a local database, it is not necessary to generate the business index information when the business index information needs to be provided, thereby facilitating the improvement of the response speed to the business index query request.
[0103] Step S650: receiving a business index query request for the virtual resource from a business party, wherein the business index query request includes business party login information of the business party.
[0104] Optionally, the implementation details of step S650 are the same as Figure 4 The step S430 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.
[0105] Step S660, in response to the business index query request, sending the business party login information to the authentication server of the business party, so as to authenticate the business party login information through the authentication server and obtain an authentication result.
[0106] Optionally, the implementation details of step S660 are the same as Figure 4 The step S440 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.
[0107] Step S670: Send the service index information of the virtual resource to the service party according to the authentication result.
[0108] Optionally, the implementation details of step S670 are the same as Figure 4 The step S450 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.
[0109] In an embodiment of the present application, the server first obtains the business data of the virtual resource, and generates the business index information of the virtual resource based on the business data. Subsequently, when the business party obtains the business index query request for the virtual resource, the business index information of the virtual resource is sent to the business party. In the scheme of the present application, the business index information is generated in advance and provided directly to the business party when the business party requests it. The off-chain system of the business party no longer needs to directly obtain the business data and store and process the business data, thereby reducing the computing resources consumed by the business party system in obtaining data and the difficulty of obtaining data, and improving the efficiency of obtaining business index information.
[0110] In some optional embodiments of the present application, in the process of obtaining the business data of the virtual resource, the server will periodically call the order information and business price information of the business server of the virtual resource as the business data of the virtual resource. Specifically, the smart contract is deployed in the blockchain in the server. This blockchain is usually a different blockchain from the blockchain used to conduct virtual resource business. The query interface provided by the business server of the virtual resource will be called in the smart contract to read the order information and business price information of the virtual resource. The business server of the virtual resource is usually the business server of the centralized platform. The data provided by the centralized platform is usually the business information that has been parsed and sorted by the platform itself, so directly connecting with the business server of the centralized platform is conducive to improving the integrity of the obtained business data.
[0111] In some optional embodiments of the present application, in the process of obtaining the business data of virtual resources from the business platform of virtual resources, the server monitors the on-chain address of the business blockchain of the virtual resources through the smart contract, then obtains the blockchain business of the virtual resources from the new on-chain block of the business blockchain, and finally reads the order information and business price information of the virtual resources in the blockchain business as the business data of the virtual resources. By directly obtaining business information from the blockchain through the smart contract, the accuracy of the obtained data can be improved.
[0112] In some optional embodiments of the present application, in the process of generating the price change curve of the virtual resource on each business day according to the business price in the business order corresponding to each business day in the business data of the virtual resource, the server determines at least one of the starting price, ending price, highest price and lowest price of each business day according to the business price of the business order corresponding to each business day in the business data of the virtual resource, and then generates the price change curve of the virtual resource on each business day according to at least one of the starting price, ending price, highest price and lowest price of each business day. The server generates the price change curve for each business day according to the business price in the business order, and provides a specific method for generating the price change curve, which is conducive to the operability of the solution.
[0113] In some optional embodiments of the present application, in the process of generating the business volume change curve of the virtual resource on each business day according to the business volume in the business order corresponding to each business day in the business data of the virtual resource, the server will determine the time-sharing business volume within the preset time period in each business day according to the business volume of the business order corresponding to each business day in the business data of the virtual resource, and then generate the business volume change curve of the virtual resource on each business day according to the time-sharing business volume within the preset time period in each business day. Specifically, the preset time period is usually a time period within a business day, such as a time period every 5 minutes or every 10 minutes. Taking 5 minutes as an example, the server will count the business volume of the virtual resource being served within every 5 minutes. As described above, the business volume can be the transaction volume, that is, the business volume of the actual business process, or the listing business volume, that is, the amount of virtual resources sold by the seller in the business platform but not necessarily purchased by the buyer. The server generates the business volume change curve of each business day through the business volume of the business order in the business data, and provides a specific method for generating the business volume change curve, which is conducive to the operability of the solution.
[0114] The following is an introduction to the information acquisition method in this application with specific examples. Figure 7 , Figure 7 This is an exemplary structural diagram of the application of the business index information acquisition solution in the blockchain side server in the embodiment of this application. Figure 7As shown in the figure, the blockchain side includes services for performing various functions, including access services, market services, consulting services, market asynchronous acquisition services, and consulting synchronization services. Outside the blockchain side, the services on the blockchain side are connected with the centralized platform and decentralized business for providing business information, the database for storing data, and the external information platform for providing information. The blockchain side also communicates with the market page of the business party and the authentication service. Based on the above structure, the process of the server providing business index information is as follows: First, the Tencent blockchain side will deploy business market asynchronous collection services and market information services. The asynchronous task service connects to the centralized platform and monitors the chain address of the decentralized platform on the chain to aggregate and store the market business data on and off the chain in the database; the market information service will continue to crawl the mainstream blockchain media platforms at home and abroad, obtain articles of different virtual resource businesses, and store them in the database. The business market asynchronous task obtains the order and quotation data of the centralized and decentralized platforms from the database, generates unified time-sharing and K-line data of the business market, and stores them in the database. When the business party needs to access the business market service, the business party needs to embed the business market page in its page and notify the Tencent blockchain market service administrator to configure the corresponding information in the access service gateway, so that the business market can be quickly accessed. When the user browses the business market page in the business party's application, the front-end page request will first be forwarded by the business party's network proxy server to the access service on the blockchain side. The access service on the blockchain side parses the user's login information (because the current user is a user on the business side, it is necessary to authenticate the user's login information in the background of the business party), request the business party's user authentication interface, and verify the user's relevant rights and interests information (whether the user is logged in, whether the user has the right to view the market page information). After the gateway service verifies the user's login information, it forwards the market request to the background market service or information service, and finally returns the business market and information data.
[0115] It should be noted that although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0116] The following introduces the device implementation of the present application, which can be used to execute the information acquisition method in the above embodiments of the present application. Figure 8 The block diagram of the information acquisition device in the embodiment of the present application is schematically shown. Figure 8 As shown, the information acquisition device 800 may mainly include:
[0117] A data acquisition module 810 is configured to acquire business data of virtual resources;
[0118] An information generation module 820 is configured to generate business index information of the virtual resource according to the business data of the virtual resource, wherein the business index information includes at least one of business volume change information and business price change information of the virtual resource;
[0119] A request acquisition module 830 is configured to receive a business index query request from a business party for the virtual resource, wherein the business index query request includes business party login information of the business party;
[0120] The authentication module 840 is configured to send the business party login information to the authentication server of the business party in response to the business index query request, so as to authenticate the business party login information through the authentication server and obtain an authentication result;
[0121] The information sending module 850 is configured to send the service index information of the virtual resource to the service party according to the authentication result.
[0122] In some embodiments of the present application, based on the above technical solution, the data acquisition module 810 is also configured to: query the multimedia information related to the virtual resources from the local database according to the business index query request, wherein the multimedia information in the local database is obtained from the multimedia data source; the information sending module 850 is also configured to: send the multimedia information related to the virtual resources and the business index information to the business party according to the authentication result.
[0123] In some embodiments of the present application, based on the above technical solution, the data acquisition module 810 is further configured to: acquire multimedia information related to the virtual resource from the multimedia data source of the virtual resource; and save the multimedia information related to the virtual resource into the local database.
[0124] In some embodiments of the present application, based on the above technical solution, the information generation module 820 is specifically configured as follows: generating a price change curve of the virtual resource on each business day according to the business price in the business order corresponding to each business day in the business data of the virtual resource; generating a business volume change curve of the virtual resource on each business day according to the business volume in the business order corresponding to each business day in the business data of the virtual resource; and saving the price change curve and the business volume change curve in a local database as the business index information of the virtual resource.
[0125] In some embodiments of the present application, based on the above technical solution, the information generation module 820 is also configured to: determine at least one of the starting price, ending price, maximum price and minimum price of each business day according to the business price of the business order corresponding to each business day in the business data of the virtual resource; generate a price change curve of the virtual resource on each business day according to at least one of the starting price, ending price, maximum price and minimum price of each business day.
[0126] In some embodiments of the present application, based on the above technical solution, the information generation module 820 is also configured to: determine the time-sharing business volume within a preset time period in each business day according to the business volume of the business orders corresponding to each business day in the business data of the virtual resource; and generate a business volume change curve of the virtual resource on each business day according to the time-sharing business volume within the preset time period in each business day.
[0127] In some embodiments of the present application, based on the above technical solution, the business index query request includes business party login information; the information sending module 850 is specifically configured to: send the business party login information to the authentication server of the business party to authenticate the business party login information through the authentication server; receive the authentication result from the authentication server; if the authentication result is passed, query the business index information of the virtual resource from the local database and send it to the business party, wherein the local database stores the business index information of the virtual resource.
[0128] In some embodiments of the present application, based on the above technical solution, the request acquisition module 830 is also configured to: receive configuration information sent by the business party, the configuration information including the access information of the authentication server; the information sending module 850 is also configured to: parse the business party login information from the business index query request according to the configuration information; and send the business party login information to the authentication server according to the access information of the authentication server in the configuration information.
[0129] In some embodiments of the present application, based on the above technical solution, the data acquisition module 810 is specifically configured to: periodically call the order information and service price information of the service server of the virtual resource as the service data of the virtual resource.
[0130] In some embodiments of the present application, based on the above technical solution, the data acquisition module 810 is specifically configured as follows: monitoring the on-chain address of the business blockchain of the virtual resource through a smart contract; obtaining the blockchain business of the virtual resource from the newly on-chain block of the business blockchain; reading the order information and business price information of the virtual resource in the blockchain business as the business data of the virtual resource.
[0131] In some embodiments of the present application, based on the above technical solution, the information sending module 850 is specifically configured as follows: when the authentication result is that the authentication is passed, the business index information specified in the business index query request is queried from the local database; if the business index information corresponding to the business index query request does not exist in the local database, the specified data field associated with the business index information specified in the business index query request is obtained; the business data of the specified data field is processed according to the data processing strategy corresponding to the specified business index information to obtain the specified business index information; the specified business index information is sent to the business party, and the data update strategy for the specified business index information is updated in the local database.
[0132] In some embodiments of the present application, based on the above technical solution, the information sending module 850 is also configured to: construct a reference relationship between the data field and the business index information to obtain the corresponding relationship between the specified data field and the specified business index information; construct a data processing strategy for the specified business index information according to the corresponding relationship between the specified data field and the specified business index information; delete the business index information in the local database, and generate a data update strategy for the specified business index information to update the specified business index information in the local database.
[0133] It should be noted that the apparatus provided in the above embodiment and the method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module performs the operation has been described in detail in the method embodiment and will not be repeated here.
[0134] Fig. 9 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0135] It should be noted that Fig. 9 The computer system 900 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0136] like Fig. 9As shown, the computer system 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 902 or the program loaded from the storage part 908 to the random access memory (RAM) 903. In the RAM 903, various programs and data required for system operation are also stored. The CPU 901, the ROM 902 and the RAM 903 are connected to each other through a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0137] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed so that a computer program read therefrom is installed into the storage section 908 as needed.
[0138] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program includes a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 909, and / or installed from a removable medium 911. When the computer program is executed by a central processing unit (CPU) 901, various functions defined in the system of the present application are executed.
[0139] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0140] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0141] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0142] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0143] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application.
[0144] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for obtaining information, characterized in that: include: Obtain business data of virtual resources; Generate business index information of the virtual resource according to the business data of the virtual resource, wherein the business index information includes at least one of business volume change information and business price change information of the virtual resource; Receiving a business index query request for the virtual resource from a business party, wherein the business index query request includes business party login information of the business party; In response to the business index query request, sending the business party login information to the authentication server of the business party, so as to authenticate the business party login information through the authentication server and obtain an authentication result; According to the authentication result, the service index information of the virtual resource is sent to the service party.
2. The information acquisition method according to claim 1, characterized in that: After receiving the service index query request of the virtual resource from the service party, the method further includes: According to the business index query request, query the multimedia information related to the virtual resource from the local database, wherein the multimedia information in the local database is obtained from a multimedia data source; The sending the service index information of the virtual resource to the service party according to the authentication result includes: According to the authentication result, the multimedia information related to the virtual resource and the service index information are sent to the service party.
3. The information acquisition method according to claim 2, characterized in that: Before querying the multimedia information related to the virtual resource from the local database according to the business index query request, the method further includes: Acquire multimedia information related to the virtual resource from a multimedia data source of the virtual resource; The multimedia information related to the virtual resource is saved in the local database.
4. The information acquisition method according to claim 1, characterized in that: The business data includes at least one business order for a business day; and generating business index information of the virtual resource according to the business data of the virtual resource includes: Generate a price change curve of the virtual resource on each business day according to the business price in the business order corresponding to each business day in the business data of the virtual resource; Generate a business volume change curve of the virtual resource on each business day according to the business volume in the business order corresponding to each business day in the business data of the virtual resource; The price change curve and the business volume change curve are saved in a local database as business index information of the virtual resource.
5. The information acquisition method according to claim 4, characterized in that: The step of generating a price change curve of the virtual resource on each business day according to the business price in the business order corresponding to each business day in the business data of the virtual resource comprises: Determine at least one of a starting price, an ending price, a maximum price and a minimum price for each business day according to the business price of the business order corresponding to each business day in the business data of the virtual resource; A price change curve of the virtual resource on each business day is generated according to at least one of the starting price, the ending price, the highest price and the lowest price on each business day.
6. The information acquisition method according to claim 4, characterized in that: The generating, according to the business volume in the business order corresponding to each business day in the business data of the virtual resource, a business volume change curve of the virtual resource on each business day comprises: Determine the time-sharing business volume within a preset time period in each business day according to the business volume of the business orders corresponding to each business day in the business data of the virtual resource; A business volume variation curve of the virtual resource on each business day is generated according to the time-sharing business volume within a preset time period on each business day.
7. The information acquisition method according to claim 1, characterized in that: Before receiving a service index query request from a service party for the virtual resource, the method further includes: Receiving configuration information sent by the business party, wherein the configuration information includes access information of the authentication server; The sending the business party login information to the authentication server of the business party includes: Parsing the business party login information from the business index query request according to the configuration information; The business party login information is sent to the authentication server according to the access information of the authentication server in the configuration information.
8. The information acquisition method according to claim 1, characterized in that: The obtaining of the business data of the virtual resource includes: The order information and service price information of the service server of the virtual resource are periodically called as the service data of the virtual resource.
9. The information acquisition method according to claim 1, characterized in that: The obtaining of the business data of the virtual resource includes: Monitoring the on-chain address of the business blockchain of the virtual resource through a smart contract; Obtaining the blockchain business of the virtual resource from the newly added block of the business blockchain; The order information and business price information of the virtual resources in the blockchain business are read as the business data of the virtual resources.
10. The information acquisition method according to claim 1, characterized in that: The sending the service index information of the virtual resource to the service party according to the authentication result includes: When the authentication result is that the authentication is passed, querying the business index information specified in the business index query request from the local database; If the business index information corresponding to the business index query request does not exist in the local database, obtaining a specified data field associated with the business index information specified in the business index query request; Performing data processing on the business data of the specified data field according to the data processing strategy corresponding to the specified business index information to obtain the specified business index information; The specified business index information is sent to the business party, and a data update strategy for the specified business index information is updated in the local database.
11. The information acquisition method according to claim 10, characterized in that: Before performing data processing on the business data of the specified data field according to the data processing strategy corresponding to the specified business index information to obtain the specified business index information, the method further includes: Constructing a reference relationship between a data field and the business index information to obtain a corresponding relationship between the specified data field and the specified business index information; Constructing a data processing strategy for the specified business index information according to the corresponding relationship between the specified data field and the specified business index information; The determined business index information in the local database is deleted, and a data update policy for the specified business index information is generated to update the specified business index information in the local database.
12. An information acquisition device, characterized in that: include: A data acquisition module configured to acquire business data of virtual resources; An information generation module, configured to generate business index information of the virtual resource according to the business data of the virtual resource, wherein the business index information includes at least one of business volume change information and business price change information of the virtual resource; A request acquisition module, configured to receive a business index query request from a business party for the virtual resource, wherein the business index query request includes business party login information of the business party; an authentication module, configured to send the business party login information to the authentication server of the business party in response to the business index query request, so as to authenticate the business party login information through the authentication server and obtain an authentication result; The information sending module is configured to send the business index information of the virtual resource to the business party according to the authentication result.
13. An electronic device, characterized in that: include: processor; A memory, configured to store executable instructions of the processor; The processor is configured to execute the information acquisition method described in any one of claims 1 to 11 by executing the executable instructions.
14. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the information acquisition method according to any one of claims 1 to 11 is implemented.
15. A computer program product, characterized in that The computer program product includes a computer program, which is stored in a computer-readable storage medium. The processor of the electronic device reads and executes the computer program from the computer-readable storage medium, so that the electronic device executes the information acquisition method as claimed in any one of claims 1 to 11.