CN111818114B - Information sharing method and device - Google Patents
Information sharing method and device Download PDFInfo
- Publication number
- CN111818114B CN111818114B CN201910296109.7A CN201910296109A CN111818114B CN 111818114 B CN111818114 B CN 111818114B CN 201910296109 A CN201910296109 A CN 201910296109A CN 111818114 B CN111818114 B CN 111818114B
- Authority
- CN
- China
- Prior art keywords
- identifier
- information
- sender
- receiver
- shared
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
- H04L12/185—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application relates to an information sharing method and device, wherein the method comprises the following steps: receiving an operation request uploaded by a child application, wherein the child application runs on a parent application, and the operation request carries a user identifier; executing corresponding operation according to the operation request to obtain an operation result; when the user identification is verified to be a target identification, returning a result page carrying the operation result, wherein the target identification is determined according to the influence corresponding to the user identification, and the operation result comprises information to be shared corresponding to the sub-application; and after the information to be shared is triggered, returning a corresponding group page to the parent application, and sharing the information to be shared through the group page. The scheme provided by the application can improve the sharing success rate of the information to be shared, reduce the interaction times and effectively save the interaction resources.
Description
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to an information sharing method, an information sharing device, a computer readable storage medium, and a computer device.
Background
With the development of computer technology, sub-applications that can run appear on the parent application. In the popularization process of the sub-application, information related to the sub-application can be sent to the user, the information is shared by the user, so that more users receive the information related to the sub-application, and the sub-application is known through the information.
In a conventional manner, users are typically randomly extracted, and information related to the sub-applications is shared by the randomly extracted users. However, among the randomly extracted users, some users may have negative factors such as low willingness to share information, which results in low success rate of information sharing. When a certain number of users need to know the sub-application, the users need to be extracted for multiple times, and unnecessary interaction is carried out with the users for multiple times. In the multiple unnecessary interaction processes, the waste of interaction resources, such as the waste of bandwidth resources, the waste of traffic resources and the like, is caused.
Disclosure of Invention
Based on this, it is necessary to provide an information sharing method, an information sharing device, a computer readable storage medium and a computer device capable of saving interactive resources, aiming at the technical problem of interactive resource waste.
An information sharing method, comprising:
receiving an operation request uploaded by a child application, wherein the child application runs on a parent application, and the operation request carries a user identifier;
executing corresponding operation according to the operation request to obtain an operation result;
when the user identification is verified to be a target identification, returning a result page carrying the operation result, wherein the target identification is determined according to the influence corresponding to the user identification, and the operation result comprises information to be shared corresponding to the sub-application;
And after the information to be shared is triggered, returning a corresponding group page to the parent application, and sharing the information to be shared through the group page.
An information sharing apparatus, the apparatus comprising:
the request receiving module is used for receiving an operation request uploaded by a child application, the child application runs on a parent application, and the operation request carries a user identifier;
the operation execution module is used for executing corresponding operation according to the operation request to obtain an operation result;
the result page returning module is used for returning a result page carrying the operation result when the user identification is verified to be a target identification, the target identification is determined according to the influence corresponding to the user identification, and the operation result comprises information to be shared corresponding to the sub-application;
and the group page returning module is used for returning a corresponding group page to the parent application after the information to be shared is triggered, and sharing the information to be shared through the group page.
A computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
Receiving an operation request uploaded by a child application, wherein the child application runs on a parent application, and the operation request carries a user identifier;
executing corresponding operation according to the operation request to obtain an operation result;
when the user identification is verified to be a target identification, returning a result page carrying the operation result, wherein the target identification is determined according to the influence corresponding to the user identification, and the operation result comprises information to be shared corresponding to the sub-application;
and after the information to be shared is triggered, returning a corresponding group page to the parent application, and sharing the information to be shared through the group page.
A computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of:
receiving an operation request uploaded by a child application, wherein the child application runs on a parent application, and the operation request carries a user identifier;
executing corresponding operation according to the operation request to obtain an operation result;
when the user identification is verified to be a target identification, returning a result page carrying the operation result, wherein the target identification is determined according to the influence corresponding to the user identification, and the operation result comprises information to be shared corresponding to the sub-application;
And after the information to be shared is triggered, returning a corresponding group page to the parent application, and sharing the information to be shared through the group page.
According to the information sharing method, the information sharing device, the computer readable storage medium and the computer equipment, on the premise that the operation request is received, whether the user identifier carried in the operation request is the target identifier is verified, and therefore the user identifier is screened. The target identification is determined according to the influence corresponding to the user identification, so that the user identification with influence is screened out. And returning an operation result comprising information to be shared corresponding to the sub-application to the user identification with influence. Compared with the traditional method of randomly extracting users, the method has the advantages that the user identification is screened, the group page corresponding to the user identification with influence is screened to share the information to be shared, more users acquire the information to be shared corresponding to the sub-application, more users know the sub-application, the success rate of sharing the information to be shared is improved, the interaction times are reduced, and the interaction resources are effectively saved.
An information sharing method, comprising:
acquiring a user identifier logged in through a parent application;
Receiving an operation performed by a child application, wherein the child application runs on the parent application;
when the user identifier is a target identifier, displaying an operation result through a result page, wherein the target identifier is determined according to the influence corresponding to the user identifier, and the operation result comprises information to be shared corresponding to the sub-application;
and sharing the information to be shared through the group corresponding to the user identifier.
An information sharing apparatus, the apparatus comprising:
the identification acquisition module is used for acquiring a user identification logged in through the parent application;
the operation receiving module is used for receiving an operation performed by a child application, and the child application runs on the parent application;
the result display module is used for displaying an operation result through a result page when the user identifier is a target identifier, wherein the target identifier is determined according to the influence corresponding to the user identifier, and the operation result comprises information to be shared corresponding to the sub-application;
and the information sharing module is used for sharing the information to be shared through the group corresponding to the user identifier.
A computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
Acquiring a user identifier logged in through a parent application;
receiving an operation performed by a child application, wherein the child application runs on the parent application;
when the user identifier is a target identifier, displaying an operation result through a result page, wherein the target identifier is determined according to the influence corresponding to the user identifier, and the operation result comprises information to be shared corresponding to the sub-application;
and sharing the information to be shared through the group corresponding to the user identifier.
A computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of:
acquiring a user identifier logged in through a parent application;
receiving an operation performed by a child application, wherein the child application runs on the parent application;
when the user identifier is a target identifier, displaying an operation result through a result page, wherein the target identifier is determined according to the influence corresponding to the user identifier, and the operation result comprises information to be shared corresponding to the sub-application;
and sharing the information to be shared through the group corresponding to the user identifier.
According to the information sharing method, the information sharing device, the computer readable storage medium and the computer equipment, on the premise that operation performed through the child application is received, whether the user identifier logged in through the parent application is the target identifier is verified, and therefore the user identifier is screened. The target identification is determined according to the influence corresponding to the user identification, so that the user identification with influence is screened out. Compared with the traditional method of randomly extracting users, the method has the advantages that the groups corresponding to the user identifications with influence are used for sharing the information to be shared corresponding to the sub-applications, so that more users acquire the information to be shared corresponding to the sub-applications, and the sharing success rate of the information to be shared is improved while more users know the sub-applications, so that the interaction times are reduced, and the interaction resources are effectively saved.
Drawings
FIG. 1 is an application environment diagram of a method for information sharing in one embodiment;
FIG. 2 is a flow chart of a method for sharing information in one embodiment;
FIG. 3 is a flowchart illustrating steps for determining a target identifier according to an influence corresponding to a user identifier in one embodiment;
FIG. 4 is a flowchart illustrating a method for sharing information according to another embodiment;
FIG. 5 is an interface diagram of a results page in one embodiment;
FIG. 6 is a schematic diagram of an interface of a group page in one embodiment;
FIG. 7 is a block diagram illustrating an embodiment of an information sharing device;
FIG. 8 is a block diagram illustrating an information sharing device according to another embodiment;
FIG. 9 is a block diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
FIG. 1 is an application environment diagram of a method for information sharing in one embodiment. Referring to fig. 1, the information sharing method is applied to an information sharing system. The information sharing system includes a terminal 110 and a server 120. The terminal 110 and the server 120 are connected through a network. The terminal 110 may be a desktop terminal or a mobile terminal, and the mobile terminal may be at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The server 120 may be implemented as a stand-alone server or as a server cluster composed of a plurality of servers.
As shown in fig. 2, in one embodiment, an information sharing method is provided. The present embodiment is mainly exemplified by the application of the method to the server 120 in fig. 1. Referring to fig. 2, the information sharing method specifically includes the following steps:
s202, receiving an operation request uploaded by a child application, wherein the child application runs on a parent application, and the operation request carries a user identifier.
S204, executing corresponding operation according to the operation request to obtain an operation result.
The parent application can directly run in an operating system of the terminal, and provides an environment for the realization of the child application. On the premise that the parent application is operated, the child application can be operated and used on the parent application in the terminal without downloading and installing. A child application is an application program implemented in the environment provided by the parent application.
The terminal can log in the sub-application by using the user identification of the login parent application so as to facilitate the login of the sub-application. And the terminal generates a corresponding operation request according to the operation of the user identifier on the sub-application and sends the operation request to the server. The server receives the operation request uploaded by the sub-application, analyzes the operation request, and carries the user identification of the login sub-application. And the server executes corresponding operation according to the operation request to obtain an operation result.
S206, when the user identification is verified to be the target identification, returning a result page carrying an operation result, wherein the target identification is determined according to the influence corresponding to the user identification, and the operation result comprises information to be shared corresponding to the sub-application.
And the server verifies the user identifier carried in the operation request on the premise of receiving the operation request uploaded by the sub-application, so as to screen the user identifier. Because the target identifier is determined according to the influence corresponding to the user identifier, the information to be shared corresponding to the user identifier sharing sub-application with influence can be screened, and the success rate of sharing the information to be shared is improved. Specifically, the server matches the user identifier with the target identifier, and when the user identifier is one of the plurality of target identifiers, the verification is successful, otherwise, the verification fails.
When the user identification is verified to be the target identification, after the operation result is obtained, the server returns a result page carrying the operation result to the sub-application, so that the sub-application displays the result page comprising the operation result on the corresponding terminal display interface. The operation result also comprises information to be shared corresponding to the sub-application, so that a user can browse the information corresponding to the sub-application included in the information to be shared through the corresponding terminal, and the user can know the sub-application, thereby achieving the effect of popularizing the sub-application.
The information to be shared can be displayed in the result page in various modes. For example, the information to be shared may be displayed in at least one of a link, a graph, a text, and the like, so that the user triggers the information to be shared through the result page to share the information to be shared.
After receiving the operation request, the order of the server executing the operation corresponding to the operation request and verifying the user identification can be adjusted. That is, the server may execute the operation corresponding to the operation request, and verify whether the user identifier is the target identifier after obtaining the operation result. The server can also verify the user identification a priori and then execute the operation corresponding to the operation request. The server may also invoke multiple threads to simultaneously perform operations corresponding to the operation requests and verify user identifications, where the order between the operations corresponding to the operation requests performed by the server and the verification user identifications is not limited.
And S208, after the information to be shared is triggered, returning a corresponding group page to the parent application, and sharing the information to be shared through the group page.
The terminal can trigger the displayed information to be shared in various modes such as clicking, sliding and the like in the result page by the user. After the information to be shared is triggered, the server returns a group page to the parent application on the corresponding terminal. The group in the group page corresponds to the user identifier of the login parent application, namely, the group is at least one of a plurality of groups to which the user identifier belongs. The server can send the information to be shared to the group corresponding to the user identifier, so that members in the group acquire the information to be shared.
In this embodiment, on the premise of receiving the operation request, it is verified whether the user identifier carried in the operation request is the target identifier, so as to screen the user identifier. The target identification is determined according to the influence corresponding to the user identification, so that the user identification with influence is screened out. And returning an operation result comprising information to be shared corresponding to the sub-application to the user identification with influence. Compared with the traditional method of randomly extracting users, the method has the advantages that the user identification is screened, the group page corresponding to the user identification with influence is screened to share the information to be shared, more users can acquire the information to be shared corresponding to the sub-application, more users can know the sub-application, the success rate of sharing the information to be shared is improved, the interaction times are reduced, and the interaction resources are effectively saved.
As shown in fig. 3, in one embodiment, the step of determining the target identifier according to the influence corresponding to the user identifier includes:
s302, acquiring various resource sharing messages, and determining the association relationship between the sender identifier and the receiver identifier according to the resource sharing messages.
The user identifier may include a sender identifier and a receiver identifier of the resource sharing message, where the user identifier that sends the resource sharing message is the sender identifier, and the user identifier that receives the resource sharing message is the receiver identifier. The resource sharing message is a message sent to the sharing object by the user identifier through the internet, and is used for indicating other user identifiers to acquire corresponding resources according to the message. Specifically, the user identifier may send a resource sharing message to the sharing object on the session page through a message channel of the social network.
The type of sharing object and session page is corresponding. For example, when the type corresponding to the session page is a one-to-one session, then the sharing object is another user identifier of the current session with the user identifier. When the type corresponding to the session page is a group session, the sharing object includes all group members in the corresponding group. That is, the resource sharing message may correspond to one receiver identifier, or may correspond to multiple receiver identifiers.
The server acquires various resource sharing messages in a preset time period, and reads a sender identifier and a receiver identifier corresponding to the resource sharing messages. And the server establishes an association relationship between a sender identifier and a receiver identifier corresponding to the same resource sharing message according to the resource sharing message. Specifically, the association relationship further includes the number of times that the sender identifier sends the resource sharing message to the corresponding receiver identifier. The server also counts the times of sending the resource sharing message to the receiver identifier corresponding to the association relation by the sender identifier in a preset time period after establishing the association relation between the sender identifier and the receiver identifier.
The user identifier can send and receive the resource sharing message in the social network. Therefore, the sender identifier in one association relationship may be the receiver identifier in other association relationships. Correspondingly, the receiver identifier in one association relationship can also be the sender identifier in other association relationships.
S304, the similarity between the sender identifier and the receiver identifier with the association relationship is determined by using the attribute information corresponding to the sender identifier and the attribute information corresponding to the receiver identifier.
The server acquires attribute information corresponding to the sender identifier and attribute information corresponding to the receiver identifier, wherein the attribute information comprises data capable of representing attribute characteristics of the sender identifier or the receiver identifier. The dimensions of the attribute information may include at least one of a set of multiple dimensions. For example, the attribute information corresponding to the sender identifier and the attribute information corresponding to the receiver identifier may include at least one of attribute data such as age, gender, city, consumption preference, and travel mode preference corresponding to the user identifier.
The server may determine the similarity between the sender identifier and the receiver identifier, which have an association relationship, in various ways using attribute information corresponding to the sender identifier and attribute information corresponding to the receiver identifier. For example, the server may calculate the similarity between the sender identifier and the receiver identifier according to the attribute information, and may call a mapping relationship between the attribute information and the similarity, and find the similarity between the sender identifier and the receiver identifier corresponding to the attribute information according to the mapping relationship.
S306, inputting the association relation and the similarity into a preset model, and outputting an influence value corresponding to the sender identifier.
The server calls a preset model, wherein the preset model is used for calculating an influence value corresponding to the sender identifier, and at least one of a plurality of influence algorithms can be utilized in the preset model. For example, the PageRank algorithm is used to calculate the impact value corresponding to the sender identification. And inputting the association relation between the sender identifier and the receiver identifier and the similarity between the sender identifier and the receiver identifier corresponding to each association relation into a preset model. The server calculates the association relation and the corresponding similarity by using a preset model, and the calculation result is an influence value which is output by the preset model and corresponds to the sender identifier. The influence value is used for indicating the influence of the corresponding sender identifier in the corresponding social network, and the larger the influence value is, the larger the influence of the corresponding sender identifier in the corresponding social network is.
S308, marking the sender identifier corresponding to the influence value meeting the preset condition as a target identifier.
And the server compares the influence value corresponding to each sender identifier with a preset condition, and screens the sender identifiers according to the preset condition. And when the influence value accords with the preset condition, marking the sender identifier corresponding to the influence value as a target identifier. The preset condition may be at least one of a plurality of screening conditions. For example, the preset condition may be an influence threshold, and the server marks the sender identifier corresponding to the influence value greater than or equal to the influence threshold as the target identifier. The server may further mark a preset number of sender identifiers as target identifiers according to the influence value.
In this embodiment, the server determines, according to the association relationship and the similarity, an influence value corresponding to the sender identifier, where the influence value can more accurately represent the influence of the sender identifier in the social network to which the sender identifier belongs. The server marks the sender identifier corresponding to the influence value meeting the preset condition as the target identifier, so that the target identifier with influence can be screened out more accurately, and the screening of the target identifier is improved.
In one embodiment, the step of determining the association between the sender identifier and the receiver identifier according to the resource sharing message includes: and determining a sender identifier and a receiver identifier corresponding to the resource sharing message, and generating a directed association relation from the receiver identifier to the sender identifier.
After the server acquires the resource sharing messages in the preset time period, determining a sender identifier and a receiver identifier corresponding to each resource sharing message. And the server generates a directed association relation of the receiver identifier corresponding to the resource sharing message to the sender identifier corresponding to the resource sharing message according to the receiving-transmitting relation corresponding to the resource sharing message. The server inputs the directed association relation and the similarity between the sender identifier and the receiver identifier into a preset model, outputs an influence value corresponding to the sender identifier by using the preset model, and marks the sender identifier corresponding to the influence value meeting preset conditions as a target identifier.
In this embodiment, by determining the sender identifier and the receiver identifier corresponding to the resource sharing message, the server generates a directed association relationship in which the receiver identifier points to the sender identifier, and determines an influence value corresponding to the sender identifier by using the directed association relationship in which the receiver identifier points to the sender identifier, where the obtained influence value can more accurately represent influence of the sender identifier in the social network when sending the message, thereby improving accuracy of screening the target identifier.
In one embodiment, after determining the sender identifier and the receiver identifier corresponding to each resource sharing message, the server may further generate a directed association relationship from the sender identifier to the receiver identifier. The server inputs the directed association relation pointed by the sender identifier to the receiver identifier and the corresponding similarity into a preset model, outputs an influence value corresponding to the receiver identifier by using the preset model, and marks the receiver identifier corresponding to the influence value meeting preset conditions as a target identifier.
In this embodiment, by determining the sender identifier and the receiver identifier corresponding to the resource sharing message, the server generates a directed association relationship from the sender identifier to the receiver identifier, and determines the influence value of the receiver by using the directed association relationship from the sender identifier to the receiver identifier and the corresponding similarity, the obtained influence value can more accurately represent the responsiveness of the receiver identifier to the information to be shared when the resource sharing message is received, thereby more accurately screening the target identifier with high responsiveness.
In an embodiment, the information sharing method further includes: counting the interaction frequency between the sender identification and the receiver identification corresponding to the association relation in a preset time period; and when the interaction frequency is smaller than a preset threshold value, eliminating the association relationship between the sender identifier and the receiver identifier corresponding to the interaction frequency.
The server counts the resource sharing messages in a preset time period, and determines the interaction frequency between the sender identifier and the receiver identifier corresponding to the association relation according to the resource sharing messages. In particular, the preset time period may be a constant, for example, 3 months. The interaction frequency between the sender identifier and the receiver identifier may include the number of times of receiving and transmitting the resource sharing message between the sender identifier and the receiver identifier in a preset period, that is, the server counts the number of times that the sender identifier having the association relationship in the preset period transmits the resource sharing message to the corresponding receiver identifier.
When the number of times of receiving and transmitting the resource sharing message between the sender identifier and the receiver identifier is smaller than a preset threshold value, eliminating the association relationship between the corresponding sender identifier and the receiver identifier, and determining the influence value corresponding to the sender identifier without using the association relationship. The preset threshold is the minimum number preset by the user according to the requirement. The predetermined threshold may be a constant, for example, the number of times the resource sharing message is transmitted and received is 2 in a predetermined period. The preset threshold may also be a variable, for example, the preset threshold may be determined according to the number of resource sharing messages counted in the preset time period. If the resource sharing messages are more, the preset threshold is higher.
In this embodiment, the server eliminates the association relationship between the sender identifier and the receiver identifier corresponding to the interaction frequency smaller than the preset threshold value, so as to avoid the interference of noise data generated by accident, and reduce the association relationship and the similarity data when determining the influence value of the sender identifier. The method reduces the calculation data, saves the calculation resources, eliminates the interference of noise data, and effectively improves the accuracy of calculating the influence of the user identification.
In one embodiment, the step of determining the similarity between the sender identifier and the receiver identifier, in which the association relationship exists, using the attribute information corresponding to the sender identifier and the attribute information corresponding to the receiver identifier includes: acquiring attribute information corresponding to a sender identifier and attribute information corresponding to a receiver identifier in association relation; the attribute information comprises attribute data of at least one dimension, and the attribute data of a preset dimension in the target attribute information is read; determining a variation coefficient corresponding to a preset dimension according to the attribute data; and determining the similarity between the sender identifier and the receiver identifier with the association relationship by using the variation coefficient corresponding to the preset dimension.
The target attribute information comprises attribute information corresponding to the sender identifier and attribute information corresponding to the receiver identifier. After determining the association relationship between the sender identifier and the receiver identifier, the server determines the similarity between each pair of sender identifiers and receiver identifiers with the association relationship. The server may acquire attribute data of at least one dimension, for example, the server may acquire at least one of the attribute data of the dimensions of age, sex, location, consumption preference, travel mode preference, and the like, in which the sender identifier corresponds to the receiver identifier.
The preset dimension is a dimension preset by a user according to actual requirements and used for similarity calculation, and the server can read attribute data corresponding to the preset dimension from the target attribute information. The attribute data of each dimension comprises attribute data of a preset dimension corresponding to the sender identifier with the association relationship and attribute data of a preset dimension corresponding to the receiver identifier. The preset dimension may be one of multiple dimensions, or may be two or more of multiple dimensions. In another embodiment, the server may further directly obtain attribute information of a preset dimension corresponding to the sender identifier having the association relationship and attribute information of a preset dimension corresponding to the receiver identifier, so as to determine a similarity of the corresponding association relationship.
The server may determine a coefficient of variation for each dimension based on the attribute data for the corresponding dimension. Wherein the coefficient of variation (english full name: coefficient of Variation, english abbreviation: C.V) is a normalized measure of the degree of dispersion of the probability distribution. The server can determine the corresponding variation coefficient through standard deviation and average value between the attribute data corresponding to the sender identifier and the attribute data corresponding to the receiver identifier. Specifically, the server determines standard deviation and average value between attribute data corresponding to the sender identifier and attribute data corresponding to the receiver identifier in one dimension, and determines a corresponding variation coefficient according to the ratio of the standard deviation to the average value. And the server calculates the variation coefficient corresponding to the preset dimension according to the calculation mode of the variation coefficient. When the preset dimension includes two or more dimensions, the server may determine the coefficient of variation corresponding to each dimension, or may call a plurality of threads to determine the coefficient of variation corresponding to each dimension at the same time.
And the server determines the similarity between the sender identifier and the receiver identifier with the association relation according to the variation coefficient corresponding to each dimension in the preset dimensions. Specifically, the server may integrate the variation coefficients corresponding to each dimension, and determine the similarity between the sender identifier and the receiver identifier by combining the variation coefficients. For example, the server may synthesize the coefficient of variation corresponding to each dimension in a product manner, where the product of the coefficient of variation of each dimension is the similarity between the sender identifier and the receiver identifier.
For example, in one pair of association relationships, the corresponding sender is identified as u, and the receiver is identified as v. When the server determines the variation coefficient of the age dimension corresponding to the sender identifier u and the receiver identifier v, the attribute data of the age dimension in the attribute information of the sender identifier u is read as X, and the attribute data of the age dimension in the attribute information of the receiver identifier v is read as Y. The server determines that the standard deviation and the average value corresponding to the attribute data X and Y are sigma (X, Y) and mu (X, Y) respectively, and determines that the variation coefficient corresponding to the age dimension is C.V (u, v; age) =sigma (X, Y)/mu (X, Y) according to the ratio of the standard deviation to the average value.
Correspondingly, the similarity SIM (u, v) between the sender identification u and the receiver identification v can be expressed as:
wherein i is a dimension corresponding to the attribute data of the sender identifier and the receiver identifier, and the dimension includes attribute data of N dimensions altogether, i.e. i can iterate from 1 to N. X is X i Representing attribute data corresponding to sender identification u in dimension i, Y i And representing attribute data corresponding to the receiver identifier v in the dimension i. Sigma (X) i ,Y i ) Represents the standard deviation of attribute data corresponding to the sender identification u and the receiver identification v in the dimension i, μ (X i ,Y i ) The average value of the attribute data corresponding to the sender identifier u and the receiver identifier v in the dimension i is represented. C.V (u, v; attribute i) represents a coefficient of variation between a sender identifier u and a receiver identifier v corresponding to attribute data of dimension i.
In this embodiment, the server determines the coefficient of variation corresponding to the preset dimension through the attribute data, and determines the similarity between the sender identifier and the receiver identifier with the association relationship by using the coefficient of variation, so that interference caused by different dimensions in various attribute data can be avoided, and more accurate similarity between the sender identifier and the receiver identifier is obtained, which is helpful for accurately determining the influence value corresponding to the user identifier.
In one embodiment, the server may obtain a preset weight corresponding to each dimension, where the preset weight may be allocated to the weight of the dimension by the user through the terminal according to the actual requirement. When the server determines the similarity between the sender identifier and the receiver identifier by using the variation coefficient corresponding to the preset dimension, the variation coefficient after the weight is integrated in each dimension is determined according to the weight corresponding to each dimension. And the server determines the similarity between the sender identifier and the receiver identifier with the association relation according to the variation coefficient of each dimension after the weight is integrated.
In this embodiment, by assigning weights to the attribute data of each dimension, the server synthesizes the weights of each dimension to determine the variation coefficient of the corresponding dimension, and determines the similarity according to the variation coefficient after synthesizing the weights, so that the degree of influence of the attribute data of each dimension on the similarity between the user identifications is more comprehensively considered, the accuracy of determining the similarity between the sender identifications and the receiver identifications is effectively improved, and the influence value corresponding to the user identifications is accurately determined.
In one embodiment, the step of determining the coefficient of variation corresponding to the preset dimension according to the attribute data includes: identifying a data type corresponding to the attribute data; when the data category is the appointed category, carrying out quantization processing on the attribute data corresponding to the data category to obtain the processed attribute data; and determining a variation coefficient corresponding to the preset dimension according to the processed attribute data.
The data type to which the attribute data of one dimension corresponds may be one of a plurality of data types. The data types corresponding to the attribute data may be different due to the different dimensions of the attribute data. For example, the data type corresponding to the attribute data of the age dimension is a digital type, and when the dimension is the place, the data type of the corresponding attribute data is a text type.
The server identifies the data category corresponding to the attribute data, and when the data category is the appointed category, the corresponding attribute data is quantized. The quantization processing refers to a processing procedure of converting attribute data which cannot be used for calculation into a data type which can be calculated. The server can conduct quantization processing on the attribute data of the specified category in various processing modes to obtain processed attribute data, and the coefficient of variation corresponding to the preset dimension is determined by utilizing the processed attribute data.
Specifically, the server may tag the attribute data with a tag, so that the server determines a coefficient of variation corresponding to the attribute data according to the tag. For example, when the dimension of the attribute data is the location of the user identifier, the corresponding attribute data is the name of the city where the user identifier is located. And the server marks different city names as different labels, and determines a variation coefficient corresponding to the local dimension according to the labels.
The server can also count the attribute data in the form of probability distribution to obtain a corresponding probability value, and the probability value is used for determining the variation coefficient of the corresponding dimension. For example, when the dimension of the attribute data is a travel mode preference, the corresponding attribute data may identify the number of times the user travels in different modes over a period of time. For example, the user marks that the subway travels 7 times in a week, the bus travels 5 times, and the net car travels 4 times. The server counts the probability value corresponding to each travel mode according to the travel times of different modes, the probability value is used for representing travel mode preference corresponding to the user identifier, and the variation coefficient corresponding to the travel mode preference dimension is determined according to the obtained probability value.
In this embodiment, the server performs quantization processing on the attribute data corresponding to the specified category by identifying the data category corresponding to the attribute data, so as to obtain processed attribute data, and determines a variation coefficient of the corresponding dimension according to the processed attribute data. The problem that the variation coefficient cannot be directly calculated by the attribute data of the specified category is solved, and the accuracy of calculating the variation coefficient of the corresponding dimension is improved.
In one embodiment, the server may obtain the weight corresponding to the association relationship and the weight corresponding to the similarity, and input the weight corresponding to the association relationship and the weight corresponding to the similarity into the preset model. The weights corresponding to the association relation and the weights corresponding to the similarity can be preset by a user through the terminal according to actual demands, and the influence degree of the association relation and the similarity on the influence value corresponding to the sender identifier is adjusted according to the weights corresponding to the association relation and the weights corresponding to the similarity.
In this embodiment, the server adjusts the influence degree of the association relationship and the similarity on the influence value by setting the weight corresponding to the association relationship and the weight corresponding to the similarity, so that the influence value corresponding to the sender identifier can be more accurately determined, and the accuracy of screening the target identifier is effectively improved.
In one embodiment, after determining the association relations between the sender identifiers and the receiver identifiers corresponding to all the resource sharing messages and the similarities between the sender identifiers and the receiver identifiers with the association relations, the server constructs a message transfer matrix according to the association relations between all the sender identifiers and the receiver identifiers and the times of receiving and transmitting the resource sharing messages, and constructs a similarity matrix according to the corresponding similarities. And the server performs iterative operation on the message transfer matrix and the similarity matrix by using a preset model to obtain an influence value corresponding to the sender identifier. Specifically, the preset model may utilize a PageRank algorithm, and the process of performing iterative operation on the message transfer matrix and the similarity matrix by the server may be expressed as follows:
Wherein W is g Representing a message transfer matrix, W sim Representing a similarity transfer matrix. Alpha represents the reset probability, beta represents the weight corresponding to the association relationship, namely the weight corresponding to the corresponding message transfer matrix, and lambda represents the weight corresponding to the similarity, namely the weight corresponding to the corresponding similarity matrix. Wherein α, β, and λ are all greater than or equal to 0, and α+β+λ=1. t represents the number of iterative operations performed by the server.And a vector representing the influence value of the sender identifier obtained in the t-th iterative operation of the server.
In this embodiment, the server adjusts the influence degree of the association relationship and the similarity on the influence value by setting the weight corresponding to the association relationship and the weight corresponding to the similarity. And carrying out iterative operation on the influence value corresponding to the sender identifier, so that the influence value corresponding to the sender identifier is more accurately determined, and the accuracy of screening the target identifier is effectively improved.
In one embodiment, the server may end the iterative operation based on at least one of a plurality of end conditions. Specifically, the server may end the iterative operation according to the preset iteration number. And stopping the iterative operation when the number of iterative operation times of the server reaches the preset iterative operation times. For example, after the server iterates for 10 times, the iterative operation is stopped, and an influence value corresponding to the sender identifier is obtained.
The server may also end the iterative operation based on the accuracy of the result. That is, the server acquires a preset precision threshold, which may be a constant set by the user according to the requirement, for example, 0.01. The server calculates the difference between the results of two adjacent iterative operations. And the server compares the difference value of the two adjacent iteration operation results with the precision threshold value, and when the difference value of the two adjacent iteration operation results is smaller than the precision threshold value, the iteration operation is stopped, and the influence value corresponding to the sender identifier is obtained.
The server can also calculate the difference value of the two adjacent iteration operation results after carrying out the operation of the preset iteration times, when the difference value of the two adjacent iteration operation results is larger than the precision threshold value, the operation of the preset iteration times is continued until the difference value of the two adjacent iteration operation results is smaller than the precision threshold value, the iteration operation is stopped, and the influence value corresponding to the sender identifier is obtained.
In this embodiment, the server verifies the influence value obtained after the iterative operation according to the end condition, and stops the iterative operation when the influence value corresponding to the sender identifier meets the end condition, so as to obtain the influence value. The accuracy of the operation result of the server is effectively guaranteed, and the accuracy of the influence value corresponding to the sender identification is improved.
In one embodiment, the server records a sender identifier corresponding to an influence value meeting a preset condition as a target identifier. The preset conditions are conditions of various screening influence values preset by a user according to actual demands. The preset condition may be composed of a single condition or may include two or more conditions. For example, the preset condition may be that the influence value is greater than a preset threshold, and the server marks the sender identifier corresponding to the influence value greater than the preset threshold as the target identifier. The preset condition may also be that the sender identifier corresponding to the influence value belongs to a preset area, and the corresponding influence value is ranked before a preset ranking. The server screens out sender identifiers located in a preset area from all sender identifiers, wherein the preset area can be a province or a city, and can also be an area which is divided arbitrarily. The server ranks the influence values corresponding to the sender identifiers in the preset area, screens out the sender identifiers corresponding to the influence values of the preset ranking, and marks the sender identifiers as target identifiers.
In this embodiment, the preset conditions for screening the influence values may include one condition, or may include two or more conditions. And the corresponding sender identification is marked as the target identification through the complex influence value which accords with the screening of the preset condition, so that the accuracy of screening the user identification is effectively improved.
As shown in fig. 4, in one embodiment, an information sharing method is provided. The present embodiment is mainly exemplified by the application of the method to the terminal 110 in fig. 1. Referring to fig. 4, the information sharing method specifically includes the following steps:
s402, acquiring a user identifier logged in through a parent application.
S404, receiving operation performed by the child application, wherein the child application runs on the parent application.
The parent application can directly run in an operating system of the terminal, and provides an environment for the realization of the child application. On the premise that the parent application is operated, the child application can be operated and used on the parent application in the terminal without downloading and installing. A child application is an application program implemented in the environment provided by the parent application. The terminal can directly log in the sub-application by using the user identification of the login parent application so as to facilitate the login of the sub-application.
The terminal acquires a user identifier logged in through the parent application, and the user identifier corresponds to a child application on the parent application. And the terminal receives the operation of the user identifier through the sub-application, executes the received operation and obtains an operation result. Wherein the operation received by the terminal is performed by the sub-application, so the operation received is at least one of operations corresponding to the operation of the sub-application.
And S406, when the user identifier is a target identifier, displaying an operation result through a result page, wherein the target identifier is determined according to the influence corresponding to the user identifier, and the operation result comprises information to be shared corresponding to the sub-application.
And the terminal verifies the user identification logged in through the parent application, so as to screen the user identification. Because the target identifier is determined according to the influence corresponding to the user identifier, the information to be shared corresponding to the user identifier sharing sub-application with influence can be screened, and the success rate of sharing the information to be shared is improved. Specifically, the terminal matches the user identifier with the target identifiers, when one of the plurality of target identifiers is identified by the user identifier, the verification is successful, and otherwise, the verification is failed.
When the user identifier is the target identifier, the terminal displays an operation result through a result page, and the operation result also comprises information to be shared corresponding to the sub-application. The information to be shared can comprise information and other contents related to the sub-application. The user can browse the information corresponding to the sub-application included in the information to be shared through the corresponding terminal, so that the effect of popularizing the sub-application is achieved.
The information to be shared can be displayed in the result page in various forms. For example, the information to be shared can be displayed in at least one of a plurality of forms such as links, graphics, text, etc., so that the user browses and triggers the information to be shared through the result page to share the information to be shared. For example, the terminal may receive a payment operation performed by the sub-application, execute the corresponding payment operation, obtain an operation result of completing the payment, and display the operation result including the information to be shared through the result page. Wherein the results page is shown in fig. 5.
After receiving the operation, the order of the terminal executing the received operation and verifying the user identification can be adjusted. That is, the terminal can execute the received operation, and after the operation result is obtained, it is verified whether the user identifier is the target identifier. The terminal may also verify the user identification a priori and then perform the received operation. The terminal may also perform the received operation and verify the user identification at the same time, and the order between the terminal performing the received operation and verifying the user identification is not limited here.
And S408, sharing the information to be shared through the group corresponding to the user identification.
The terminal can trigger the displayed information to be shared in various modes such as clicking, sliding and the like in the result page by the user. After the information to be shared is triggered, the terminal pulls the group corresponding to the user identifier, and the information to be shared is shared through the group.
Specifically, the terminal may share the information to be shared in multiple ways. For example, the terminal may display the pulled group through the display page, receive at least one group selected by the user identifier, generate an information sharing request according to the received group, and send the information sharing request to the server. And the server shares the information to be shared into the selected group according to the information sharing request. The terminal can also display a group page through the parent application, and share the information to be shared into the corresponding group through a message channel established by the server.
In this embodiment, on the premise of receiving an operation performed by the child application, it is verified whether a user identifier logged in by the parent application is a target identifier, so as to screen the user identifier. The target identification is determined according to the influence corresponding to the user identification, so that the user identification with influence is screened out. Compared with the traditional method of randomly extracting users, the method has the advantages that the groups corresponding to the user identifications with influence are used for sharing the information to be shared corresponding to the sub-applications, so that more users acquire the information to be shared corresponding to the sub-applications, and the users know the sub-applications and improve the success rate of sharing the information to be shared, so that the interaction times are reduced, and the interaction resources are effectively saved.
In an embodiment, the information sharing method further includes a step of acquiring a resource to be acquired included in the information to be shared, and the step of acquiring the resource to be acquired included in the information to be shared specifically includes: triggering information to be shared through a group page, and generating a resource acquisition request, wherein the resource acquisition request comprises a user identifier and a resource identifier corresponding to the information to be shared; transmitting a resource acquisition request to a server, wherein the resource acquisition request is used for indicating the server to allocate resources corresponding to the resource identifiers to the user identifiers; and receiving a resource allocation result returned by the server, and displaying the resource allocation result on a result page.
And after the terminal shares the information to be shared into the group, the information to be shared can be displayed through the group page corresponding to the parent application. The group page showing the information to be shared is shown in fig. 6. The terminal can browse the shared information to be shared through the group page of the parent application, and the information to be shared in the group page can be shared by the user identification corresponding to the terminal, or can be shared by other group members in the group.
The terminal receives an operation instruction for triggering the information to be shared in the group page by a user, and the information to be shared can be triggered in various modes such as clicking, sliding and the like. The information to be shared further includes information corresponding to the resource to be acquired, and the terminal can acquire the corresponding resource according to the information corresponding to the resource to be acquired. The resource to be acquired may include at least one of a virtual item and a physical item. The virtual item may include at least one of an account number, a virtual ticket. A physical object refers to an object having a physical form.
And the terminal extracts the resource identifier from the information corresponding to the resource to be acquired according to the received operation instruction and generates a resource acquisition request. The resource obtaining request may include a user identifier logged in through the parent application and a resource identifier corresponding to the resource to be obtained.
The terminal sends the resource acquisition request to the server, and the server analyzes the resource acquisition request to acquire the carried user identifier and the resource identifier, so that the resource corresponding to the resource identifier is allocated for the user identifier. Specifically, after receiving the resource acquisition request, the server may determine whether a residual share exists in the resource corresponding to the resource identifier. If the residual share exists, resources are allocated to the user identification from the residual share, the share of the corresponding resources is reduced, and a resource allocation result of successful resource acquisition is returned to the terminal. And if the residual share does not exist, directly returning a resource allocation result of resource acquisition failure to the terminal.
And the terminal receives a resource allocation result returned by the server after the resource allocation. The resource allocation result comprises a result of successful resource acquisition and a result of failed resource acquisition. The resource allocation result corresponding to the successful resource acquisition can also comprise the acquired description information of the resource. And the terminal displays a resource allocation result through a result page on the parent application so as to be browsed by a user corresponding to the terminal.
In this embodiment, the terminal generates a resource acquisition request by triggering the information to be shared, and sends the resource acquisition request to the server, so that the server allocates the corresponding resource according to the resource acquisition request. The terminal can receive the resource allocation result returned by the server and display the resource allocation result in the result page for browsing the resource allocation result, so that more information is conveyed, and the interaction mode with the user is increased.
In one embodiment, the step of determining the target identifier according to the influence corresponding to the user identifier includes: pulling various resource sharing messages, and determining the association relationship between the sender identifier and the receiver identifier according to the resource sharing messages; determining the similarity between the sender identifier and the receiver identifier with the association relationship by utilizing the attribute information corresponding to the sender identifier and the attribute information corresponding to the receiver identifier; inputting the association relation and the similarity into a preset model, and outputting an influence value corresponding to the sender identifier; and marking the sender identifier corresponding to the influence value meeting the preset condition as a target identifier.
The user identifier may include a sender identifier and a receiver identifier of the resource sharing message, where the user identifier that sends the resource sharing message is the sender identifier, and the user identifier that receives the resource sharing message is the receiver identifier. The resource sharing message is a message sent to the sharing object by the user identifier through the internet, and is used for indicating other user identifiers to acquire corresponding resources according to the message. Specifically, the user identifier may send a resource sharing message to the sharing object on the session page through a message channel of the social network.
The type of sharing object and session page is corresponding. For example, when the type corresponding to the session page is a one-to-one session, then the sharing object is another user identifier of the current session with the user identifier. When the type corresponding to the session page is a group session, the sharing object includes all group members in the corresponding group. That is, the resource sharing message may correspond to one receiver identifier, or may correspond to multiple receiver identifiers.
And the terminal pulls various resource sharing messages in a preset time period, and reads a sender identifier and a receiver identifier corresponding to the resource sharing messages. And the terminal establishes an association relationship between a sender identifier and a receiver identifier corresponding to the same resource sharing message according to the resource sharing message. Specifically, the association relationship further includes the number of times that the sender identifier sends the resource sharing message to the corresponding receiver identifier. The method includes that after the association relation between a sender identifier and a receiver identifier is established, the number of times that the sender identifier sends a resource sharing message to the receiver identifier corresponding to the association relation in a preset time period is counted by the terminal.
The user identifier can send and receive the resource sharing message in the social network. Therefore, the sender identifier in one association relationship may be the receiver identifier in other association relationships. Correspondingly, the receiver identifier in one association relationship can also be the sender identifier in other association relationships.
The terminal acquires attribute information corresponding to the sender identifier and attribute information corresponding to the receiver identifier, wherein the attribute information comprises data capable of representing attribute characteristics of the sender identifier or the receiver identifier. The dimensions of the attribute information may include at least one of a set of multiple dimensions. For example, the attribute information corresponding to the sender identifier and the attribute information corresponding to the receiver identifier may include at least one of attribute data such as age, gender, city, consumption preference, and travel mode preference corresponding to the user identifier.
The terminal may determine the similarity between the sender identifier and the receiver identifier, which have an association relationship, in various ways using attribute information corresponding to the sender identifier and attribute information corresponding to the receiver identifier. For example, the terminal may calculate the similarity between the sender identifier and the receiver identifier according to the attribute information, and may call a mapping relationship between the attribute information and the similarity, and find the similarity between the sender identifier and the receiver identifier corresponding to the attribute information according to the mapping relationship.
The terminal calls a preset model, wherein the preset model is used for calculating an influence value corresponding to the sender identifier, and at least one of a plurality of influence algorithms can be utilized in the preset model. For example, the PageRank algorithm is used to calculate the impact value corresponding to the sender identification. And inputting the association relation between the sender identifier and the receiver identifier and the similarity between the sender identifier and the receiver identifier corresponding to each association relation into a preset model. The terminal calculates the association relation and the corresponding similarity by using a preset model, and the calculation result is an influence value which is output by the preset model and corresponds to the sender identifier. The influence value is used for indicating the influence of the corresponding sender identifier in the corresponding social network, and the larger the influence value is, the larger the influence of the corresponding sender identifier in the corresponding social network is.
And the terminal compares the influence value corresponding to each sender identifier with a preset condition, and screens the sender identifiers according to the preset condition. And when the influence value accords with the preset condition, marking the sender identifier corresponding to the influence value as a target identifier. The preset condition may be at least one of a plurality of screening conditions. For example, the preset condition may be an influence threshold, and the terminal marks the sender identifier corresponding to the influence value greater than or equal to the influence threshold as the target identifier. The terminal can also mark a preset number of sender identifications as target identifications according to the influence value.
In this embodiment, an influence value corresponding to the sender identifier is determined according to the association relationship and the similarity, and the influence value can more accurately represent the influence of the corresponding sender identifier in the social network. The terminal marks the sender identifier corresponding to the influence value meeting the preset condition as the target identifier, so that the target identifier with large influence can be screened out more accurately. And returning an operation result carrying the information to be shared to the target identifier, and sharing the information to be shared in the corresponding social network through the target identifier with large influence, so that the sharing success rate of the information to be shared is improved, the interaction times are reduced, and the interaction resources are effectively saved.
In an embodiment, the specific step of determining the target identifier according to the influence corresponding to the user identifier may refer to the description in the embodiments corresponding to the information sharing method taking the server as an example, so that the description is omitted herein.
Fig. 2, fig. 3, and fig. 4 are schematic flow diagrams of a method for sharing information in an embodiment. It should be understood that, although the steps in the flowcharts of fig. 2, 3, and 4 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2, 3, and 4 may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed sequentially, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
As shown in fig. 7, in one embodiment, an information sharing apparatus is provided, which includes a request receiving module 702, an operation executing module 704, a result page returning module 706, and a group page returning module 708, wherein:
The request receiving module 702 is configured to receive an operation request uploaded by a child application, where the child application runs on a parent application, and the operation request carries a user identifier.
And the operation execution module 704 is configured to execute a corresponding operation according to the operation request, so as to obtain an operation result.
And the result page returning module 706 is configured to return a result page carrying an operation result when the user identifier is verified to be a target identifier, where the target identifier is determined according to an influence corresponding to the user identifier, and the operation result includes information to be shared corresponding to the child application.
The group page returning module 708 is configured to return a corresponding group page to the parent application after the information to be shared is triggered, and share the information to be shared through the group page.
According to the information sharing device, on the premise that the operation request is received, whether the user identifier carried in the operation request is the target identifier is verified, and therefore the user identifier is screened. The target identification is determined according to the influence corresponding to the user identification, so that the user identification with influence is screened out. And returning an operation result comprising information to be shared corresponding to the sub-application to the user identification with influence. Compared with the traditional method of randomly extracting users, the method has the advantages that the user identification is screened, the group page corresponding to the user identification with influence is screened to share the information to be shared, more users acquire the information to be shared corresponding to the sub-application, more users know the sub-application, the success rate of sharing the information to be shared is improved, the interaction times are reduced, and the interaction resources are effectively saved.
In one embodiment, the user identifier includes a sender identifier and a receiver identifier of the resource sharing message, and the above-mentioned result page returning module 706 is further configured to obtain multiple resource sharing messages, and determine an association relationship between the sender identifier and the receiver identifier according to the resource sharing message; determining the similarity between the sender identifier and the receiver identifier with the association relationship by utilizing the attribute information corresponding to the sender identifier and the attribute information corresponding to the receiver identifier; inputting the association relation and the similarity into a preset model, and outputting an influence value corresponding to the sender identifier; and marking the sender identifier corresponding to the influence value meeting the preset condition as a target identifier.
In one embodiment, the results page returning module 706 is further configured to determine a sender identifier and a receiver identifier corresponding to the resource sharing message, and generate a directed association relationship from the receiver identifier to the sender identifier.
In one embodiment, the attribute information includes attribute data of at least one dimension, and the result page returning module 706 is further configured to obtain attribute information corresponding to a sender identifier and attribute information corresponding to a receiver identifier that have an association relationship; the method comprises the steps of reading attribute data of preset dimensions in target attribute information, wherein the target attribute information comprises attribute information corresponding to a sender identifier and attribute information corresponding to a receiver identifier; determining a variation coefficient corresponding to a preset dimension according to the attribute data; and determining the similarity between the sender identifier and the receiver identifier with the association relationship by using the variation coefficient corresponding to the preset dimension.
In one embodiment, the result page returning module 706 is further configured to identify a data category corresponding to the attribute data; when the data category is the appointed category, carrying out quantization processing on the attribute data corresponding to the data category to obtain the processed attribute data; and determining a variation coefficient corresponding to the preset dimension according to the processed attribute data.
In one embodiment, the result page returning module 706 is further configured to count the interaction frequency between the sender identifier and the receiver identifier corresponding to the association relationship in a preset period of time; and when the interaction frequency is smaller than a preset threshold value, eliminating the association relationship between the sender identifier and the receiver identifier corresponding to the interaction frequency.
As shown in fig. 8, in one embodiment, an information sharing apparatus is provided, where the apparatus includes an identifier obtaining module 802, an operation receiving module 804, a result displaying module 806, and an information sharing module 808, where:
the identifier obtaining module 802 is configured to obtain a user identifier logged in through the parent application.
The operation receiving module 804 is configured to receive an operation performed by a child application, where the child application runs on a parent application.
And a result display module 806, configured to display an operation result through the result page when the user identifier is a target identifier, where the target identifier is determined according to the influence corresponding to the user identifier, and the operation result includes information to be shared corresponding to the sub-application.
And the information sharing module 808 is configured to share the information to be shared through the group corresponding to the user identifier.
According to the information sharing device, on the premise that operation performed through the child application is received, whether the user identifier logged in through the parent application is the target identifier is verified, and therefore the user identifier is screened. The target identification is determined according to the influence corresponding to the user identification, so that the user identification with influence is screened out. Compared with the traditional method of randomly extracting users, the method has the advantages that the groups corresponding to the user identifications with influence are used for sharing the information to be shared corresponding to the sub-applications, so that more users acquire the information to be shared corresponding to the sub-applications, and the sharing success rate of the information to be shared is improved while more users know the sub-applications, so that the interaction times are reduced, and the interaction resources are effectively saved.
In one embodiment, the user identifier includes a sender identifier and a receiver identifier of the resource sharing message, and the result display module 806 is further configured to pull multiple resource sharing messages, and determine an association relationship between the sender identifier and the receiver identifier according to the resource sharing message; determining the similarity between the sender identifier and the receiver identifier with the association relationship by utilizing the attribute information corresponding to the sender identifier and the attribute information corresponding to the receiver identifier; inputting the association relation and the similarity into a preset model, and outputting an influence value corresponding to the sender identifier; and marking the sender identifier corresponding to the influence value meeting the preset condition as a target identifier.
In an embodiment, the information sharing device further includes a resource obtaining module, configured to trigger information to be shared through a group page, generate a resource obtaining request, where the resource obtaining request carries a user identifier and a resource identifier corresponding to the information to be shared; transmitting a resource acquisition request to a server, wherein the resource acquisition request is used for indicating the server to allocate resources corresponding to the resource identifiers to the user identifiers; and receiving a resource allocation result returned by the server, and displaying the resource allocation result on a result page.
FIG. 9 illustrates an internal block diagram of a computer device in one embodiment. The computer device may be specifically the terminal 110 of fig. 1. As shown in fig. 9, the computer device includes a processor, a memory, a network interface, an input device, and a display screen connected by a system bus. The memory includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system, and may also store a computer program that, when executed by a processor, causes the processor to implement an information sharing method. The internal memory may also store a computer program that, when executed by the processor, causes the processor to perform the information sharing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application applies, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, the information sharing apparatus provided in the present application may be implemented as a computer program, which may be executed on a computer device as shown in fig. 9. The memory of the computer device may store various program modules that constitute the information sharing apparatus, such as the request receiving module 702, the operation executing module 704, the result page returning module 706, and the group page returning module 708 shown in fig. 7, and the identifier obtaining module 802, the operation receiving module 804, the result displaying module 806, and the information sharing module 808 shown in fig. 8. The computer program constituted by the respective program modules causes the processor to execute the steps in the information sharing method of the respective embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 9 may execute, by the request receiving module 702 in the information sharing apparatus shown in fig. 7, to receive an operation request uploaded by a child application, where the child application runs on a parent application, and the operation request carries a user identifier. The computer device may execute the corresponding operation according to the operation request through the operation execution module 704 to obtain an operation result. The computer device may execute, through the result page returning module 706, to return a result page carrying an operation result when the user identifier is verified to be a target identifier, where the target identifier is determined according to an influence corresponding to the user identifier, and the operation result includes information to be shared corresponding to the child application. The computer device may return the corresponding group page to the parent application after the information to be shared is triggered through the group page return module 708, and share the information to be shared through the group page.
For example, the computer apparatus shown in fig. 9 may perform acquisition of the user identification logged in through the parent application through the identification acquisition module 802 in the information sharing apparatus shown in fig. 8. The computer device may perform receiving operations by the child application through the operation receiving module 804, the child application running on the parent application. The computer device may display, through the result display module 806, an operation result through the result page when the user identifier is a target identifier, where the target identifier is determined according to an influence corresponding to the user identifier, and the operation result includes information to be shared corresponding to the child application. The computer device may perform sharing of the information to be shared through the group corresponding to the user identifier by the resource sharing module 808.
In one embodiment, a computer device is provided that includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the information sharing method described above. The step of the information sharing method may be the step of the information sharing method in each embodiment.
In one embodiment, a computer readable storage medium is provided, storing a computer program, which when executed by a processor, causes the processor to perform the steps of the information sharing method described above. The step of the information sharing method may be the step of the information sharing method in each embodiment.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.
Claims (20)
1. An information sharing method, comprising:
receiving an operation request uploaded by a child application, wherein the child application runs on a parent application, and the operation request carries a user identifier; the sub-application is used for making payment;
executing corresponding payment operation according to the operation request to obtain an operation result of payment completion;
when the user identification is verified to be a target identification, returning a result page carrying an operation result of the payment completion, wherein the target identification is determined according to an influence value corresponding to the user identification; the user identification comprises a sender identification and a receiver identification of the resource sharing message; the influence value is obtained by carrying out iterative operation on the message transfer matrix and the similarity matrix by using a preset model; the message transfer matrix is constructed according to the incidence relation between the sender identifier and the receiver identifier and the times of receiving and transmitting the resource sharing message; the similarity matrix is obtained by determining the similarity between the sender identifier and the receiver identifier with the association relation; the similarity is the product of variation coefficients corresponding to each dimension in preset dimensions; the variation coefficient corresponding to each dimension is the ratio of standard deviation and average value between the attribute data of the sender identifier and the attribute data of the receiver identifier in the corresponding dimension; the payment completion operation result comprises information to be shared; the information to be shared comprises information content related to the sub-application for making payment;
And after the information to be shared is triggered, returning a corresponding group page to the parent application, and sharing the information to be shared through the group page.
2. The method of claim 1, wherein the step of determining the association between the sender identification and the receiver identification comprises:
acquiring various resource sharing messages, and determining the association relationship between the sender identifier and the receiver identifier according to the resource sharing messages;
the target identifier determining according to the influence value corresponding to the user identifier comprises the following steps:
and marking the sender identifier corresponding to the influence value meeting the preset condition as a target identifier.
3. The method of claim 2, wherein determining the association between the sender identification and the receiver identification based on the resource sharing message comprises:
and determining a sender identifier and a receiver identifier corresponding to the resource sharing message, and generating a directed association relation pointed to the sender identifier by the receiver identifier.
4. The method according to claim 1, wherein the obtaining of the attribute data includes:
Acquiring attribute information corresponding to a sender identifier and attribute information corresponding to a receiver identifier in the association relation;
and reading attribute data of preset dimensions in target attribute information, wherein the target attribute information comprises attribute information corresponding to the sender identifier and attribute information corresponding to the receiver identifier.
5. The method according to claim 4, wherein the method further comprises:
identifying a data category corresponding to the attribute data; when the data category is a specified category, carrying out quantization processing on attribute data corresponding to the data category to obtain processed attribute data; the processed attribute data is used for determining a variation coefficient corresponding to the preset dimension.
6. The method according to any one of claims 2 to 5, wherein after said determining an association between said sender identity and said receiver identity, the method further comprises:
counting the interaction frequency between the sender identifier and the receiver identifier corresponding to the association relation in a preset time period;
and when the interaction frequency is smaller than a preset threshold value, eliminating the association relation between the sender identifier and the receiver identifier corresponding to the interaction frequency.
7. An information sharing method, comprising:
acquiring a user identifier logged in through a parent application;
receiving a payment operation performed by a child application, wherein the child application runs on the parent application and is used for performing payment;
when the user identifier is a target identifier, displaying an operation result of payment completion through a result page, wherein the target identifier is determined according to an influence value corresponding to the user identifier; the user identification comprises a sender identification and a receiver identification of the resource sharing message; the influence value is obtained by carrying out iterative operation on the message transfer matrix and the similarity matrix by using a preset model; the message transfer matrix is constructed according to the incidence relation between the sender identifier and the receiver identifier and the times of receiving and transmitting the resource sharing message; the similarity matrix is obtained by determining the similarity between the sender identifier and the receiver identifier with the association relation; the similarity is the product of variation coefficients corresponding to each dimension in preset dimensions; the variation coefficient corresponding to each dimension is the ratio of standard deviation and average value between the attribute data of the sender identifier and the attribute data of the receiver identifier in the corresponding dimension; the payment completion operation result comprises information to be shared; the information to be shared comprises information content related to the sub-application for making payment;
And sharing the information to be shared through the group corresponding to the user identifier.
8. The method of claim 7, wherein the step of determining the association between the sender identification and the receiver identification comprises:
pulling a plurality of resource sharing messages, and determining the association relationship between the sender identifier and the receiver identifier according to the resource sharing messages;
the target mark is obtained by screening the following steps:
and marking the sender identifier corresponding to the influence value meeting the preset condition as a target identifier.
9. The method of claim 7, wherein after the sharing the information to be shared, the method further comprises:
triggering the information to be shared through a group page, and generating a resource acquisition request, wherein the resource acquisition request carries a user identifier and a resource identifier corresponding to the information to be shared;
the resource acquisition request is sent to a server, and the resource acquisition request is used for indicating the server to allocate resources corresponding to the resource identifiers to the user identifiers;
and receiving a resource allocation result returned by the server, and displaying the resource allocation result on a result page.
10. An information sharing apparatus, the apparatus comprising:
the request receiving module is used for receiving an operation request uploaded by a child application, the child application runs on a parent application, and the operation request carries a user identifier; the sub-application is used for making payment;
the operation execution module is used for executing corresponding payment operation according to the operation request to obtain an operation result of payment completion;
the result page returning module is used for returning a result page carrying the operation result of the payment completion when the user identification is verified to be a target identification, wherein the target identification is determined according to the influence value corresponding to the user identification; the user identification comprises a sender identification and a receiver identification of the resource sharing message; the influence value is obtained by carrying out iterative operation on the message transfer matrix and the similarity matrix by using a preset model; the message transfer matrix is constructed according to the incidence relation between the sender identifier and the receiver identifier and the times of receiving and transmitting the resource sharing message; the similarity matrix is obtained by determining the similarity between the sender identifier and the receiver identifier with the association relation; the similarity is the product of variation coefficients corresponding to each dimension in preset dimensions; the variation coefficient corresponding to each dimension is the ratio of standard deviation and average value between the attribute data of the sender identifier and the attribute data of the receiver identifier in the corresponding dimension; the payment completion operation result comprises information to be shared; the information to be shared comprises information content related to the sub-application for making payment;
And the group page returning module is used for returning a corresponding group page to the parent application after the information to be shared is triggered, and sharing the information to be shared through the group page.
11. The apparatus of claim 10, wherein the results page return module is further configured to obtain a plurality of resource sharing messages, and determine an association between the sender identifier and the receiver identifier according to the resource sharing messages; the result page returning module is further used for marking a sender identifier corresponding to the influence value meeting the preset condition as a target identifier.
12. The apparatus of claim 11, wherein the results page return module is further configured to determine a sender identification and a receiver identification corresponding to the resource sharing message, and generate a directed association relationship pointed to by the receiver identification to the sender identification.
13. The apparatus of claim 11, wherein the results page return module is further configured to obtain attribute information corresponding to a sender identifier and attribute information corresponding to a receiver identifier that have the association relationship; and reading attribute data of preset dimensions in target attribute information, wherein the target attribute information comprises attribute information corresponding to the sender identifier and attribute information corresponding to the receiver identifier.
14. The apparatus of claim 13, wherein the results page return module is further configured to identify a data category corresponding to the attribute data; when the data category is a specified category, carrying out quantization processing on attribute data corresponding to the data category to obtain processed attribute data; the processed attribute data is used for determining a variation coefficient corresponding to the preset dimension.
15. The apparatus according to any one of claims 11 to 14, wherein the result page returning module is further configured to count an interaction frequency between a sender identifier and a receiver identifier corresponding to the association relationship in a preset period of time; and when the interaction frequency is smaller than a preset threshold value, eliminating the association relation between the sender identifier and the receiver identifier corresponding to the interaction frequency.
16. An information sharing apparatus, the apparatus comprising:
the identification acquisition module is used for acquiring a user identification logged in through the parent application;
the operation receiving module is used for receiving payment operation through a child application, wherein the child application runs on the parent application and is used for making payment;
the result display module is used for displaying the operation result of payment completion through a result page when the user identifier is a target identifier, wherein the target identifier is determined according to the influence value corresponding to the user identifier; the user identification comprises a sender identification and a receiver identification of the resource sharing message; the influence value is obtained by carrying out iterative operation on the message transfer matrix and the similarity matrix by using a preset model; the message transfer matrix is constructed according to the incidence relation between the sender identifier and the receiver identifier and the times of receiving and transmitting the resource sharing message; the similarity matrix is obtained by determining the similarity between the sender identifier and the receiver identifier with the association relation; the similarity is the product of variation coefficients corresponding to each dimension in preset dimensions; the variation coefficient corresponding to each dimension is the ratio of standard deviation and average value between the attribute data of the sender identifier and the attribute data of the receiver identifier in the corresponding dimension; the payment completion operation result comprises information to be shared; the information to be shared comprises information content related to the sub-application for payment;
And the information sharing module is used for sharing the information to be shared through the group corresponding to the user identifier.
17. The apparatus of claim 16, wherein the result display module is further configured to pull a plurality of resource sharing messages, and determine an association between the sender identifier and the receiver identifier according to the resource sharing messages; the result display module is also used for marking the sender identifier corresponding to the influence value meeting the preset condition as a target identifier.
18. The apparatus of claim 16, wherein the information sharing apparatus further comprises a resource obtaining module configured to trigger the information to be shared through a group page, and generate a resource obtaining request, where the resource obtaining request carries a user identifier and a resource identifier corresponding to the information to be shared; the resource acquisition request is sent to a server, and the resource acquisition request is used for indicating the server to allocate resources corresponding to the resource identifiers to the user identifiers; and receiving a resource allocation result returned by the server, and displaying the resource allocation result on a result page.
19. A computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of the method of any one of claims 1 to 9.
20. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method of any of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910296109.7A CN111818114B (en) | 2019-04-12 | 2019-04-12 | Information sharing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910296109.7A CN111818114B (en) | 2019-04-12 | 2019-04-12 | Information sharing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111818114A CN111818114A (en) | 2020-10-23 |
CN111818114B true CN111818114B (en) | 2023-05-30 |
Family
ID=72844554
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910296109.7A Active CN111818114B (en) | 2019-04-12 | 2019-04-12 | Information sharing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111818114B (en) |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7478161B2 (en) * | 1999-11-30 | 2009-01-13 | Microsoft Corporation | Network quality of service for qualitative applications |
CN105100223B (en) * | 2015-07-01 | 2019-10-15 | 北京奇虎科技有限公司 | Sharing files method, apparatus and system based on cloud storage |
CN106909594B (en) * | 2016-06-06 | 2020-05-05 | 阿里巴巴集团控股有限公司 | Information pushing method and device |
CN106682144B (en) * | 2016-12-20 | 2018-07-13 | 深圳壹账通智能科技有限公司 | page display method and device |
CN109600408B (en) * | 2017-09-30 | 2020-12-29 | 腾讯科技(深圳)有限公司 | Resource sharing method and device, storage medium and computer equipment |
CN108809811B (en) * | 2018-06-12 | 2021-11-16 | 腾讯科技(深圳)有限公司 | Object sharing method and device |
-
2019
- 2019-04-12 CN CN201910296109.7A patent/CN111818114B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN111818114A (en) | 2020-10-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11531867B2 (en) | User behavior prediction method and apparatus, and behavior prediction model training method and apparatus | |
CN108520470B (en) | Method and apparatus for generating user attribute information | |
US20140095308A1 (en) | Advertisement distribution apparatus and advertisement distribution method | |
CN111079841A (en) | Training method and device for target recognition, computer equipment and storage medium | |
US11748452B2 (en) | Method for data processing by performing different non-linear combination processing | |
CN110020022B (en) | Data processing method, device, equipment and readable storage medium | |
CN110866040B (en) | User portrait generation method, device and system | |
US11244153B2 (en) | Method and apparatus for processing information | |
US20180189329A1 (en) | Rule based decisioning on metadata layers | |
CN110245684B (en) | Data processing method, electronic device, and medium | |
CN111552696A (en) | Data processing method and device based on big data, computer equipment and medium | |
CN109409419B (en) | Method and apparatus for processing data | |
CN113205189B (en) | Method for training prediction model, prediction method and device | |
CN117473130A (en) | Service processing method, device, equipment, medium and program product | |
JP6680663B2 (en) | Information processing apparatus, information processing method, prediction model generation apparatus, prediction model generation method, and program | |
CN111818114B (en) | Information sharing method and device | |
CN114491093B (en) | Multimedia resource recommendation and object representation network generation method and device | |
CN115016754A (en) | Method and device for synchronously displaying pages among devices, electronic device and medium | |
CN114885152A (en) | Video service quality evaluation method, device, equipment and storage medium | |
CN109727072B (en) | Method and apparatus for processing information | |
US10630793B2 (en) | Browser fingerprinting | |
CN107305610B (en) | Access path processing method and device, and automaton identification method, device and system | |
CN114048392B (en) | Multimedia resource pushing method and device, electronic equipment and storage medium | |
CN114021739B (en) | Business processing method, business processing model training device and electronic equipment | |
US20240214466A1 (en) | Content push method and device, apparatus, and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |