CN111629038A - Virtual resource sharing processing method and device, server and storage medium - Google Patents

Virtual resource sharing processing method and device, server and storage medium Download PDF

Info

Publication number
CN111629038A
CN111629038A CN202010424616.7A CN202010424616A CN111629038A CN 111629038 A CN111629038 A CN 111629038A CN 202010424616 A CN202010424616 A CN 202010424616A CN 111629038 A CN111629038 A CN 111629038A
Authority
CN
China
Prior art keywords
virtual resource
password
configuration information
terminal
information
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.)
Granted
Application number
CN202010424616.7A
Other languages
Chinese (zh)
Other versions
CN111629038B (en
Inventor
邵帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202010424616.7A priority Critical patent/CN111629038B/en
Publication of CN111629038A publication Critical patent/CN111629038A/en
Application granted granted Critical
Publication of CN111629038B publication Critical patent/CN111629038B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/101Access control lists [ACL]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

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)

Abstract

The disclosure relates to a virtual resource sharing processing method, a virtual resource sharing processing device, a server and a storage medium, wherein the method comprises the following steps: analyzing the password sent by the terminal, when the password is determined to be a fixed password in a set list, further determining the virtual resource corresponding to the fixed password, further reading the configuration information of the virtual resource, generating the display information corresponding to the virtual resource according to the configuration information, and returning the display information to the terminal. In this embodiment, by setting fixed configuration information for the virtual resource in advance, information corresponding to the virtual resource does not need to be stored in a storage, and when a user needs to acquire corresponding shared content after the password is shared and propagated, the server directly acquires preset fixed parameters from the configuration, so that the problem that a hotspot is generated under high concurrency caused by the fact that the storage information needs to be accessed in the conventional technology is avoided, and the service performance is greatly improved.

Description

Virtual resource sharing processing method and device, server and storage medium
Technical Field
The present disclosure relates to the field of computer network technologies, and in particular, to a virtual resource sharing method, an apparatus, a server, and a storage medium.
Background
With the development of the internet and communication technologies, it has become more common to share virtual resources (e.g., red envelope) among applications.
In the related art, many merchants can promote their products or promote them by sharing the red envelope password. However, as social platforms are more and more strictly controlled, many social platforms hide partial password content when the propagation volume of the red envelope password of other platforms is large, so that the shared party cannot directly copy the complete password content and cannot obtain a link by directly clicking the shared password. Based on this, the merchant and the social platform can agree through a white list, and the social platform allows the password in the white list to be propagated.
However, when the propagation amount of a certain red packet password is large, it means that a large number of users are robbed for the same red packet, and each time the user is robbed for the red packet, the server side needs to access the storage information corresponding to the red packet to obtain the related information of the red packet, and updates the stored related information of the red packet after the user has robbed the red packet.
Disclosure of Invention
The present disclosure provides a virtual resource sharing processing method, device, server, and storage medium, so as to at least solve the problem of hot spots generated due to storage corresponding to a red packet group in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a virtual resource sharing processing method is provided, including:
analyzing a password sent by a terminal;
when the password is a fixed password in the set list, determining the virtual resource corresponding to the fixed password;
reading configuration information of virtual resources;
generating display information corresponding to the virtual resources according to the configuration information;
and returning display information to the terminal, wherein the display information is used for indicating the terminal to display.
In one embodiment, the generating, according to the configuration information, presentation information corresponding to the virtual resource includes: determining a set time period of the current time; acquiring display contents corresponding to the set time period from the configuration information of the virtual resources according to the set time period and the configuration information of the virtual resources; and generating display information corresponding to the virtual resources according to the display content.
In one embodiment, the generating, according to the configuration information, presentation information corresponding to the virtual resource includes: determining a user attribute corresponding to a terminal; acquiring display contents corresponding to the user attributes from the configuration information of the virtual resources according to the user attributes and the configuration information of the virtual resources; and generating display information corresponding to the virtual resources according to the display content.
In one embodiment, the virtual resource is a red packet group; the presentation information also includes the total amount of the red packet group.
In one embodiment, after returning the presentation information to the terminal, the method further includes: receiving a virtual resource acquisition request of a terminal; and calculating the money amount of the red packet allocated to the terminal user according to the total money amount of the red packet group, and returning the money amount of the red packet to the terminal.
In one embodiment, the configuration information further includes a validity period of the virtual resource; generating display information corresponding to the virtual resource according to the configuration information, including: and determining whether the virtual resource is in the valid period according to the current time, and if the virtual resource is determined not to be in the valid period, generating display information of the expired virtual resource.
According to a second aspect of the embodiments of the present disclosure, there is provided a virtual resource sharing processing apparatus, including:
the password analysis module is configured to analyze the password sent by the terminal;
the virtual resource determining module is configured to determine a virtual resource corresponding to the fixed password when the password is the fixed password in the set list;
a configuration information reading module configured to perform reading of configuration information of the virtual resource;
the display information generation module is configured to generate display information corresponding to the virtual resource according to the configuration information;
and the information returning module is configured to execute the returning of the display information to the terminal, wherein the display information is used for indicating the terminal to display.
In one embodiment, the presentation information generation module includes: a time determination unit configured to perform determining a set time period in which a current time is located; a first display content acquisition unit configured to acquire, from the configuration information of the virtual resource, a first display content having a correspondence relationship with a set time period, according to the set time period and the configuration information of the virtual resource; and a first display information generation unit configured to perform generation of display information corresponding to the virtual resource from the first display content.
In one embodiment, the presentation information generation module includes: a user attribute determining unit configured to perform determining a user attribute corresponding to the terminal; a second display content acquisition unit configured to execute acquiring, from the configuration information of the virtual resource, a second display content having a correspondence relationship with the user attribute, according to the user attribute and the configuration information of the virtual resource; and a second presentation information generation unit configured to perform generation of presentation information corresponding to the virtual resource from the second presentation content.
In one embodiment, the virtual resource is a red packet group; the display information also comprises the total amount of the red packet group.
In one embodiment, the apparatus further includes: a request receiving module configured to execute a virtual resource acquisition request of a receiving terminal; and the request processing module is configured to calculate the red packet amount distributed to the terminal user according to the total amount of the red packet group and return the red packet amount to the terminal.
In one embodiment, the configuration information further includes a validity period of the virtual resource; the display information generation module comprises: a term determination unit configured to perform determination of whether the virtual resource is within the validity period according to the current time; and the third display information generation unit is configured to execute generation of display information of the virtual resource which is out of date if the virtual resource is determined not to be in the validity period.
According to a third aspect of the embodiments of the present disclosure, there is provided a server, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to enable the server to execute the virtual resource sharing processing method described in any embodiment of the first aspect.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a storage medium, wherein instructions in the storage medium, when executed by a processor of a server, enable the server to execute the virtual resource sharing processing method described in any one of the embodiments of the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, the program product comprising a computer program, the computer program being stored in a readable storage medium, from which at least one processor of a device reads and executes the computer program, so that the device performs the virtual resource sharing processing method described in any one of the embodiments of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: analyzing the password sent by the terminal, when the password is determined to be a fixed password in a set list, further determining the virtual resource corresponding to the fixed password, further reading the configuration information of the virtual resource, generating the display information corresponding to the virtual resource according to the configuration information, and returning the display information to the terminal. In this embodiment, by setting fixed configuration information for the virtual resource in advance, information corresponding to the virtual resource does not need to be stored in a storage, and when a user needs to acquire corresponding shared content after the password is shared and propagated, the server directly acquires preset fixed parameters from the configuration, so that the problem that a hotspot is generated under high concurrency caused by the fact that the storage information needs to be accessed in the conventional technology is avoided, and the service performance is greatly improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a diagram illustrating an application environment of a virtual resource sharing processing method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a virtual resource sharing processing method according to an exemplary embodiment.
FIG. 3 is a flowchart illustrating steps for generating presentation information according to an example embodiment.
Fig. 4 is a flowchart illustrating steps for generating presentation information according to another exemplary embodiment.
Fig. 5 is a flowchart illustrating a virtual resource sharing processing method according to another exemplary embodiment.
Fig. 6 is a block diagram illustrating a virtual resource sharing processing apparatus according to an example embodiment.
Fig. 7 is an internal block diagram of a server according to an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The virtual resource sharing processing method provided by the present disclosure may be applied to an application environment as shown in fig. 1. Including a terminal 110, a first server 120, and a second server 130, the terminal 110 may interact with the first server 120 and the second server 130 through a network. The terminal 110 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and each of the first server 120 and the second server 130 may be implemented by an independent server or a server cluster composed of a plurality of servers.
The terminal 110 is installed with a client of a first application program and a client of a second application program, the first application program may be a shopping APP, a short video APP, a live APP, a video playing APP, etc., the second application program may be a social application APP, and the social application APP refers to an APP for performing messaging based on a social relationship chain between users. The first server 120 is a backend server corresponding to a client of the first application, and the second server 130 is a backend server corresponding to a client of the second application.
Currently, a terminal may transmit resources (e.g., videos, red packets, etc.) in a client of a first application program through a client of a second application program, and in order to save traffic, before transmission, a first server 120 corresponding to the client of the first application program may encode the resources to be transmitted based on a sharing request and form a password that the first application program can recognize, and the terminal may share and transmit the password to other users in a social relationship chain thereof through the client of the second application program. It can be understood that the terminal may share and propagate the password that the first application may recognize through the client of the second application, and the terminal may also receive, through the client of the second application, the password that the other users in the social relationship chain may share and propagate through the first application. And when the password that can be identified by the first application program is propagated at the client of the second application program, the password is specifically processed by the second server 130 corresponding to the client of the second application program.
Specifically, when the client of the first application program of the terminal is a live APP, after the client of the second application program of the terminal receives a sharing password about virtual resources in the live APP sent by other users in the social relationship chain, the terminal can copy the sharing password and open the live APP, and the terminal can also directly click the sharing password to open the live APP, so that after the live APP identifies and verifies the sharing password, the live APP requests the corresponding virtual resources of the sharing password to a corresponding background server (such as the first server 120) and displays the virtual resources on the terminal. However, when the propagation amount of a shared password in the first application program in the second application program is large, the background server corresponding to the second application program, i.e., the second server 130, may process the shared password during propagation based on security considerations, for example, hide partial password content, so that the shared party cannot directly copy complete password content or obtain a link by directly clicking the shared password. Based on this, various applications APP (i.e., the first application) agree with the social application APP (i.e., the second application) in a white list manner, and the social application APP allows mass propagation of passwords in the white list, so that when sharing activities need to be performed in the social application APP in a large amount, for example, sharing activities of virtual resources, the sharing activities can be performed in a manner that all the passwords in the white list point to the virtual resources.
Fig. 2 is a flowchart illustrating a virtual resource sharing processing method according to an exemplary embodiment, and as shown in fig. 2, the method is described as being applied to the first server 120 in fig. 1, which includes the following steps.
In step S210, the password transmitted by the terminal is analyzed.
The password can be received by a client of the terminal, and after a certain client of the terminal receives the password, the terminal can directly click the password to open the corresponding APP, so that the corresponding APP is triggered to carry out identification and verification on the password, and then the password is sent to the corresponding background server to request for the resource corresponding to the password; the terminal can also copy the password and open the corresponding APP, so as to trigger the corresponding APP to carry out identification and verification on the password, and then send the password to the corresponding background server to request the resource corresponding to the password. Therefore, after receiving the password, the background server firstly analyzes the password, for example, analyzes the length, the encoding format and the like of the password, and then verifies the validity of the password according to the analyzed content, so as to ensure that the subsequent steps are executed on the premise that the password is legal.
In step S220, when the password is a fixed password in the setting list, the virtual resource corresponding to the fixed password is determined.
The fixed password in the set list is a password in a white list that is in common with the corresponding social application APP. The virtual resource corresponding to the fixed password refers to the virtual resource pointed by the fixed password. In this embodiment, after determining that the password is legal, further determining whether the password is a password in a white list that is in common with the corresponding social application APP (i.e. a fixed password in a set list), and when determining that the password is a password in a white list, further determining a virtual resource corresponding to the password.
Specifically, a certain mapping relationship exists between the fixed password and the virtual resource that needs to be shared and propagated, generally, there are a plurality of passwords in the white list, when there is only one virtual resource that needs to be shared and propagated, the mapping relationship may be that all the passwords in the white list point to the virtual resource, and when there are a plurality of virtual resources that need to be shared and propagated, the mapping relationship may be that one or more passwords in the white list point to a certain virtual resource. Therefore, the server can determine the virtual resource corresponding to the password according to the received password and the mapping relation.
In step S230, the configuration information of the virtual resource is read.
The configuration information of the virtual resource is a fixed parameter configured for the virtual resource in advance. Specifically, after determining the virtual resource corresponding to the received password according to the above steps, the server further obtains the configuration information preset for the virtual resource. In this embodiment, by setting fixed configuration information for the virtual resource in advance, information corresponding to the virtual resource does not need to be stored in a storage, and when a user needs to acquire corresponding shared content after the password is shared and propagated, the server directly acquires preset fixed parameters from the configuration, thereby avoiding the problem that a hotspot is generated under high concurrency caused by the fact that the storage information needs to be accessed in the conventional technology.
In step S240, presentation information corresponding to the virtual resource is generated according to the configuration information.
In this embodiment, the presentation information is presentation content corresponding to the virtual resource extracted from the configuration information of the virtual resource. Specifically, after the configuration information of the virtual resources is read, display information corresponding to the virtual resources is generated according to the configuration information.
In step S250, the presentation information is returned to the terminal.
The display information is used for indicating the terminal to display, for example, indicating the terminal to display the display content of the virtual resource corresponding to the password.
According to the virtual resource sharing processing method, the password sent by the terminal is analyzed, when the password is determined to be the fixed password in the set list, the virtual resource corresponding to the fixed password is further determined, the configuration information of the virtual resource is further read, the display information corresponding to the virtual resource is generated according to the configuration information, and the display information is returned to the terminal. In this embodiment, by setting fixed configuration information for the virtual resource in advance, information corresponding to the virtual resource does not need to be stored in a storage, and when a user needs to acquire corresponding shared content after the password is shared and propagated, the server directly acquires preset fixed parameters from the configuration, so that the problem that a hotspot is generated under high concurrency caused by the fact that the storage information needs to be accessed in the conventional technology is avoided, and the service performance is greatly improved.
In an exemplary embodiment, the configuration information of the virtual resource may be updated as needed and stored in a configuration component of the server, or the configuration information of the virtual resource is maintained by using a ZooKeeper (distributed application program coordination service) or other component, so that a background server cluster providing a service for a client can obtain consistent data.
In an exemplary embodiment, since the terminal displays the display information of the virtual resource corresponding to the password, and the number of the passwords in the white list commonly agreed with the corresponding social application APP is limited, when there are many virtual resources that need to be shared and propagated or the display information of the virtual resource has a high requirement, the number of the existing white list passwords is difficult to meet the requirement. Based on this, as shown in fig. 3, in step S240, the display information corresponding to the virtual resource is generated according to the configuration information, which may be specifically implemented by the following steps:
in step S310, a set time period in which the current time is located is determined.
The current time refers to the time when the password sent by the terminal is received. The set time period refers to a plurality of preset time periods, for example, a day is divided into a plurality of time periods by time attributes in a 24-hour system: early morning (0 to 6), morning (6 to 12), afternoon (12 to 18) and evening (18 to 24). The day may also be divided into two periods by the working period and the rest period. In this embodiment, in order to solve the problem that the number of the white list passwords is hard to meet the requirement, a plurality of time periods may be preset according to actual needs, so that the same password in the white list may point to different configuration information of the virtual resource according to different time periods.
In step S320, the display content corresponding to the set time period is acquired from the configuration information of the virtual resource according to the set time period and the configuration information of the virtual resource.
The configuration information of the virtual resource may include presentation contents corresponding to each set time period. Specifically, after the server determines the virtual resource corresponding to the received password, the server determines the set time period in which the password is located according to the current time for receiving the password, and then acquires the display content having a corresponding relationship with the set time period from the configuration information of the virtual resource according to the set time period and the configuration information of the virtual resource.
In step S330, presentation information corresponding to the virtual resource is generated from the presentation content.
Specifically, the display information corresponding to the virtual resource is generated according to the acquired display content having the corresponding relationship with the set time period, so that the display information is more flexible and richer, and more virtual resources can be shared and propagated under the condition that the number of the passwords in the white list is limited.
In the embodiment, by presetting the mapping relationship between the passwords and the virtual resources and allocating different configuration information to the virtual resources through the time periods under the mapping relationship, the same password can be shared at different time periods to display different display information, so that the flexibility of the display effect is improved, and more virtual resources can be shared and propagated under the condition that the number of the passwords in the white list is limited.
In an exemplary embodiment, in order to further improve the directional sharing propagation of the virtual resource to improve the effectiveness of the sharing propagation, as shown in fig. 4, in step S240, the display information corresponding to the virtual resource is generated according to the configuration information, which may specifically be implemented by the following steps:
in step S410, a user attribute corresponding to the terminal is determined.
The user attribute may refer to a gender, an age, an occupation or a scholarly calendar of the user. In this embodiment, in order to improve the directional sharing propagation of the virtual resources and avoid the shared virtual resources from being wasted on non-target people, different configuration information may be allocated to the virtual resources through the user attributes, so that the same password may point to different configuration information of the virtual resources after being shared by users with different attributes.
In step S420, according to the user attribute and the configuration information of the virtual resource, the display content having a corresponding relationship with the user attribute is acquired from the configuration information of the virtual resource.
The configuration information includes display content corresponding to the user attribute. Specifically, after the server determines the virtual resource corresponding to the received password, the server further determines the user attribute corresponding to the terminal that sent the password, and then obtains the display content having a corresponding relationship with the user attribute from the configuration information of the virtual resource according to the user attribute and the configuration information of the virtual resource.
In step S430, presentation information corresponding to the virtual resource is generated from the presentation content.
Specifically, display information corresponding to the virtual resource is generated according to the acquired display content having the corresponding relationship with the user attribute, so as to realize directional sharing and propagation.
In the embodiment, the mapping relationship between the password and the virtual resource is preset, and different configuration information is allocated to the virtual resource through the user attribute under the mapping relationship, so that the same password can be shared by users with different attributes and then different display information can be displayed, thereby realizing directional sharing, improving the effectiveness of sharing and spreading, and avoiding the shared virtual resource from being wasted on non-target people.
In an exemplary embodiment, the configuration information further includes a validity period of the virtual resource, and in step S240, generating the presentation information corresponding to the virtual resource according to the configuration information further includes: and determining whether the virtual resource is in the valid period according to the current time, and if the virtual resource is determined not to be in the valid period, generating display information of the expired virtual resource. The current time refers to the time when the password sent by the terminal is received. In this embodiment, when the server determines the virtual resource corresponding to the received password, and obtains the configuration information corresponding to the virtual resource, it is further determined whether the virtual resource is within the validity period according to the current time, and if it is determined that the virtual resource is not within the validity period, display information indicating that the virtual resource is out of date is generated.
In an exemplary embodiment, the virtual resource is a red packet group, that is, an electronic red packet that can be shared can be obtained, the shared user can obtain an electronic certificate encapsulated in the electronic red packet for a certain amount of money, and can share the electronic red packet to other users through the social application APP, and the other users can also obtain and share the electronic red packet. The display information includes the total amount of the red packet group, wherein the total amount of the red packet group is the fixed amount configured for the red packet group, that is, the amount of money of the red packet group seen by all the shared users is the same. Furthermore, the display information may include blessing information, commodity recommendation information, and the like displayed to the shared user, or may display different contents according to different time and different people, in addition to the total amount of the red envelope group.
In an exemplary embodiment, the scheme of the present application is further described by taking an electronic red envelope, shared by a social application APP, sent by a certain direct-broadcasting APP merchant as an example, and as shown in fig. 5, the scheme may be specifically implemented by the following steps:
in step S501, the red envelope sharing password transmitted by the terminal is received.
Specifically, after a certain social APP of the terminal receives a red envelope sharing password related to a live APP, the terminal can directly click the red envelope sharing password to open the live APP, so that the live APP is triggered to identify and check the red envelope sharing password, and then the red envelope sharing password is sent to a corresponding background server to request an electronic red envelope corresponding to the password; the terminal can also copy the red envelope sharing password and open the live APP, so that the live APP is triggered to identify and check the red envelope sharing password, and then the red envelope sharing password is sent to the corresponding background server to request the electronic red envelope corresponding to the password.
In step S502, the share-with-red-envelope password is parsed.
After receiving the red envelope sharing password, the background server can analyze the password according to the rule for generating the red envelope sharing password in the platform, for example, the length, the coding format and the like of the password, so that the legality of the password is verified according to the analyzed content, and the follow-up steps are executed on the premise that the password is legal.
In step S503, it is determined whether the share in red envelope password is a fixed password in the list.
That is, it is determined whether the share password is a password in a white list that is commonly recognized with the social application APP, if yes, step S504 is executed, otherwise step S512 is executed.
In step S504, the electronic red packet corresponding to the fixed password is determined.
Because the passwords in the white list need to be controlled by the social application APP, if the passwords cannot contain any variable information, the passwords can only be fixed passwords in agreement. Therefore, in this embodiment, by using a general red packet group concept, all the whitelist passwords are directed to the red packet group, i.e., the general electronic red packet, and different configuration information is set for the general electronic red packet according to actual requirements. Therefore, after the red packet sharing password is determined to be a fixed password in the list, the universal electronic red packet corresponding to the fixed password can be determined.
In step S505, the configuration information of the electronic red packet is read.
The configuration information is fixed parameters configured for the electronic red envelope in advance, and includes, for example, an expiration date, a fixed total amount of the red envelope, other display contents, and the like. Specifically, the valid period refers to the valid period of the corresponding electronic red packet.
In step S506, it is determined whether the electronic red packet is within the valid period.
Specifically, whether the electronic red packet is in the valid period is judged according to the current time and the valid period in the configuration information, if yes, step S507 is executed, otherwise, step S511 is executed.
In step S507, corresponding display information is generated according to the configuration information of the electronic red packet.
Due to the fact that the number of the passwords in the white list is limited, when the number of the electronic red packets needing to be shared and propagated is large, or when the display information of the electronic red packets has high requirements, the number of the existing white list passwords is difficult to meet the requirements, different configuration information can be set for the universal electronic red packets according to actual needs, and the diversified sharing and propagation requirements can be met according to different configuration information. For example, different configuration information can be set according to different time periods, or different configuration information can be set according to different user attributes, so that different display information can be displayed in different time periods or for people with different attributes, and display is more flexible and richer. Specifically, the server may determine corresponding configuration information according to the current time or a user attribute corresponding to the terminal that receives the password, and then configure the information to generate corresponding presentation information. Specifically, the display information includes the total amount of the red envelope of the electronic red envelope and other corresponding display contents.
In step S508, the display information corresponding to the electronic red packet is returned to the terminal.
In step S509, a request for acquiring the electronic red packet from the terminal is received.
When a user corresponding to the terminal wants to acquire the electronic red packet, the displayed electronic red packet is clicked through the terminal, and the server can receive an acquisition request of the terminal for the electronic red packet.
In step S510, the amount of the red envelope allocated to the terminal user is calculated based on the total amount of the electronic red envelope, and the amount of the red envelope is returned to the terminal.
Specifically, since the total amount of the electronic red envelope is a fixed amount configured by the configuration information, all the shared users see that the amounts of the red envelope group are the same, and for each shared user, the red envelope amount is allocated to each shared user in the configured fixed amount, and the storage related to the corresponding user is updated according to the allocated red envelope amount. Therefore, the remaining balance does not need to be updated by updating the storage information after one distribution and the balance is distributed during the next distribution as in the conventional technology, and compared with the prior art, the method and the device for distributing the red packet information reduce the operations of reading the red packet information through storage and updating the red packet information through storage after distribution, so that the problem of hot spots can be avoided, and the performance of the server can be improved.
In step S511, a prompt message indicating that the electronic red packet is expired is returned to the terminal.
And when the electronic red packet is judged not to be in the validity period according to the current time and the validity period in the configuration information, returning a prompt message of the overdue electronic red packet to the terminal.
In step S512, the electronic red envelope corresponding to the red envelope sharing password is determined by querying the storage.
When the red envelope sharing password is determined not to be the password in the white list which is in common with the social application APP, the password is indicated to be a common sharing password, generally, the social application APP cannot control the common sharing password under the condition that the sharing propagation quantity is not large, therefore, for the common sharing password, the related information of the corresponding electronic red envelope is determined in a storage inquiring mode, and after the red envelope amount is distributed to the user, the balance of the electronic red envelope is updated through updating the stored information.
It should be understood that although the various steps in the flow charts of fig. 1-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-5 may include multiple 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 in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
Fig. 6 is a block diagram illustrating a virtual resource sharing processing apparatus according to an example embodiment. Referring to fig. 6, the apparatus includes a password parsing module 610, a virtual resource determining module 620, a configuration information reading module 630, a presentation information generating module 640, and an information returning module 650.
The password resolution module 610 is configured to perform resolution of a password transmitted by a terminal.
The virtual resource determining module 620 is configured to determine the virtual resource corresponding to the fixed password when the password is the fixed password in the setting list.
The configuration information reading module 630 is configured to perform reading the configuration information of the virtual resource.
And the display information generating module 640 is configured to generate the display information corresponding to the virtual resource according to the configuration information.
The information returning module 650 is configured to perform returning the presentation information to the terminal, where the presentation information is used to instruct the terminal to present.
In an exemplary embodiment, the presentation information generating module 640 includes: a time determination unit configured to perform determining a set time period in which a current time is located; a first display content acquisition unit configured to execute acquisition of a first display content having a correspondence relationship with a set time period from the configuration information of the virtual resource according to the set time period and the configuration information of the virtual resource; and a first display information generation unit configured to perform generation of display information corresponding to the virtual resource from the first display content.
In an exemplary embodiment, the presentation information generating module 640 includes: a user attribute determining unit configured to perform determining a user attribute corresponding to the terminal; a second display content acquisition unit configured to execute acquiring, from the configuration information of the virtual resource, a second display content having a correspondence relationship with the user attribute, according to the user attribute and the configuration information of the virtual resource; and a second presentation information generation unit configured to perform generation of presentation information corresponding to the virtual resource from the second presentation content.
In an exemplary embodiment, the virtual resource is a red packet group; the display information also comprises the total amount of the red packet group.
In an exemplary embodiment, the apparatus further comprises: a request receiving module configured to execute a virtual resource acquisition request of a receiving terminal; and the request processing module is configured to calculate the red packet amount distributed to the terminal user according to the total amount of the red packet group and return the red packet amount to the terminal.
In an exemplary embodiment, the configuration information further includes a validity period of the virtual resource; the presentation information generating module 640 further includes: and the third display information generating unit is configured to generate the display information of the expired virtual resource if the virtual resource is determined not to be in the validity period.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram illustrating an apparatus S00 for a virtual resource sharing processing method according to an example embodiment. For example, the device S00 may be a server. Referring to FIG. 7, device S00 includes a processing component S20 that further includes one or more processors and memory resources represented by memory S22 for storing instructions, e.g., applications, that are executable by processing component S20. The application program stored in the memory S22 may include one or more modules each corresponding to a set of instructions. In addition, the processing component S20 is configured to execute instructions to execute the virtual resource sharing processing method described above.
The device S00 may also include a power supply component S24 configured to perform power management of the device S00, a wired or wireless network interface S26 configured to connect the device S00 to a network, and an input-output (I/O) interface S28. The device S00 may operate based on an operating system stored in the memory S22, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, or the like.
In an exemplary embodiment, there is also provided a storage medium comprising instructions, such as the memory S22 comprising instructions, executable by the processor of the device S00 to perform the above method. The storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A virtual resource sharing processing method is characterized by comprising the following steps:
analyzing a password sent by a terminal;
when the password is a fixed password in a set list, determining the virtual resource corresponding to the fixed password;
reading the configuration information of the virtual resources;
generating display information corresponding to the virtual resources according to the configuration information;
and returning the display information to the terminal, wherein the display information is used for indicating the terminal to display.
2. The virtual resource sharing processing method according to claim 1, wherein the generating presentation information corresponding to the virtual resource according to the configuration information includes:
determining a set time period of the current time;
according to the set time period and the configuration information of the virtual resources, acquiring display contents corresponding to the set time period from the configuration information of the virtual resources;
and generating display information corresponding to the virtual resources according to the display content.
3. The virtual resource sharing processing method according to claim 1, wherein the generating presentation information corresponding to the virtual resource according to the configuration information includes:
determining a user attribute corresponding to the terminal;
acquiring display contents corresponding to the user attributes from the configuration information of the virtual resources according to the user attributes and the configuration information of the virtual resources;
and generating display information corresponding to the virtual resources according to the display content.
4. The virtual resource sharing processing method according to any one of claims 1 to 3, wherein the virtual resource is a red packet group; the display information also comprises the total amount of the red packet group.
5. The virtual resource sharing processing method according to claim 4, further comprising, after the returning the presentation information to the terminal:
receiving a virtual resource acquisition request of the terminal;
and calculating the money amount of the red packet allocated to the terminal user according to the total money amount of the red packet group, and returning the money amount of the red packet to the terminal.
6. The virtual resource sharing processing method according to claim 1, wherein the configuration information includes a validity period of the virtual resource; the generating of the display information corresponding to the virtual resource according to the configuration information includes:
and determining whether the virtual resource is in the valid period according to the current time, and if the virtual resource is determined not to be in the valid period, generating display information of the expired virtual resource.
7. A virtual resource sharing processing apparatus, comprising:
the password analysis module is configured to analyze the password sent by the terminal;
the virtual resource determining module is configured to determine a virtual resource corresponding to the fixed password when the password is the fixed password in the set list;
a configuration information reading module configured to perform reading of configuration information of the virtual resource;
the display information generation module is configured to generate display information corresponding to the virtual resource according to the configuration information;
and the information returning module is configured to execute the returning of the display information to the terminal, wherein the display information is used for indicating the terminal to display.
8. The virtual resource sharing processing apparatus according to claim 7, wherein the presentation information generating module includes:
a time determination unit configured to perform determining a set time period in which a current time is located;
a first display content acquiring unit configured to acquire, from the configuration information of the virtual resource, a first display content having a correspondence relationship with the set time period, according to the set time period and the configuration information of the virtual resource;
a first display information generating unit configured to perform generation of display information corresponding to the virtual resource from the first display content.
9. A server, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the virtual resource sharing processing method of any one of claims 1 to 6.
10. A storage medium in which instructions are executed by a processor of a server to enable the server to perform the virtual resource sharing processing method according to any one of claims 1 to 6.
CN202010424616.7A 2020-05-19 2020-05-19 Virtual resource sharing processing method and device, server and storage medium Active CN111629038B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010424616.7A CN111629038B (en) 2020-05-19 2020-05-19 Virtual resource sharing processing method and device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010424616.7A CN111629038B (en) 2020-05-19 2020-05-19 Virtual resource sharing processing method and device, server and storage medium

Publications (2)

Publication Number Publication Date
CN111629038A true CN111629038A (en) 2020-09-04
CN111629038B CN111629038B (en) 2023-08-08

Family

ID=72260679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010424616.7A Active CN111629038B (en) 2020-05-19 2020-05-19 Virtual resource sharing processing method and device, server and storage medium

Country Status (1)

Country Link
CN (1) CN111629038B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101167063A (en) * 2005-03-28 2008-04-23 Duaxes株式会社 Communication control device and communication control system
CN101176080A (en) * 2005-02-18 2008-05-07 Duaxes株式会社 Communication control device and communication control system
CN104798355A (en) * 2012-09-18 2015-07-22 思杰系统有限公司 Mobile device management and security
US20170180378A1 (en) * 2015-09-15 2017-06-22 Mimecast North America, Inc. Mediated access to resources
WO2017206831A1 (en) * 2016-06-03 2017-12-07 腾讯科技(深圳)有限公司 Virtual resource processing method, server, and data storage medium
CN107526745A (en) * 2016-06-22 2017-12-29 福建兑信科技有限公司 Electronic invitation card management method, system and mobile terminal based on social platform
CN107548499A (en) * 2015-05-11 2018-01-05 英特尔公司 The technology booted safely for virtual network function
CN107563783A (en) * 2016-06-30 2018-01-09 深圳市星电商科技有限公司 Information bag sharing method, device and terminal and information bag transmission method and device
CN108259521A (en) * 2016-12-28 2018-07-06 中国移动通信集团浙江有限公司 Hot point resource sharing method and device
CN108419208A (en) * 2018-01-26 2018-08-17 广州市和声信息技术有限公司 A kind of DEU data exchange unit and method exchanging point based on common data
CN109146437A (en) * 2018-07-25 2019-01-04 腾讯科技(深圳)有限公司 Processing method, client and the storage medium of virtual resource
CN109194644A (en) * 2018-08-29 2019-01-11 北京达佳互联信息技术有限公司 Sharing method, device, server and the storage medium of network works
CN110738804A (en) * 2019-09-23 2020-01-31 传化支付有限公司 red packet issuing method, device and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101176080A (en) * 2005-02-18 2008-05-07 Duaxes株式会社 Communication control device and communication control system
CN101167063A (en) * 2005-03-28 2008-04-23 Duaxes株式会社 Communication control device and communication control system
CN104798355A (en) * 2012-09-18 2015-07-22 思杰系统有限公司 Mobile device management and security
CN107548499A (en) * 2015-05-11 2018-01-05 英特尔公司 The technology booted safely for virtual network function
US20170180378A1 (en) * 2015-09-15 2017-06-22 Mimecast North America, Inc. Mediated access to resources
WO2017206831A1 (en) * 2016-06-03 2017-12-07 腾讯科技(深圳)有限公司 Virtual resource processing method, server, and data storage medium
CN107526745A (en) * 2016-06-22 2017-12-29 福建兑信科技有限公司 Electronic invitation card management method, system and mobile terminal based on social platform
CN107563783A (en) * 2016-06-30 2018-01-09 深圳市星电商科技有限公司 Information bag sharing method, device and terminal and information bag transmission method and device
CN108259521A (en) * 2016-12-28 2018-07-06 中国移动通信集团浙江有限公司 Hot point resource sharing method and device
CN108419208A (en) * 2018-01-26 2018-08-17 广州市和声信息技术有限公司 A kind of DEU data exchange unit and method exchanging point based on common data
CN109146437A (en) * 2018-07-25 2019-01-04 腾讯科技(深圳)有限公司 Processing method, client and the storage medium of virtual resource
CN109194644A (en) * 2018-08-29 2019-01-11 北京达佳互联信息技术有限公司 Sharing method, device, server and the storage medium of network works
CN110738804A (en) * 2019-09-23 2020-01-31 传化支付有限公司 red packet issuing method, device and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
WEIXIN_30555753: "微信口令红包源码"技术分析"", Retrieved from the Internet <URL:https://blog.csdn.net/weixin_30555753/article/details/96923006> *
朱建勇等: "高并发低成本场景"喊红包"系统的设计与实施", 《中国传媒大学学报(自然科学版)》 *
朱建勇等: "高并发低成本场景"喊红包"系统的设计与实施", 《中国传媒大学学报(自然科学版)》, vol. 27, no. 1, 25 February 2020 (2020-02-25), pages 2 - 5 *

Also Published As

Publication number Publication date
CN111629038B (en) 2023-08-08

Similar Documents

Publication Publication Date Title
JP6837066B2 (en) Information processing method and server, computer storage medium
WO2015055067A1 (en) Method and apparatus for pushing messages
US20180276720A1 (en) Advertising creative processing method, advertising creative processing apparatus, and storage medium
JP2019503533A5 (en)
CN109831501B (en) Information distribution method and system based on block chain
US11244153B2 (en) Method and apparatus for processing information
CN107995013B (en) Customer service distribution method and device
US10694225B2 (en) Customizing supplemental content delivery
CN113094141A (en) Page display method and device, electronic equipment and storage medium
CN111782988B (en) Method, apparatus, computer system and storage medium for determining source of application program
CN111917631A (en) Internet financial service method, device, electronic equipment, readable storage medium and system
CN109118291B (en) User authentication method and device in advertisement task popularization and computer equipment
CN112991064B (en) Service processing method, device, computer equipment and storage medium
CN106817296B (en) Information recommendation test method and device and electronic equipment
CN110928594A (en) Service development method and platform
CN112241544A (en) Business system, access method, device, computer equipment and storage medium
CN111629038B (en) Virtual resource sharing processing method and device, server and storage medium
CN110909314A (en) Data sharing method, device and equipment based on block chain and readable storage medium
US20170318439A1 (en) Message delivery reliability
CN115858905A (en) Data processing method and device, electronic equipment and storage medium
US20140279990A1 (en) Managing identifiers
CN111093281B (en) Method and device for allocating resources
US10616293B1 (en) Multiple account binding
CN112035760A (en) Task allocation method and computer equipment
CN112347382A (en) Product page sharing method and device and electronic equipment

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