Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided an embodiment of a method that may be performed by an embodiment of the apparatus of the present application, it being noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
According to the embodiment of the invention, the method for displaying the event result is provided.
Optionally, in this embodiment, the method for displaying the event result may be applied to a hardware environment formed by theterminal 102 and theserver 104 shown in fig. 1. As shown in fig. 1, aterminal 102 is connected to aserver 104 via a network including, but not limited to: theterminal 102 may be a mobile phone terminal, or may also be a PC terminal, a notebook terminal, or a tablet terminal.
The main operating principles of the hardware environment system shown in fig. 1 are: a first application in theterminal 102 requests theserver 104 to query a first event execution result obtained by executing a first event on a first event platform by a second account. The first application sending the query request logs in by using the first account. The second account is an account having an association with the first account in the first application. Theserver 104 acquires a second account from the first event platform to execute a first event, obtains a first event execution result, and sends the first event execution result in theserver 104 to the first application logged in through the first account after the first application sends a query request.
According to an embodiment of the present invention, a method for displaying an event result is provided, where the method for displaying an event result may be executed by a client of a first application. As shown in fig. 2, the method includes:
step S202, sending, by a client of a first application, a query request for querying a first event execution result of a second account of the first application to a server, where the client logs in by using the first account, the second account has an association relationship with the first account, the first event execution result of the second account is in a public state, and the public state is used to indicate that the first account is allowed to view the first event execution result obtained by the second account executing the first event in a first event platform.
The client of the first application is a client installed in theterminal 102 and sends a query request to theserver 104. The client logs in by using a first account, the second account is an account which has an association relationship with the first account in the first application, and the second account is displayed in the client which logs in by using the first account and is even a communication application, for example, the second account and the first account are in a friend relationship in the first application, or the second account and the first account participate in a member of a certain activity in the first application together. The public state of the second account refers to a first event execution result obtained by the first account being capable of viewing, at the client of the first application, the first event executed by the second account in the first event platform. That is, the second account authorizes the first account to view the first event execution result at the client of the first application. The first event platform and the client of the first application can realize different functions, and the first event platform can be two platforms which are completely independent from the first application, or the first event platform and the first application can be the same platform. When the first application and the first event platform are the same platform, the platform can simultaneously realize the functions of the first application and the functions of the first event platform. The first event platform may also be a function in the first application, e.g. as a functional plug-in to the first application.
Step S204, receiving the first event execution result sent by the server in response to the query request.
The server inquires a first event execution result obtained by executing the first event in the first event platform by the second account, and sends the first event execution result to the client. The result of the first event execution may be calculated by the server or provided by the first event platform.
Step S206, the received first event execution result is displayed in the client of the first application.
By the embodiment, a first event execution result obtained by the second account executing the first event in the first event platform can be displayed in the client of the first application, so that the technical effect of cross-platform viewing of the first event execution result obtained by the second account having the association relation with the first account executing the first event on the first event platform is realized, and the technical problem that event results obtained by the account having the association relation in another platform cannot be viewed from one platform in the prior art is solved. Because the first account can only view the first event execution result of the second account when the first event execution result of the second account is in a public state, the client of the first application displays the first event execution result and simultaneously protects the privacy of the second account, thereby improving the privacy security of the second account in executing the first event on the first event platform.
Optionally, the second account includes a plurality of accounts, and presenting, in the client of the first application, the received execution result of the first event includes: and arranging and displaying each account in the plurality of accounts and the first event execution result corresponding to each account in the client according to the changed size sequence of the event resource corresponding to the first event indicated by the first event execution result.
The client of the first application logged in by using the first account can display the first event execution results of the multiple accounts, and the first event execution results of the multiple accounts are all in a public state. The first event execution result indicates the size of the change of the event resource corresponding to the first event, and therefore, the event resources are arranged and displayed in the client according to the size sequence of the change of the event resource in the client, specifically, the event resources can be arranged and displayed in the sequence from large to small or in the sequence from small to large. When the change of the event resources corresponding to the first event indicated by the first event execution result is displayed in the sequence, the change range of the event resources indicated by the first event execution result corresponding to each account in the plurality of accounts can be conveniently embodied.
In a specific example, the client of the first application is an instant messaging client (QQ, MSN, to-coming, rice chat, etc.), a social client (e.g., microblog), a game client (e.g., network game), an instrument client (e.g., popular comment), and a financial payment client (e.g., pay treasure, money and money), the first event platform is a securities trader platform (e.g., recruiter securities, interest securities, etc.), the first event is buying and selling stocks (e.g., fund, future securities, etc.), and the execution result of the first event is an profit-loss ratio of buying and selling stocks by the second account. The first event platform can also be an e-commerce platform, a game platform and the like, and the corresponding first event execution results can also be transaction amount on the e-commerce platform and game credits on the game platform and the like respectively.
In the WeChat client, the second account is a friend of the first account and is displayed in the WeChat client logged in by using the first account. The second account number is a stock buying and selling account on the securities trader platform, and the second account number is a profit-loss ratio that allows the first account number in a friend relationship with the second account number to view the transactions on the securities trader platform. Then, when the first account requests to view the profit-loss ratio of the second account, the profit-loss ratio of the second account for buying and selling stocks is displayed in the client which logs in by using the first account.
In the game client, the second account is a friend of the first account and is displayed on the game client logged in by using the first account. The second account number is a transaction amount that allows the first account number in a friend relationship to view transactions conducted on the e-commerce platform. Then, when the first account number requests to view the transaction amount of the second account number, the transaction amount of the second account number is displayed in the client logged in by using the first account number.
In the microblog client, the second account is a friend of the first account and is displayed on the microblog client logged in by using the first account. And the second account performs game operation on the game client to obtain game credits. The second account allows the first account with which it is a friend to view the game credits that it obtained on the game client. Then, when the first account requests to view the game credits of the second account, the game credits of the second account are displayed in the microblog client logged in by using the first account.
When the first application and the first event platform are used as a client, the first event execution result can be displayed on the first application or the first event platform because the calculation of the profit-loss ratio is completed in the server.
In the example that the first application client is a WeChat client and the first event platform is a dealer platform, when the second accounts are multiple accounts and all have a friend relationship with the first account, and the execution result of the first event of each account is in a public state, when the first account requests to view the profit-loss ratio of the friend buying and selling stocks, the profit-loss ratios of the multiple accounts are displayed in the client logged in by using the first account, and are displayed in an arrangement manner according to the profit-loss ratio from large to small or from small to large. The first account number may be selected to be displayed in a descending order or a descending order.
In the example that the first application client is a game client and the first event platform is an e-commerce platform, when the execution results of the first events corresponding to a plurality of accounts of which the first account is in a friend relationship are all in a public state, the first account can request to check the transaction amount of the friend in the e-commerce platform. The transaction amounts of the account numbers are displayed in the game client according to a certain arrangement sequence.
In the example that the first application client is a microblog client and the first event platform is a game client, when the execution results of the first events corresponding to the accounts of which the first account is a friend relationship are all in a public state, the first account can request to view game credits acquired by the friends in the game client. The game integrals of the account numbers are displayed in the microblog client according to a certain arrangement sequence.
Optionally, presenting, in the client of the first application, the received execution result of the first event includes: and updating a first event execution result obtained by the second account executing the first event in the first event platform in a client of the first application within a first time period when the first event platform allows the second account to execute the first event and/or within a second time period with a preset time relationship with the first time period.
Since the first event execution result obtained by the second account executing the first event in the first event platform changes with the action of the first event executed by the second account on the first event platform, the first event execution result needs to be updated in the client of the first application in time.
In a specific example, the first event platform allows the second account to execute the first event for a first period of time within the opening time for which a stock exchange is allowed; the second time period having a preset time relationship with the first time period is a time period before the stock exchange is opened or a time period after the stock exchange is stopped. The duration of this time period may be half an hour or one hour.
The frequency of updating the execution result of the first event may be updated every half hour or every hour, and may also be adjusted according to the fluctuation frequency of the stock market, which is not specifically limited herein. The first event execution result of the second account in the first event platform changes more in one hour after the market break, so the updating frequency in the time period can be higher than that when the stock market is opened.
Optionally, presenting, in the client of the first application, the received execution result of the first event includes: and displaying a first event execution result and a second event execution result in a client of the first application, wherein the second event execution result is an event execution result obtained by a first account executing a second event on a second event platform, and the first account is set to allow the second account to view the second event execution result obtained by the first account executing the second event on the second event platform.
When a client of a first application logged in by using a first account views a first event execution result of a second account, a second event execution result obtained by the first account executing a second event on a second event platform can allow or prohibit the second account from viewing. When the first account number is set to allow the second account number to view the second event execution result, the second event execution result of the first account number can be displayed on the client side of the first application logged in by using the second account number to participate in ranking. And if the first account is not set to allow the second account to view the second event execution result, the second event execution result of the first account is not displayed in the client logged in by other accounts.
The client of the first application which uses the first account to log in displays a first event execution result of a second account which has a relationship with the first account, the client of the first application which uses the second account to log in displays a first event execution result of an account which has a relationship with the second account, and the second account which has a relationship with the first account and the account which has a relationship with the second account contain different accounts.
Optionally, the query request carries a query time period, and sending, by the client of the first application, the query request for querying the first event execution result of the second account of the first application to the server includes: and sending a query request for querying a first event execution result obtained by executing the first event by a second account of the first application within the query time period to the server through the client of the first application.
The first event execution result in a certain time period may be presented in the client logged in by using the first account, for example, the ranking of the first event execution result in the present week, the ranking of the first event execution result in the present month, and the ranking of the first event execution result in the year. Historical first event execution results may also be exposed in the client, e.g., ranking of first event execution results for the last week, month, and quarter, etc.
Optionally, after presenting the received first event execution result in the client of the first application, the method further includes: detecting a click operation of clicking a first event execution result; and after the click operation is detected, displaying a first event object of a first event executed by a second account on the first event platform in the client, wherein the first event execution result is subjected to the click operation under the condition that the second account is set to allow the first account to view the first event object.
And if the second account allows the first account to view the first event object, displaying the first event object in the client after the first event execution result of the second account receives the click operation. That is, a client logged in using a first account may display the first event execution result and not equal to simultaneously presenting the first event object. It can only be exposed on the client if the first event object is also allowed to be viewed by the first account number.
In one specific example, the first event platform is a dealer platform (e.g., a recruiter security, a prosperous security, etc.), the first event is a buying and selling stock (which may also be a fund, a future, etc.), and the first event object is a name of the stock that is bought and sold by the second account.
Through the embodiment, the first event execution result of the second account is displayed on the client logged in by using the first account, the first event execution results of a plurality of accounts in the second account can be displayed in an arrayed manner, and further, the first event object can be displayed, so that the technical effect of cross-platform viewing of the first event execution result obtained by executing the first event on the first event platform by the second account having the association relationship with the first account is realized, and the technical problem that the event result obtained by executing the event on the other platform by the account having the association relationship cannot be viewed from one platform in the prior art is solved.
The present embodiment will be described below with reference to fig. 3.
Fig. 3 shows a client logging in a first application with an account of "user 1" (i.e. a first account), where "user 2" and "user 3" etc. are shown as names of a plurality of accounts (i.e. second accounts) that are in a friend relationship with the account of "user 1". Fig. 3 shows the profit-loss list of the week, i.e., the profit-loss ratio of the accounts of the week (i.e., the first event execution result). And displaying the login account number 'user 1' of the client and the profit-loss ratio of the account number at the top, and then arranging the display according to the profit-loss ratio from high to low. As can be seen from fig. 3, the client displays not only the profit-loss ratio, the rank, and the name of the second account number, but also the number of praise (such as the shape of a hexagon and the numbers below in the figure), which enables social interaction between the accounts having the association relationship.
If the first event object of the second account is allowed to be displayed in the client, the first event object can be displayed when the click operation acts on the second account. For example, the name "user 3" in fig. 3 is clicked, and the first event object of "user 3" is allowed to be presented and viewed, the first event object is presented on the client (not shown in the figure).
The "local week ranking list" shown in fig. 3 may also be a "quarterly ranking list", or a "previous month ranking list", and the like, which are not illustrated one by one.
Example 2
According to the embodiment of the invention, the method for displaying the event result is provided, and can be executed by the server. As shown in fig. 4, the method includes:
step S402, receiving a query request sent by a client of a first application, where the query request is used to request to query a first event execution result of a second account in the client of the first application, where the client logs in by using the first account, and the second account has an association relationship with the first account.
The server receives the query request, and stores a first event execution result of the second account in the server, where the server may be a server corresponding to the client of the first application, may be a server of a first event platform where the second account executes the first event, and may also be a third-party server that is not responsible for the instant messaging service and the first event. The server is connected to both the client of the first application and the first event platform, and is capable of acquiring data (e.g., a first event execution result) from the first event platform and then transmitting the first event execution result to the client of the first application.
The client logs in by using a first account, the second account is an account which has an association relationship with the first account in the first application, and the second account is displayed in the client which logs in by using the first account and is even a communication application, for example, the second account and the first account are in a friend relationship in the first application, or the second account and the first account participate in a member of a certain activity in the first application together. The public state of the second account refers to a first event execution result obtained by the first account being capable of viewing, at the client of the first application, the first event executed by the second account in the first event platform. That is, the second account authorizes the first account to view the first event execution result at the client of the first application. The first event platform and the client of the first application realize different functions, and the first event platform can be two platforms which are completely independent from the first application, or the first event platform and the first application can be the same platform. When the first application and the first event platform are the same platform, the platform can simultaneously realize the functions of the first application and the functions of the first event platform. The first event platform may also be a function in the first application, e.g. as a functional plug-in to the first application.
Step S404, detecting whether the second account is in a public state, where the public state is used to indicate that the second account allows the first account to view a first event execution result obtained by the second account executing the first event in the first event platform.
Step S406, sending the first event execution result to the client when the second account is in the public state, so as to display the first event execution result in the client of the first application.
The server stores a first event execution result of the second account, and when the second account is in a public state, the server sends the first event execution result requested by the first account to the client so as to protect the privacy and the account security of the second account. If the second account is not in the open state, the first event execution result will not be sent even if the first event execution result is stored in the server.
By the embodiment, a first event execution result obtained by the second account executing the first event in the first event platform can be displayed in the client of the first application, so that the technical effect of cross-platform viewing of the first event execution result obtained by the second account having the association relation with the first account executing the first event on the first event platform is realized, and the technical problem that event results obtained by the account having the association relation in another platform cannot be viewed from one platform in the prior art is solved. The server sends the first event execution result to the client of the first application logged in by using the first account only when the first event execution result of the second account is in a public state, so that the privacy of the second account is protected while the client of the first application displays the first event execution result, and the privacy security of the second account in the first event platform in executing the first event is improved.
It should be noted that, when the first application and the first event platform are used as one client, since the calculation of the profit-loss ratio is performed in the server, the result of the execution of the first event may be displayed on the first application or the first event platform.
Optionally, before issuing the first event execution result to the client, the method further includes: acquiring an execution record of a first event executed by a second account in a client of a first application, wherein the second account has an association relation with the first account, and the execution record and the event resource change of the second account are acquired on a first event platform; and calculating a first event execution result of the second account executing the first event according to the execution record and the event resource change.
In a specific example, the execution record of the first event is a transaction record in the dealer platform, and the event resource change of the second account is a profit or loss value in the transaction. And calculating the profit-loss ratio of the second account according to the transaction record and the profit-loss value of each transaction.
It should be noted that, in this embodiment, the first event execution result is calculated in the domain of the server, the first event execution result is stored in the cache outside the domain of the server, and the first event execution result is extracted from the cache outside the domain and sent to the client of the first application. The domain limits the access authority, and data in the domain cannot be accessed by the client, so that interaction with the first event platform and the client of instant messaging is isolated, data and information required for calculating the execution result of the first event in the domain cannot be stored outside the domain, and the client of the first application cannot acquire the information of the second account, so that the information security of the second account acquired in the first event platform is guaranteed.
As shown in fig. 5, the server includes an intra-domain and an extra-domain, the intra-domain includes a logical operation layer for calculating the execution result of the first event, and the extra-domain includes an application layer for communicating with the client (which may also be a web page). In a specific example, the logical operation layer in the domain periodically (for example, updates the ranking list every half hour) acquires the relationship chain of the user (i.e., the relationship chain of the first account, such as the second account having an association relationship with the first account) and the basic information of the user (the basic information of the first account), calculates the profit-loss ratio of the second account, and records the approval, wherein the approved data may be stored in the database. And the logic operation layer sends the calculated arrangement display result to a cache of the server, the cache sends the arrangement display result to an application layer of the server, and the application layer sends the arrangement display result to a web page (a client of the first account) for displaying.
Before this, the authorization information of the second account (i.e. allowing the first account to view the execution result of the first event) is obtained and forwarded to the database for saving through the application layer. The application layer can also receive ranking list settings (such as a display period) sent by the client, and send the ranking list setting information to a ranking list aggregation module of the logical operation layer for calculating the ranking display order. And receiving data of the client through a data interface of an application layer outside the domain, and forwarding the data to a logic operation layer in the domain for calculation so as to ensure the information security of the second account.
Specifically, calculating a first event execution result of the second account executing the first event according to the execution record and the event resource change includes: the first event execution result a is calculated in the following mannerj:
Wherein, PijIndicating that the event resource corresponding to the first event of the second account changes in the ith sub-period of the jth period, CjIndicating the second account in the j periodThe sum of the original event resource and the added event resource of the number.
For example, the present week profit-loss ratio is calculated. P
ijRepresenting the profit and loss of the second account on the ith day of the week (namely, the event resource change corresponding to the first event), wherein the profit and loss of each day can be represented by the difference between the profit and loss after closing the disk and the profit and loss before opening the disk;
representing the total profit and loss in the week; c
jRepresents the cost of the week (i.e., the sum of the original event resources and the added event resources of the second account number), i.e., the sum of the market value taken prior to the first trading day of the week and the inflow cost of the week. When calculating the present week profit-loss ratio, P
1jFor profit or loss on the first trade day of the week, P
njFor profit or loss of the last trade day of the week, A
jThe profit-loss ratio of the week. When calculating the monthly profit-loss ratio, P
1jFor profit or loss on the first trade day of this month, P
njFor profit or loss of the last trade day of this month, C
jThe cost of this month, i.e. the sum of the market value before the first trade day of this month and the inflow cost of this week, is also expressed accordingly.
Optionally, calculating a first event execution result of the second account executing the first event according to the execution record and the event resource change includes: the first event execution result a is calculated in the following mannerj:
Wherein M isnjRepresents the total event resource, M, of the second account in the last sub-period n of the jth period1jRepresents the total event resource S of the second account in the 1 st sub-period of the j period before the second account executes the first eventjRepresenting an event resource obtained by the second account executing the first event in the jth cycle, BjRepresents the event resource consumed by the second account to execute the first event in the jth period, CjRepresenting the original event resource and the added of the second account in the j periodSum of event resources.
In the example of calculating the win-loss ratio, MnjThe total market value (i.e. total event resources) of the second account number after the last trading day of the week is recorded, M1jTotal market value of the second account number before opening for the first trading day of the week, SjThe amount of money to be gained by selling shares in the week for the second account, BjIndicating the amount spent by the second account to buy stock in this week. CjIndicating the weekly inflow cost.
According to the change of the query time period carried by the query request, the calculation period can be adjusted, so that a first event execution result corresponding to the query time period carried by the query request is obtained. The adjustment method is the same as the adjustment method of the period, and is not described again.
In the above embodiment, the circulation inflow cost CjIt can be calculated according to the following rules:
calculating according to the sequence of transaction time, and if the sale transaction is executed, increasing the sale amount of the fund in the fund pool; if a buy transaction is performed and the buy amount is greater than the funds in the fund pool, the weekly inflow cost increases the difference between the buy amount and the fund pool amount; if the purchase amount is less than or equal to the funds in the fund pool, the fund pool amount is subtracted by the purchase amount.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 3
According to an embodiment of the present invention, there is also provided an event result display apparatus for implementing the method for displaying an event result according to embodiment 1, where the event result display apparatus is mainly used to execute the method for displaying an event result according to embodiment 1 of the present invention, and the method for displaying an event result according to the embodiment of the present invention is specifically described as follows:
fig. 6 is a schematic diagram of an event result display device according to embodiment 3 of the present invention, and as shown in fig. 6, the event result display device mainly includes: a transmitting unit 50, a receiving unit 52 and a first presentation unit 54.
The sending unit 50 is configured to send, to the server through a client of the first application, a query request for querying a first event execution result of a second account of the first application, where the client logs in by using the first account, the second account has an association relationship with the first account, and a first event execution result of the second account is in a public state, and the public state is used to indicate that the first account is allowed to view the first event execution result obtained by the second account executing the first event in the first event platform.
The client of the first application is a client installed in the terminal 102 and sends a query request to theserver 104. The client logs in by using a first account, the second account is an account which has an association relationship with the first account in the first application, and the second account is displayed in the client which logs in by using the first account and is even a communication application, for example, the second account and the first account are in a friend relationship in the first application, or the second account and the first account participate in a member of a certain activity in the first application together. The public state of the second account refers to a first event execution result obtained by the first account being capable of viewing, at the client of the first application, the first event executed by the second account in the first event platform. That is, the second account authorizes the first account to view the first event execution result at the client of the first application. The first event platform and the client of the first application realize different functions, and the first event platform can be two platforms which are completely independent from the first application, or the first event platform and the first application can be the same platform. When the first application and the first event platform are the same platform, the platform can simultaneously realize the functions of the first application and the functions of the first event platform. The first event platform may also be a function in the first application, e.g. as a functional plug-in to the first application.
The receiving unit 52 is configured to receive a result of the first event execution sent by the server in response to the query request.
The server inquires a first event execution result obtained by executing the first event in the first event platform by the second account, and sends the first event execution result to the client. The result of the first event execution may be calculated by the server or provided by the first event platform.
The first presenting unit 54 is configured to present the received first event execution result in the client of the first application.
By the embodiment, a first event execution result obtained by the second account executing the first event in the first event platform can be displayed in the client of the first application, so that the technical effect of cross-platform viewing of the first event execution result obtained by the second account having the association relation with the first account executing the first event on the first event platform is realized, and the technical problem that event results obtained by the account having the association relation in another platform cannot be viewed from one platform in the prior art is solved. Because the first account can only view the first event execution result of the second account when the first event execution result of the second account is in a public state, the client of the first application displays the first event execution result and simultaneously protects the privacy of the second account, thereby improving the privacy security of the second account in executing the first event on the first event platform.
Optionally, the second account includes a plurality of accounts, and the first display unit includes: and the arranging module is used for arranging and displaying each account in the plurality of accounts and the first event execution result corresponding to each account in the client according to the size sequence of the change of the event resource corresponding to the first event indicated by the first event execution result.
The client of the first application logged in by using the first account can display the first event execution results of the multiple accounts, and the first event execution results of the multiple accounts are all in a public state. The first event execution result indicates the size of the change of the event resource corresponding to the first event, and therefore, the event resources are arranged and displayed in the client according to the size sequence of the change of the event resource in the client, specifically, the event resources can be arranged and displayed in the sequence from large to small or in the sequence from small to large. When the change of the event resources corresponding to the first event indicated by the first event execution result is displayed in the sequence, the change range of the event resources indicated by the first event execution result corresponding to each account in the plurality of accounts can be conveniently embodied.
In a specific example, the client of the first application is an instant messaging client (QQ, MSN, to-coming, rice chat, etc.), a social client (e.g., microblog), a game client (e.g., network game), an instrument client (e.g., popular comment), and a financial payment client (e.g., pay treasure, money and money), the first event platform is a securities trader platform (e.g., recruiter securities, interest securities, etc.), the first event is buying and selling stocks (e.g., fund, future securities, etc.), and the execution result of the first event is an profit-loss ratio of buying and selling stocks by the second account. The first event platform can also be an e-commerce platform, a game platform and the like, and the corresponding first event execution results can also be transaction amount on the e-commerce platform and game credits on the game platform and the like respectively.
In the WeChat client, the second account is a friend of the first account and is displayed in the WeChat client logged in by using the first account. The second account number is a stock buying and selling account on the securities trader platform, and the second account number is a profit-loss ratio that allows the first account number in a friend relationship with the second account number to view the transactions on the securities trader platform. Then, when the first account requests to view the profit-loss ratio of the second account, the profit-loss ratio of the second account for buying and selling stocks is displayed in the client which logs in by using the first account.
In the game client, the second account is a friend of the first account and is displayed on the game client logged in by using the first account. The second account number is a transaction amount that allows the first account number in a friend relationship to view transactions conducted on the e-commerce platform. Then, when the first account number requests to view the transaction amount of the second account number, the transaction amount of the second account number is displayed in the client logged in by using the first account number.
In the microblog client, the second account is a friend of the first account and is displayed on the microblog client logged in by using the first account. And the second account performs game operation on the game client to obtain game credits. The second account allows the first account with which it is a friend to view the game credits that it obtained on the game client. Then, when the first account requests to view the game credits of the second account, the game credits of the second account are displayed in the microblog client logged in by using the first account.
When the first application and the first event platform are used as a client, the first event execution result can be displayed on the first application or the first event platform because the calculation of the profit-loss ratio is completed in the server.
In the example that the first application client is a WeChat client and the first event platform is a dealer platform, when the second accounts are multiple accounts and all have a friend relationship with the first account, and the execution result of the first event of each account is in a public state, when the first account requests to view the profit-loss ratio of the friend buying and selling stocks, the profit-loss ratios of the multiple accounts are displayed in the client logged in by using the first account, and are displayed in an arrangement manner according to the profit-loss ratio from large to small or from small to large. The order of the first account selection arrangement display is from large to small or from small to large.
In the example that the first application client is a game client and the first event platform is an e-commerce platform, when the execution results of the first events corresponding to a plurality of accounts of which the first account is in a friend relationship are all in a public state, the first account can request to check the transaction amount of the friend in the e-commerce platform. The transaction amounts of the account numbers are displayed in the game client according to a certain arrangement sequence.
In the example that the first application client is a microblog client and the first event platform is a game client, when the execution results of the first events corresponding to the accounts of which the first account is a friend relationship are all in a public state, the first account can request to view game credits acquired by the friends in the game client. The game integrals of the account numbers are displayed in the microblog client according to a certain arrangement sequence.
Optionally, the first display unit comprises: and the updating module is used for updating a first event execution result obtained by the second account executing the first event in the first event platform in a first time period when the first event platform allows the second account to execute the first event and/or a second time period with a preset time relationship with the first time period in the client of the first application.
Since the first event execution result obtained by the second account executing the first event in the first event platform changes with the action of the first event executed by the second account on the first event platform, the first event execution result needs to be updated in the client of the first application in time.
In a specific example, the first event platform allows the second account to execute the first event for a first period of time within the opening time for which a stock exchange is allowed; the second time period having a preset time relationship with the first time period is a time period before the stock exchange is opened or a time period after the stock exchange is stopped. The duration of this time period may be half an hour or one hour.
The frequency of updating the execution result of the first event may be updated every half hour or every hour, and may also be adjusted according to the fluctuation frequency of the stock market, which is not specifically limited herein. The first event execution result of the second account in the first event platform changes more in one hour after the market break, so the updating frequency in the time period can be higher than that when the stock market is opened.
Optionally, the first display unit comprises: the display module is used for displaying a first event execution result and a second event execution result in a client of the first application, wherein the second event execution result is an event execution result obtained by the first account executing a second event on the second event platform, and the first account is set to allow the second account to view the second event execution result obtained by the first account executing the second event on the second event platform.
When a client of a first application logged in by using a first account views a first event execution result of a second account, a second event execution result obtained by the first account executing a second event on a second event platform can allow or prohibit the second account from viewing. When the first account number is set to allow the second account number to view the second event execution result, the second event execution result of the first account number can be displayed on the client side of the first application logged in by using the second account number to participate in ranking. And if the first account is not set to allow the second account to view the second event execution result, the second event execution result of the first account is not displayed in the client logged in by other accounts.
The client of the first application which uses the first account to log in displays a first event execution result of a second account which has a relationship with the first account, the client of the first application which uses the second account to log in displays a first event execution result of an account which has a relationship with the second account, and the second account which has a relationship with the first account and the account which has a relationship with the second account contain different accounts.
Optionally, the query request carries a query time period, and the sending unit includes: the sending module is used for sending a query request for querying a first event execution result obtained by executing a first event by a second account of a first application in a query time period to the server through a client of the first application.
The first event execution result in a certain time period may be presented in the client logged in by using the first account, for example, the ranking of the first event execution result in the present week, the ranking of the first event execution result in the present month, and the ranking of the first event execution result in the year. Historical first event execution results may also be exposed in the client, e.g., ranking of first event execution results for the last week, month, and quarter, etc.
Optionally, the apparatus further comprises: the detection unit is used for detecting the click operation of clicking the execution result of the first event after the received execution result of the first event is displayed in the client of the first application; and the second display unit is used for displaying a first event object of a first event executed by the second account on the first event platform in the client after the click operation is detected, wherein the first event execution result receives the click operation under the condition that the second account is set to allow the first account to view the first event object.
And if the second account allows the first account to view the first event object, displaying the first event object in the client after the first event execution result of the second account receives the click operation. That is, a client logged in using a first account may display the first event execution result and not equal to simultaneously presenting the first event object. It can only be exposed on the client if the first event object is also allowed to be viewed by the first account number.
In one specific example, the first event platform is a dealer platform (e.g., a recruiter security, a prosperous security, etc.), the first event is a buying and selling stock (which may also be a fund, a future, etc.), and the first event object is a name of the stock that is bought and sold by the second account.
Through the embodiment, the first event execution result of the second account is displayed on the client logged in by using the first account, the first event execution results of a plurality of accounts in the second account can be displayed in an arrayed manner, and further, the first event object can be displayed, so that the technical effect of cross-platform viewing of the first event execution result obtained by executing the first event on the first event platform by the second account having the association relationship with the first account is realized, and the technical problem that the event result obtained by executing the event on the other platform by the account having the association relationship cannot be viewed from one platform in the prior art is solved.
Example 4
According to an embodiment of the present invention, there is also provided an event result display apparatus for implementing the method for displaying an event result according toembodiment 2, where the event result display apparatus is mainly used to implement the method for displaying an event result according toembodiment 2 of the present invention, and the method for displaying an event result according to embodiment of the present invention is specifically described as follows:
fig. 7 is a schematic diagram of an event result display device according to embodiment 4 of the present invention, and as shown in fig. 7, the event result display device mainly includes: a request receiving unit 60, a status detecting unit 62 and a result transmitting unit 64.
The request receiving unit 60 is configured to receive a query request sent by a client of a first application, where the query request is used to request to query a first event execution result of a second account in the client of the first application, where the client logs in by using the first account, and the second account has an association relationship with the first account.
The server receives the query request, and stores a first event execution result of the second account in the server, where the server may be a server corresponding to the client of the first application, may be a server of a first event platform where the second account executes the first event, and may also be a third-party server that is not responsible for the instant messaging service and the first event. The server is connected to both the client of the first application and the first event platform, and is capable of acquiring data (e.g., a first event execution result) from the first event platform and then transmitting the first event execution result to the client of the first application.
The client logs in by using a first account, the second account is an account which has an association relationship with the first account in the first application, and the second account is displayed in the client which logs in by using the first account and is even a communication application, for example, the second account and the first account are in a friend relationship in the first application, or the second account and the first account participate in a member of a certain activity in the first application together. The public state of the second account refers to a first event execution result obtained by the first account being capable of viewing, at the client of the first application, the first event executed by the second account in the first event platform. That is, the second account authorizes the first account to view the first event execution result at the client of the first application. The first event platform and the client of the first application realize different functions, and the first event platform can be two platforms which are completely independent from the first application, or the first event platform and the first application can be the same platform. When the first application and the first event platform are the same platform, the platform can simultaneously realize the functions of the first application and the functions of the first event platform. The first event platform may also be a function in the first application, e.g. as a functional plug-in to the first application.
The state detection unit 62 is configured to detect whether the second account is in a public state, where the public state is used to indicate that the second account allows the first account to view a first event execution result obtained by the second account executing the first event in the first event platform.
The result sending unit 64 is configured to send the first event execution result to the client if the second account is in the public state, so as to present the first event execution result in the client of the first application.
The server stores a first event execution result of the second account, and when the second account is in a public state, the server sends the first event execution result requested by the first account to the client so as to protect the privacy and the account security of the second account. If the second account is not in the open state, the first event execution result will not be sent even if the first event execution result is stored in the server.
By the embodiment, a first event execution result obtained by the second account executing the first event in the first event platform can be displayed in the client of the first application, so that the technical effect of cross-platform viewing of the first event execution result obtained by the second account having the association relation with the first account executing the first event on the first event platform is realized, and the technical problem that event results obtained by the account having the association relation in another platform cannot be viewed from one platform in the prior art is solved. The server sends the first event execution result to the client of the first application logged in by using the first account only when the first event execution result of the second account is in a public state, so that the privacy of the second account is protected while the client of the first application displays the first event execution result, and the privacy security of the second account in the first event platform in executing the first event is improved.
It should be noted that, when the first application and the first event platform are used as one client, since the calculation of the profit-loss ratio is performed in the server, the result of the execution of the first event may be displayed on the first application or the first event platform.
Optionally, the apparatus further comprises: the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring an execution record of a first event and an event resource change of a second account in a first application client, wherein the second account has an association relation with the first account, and executes the first event on a first event platform; and the calculating unit is used for calculating a first event execution result of the first event executed by the second account according to the execution record and the event resource change.
In a specific example, the execution record of the first event is a transaction record in the dealer platform, and the event resource change of the second account is a profit or loss value in the transaction. And calculating the profit-loss ratio of the second account according to the transaction record and the profit-loss value of each transaction.
It should be noted that, in this embodiment, the first event execution result is calculated in the domain of the server, the first event execution result is stored in the cache outside the domain of the server, and the first event execution result is extracted from the cache outside the domain and sent to the client of the first application. The domain limits the access authority, and data in the domain cannot be accessed by the client, so that interaction with the first event platform and the client of instant messaging is isolated, data and information required for calculating the execution result of the first event in the domain cannot be stored outside the domain, and the client of the first application cannot acquire the information of the second account, so that the information security of the second account acquired in the first event platform is guaranteed.
As shown in fig. 5, the server includes an intra-domain and an extra-domain, the intra-domain includes a logical operation layer for calculating the execution result of the first event, and the extra-domain includes an application layer for communicating with the client (which may also be a web page). In a specific example, the logical operation layer in the domain periodically (for example, updates the ranking list every half hour) acquires the relationship chain of the user (i.e., the relationship chain of the first account, such as the second account having an association relationship with the first account) and the basic information of the user (the basic information of the first account), calculates the profit-loss ratio of the second account, and records the approval, wherein the approved data may be stored in the database. And the logic operation layer sends the calculated arrangement display result to a cache of the server, the cache sends the arrangement display result to an application layer of the server, and the application layer sends the arrangement display result to a web page (a client of the first account) for displaying.
Before this, the authorization information of the second account (i.e. allowing the first account to view the execution result of the first event) is obtained and forwarded to the database for saving through the application layer. The application layer can also receive ranking list settings (such as a display period) sent by the client, and send the ranking list setting information to a ranking list aggregation module of the logical operation layer for calculating the ranking display order. And receiving data of the client through a data interface of an application layer outside the domain, and forwarding the data to a logic operation layer in the domain for calculation so as to ensure the information security of the second account.
In particular, the calculation unit is configured to operate in the following mannerCalculating a first event execution result Aj:
Wherein, PijIndicating that the event resource corresponding to the first event of the second account changes in the ith sub-period of the jth period, CjRepresenting the sum of the original event resource and the added event resource of the second account in the j-th period.
For example, the present week profit-loss ratio is calculated. P
ijRepresenting the profit and loss of the second account on the ith day of the week (namely, the event resource change corresponding to the first event), wherein the profit and loss of each day can be represented by the difference between the profit and loss after closing the disk and the profit and loss before opening the disk;
representing the total profit and loss in the week; c
jRepresents the cost of the week (i.e., the sum of the original event resources and the added event resources of the second account number), i.e., the sum of the market value taken prior to the first trading day of the week and the inflow cost of the week. When calculating the present week profit-loss ratio, P
1jFor profit or loss on the first trade day of the week, P
njFor profit or loss of the last trade day of the week, A
jThe profit-loss ratio of the week. When calculating the monthly profit-loss ratio, P
1jFor profit or loss on the first trade day of this month, P
njFor profit or loss of the last trade day of this month, C
jThe cost of this month, i.e. the sum of the market value before the first trade day of this month and the inflow cost of this week, is also expressed accordingly.
Optionally, the calculating unit is configured to calculate the first event execution result a in the following mannerj:
Wherein M isnjRepresents the total event resource, M, of the second account in the last sub-period n of the jth period1jRepresents the 1 st sub-period of the jth periodSecond Account Prior to execution of the first event, the second Account' S total event resources, SjRepresenting an event resource obtained by the second account executing the first event in the jth cycle, BjRepresents the event resource consumed by the second account to execute the first event in the jth period, CjRepresenting the sum of the original event resource and the added event resource of the second account in the j-th period.
In the example of calculating the win-loss ratio, MnjThe total market value (i.e. total event resources) of the second account number after the last trading day of the week is recorded, M1jTotal market value of the second account number before opening for the first trading day of the week, SjThe amount of money to be gained by selling shares in the week for the second account, BjIndicating the amount spent by the second account to buy stock in this week. CjIndicating the weekly inflow cost.
According to the change of the query time period carried by the query request, the calculation period can be adjusted, so that a first event execution result corresponding to the query time period carried by the query request is obtained. The adjustment method is the same as the adjustment method of the period, and is not described again.
In the above embodiment, the circulation inflow cost CjIt can be calculated according to the following rules:
calculating according to the sequence of transaction time, and if the sale transaction is executed, increasing the sale amount of the fund in the fund pool; if a buy transaction is performed and the buy amount is greater than the funds in the fund pool, the weekly inflow cost increases the difference between the buy amount and the fund pool amount; if the purchase amount is less than or equal to the funds in the fund pool, the fund pool amount is subtracted by the purchase amount.
It should be noted that, in this embodiment, the first event execution result is calculated in the domain of the server, and is stored in the cache of the server, and the first event execution result is extracted from the cache and is sent to the client of the first application, so that interaction with the first event platform and the client of the instant messaging is isolated, so as to ensure the information security of the second account acquired in the first event platform.
Example 5
According to an embodiment of the present invention, there is also provided a terminal for implementing the method for displaying event results, as shown in fig. 8, the terminal mainly includes aprocessor 701, acamera 702, adisplay 703, adata interface 704, amemory 705, and anetwork interface 706, where:
thecamera 702 is mainly used for shooting an avatar of the first account.
The data interface 704 transmits data (such as picture data and music data) acquired by the third-party tool to theprocessor 701 mainly by means of data transmission.
Thememory 705 is mainly used for storing files required for running the first application and data saved by the first application.
Thenetwork interface 706 is mainly used for performing network communication with the server to obtain the result of the first event execution.
Thedisplay 703 is mainly used for displaying the result of the execution of the first event.
Theprocessor 701 is mainly configured to perform the following operations: sending a query request for querying a first event execution result of a second account of a first application to a server through a client of the first application, wherein the client logs in by using the first account, the second account has an association relation with the first account, the first event execution result of the second account is in a public state, and the public state is used for indicating that the first account is allowed to view the first event execution result obtained by the second account executing the first event in a first event platform; receiving a first event execution result sent by the server in response to the query request; and displaying the received first event execution result in the client of the first application.
Optionally, the specific examples in this embodiment may refer to the examples described in embodiment 1 andembodiment 2, and this embodiment is not described herein again.
Example 6
The embodiment of the invention also provides a storage medium. Optionally, in this embodiment, the storage medium may be located in at least one of a plurality of network devices in a network.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
s1, sending a query request for querying a first event execution result of a second account of a first application to a server through a client of the first application, wherein the client logs in by using the first account, the second account has an association relation with the first account, the first event execution result of the second account is in a public state, and the public state is used for indicating that the first account is allowed to view the first event execution result obtained by the second account executing the first event in a first event platform;
s2, receiving the first event execution result sent by the server in response to the query request;
s3, displaying the received first event execution result in the client of the first application.
Optionally, the storage medium may be further configured to store program code for performing the steps of:
s1, receiving a query request sent by a client of a first application, where the query request is used to request query of a first event execution result of a second account in the client of the first application, where the client logs in by using the first account, and the second account has an association relationship with the first account;
s2, detecting whether the second account is in a public state, wherein the public state is used for indicating that the second account allows the first account to check a first event execution result obtained by the second account executing a first event in a first event platform;
s3, sending the first event execution result to the client when the second account is in the public state, so as to display the first event execution result in the client of the first application.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Optionally, the specific examples in this embodiment may refer to the examples described in embodiment 1 andembodiment 2, and this embodiment is not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.