CN111629038B - 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
CN111629038B
CN111629038B CN202010424616.7A CN202010424616A CN111629038B CN 111629038 B CN111629038 B CN 111629038B CN 202010424616 A CN202010424616 A CN 202010424616A CN 111629038 B CN111629038 B CN 111629038B
Authority
CN
China
Prior art keywords
virtual resource
password
terminal
configuration information
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.)
Active
Application number
CN202010424616.7A
Other languages
Chinese (zh)
Other versions
CN111629038A (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

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 device, a server and a storage medium, wherein the method comprises the following steps: by analyzing the password sent by the terminal, when the password is determined to be the fixed password in the set list, further determining the virtual resource corresponding to the fixed password, further reading the configuration information of the virtual resource, generating presentation information corresponding to the virtual resource according to the configuration information, and returning the presentation information to the terminal. In this embodiment, by setting fixed configuration information for the virtual resource in advance, so that information corresponding to the virtual resource does not need to be saved in storage, when a user needs to obtain corresponding shared content after the password is shared and propagated, the server only needs to directly obtain the preset fixed parameters from the configuration, thereby avoiding the problem that hot spots are generated under high concurrency caused by the need of accessing the stored information in the conventional technology, and greatly improving service performance.

Description

Virtual resource sharing processing method and device, server and storage medium
Technical Field
The disclosure relates to the technical field of computer networks, and in particular relates to a virtual resource sharing processing method, device, server and storage medium.
Background
With the development of the internet and communication technology, it has become increasingly common to share virtual resources (e.g., red packets) among applications.
In the related art, many merchants can promote their products or advertise the products in a way of sharing the red-package password. However, as social platforms are controlled more and more strictly, some social platforms can hide part of password content when the propagation amount of the red packet passwords of other platforms is larger, so that the shared party cannot directly copy the complete password content or obtain a link by directly clicking the shared password. Based on this, the business and the social platform can agree in a white list way, and the social platform allows the passwords in the white list to be propagated.
However, when the propagation amount of a certain red packet password is large, a large number of users can rob the same red packet, and each time the users rob the red packet, the server side needs to acquire the related information of the red packet by accessing the stored information corresponding to the red packet, and update the stored related information of the red packet after the users rob the red packet, so when the click amount of the red packet password is high, the corresponding stored information can generate a hot spot problem, thereby not only affecting the service performance, but also causing service unavailability.
Disclosure of Invention
The disclosure provides a virtual resource sharing processing method, a device, a server and a storage medium, so as to at least solve the problem of hot spots generated by storage corresponding to a red packet group in the related art. The technical scheme of the present disclosure is as follows:
according to a first aspect of an embodiment of the present disclosure, there is provided a virtual resource sharing processing method, including:
analyzing the password sent by the terminal;
when the password is a fixed password in the set list, determining virtual resources corresponding to the fixed password;
reading configuration information of virtual resources;
generating display information corresponding to the virtual resource 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 in which the current time is located; acquiring display content with a corresponding relation 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; and generating display information corresponding to the virtual resource according to the display content.
In one embodiment, the generating, according to the configuration information, presentation information corresponding to the virtual resource includes: determining user attributes corresponding to the terminal; acquiring display content with a corresponding relation 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; and generating display information corresponding to the virtual resource 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 package group.
In one embodiment, after the presentation information is returned to the terminal, the method further includes: receiving a virtual resource acquisition request of a terminal; and calculating the red packet amount distributed to the terminal user according to the total red packet amount, and returning the red packet amount to the terminal.
In one embodiment, the configuration information further includes an expiration date of the virtual resource; generating presentation information corresponding to the virtual resource according to the configuration information, including: and determining whether the virtual resource is in the effective period according to the current time, and if the virtual resource is not in the effective period, generating display information of the virtual resource expiration.
According to a second aspect of an embodiment 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 return module is configured to return 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 determination of a set time period in which the current time is located; a first display content acquisition unit configured to execute acquisition of first display content having a correspondence with a set time period from configuration information of a virtual resource according to the set time period and the configuration information of the virtual resource; and a first presentation information generation unit configured to perform generation of presentation information corresponding to the virtual resource according to the first presentation content.
In one embodiment, the presentation information generation module includes: a user attribute determining unit configured to perform determination of a user attribute corresponding to the terminal; the second display content acquisition unit is configured to execute the second display content with a corresponding relation 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; and a second presentation information generation unit configured to perform generation of presentation information corresponding to the virtual resource according to 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 package 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 execute the calculation of 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 an expiration date of the virtual resource; the display information generation module comprises: a deadline determination unit configured to perform determination of whether the virtual resource is within a valid period according to a current time; and the third display information generating unit is configured to generate display information of the outdated virtual resource if the virtual resource is determined not to be in the valid period.
According to a third aspect of embodiments of the present disclosure, there is provided a server comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute instructions enabling the server to perform the virtual resource sharing processing method described in any one of the embodiments of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium, which when executed by a processor of a server, enables the server to perform 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 comprising a computer program stored in a readable storage medium, from which at least one processor of a device reads and executes the computer program, causing the device to perform the virtual resource sharing processing method as 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: by analyzing the password sent by the terminal, when the password is determined to be the fixed password in the set list, further determining the virtual resource corresponding to the fixed password, further reading the configuration information of the virtual resource, generating presentation information corresponding to the virtual resource according to the configuration information, and returning the presentation information to the terminal. In this embodiment, by setting fixed configuration information for the virtual resource in advance, so that information corresponding to the virtual resource does not need to be saved in storage, when a user needs to obtain corresponding shared content after the password is shared and propagated, the server only needs to directly obtain the preset fixed parameters from the configuration, thereby avoiding the problem that hot spots are generated under high concurrency caused by the need of accessing the stored information in the conventional technology, and greatly improving service performance.
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 disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
Fig. 1 is an application environment diagram illustrating a virtual resource sharing processing method according to an exemplary embodiment.
FIG. 2 is a flow chart illustrating a method of virtual resource sharing processing according to an example embodiment.
Fig. 3 is a flowchart illustrating steps of generating presentation information according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating steps of 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 exemplary embodiment.
Fig. 7 is an internal structural diagram of a server according to an exemplary embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of 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 foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The virtual resource sharing processing method provided by the disclosure can 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 not limited to, various personal computers, notebook computers, smartphones, tablet computers, and portable wearable devices, and the first server 120 and the second server 130 may be implemented as separate servers or a server cluster composed of a plurality of servers, respectively.
The terminal 110 is provided with a client of a first application program and a client of a second application program, wherein the first application program can be a shopping APP, a short video APP, a live APP, a video playing APP and the like, the second application program can be a social application APP, and the social application APP refers to an APP for performing message sending and receiving based on a social relationship chain between users. The first server 120 is a background server corresponding to a client of the first application program, and the second server 130 is a background server corresponding to a client of the second application program.
Currently, a terminal may propagate resources (such as video and red packets) in a client of a first application through a client of a second application, and in order to save traffic, before propagation, a first server 120 corresponding to the client of the first application may encode the resources to be propagated based on a sharing request, and form a password that may be identified by the first application, and the terminal may share and propagate the password to other users in a social relationship chain thereof through the client of the second application. It can be understood that the terminal can share and propagate the password which can be identified by the first application through the client of the second application, and the terminal can also receive the password which can be identified by the first application and shared and propagated by other users in the social relationship chain through the client of the second application. And when the password identifiable by the first application program propagates in 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 the live APP, after the client of the second application program of the terminal receives the sharing password about the virtual resource 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 on the sharing password to open the live APP, so that after the live APP performs identification verification on the sharing password, the virtual resource corresponding to the sharing password is requested to a corresponding background server (such as the first server 120) and displayed on the terminal. However, when the transmission amount of a certain shared password in the first application program in the second application program is large, the background server corresponding to the second application program, that is, the second server 130, processes the shared password during transmission, for example, conceals part of the password content, so that the shared party cannot directly copy the complete password content or obtain the link by directly clicking the shared password. Based on this, various applications APP (i.e., the first application program) agree with the social application APP (i.e., the second application program) through a whitelist, and for the passwords in the whitelist, the social application APP allows a large number of the passwords to be propagated, so when there is a sharing activity that needs to be shared and propagated in the social application APP in a large number, for example, the sharing activity of the virtual resource can be propagated by letting all the whitelist passwords point to the virtual resource.
Fig. 2 is a flowchart of a virtual resource sharing processing method according to an exemplary embodiment, and as shown in fig. 2, the method is applied to the first server 120 in fig. 1, and the following steps are taken as an example.
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 a corresponding APP, so that the corresponding APP is triggered to recognize and verify the password, and then the password is sent to a corresponding background server to request resources corresponding to the password; the terminal can copy the password and open the corresponding APP, so that after the corresponding APP is triggered to carry out identification verification on the password, the password is sent to a background server corresponding to the password, and resources corresponding to the password are requested. Therefore, after receiving the password, the background server first analyzes the password, for example, analyzes the length, the coding format and the like of the password, and further 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 set list, a virtual resource corresponding to the fixed password is determined.
The fixed passwords in the set list refer to the passwords in the white list which are agreed with the corresponding social application APP. The virtual resource corresponding to the fixed password is the virtual resource pointed by the fixed password. In this embodiment, after determining that the password is legal, it is further determined whether the password is a password in a whitelist that is commonly recognized 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 the whitelist, it is further determined that the password corresponds to a virtual resource.
Specifically, a certain mapping relationship exists between the fixed password and the virtual resource needing to be shared and propagated, in general, a plurality of passwords exist in the white list, when only one virtual resource needing to be shared and propagated exists, the mapping relationship can be that all the passwords in the white list point to the virtual resource, and when a plurality of virtual resources needing to be shared and propagated exist, the mapping relationship can be that one or a plurality of 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, 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 steps, the server further obtains configuration information preset for the virtual resource. In this embodiment, by setting fixed configuration information for the virtual resource in advance, so that information corresponding to the virtual resource does not need to be saved in storage, when a user needs to obtain corresponding shared content after sharing and spreading a password, the server only needs to directly obtain preset fixed parameters from the configuration, thereby avoiding the problem that in the traditional technology, hot spots are generated under high concurrency because the user needs to access the stored information.
In step S240, presentation information corresponding to the virtual resource is generated according to the configuration information.
The display information is content displayed for the user, and in this embodiment, the display information is display content corresponding to the virtual resource, which is extracted from configuration information of the virtual resource. Specifically, after the configuration information of the virtual resource is read, display information corresponding to the virtual resource is generated according to the configuration information.
In step S250, presentation information is returned to the terminal.
The display information is used for indicating the terminal to display, such as 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, so that information corresponding to the virtual resource does not need to be saved in storage, when a user needs to obtain corresponding shared content after the password is shared and propagated, the server only needs to directly obtain the preset fixed parameters from the configuration, thereby avoiding the problem that hot spots are generated under high concurrency caused by the need of accessing the stored information in the conventional technology, and greatly improving service performance.
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 coordination service) component, so that a background server cluster that provides services for the client can obtain consistent data.
In an exemplary embodiment, since the terminal displays the display information based on the virtual resource corresponding to the password, and the number of passwords in the whitelist commonly agreed with the corresponding social application APP is limited, when there are more virtual resources to share and spread, or when there are higher requirements on the display information of the virtual resources, the number of existing whitelist passwords is difficult to meet the requirements. Based on this, as shown in fig. 3, in step S240, the generation of the presentation information corresponding to the virtual resource according to the configuration information may be specifically implemented by the following steps:
in step S310, a set period of time in which the current time is determined.
The current time refers to the time when the receiving terminal sends the password. The set time period refers to a plurality of time periods set in advance, for example, a day is divided into a plurality of time periods in 24 hours: 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 time periods by working and resting time periods. In this embodiment, in order to solve the problem that the number of the whitelist passwords is difficult to meet the requirement, a plurality of time periods may be preset according to actual needs, so that the same password in the whitelist may point to different configuration information of the virtual resource according to different time periods.
In step S320, according to the set time period and the configuration information of the virtual resource, the display content having a corresponding relationship with the set time period is obtained from the configuration information of the virtual resource.
The configuration information of the virtual resource may include display content 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 of the received password according to the current time of the received password, and further obtains the display content with the corresponding relation 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, according to the acquired display content with the corresponding relation with the set time period, display information corresponding to the virtual resources is generated, so that the display information is more flexible and rich, and more virtual resources can be shared and transmitted under the condition that the number of passwords in the white list is limited.
In the above embodiment, the mapping relationship between the password and the virtual resource is preset, and different configuration information is allocated to the virtual resource by the time period under the mapping relationship, so that the same password can be shared in different time periods to display different display information, thereby improving the flexibility of the display effect, and sharing and spreading more virtual resources 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, 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 S410, a user attribute corresponding to the terminal is determined.
The user attribute may refer to gender, age, occupation, or academic history of the user. In this embodiment, in order to improve directional sharing propagation of virtual resources, so as to avoid that shared virtual resources are wasted on non-target people, different configuration information can be allocated to the virtual resources through user attributes, so that the same password can be pointed 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 obtained from the configuration information of the virtual resource.
The configuration information comprises 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 sending the password, and further obtains the display content with the 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, according to the obtained display content with the corresponding relation with the user attribute, display information corresponding to the virtual resource is generated, so that directional sharing and propagation are realized.
In the above embodiment, by presetting the mapping relation between the password and the virtual resource and allocating different configuration information to the virtual resource by the user attribute under the mapping relation, the same password can display different display information after being shared by users with different attributes, 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 within the effective period according to the current time, and if the virtual resource is not within the effective period, generating display information of the expiration of the virtual resource. The current time refers to the time when the receiving terminal sends the password. In this embodiment, when the server determines that the virtual resource corresponding to the received password, and obtains configuration information corresponding to the virtual resource, further determines 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, generates presentation information of expiration of the virtual resource.
In an exemplary embodiment, the virtual resource is a red package group, that is, the electronic red package that can be shared can be obtained, the shared user can obtain the electronic certificate of a certain amount that is encapsulated in the electronic red package, and can share the electronic red package to other users through the social application APP, and other users can also obtain and share the electronic red package. The display information includes a total amount of the red packet, where the total amount of the red packet refers to a fixed amount configured for the red packet, that is, the amount of the red packet seen by all the shared users is the same. Furthermore, the display information can include, besides the total amount of the red package group, blessing information, commodity recommendation information and the like displayed to the shared user, or can display different contents according to different time and different crowds.
In an exemplary embodiment, taking a virtual resource as an electronic red packet that is shared by social applications APP and sent by a merchant of a live APP as an example, the scheme of the present application is further described, as shown in fig. 5, and may be specifically implemented by the following steps:
in step S501, the receiving terminal transmits a red packet sharing password.
Specifically, after a certain social APP of the terminal receives a red package sharing password of a related live APP, the terminal can directly click on the red package sharing password to open the live APP, so that the live APP is triggered to recognize and verify the red package sharing password, and then the red package sharing password is sent to a corresponding background server to request an electronic red package corresponding to the password; the terminal can copy the red package sharing password and open the live APP, so that after the live APP is triggered to identify and check the red package sharing password, the red package sharing password is sent to a corresponding background server to request an electronic red package corresponding to the password.
In step S502, the red pack sharing password is parsed.
After receiving the red package sharing password, the background server can analyze the password according to rules for generating the red package sharing password in the platform, for example, analyze the length, the coding format and the like of the password, so that the validity 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 red-package sharing password is a fixed password in the list.
That is, whether the red-package sharing password is a password in the white list agreed with the social application APP is determined, if so, step S504 is executed, otherwise, step S512 is executed.
In step S504, an electronic red packet corresponding to the fixed password is determined.
Since the passwords in the white list are required to be more regulated by the corresponding social application APP, the passwords cannot contain any variable information and can only be contracted fixed passwords. Therefore, in this embodiment, by using the concept of a general red packet group, all the whitelist passwords point to the red packet group, that is, the general electronic red packet, so as to set different configuration information for the general electronic red packet according to actual requirements. Therefore, after the red package sharing password is determined to be the fixed password in the list, the universal electronic red package corresponding to the fixed password can be determined.
In step S505, the configuration information of the electronic red package is read.
The configuration information is a fixed parameter configured for the electronic red package in advance, and includes, for example, a validity period, a fixed total amount of the red package, other display contents, and the like. Specifically, the expiration date refers to the expiration date of the corresponding electronic red envelope.
In step S506, it is determined whether the electronic red packet is within the validity period.
Specifically, whether the electronic red packet is within the validity period is determined according to the current time and the validity 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 package.
Because the number of the passwords in the white list is limited, when more electronic red packages need to be shared and transmitted, or the display information of the electronic red packages has higher requirements, the number of the existing white list passwords is difficult to meet the requirements, so that different configuration information can be set for the universal electronic red packages according to actual requirements, and the requirement of diversified sharing and transmission is met according to the 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 rich. Specifically, the server may determine corresponding configuration information according to the current time or the user attribute corresponding to the terminal that receives the password, and then the configuration information generates corresponding presentation information. Specifically, the display information includes the total amount of the red packet of the electronic red packet 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 an electronic red packet by the terminal is received.
When the user corresponding to the terminal wants to acquire the electronic red packet, the terminal clicks the displayed electronic red packet, and the server can receive the acquisition request of the terminal for the electronic red packet.
In step S510, the amount of the red package allocated to the terminal user is calculated according to the total amount of the electronic red package, and the amount of the red package is returned to the terminal.
Specifically, because the total amount of the electronic red package is a fixed amount configured by the configuration information, the amount of the red package group seen by all the shared users is the same, and for each shared user, the red package amount is allocated to the shared user in the configured fixed amount, and the storage related to the corresponding user is updated according to the allocated red package amount. Therefore, the method and the device for distributing the red packet information do not need to update the rest of the amount by updating the storage information after each distribution and distribute the rest of the amount by the balance when distributing the information next time, 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 by storage and updating the red packet information by storage after distribution, so that the problem of hot spot generation can be avoided, and the performance of a server can be improved.
In step S511, a prompt message for expiration of the electronic red packet is returned to the terminal.
And when judging that the electronic red packet is not in the valid period according to the current time and the valid period in the configuration information, returning prompt information of expiration of the electronic red packet to the terminal.
In step S512, the electronic red packet corresponding to the red packet sharing password is determined by querying the storage.
When the red package sharing password is determined not to be the password in the white list which is agreed with the social application APP, the password is the common sharing password, and the social application APP does not manage the common sharing password under the condition of low sharing propagation quantity, so that the common sharing password adopts the method of inquiring and storing to determine the related information of the corresponding electronic red package, and after the red package amount is distributed for the user, the balance of the electronic red package is updated by updating the stored information.
It should be understood that, although the steps in the flowcharts of fig. 1-5 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. 1-5 may include multiple steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the steps or stages in other steps or other steps.
Fig. 6 is a block diagram of a virtual resource sharing processing apparatus according to an exemplary 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 parsing module 610 is configured to perform parsing of a password transmitted from a terminal.
The virtual resource determination module 620 is configured to determine a virtual resource corresponding to a fixed password when the password is the fixed password in the set list.
The configuration information reading module 630 is configured to perform reading of configuration information of virtual resources.
The presentation information generation module 640 is configured to perform generation of presentation information corresponding to the virtual resource according to the configuration information.
The information return module 650 is configured to perform the return of the presentation information to the terminal, the presentation information being used for indicating the terminal to present.
In an exemplary embodiment, the presentation information generation module 640 includes: a time determination unit configured to perform determination of a set time period in which the current time is located; a first display content acquisition unit configured to execute acquisition of first display content having a correspondence with a set time period from configuration information of virtual resources according to the set time period and the configuration information of the virtual resources; and a first presentation information generation unit configured to perform generation of presentation information corresponding to the virtual resource according to the first presentation content.
In an exemplary embodiment, the presentation information generation module 640 includes: a user attribute determining unit configured to perform determination of a user attribute corresponding to the terminal; the second display content acquisition unit is configured to execute the second display content with a corresponding relation 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; and a second presentation information generation unit configured to perform generation of presentation information corresponding to the virtual resource according to 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 package 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 execute the calculation of 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 an expiration date of the virtual resource; the presentation information generation module 640 further includes: and the third display information generating unit is configured to generate display information of the outdated virtual resource if the virtual resource is determined not to be in the validity period.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 7 is a block diagram illustrating an apparatus S00 for a virtual resource sharing processing method according to an exemplary embodiment. For example, 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, such as applications, 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 perform the above-mentioned virtual resource sharing processing method.
Device S00 can also include a power component S24 configured to perform power management of device S00, a wired or wireless network interface S26 configured to connect device S00 to a network, and an input/output (I/O) interface S28. Device S00 may operate based on an operating system stored in memory S22, such as Windows Server, mac OS X, unix, linux, freeBSD, or the like.
In an exemplary embodiment, a storage medium is also provided, such as a memory S22, comprising instructions executable by a 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, ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
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 adaptations, 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 is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. The virtual resource sharing processing method is characterized by comprising the following steps of:
analyzing the password sent by the terminal;
when the password is a fixed password in a set list, determining virtual resources corresponding to the fixed password;
reading configuration information of the virtual resource;
generating display information corresponding to the virtual resource according to any one of a set time period of the current time or user attributes corresponding to the terminal and 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 method of claim 1, wherein the generating presentation information corresponding to the virtual resource according to the set time period in which the current time is located and the configuration information includes:
determining a set time period in which the current time is located;
acquiring display content with a corresponding relation 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;
and generating display information corresponding to the virtual resource according to the display content.
3. The method of claim 1, wherein the generating presentation information corresponding to the virtual resource according to the user attribute corresponding to the terminal and the configuration information includes:
determining user attributes corresponding to the terminal;
acquiring display content with a corresponding relation 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;
and generating display information corresponding to the virtual resource according to the display content.
4. A virtual resource sharing 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 package 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 red package amount distributed to the terminal user according to the total red package amount, and returning the red package amount to the terminal.
6. The virtual resource sharing processing method according to claim 1, wherein the configuration information includes an expiration date of the virtual resource; the generating the display information corresponding to the virtual resource according to the configuration information comprises the following steps:
and determining whether the virtual resource is in the effective period according to the current time, and if the virtual resource is not in the effective period, generating display information of the virtual resource expiration.
7. The utility model provides a virtual resource sharing processing apparatus which characterized in that includes:
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 a fixed password when the password is the fixed password in a 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 execute any one of a set time period according to the current time or a user attribute corresponding to the terminal, and the configuration information generates display information corresponding to the virtual resource;
and the information return module is configured to return 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 of claim 7, wherein the presentation information generation module comprises:
a time determination unit configured to perform determination of a set time period in which the current time is located;
a first presentation content acquisition unit configured to execute acquisition of first presentation content having a correspondence with the set time period from configuration information of the virtual resource according to the set time period and the configuration information of the virtual resource;
and the first display information generation unit is configured to generate display information corresponding to the virtual resource according to the first display content.
9. The virtual resource sharing processing apparatus of claim 7, wherein the presentation information generation module comprises:
a user attribute determining unit configured to perform determination of a user attribute corresponding to the terminal;
a second presentation content acquisition unit configured to execute acquisition of second presentation content having a correspondence 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;
and a second presentation information generation unit configured to perform generation of presentation information corresponding to the virtual resource according to the second presentation content.
10. The virtual resource sharing processing apparatus according to any one of claims 7 to 9, wherein the virtual resource is a red packet group; the display information also comprises the total amount of the red package group.
11. The virtual resource sharing processing apparatus of claim 10, wherein the apparatus further comprises:
a request receiving module configured to perform receiving a virtual resource acquisition request of the terminal;
and the request processing module is configured to execute calculation of 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.
12. The virtual resource sharing processing apparatus of claim 7, wherein the configuration information includes an expiration date of the virtual resource; the display information generation module comprises:
a deadline determination unit configured to perform determining whether the virtual resource is within a valid period according to a current time;
and the third display information generating unit is configured to generate display information of the outdated virtual resource if the virtual resource is determined not to be in the valid period.
13. 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.
14. A storage medium, which when executed by a processor of a server, enables the server to perform the virtual resource sharing processing method as claimed in 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 CN111629038A (en) 2020-09-04
CN111629038B true 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 (12)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10728239B2 (en) * 2015-09-15 2020-07-28 Mimecast Services Ltd. Mediated access to resources

Patent Citations (12)

* 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
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

Also Published As

Publication number Publication date
CN111629038A (en) 2020-09-04

Similar Documents

Publication Publication Date Title
CN109636488B (en) Advertisement putting method and device
WO2015055067A1 (en) Method and apparatus for pushing messages
US20180276720A1 (en) Advertising creative processing method, advertising creative processing apparatus, and storage medium
US10318987B2 (en) Managing cookie data
CN111782988B (en) Method, apparatus, computer system and storage medium for determining source of application program
US12067596B2 (en) Computer implemented method for partner pixelling for user identification
CN109766148B (en) Method and apparatus for processing interface method calls
US7904561B2 (en) Brokering mobile web services
CN114140075B (en) Service processing method, device, medium and electronic equipment
CN110866040A (en) User portrait generation method, device and system
JP2022546073A (en) Connecting web publisher inventory to programmatic exchanges without third party cookies
CN111010453B (en) Service request processing method, system, electronic device and computer readable medium
CN112328564A (en) Special resource sharing method and device and electronic equipment
US20220164425A1 (en) Data processing method, apparatus, storage medium, and device
WO2022068280A1 (en) Data processing method and apparatus, device, and storage medium
CN110245014B (en) Data processing method and device
CN106817296B (en) Information recommendation test method and device and electronic equipment
CN110083501A (en) Interface calls method of counting and device
CN111629038B (en) Virtual resource sharing processing method and device, server and storage medium
CN112991064A (en) Service processing method, device, computer equipment and storage medium
CN113781084A (en) Questionnaire display method and device
CN115858905A (en) Data processing method and device, electronic equipment and storage medium
CN114780361A (en) Log generation method, device, computer system and readable storage medium
CN113553203A (en) Request processing method, device, server and storage medium
CN113408817A (en) Traffic distribution method, device, equipment and storage medium

Legal Events

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