An electronic resource sharing method, device and computer equipment
By introducing graphic questions and input operations in the process of electronic resource distribution and collection, the problem of simple and mis-acquisition of electronic resource packages in the prior art is solved, and higher fun and lower misacquisition rate are achieved.
Patent Information
- Application Number
- CN202010414555.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-15
- Publication Date
- 2025-06-20
- Estimated Expiration
- 2040-05-15
AI Technical Summary
The distribution and collection methods of existing electronic resource packages are simple, resulting in low interest and misappropriation.
During the electronic resource distribution process, the corresponding level of graphic questions are set according to the resource distribution parameters, and the user is required to enter the corresponding graphic during the electronic resource collection process to enrich the fun and avoid misreceiving.
It effectively avoids the misappropriation of electronic resources and enriches the fun of issuing and collecting electronic resources.
Smart Images

Figure CN113673995B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, specifically to the field of communication technology, and in particular to an electronic resource sharing method, an electronic resource sharing device, a computer device, and a computer-readable storage medium. Background Art
[0002] With the rapid development of mobile payment, electronic resource packages (such as electronic red envelopes) created based on mobile payment have been widely used in people's daily lives. Electronic resource packages have the characteristics of flexible transactions and paperless, and have become an important part of social interaction, transfer and entertainment between users; especially in communication sessions, users are communicating more and more through electronic resource packages.
[0003] At present, when a member user in a communication session issues an electronic resource package to other member users in the communication session, he only needs to enter the amount and number of issuances, and after entering the password, the electronic resource package can be issued; when other member users receive the electronic resource package message, they only need to directly click on the electronic resource package message to receive the electronic resources corresponding to the electronic resource package message. Research shows that the above-mentioned electronic resource package issuance and receipt method is relatively simple, which leads to low interest in the electronic resource package issuance and receipt process; in addition, if other member users originally do not want to receive the electronic resources corresponding to the electronic resource package message, but accidentally click on the electronic resource package message, they will directly complete the receipt of the electronic resources; it can be seen that the current electronic resource receipt method still has the problem of completely unable to avoid the problem of wrong receipt. Summary of the invention
[0004] The embodiments of the present application provide an electronic resource sharing method, apparatus, and computer device, which can not only effectively avoid the erroneous collection of electronic resources, but also enrich the fun of electronic resource distribution and collection.
[0005] On the one hand, an embodiment of the present application provides an electronic resource sharing method, which is applied to a resource distribution terminal, and the method includes:
[0006] Respond to input resource release instructions;
[0007] According to the resource issuance instruction, a resource issuance setting page is displayed, and resource issuance parameters are received;
[0008] According to the reference level corresponding to the resource release parameter, a corresponding target graphic is obtained;
[0009] An electronic resource package message is generated according to the resource distribution parameters and the target graphic to distribute the resources.
[0010] On the one hand, an embodiment of the present application provides another method for sharing electronic resources, which is applied to a resource receiving terminal. The method includes:
[0011] Display an electronic resource package message, which is generated according to resource distribution parameters and a target graphic, and the target graphic corresponds to a reference level corresponding to the resource distribution parameters;
[0012] When a resource receiving operation of the user for the electronic resource package message is detected, display a resource receiving page, and the resource receiving page includes the target graphic;
[0013] Obtain the graphic input by the user on the resource receiving page according to the target graphic;
[0014] Perform resource receiving based on the graphic input by the user.
[0015] On the other hand, an embodiment of the present application provides an electronic resource sharing device, and the device includes:
[0016] A processing unit, configured to respond to an input resource distribution instruction;
[0017] A display unit, configured to display a resource distribution setting page according to the resource distribution instruction;
[0018] An obtaining unit, configured to receive resource distribution parameters, and obtain a corresponding target graphic according to a reference level corresponding to the resource distribution parameters;
[0019] The processing unit is further configured to generate an electronic resource package message according to the resource distribution parameters and the target graphic for resource distribution.
[0020] On the other hand, an embodiment of the present application provides another electronic resource sharing device, and the device includes:
[0021] A display unit, configured to display an electronic resource package message, which is generated according to resource distribution parameters and a target graphic, and the target graphic corresponds to a reference level corresponding to the resource distribution parameters;
[0022] A processing unit, configured to trigger the display unit to display a resource receiving page when a resource receiving operation of the user for the electronic resource package message is detected, and the resource receiving page includes the target graphic;
[0023] An obtaining unit, configured to obtain the graphic input by the user on the resource receiving page according to the target graphic;
[0024] The processing unit is further configured to perform resource receiving based on the graphic input by the user.
[0025] On the other hand, an embodiment of the present application provides a computer device, including: a processor, a user interface, a communication interface, and a memory, where the processor, the user interface, the communication interface, and the memory are interconnected. Among them, the memory stores executable program code, and the processor is configured to call the executable program code to execute the following steps:
[0026] Respond to an input resource distribution instruction;
[0027] According to the resource distribution instruction, display a resource distribution setting page through the user interface and receive resource distribution parameters;
[0028] Obtain a corresponding target graphic according to the reference level corresponding to the resource distribution parameters;
[0029] Generate an electronic resource package message according to the resource distribution parameters and the target graphic for resource distribution.
[0030] Alternatively, the memory stores executable program code, and the processor is configured to call the executable program code to execute the following steps:
[0031] Display an electronic resource package message through the user interface, where the electronic resource package message is generated according to resource distribution parameters and a target graphic, and the target graphic corresponds to the reference level corresponding to the resource distribution parameters;
[0032] When detecting a resource receiving operation of the user for the electronic resource package message, display a resource receiving page through the user interface, where the resource receiving page includes the target graphic;
[0033] Obtain the graphic input by the user on the resource receiving page according to the target graphic;
[0034] Perform resource receiving based on the graphic input by the user.
[0035] Correspondingly, an embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when it runs on a computer, it causes the computer to execute the following steps:
[0036] Respond to an input resource distribution instruction;
[0037] According to the resource distribution instruction, display a resource distribution setting page and receive resource distribution parameters;
[0038] Obtain a corresponding target graphic according to the reference level corresponding to the resource distribution parameters;
[0039] Generate an electronic resource package message according to the resource distribution parameters and the target graphic for resource distribution.
[0040] Alternatively, instructions are stored in the computer-readable storage medium, and when executed on a computer, cause the computer to perform the following steps:
[0041] Display an electronic resource package message, which is generated according to resource distribution parameters and a target graphic, and the target graphic corresponds to a reference level corresponding to the resource distribution parameters;
[0042] When a resource collection operation by the user for the electronic resource package message is detected, display a resource collection page, which includes the target graphic;
[0043] Obtain the graphic input by the user on the resource collection page according to the target graphic;
[0044] Perform resource collection based on the graphic input by the user.
[0045] The electronic resource sharing method provided by the embodiments of the present application adds an operation of setting graphic questions at corresponding levels according to resource distribution parameters during the electronic resource distribution process, and adds an operation of graphic input during the electronic resource collection process. This can not only enrich the interest of electronic resource distribution and collection, but also effectively avoid the miscollection of electronic resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0047] Figure 1 is a schematic diagram of the architecture of a service processing system provided by an embodiment of the present application;
[0048] Figure 2 is a schematic flowchart of an electronic resource sharing method provided by an embodiment of the present application;
[0049] Figure 3 is an application scenario diagram of an electronic resource distribution method provided by an embodiment of the present application;
[0050] Figure 4 shows some specific types of graphics;
[0051] Figure 5a is an application scenario diagram of an electronic resource collection method provided by an embodiment of the present application;
[0052] Figure 5bIt is an application scenario diagram of another method for receiving electronic resources provided by an embodiment of the present application;
[0053] Figure 6 It is an application scenario diagram of another method for receiving electronic resources provided by an embodiment of the present application;
[0054] Figure 7a It is a schematic structural diagram of another business processing system provided by an embodiment of the present application;
[0055] Figure 7b It is a schematic structural diagram of yet another business processing system provided by an embodiment of the present application;
[0056] Figure 8 It is a schematic flowchart of another method for sharing electronic resources provided by an embodiment of the present application;
[0057] Figure 9 It is a schematic flowchart of a method for distributing electronic resources provided by an embodiment of the present application;
[0058] Figure 10 It is a schematic flowchart of a method for receiving electronic resources provided by an embodiment of the present application;
[0059] Figure 11 It is a schematic structural diagram of an electronic resource sharing device provided by an embodiment of the present application;
[0060] Figure 12 It is a schematic structural diagram of another computer device provided by an embodiment of the present application. Detailed implementation manners
[0061] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application.
[0062] With the development of Internet technology, there is more and more communication between member users in a communication session through electronic resource packets. The related technologies of the embodiments of the present application mention that the current methods for distributing and receiving electronic resource packets are relatively simple, resulting in low interest in the process of distributing and receiving electronic resource packets, and there is also a problem that mis-receiving of electronic resources cannot be completely avoided at present. Electronic resources refer to electronic currency stored in an electronic wallet (such as QQ wallet, WeChat wallet, etc.) held by a user in electronic form. Based on this, the embodiments of the present invention propose a method for sharing electronic resources to effectively avoid mis-receiving of electronic resources and enrich the interest in distributing and receiving electronic resources.
[0063] The electronic resource sharing method provided by the embodiments of this application can be applied in a business processing system, which may include a resource distribution terminal 11 and a resource receiving terminal 12. The resource distribution terminal 11 and the resource receiving terminal 12 may include, but are not limited to, portable devices such as smart phones, tablet computers, and laptop computers, as well as desktop computers, etc.; a communication APP (application program) that supports call session functions can also be installed and run in the resource distribution terminal 11 and the resource receiving terminal 12, such as instant messaging APPs (such as QQ, WeChat, etc.), social APPs (such as Weibo, etc.), payment APPs, and so on. The resource distribution terminal 11 refers to the terminal used by the resource distribution object (or the resource distributor), and the resource distribution object refers to the member user who distributes the electronic resource package in the communication session; the resource receiving terminal 12 refers to the terminal used by the resource receiving object (or the resource recipient), and the resource receiving object refers to the member user who receives the electronic resource package in the communication session. For example, if member user A in a communication session distributes an electronic resource package (such as an electronic red envelope) in the target session, and member user B receives the electronic resource package in the target session, then the terminal used by member user A is the resource distribution terminal, and the terminal used by member user B is the resource receiving terminal. It should be noted that if the resource distribution object receives the electronic resource package after distributing it, then the resource distribution object and the resource receiving object are the same user, and at this time, the resource distribution terminal and the resource receiving terminal can be the same terminal; for example, if member user C in a communication session receives the electronic resource package after distributing it, then both the resource distribution terminal and the resource receiving terminal are the terminals used by member user C.
[0064] The electronic resource sharing method provided by the embodiments of this application mainly includes the following steps: The resource distribution terminal responds to the resource distribution instruction input by its user (i.e., the resource distribution object), displays a resource distribution setting page according to the resource distribution instruction, and receives the resource distribution parameters input by its user on the resource distribution setting page; obtains the reference level corresponding to the resource distribution parameters, and obtains the corresponding target graphic according to the reference level corresponding to the resource distribution parameters; then generates an electronic resource package message according to the resource distribution parameters and the target graphic, and sends the generated electronic resource package message to the resource receiving terminal, so as to perform the distribution of electronic resources.
[0065] After receiving the electronic resource package message sent by the resource distribution terminal, the resource receiving terminal displays the electronic resource package message on the session page; when detecting a resource receiving operation of the user (i.e., the resource receiving object) for the electronic resource package message, it displays a resource receiving page and displays the target graphic on the resource receiving page; obtains the graphic input by the user on the resource receiving page according to the target graphic, and performs resource receiving based on the graphic input by the user. In the above electronic resource sharing method, during the electronic resource distribution process, an operation of setting graphic questions at corresponding levels according to resource distribution parameters is added, and during the electronic resource receiving process, an operation of graphic input is added. This can not only enrich the fun of electronic resource distribution and receiving, but also effectively avoid the mis-receiving of electronic resources.
[0066] The main steps of the electronic resource sharing method provided in the embodiments of the present application are introduced above. Next, the specific implementation manners of the electronic resource sharing method will be elaborated.
[0067] Please refer to Figure 2 , which is a schematic flowchart of an electronic resource sharing method provided in the embodiments of the present application. The electronic resource sharing method described in the embodiments of the present application includes but is not limited to the following steps:
[0068] S201. The resource distribution terminal responds to the input resource distribution instruction and displays a resource distribution setting page according to the resource distribution instruction.
[0069] In the embodiments of the present application, an entry button for distributing electronic resources is provided for the user (i.e., the resource distribution object) on the session page of the target session displayed by the resource distribution terminal. When detecting a trigger operation of the user for the entry button for distributing electronic resources, it is determined that the resource distribution instruction input by the user is received, and the resource distribution setting page is displayed. Among them, the resource distribution setting page includes areas such as an amount input area, a quantity input area, a graphic display area, and a graphic operation button area. The graphic operation button area includes graphic operation buttons. It should be noted that the target session here can be a C2C communication session (one-to-one session) participated by two member users, or a group communication session participated by at least three member users. The entry button for distributing electronic resources can be directly displayed on the session page of the target session, or after detecting a trigger operation of the user for a specific button on the session page, the entry button for distributing electronic resources is displayed on the session page of the target session. When the target session is a C2C communication session, the quantity input area may not be included in the resource distribution setting page.
[0070] For example, as Figure 3 shown, the entry button for distributing electronic resources can be directly displayed on the session page of the target session. For example Figure 3The "red envelope icon" button 31 shown in the left middle figure; when detecting a click operation by the user on the "red envelope icon" button 31, output as Figure 3 The red envelope issuance setting page shown in the right middle figure. This red envelope issuance setting page includes an amount input area, a quantity input area, a graphic display area, and a graphic operation button area (such as the display area corresponding to the graphic switching button 32), and so on. In other embodiments, when detecting a click operation by the user on the "red envelope icon" button 31, first output as Figure 3 The red envelope type selection window shown in the middle image. This red envelope type selection window may include various types of red envelope selections, such as password red envelopes, one-stroke drawing red envelopes, and so on; one-stroke drawing means drawing a specified graphic in one stroke. Further, when detecting a selection operation by the user on the "one-stroke drawing red envelope" option in the red envelope type selection window, output as Figure 3 The red envelope issuance setting page shown in the right middle figure.
[0071] S202. The resource issuance terminal receives resource issuance parameters.
[0072] In the embodiments of the present application, the resource issuance parameters are used to determine a reference level (or difficulty), and the reference level is also the level of the graphic to be selected. Specifically, the resource issuance parameters can be used to determine the total issuance amount and / or average issuance amount of the electronic resources, and then the reference level can be determined according to the total issuance amount and / or average issuance amount of the electronic resources. In one implementation manner, the resource issuance parameters may include the total issuance amount and the number of issuances of the electronic resources. In another implementation manner, the resource issuance parameters may include the equal-amount issuance amount and the number of issuances of the electronic resources.
[0073] Specifically, the resource issuance terminal receives the amount input by the user in the amount input area on the resource issuance setting page. This amount can be the total issuance amount or the equal-amount issuance amount of the electronic resources; the resource issuance terminal receives the number of issuances input by the user in the number input area on the resource issuance setting page. This number of issuances is the number of issuances of the electronic resource package corresponding to the electronic resources.
[0074] S203. The resource issuance terminal obtains a corresponding target graphic according to the reference level corresponding to the resource issuance parameters.
[0075] In the embodiments of the present application, the resource issuance terminal first determines the reference level corresponding to the resource issuance parameters.
[0076] In one embodiment, the resource distribution terminal determines the average distribution amount of the electronic resources according to the resource distribution parameters, and determines the reference level according to the average distribution amount of the electronic resources. Specifically, the resource distribution terminal may determine the average distribution amount according to the total distribution amount and the number of distributions of the electronic resources included in the resource distribution parameters, or may determine the equal distribution amount of the electronic resources included in the resource distribution parameters as the average distribution amount. Further, the resource distribution terminal determines the reference amount range to which the average distribution amount belongs, and according to the mapping relationship between the amount range and the level, determines the level corresponding to the reference amount range as the reference level.
[0077] In another embodiment, the resource distribution terminal determines the total distribution amount of the electronic resources according to the resource distribution parameters, and determines the reference level according to the total distribution amount of the electronic resources. Specifically, the resource distribution terminal may directly obtain the total distribution amount of the electronic resources from the distribution parameters, or may determine the total distribution amount according to the equal distribution amount and the number of distributions of the electronic resources included in the resource distribution parameters. Further, the resource distribution terminal determines the reference level corresponding to the resource distribution parameters according to the mapping relationship between the total distribution amount and the level. In a feasible embodiment, the resource distribution terminal determines the reference amount range to which the total distribution amount belongs, and according to the mapping relationship between the amount range and the level, determines the level corresponding to the reference amount range as the reference level. In other feasible embodiments, the resource distribution terminal may also determine the total distribution amount and the average amount of the electronic resources according to the resource distribution parameters, and determine the reference level according to the total distribution amount and the average amount of the electronic resources. The specific implementation manner is similar and will not be elaborated here. It should be noted that the larger the total distribution amount and / or the average amount of the electronic resources, the higher the corresponding reference level.
[0078] Further, after the resource distribution terminal determines the reference level corresponding to the resource distribution parameters, it obtains the target graphic corresponding to the reference level. Specifically, the resource distribution terminal first determines the target list identifier corresponding to the reference level according to the mapping relationship between the level and the list identifier, and obtains the graphic list corresponding to the target list identifier; or directly determines the graphic list corresponding to the reference level according to the mapping relationship between the level and the graphic list. Among them, the graphic list may be downloaded from the server in advance, and the graphic list in the server may be set by the operator in advance; the graphic list includes at least one graphic of the target category, and the graphic of the target category includes a graphic that can be drawn with a number of strokes less than or equal to the stroke threshold. In one embodiment, the graphic of the target category may specifically be a graphic that can be drawn in one stroke, and the graphic that can be drawn in one stroke includes any one of a text graphic, an object graphic, a plane geometric graphic, a solid geometric graphic, and a dot matrix graphic. Such as Figure 4As shown, there are some figures that can be drawn in one stroke. In some embodiments, the figure list further includes the position information of multiple key points of each figure of the target category, and the multiple key points can indicate the style (such as shape) of the figure; the position information can be used to indicate the position of the key points in the target figure, and the position information can be coordinate information. The figure list can also include the number of lines of each figure of the target category, and the number of lines between any two key points of each figure of the target category, etc. The lines can be straight lines or curved lines.
[0079] After determining the figure list corresponding to the reference level, the resource distribution terminal determines the target figure according to the figure list. In one embodiment, the resource distribution terminal can randomly determine a figure from the figure list as the target figure. In another embodiment, the target figure is determined by the resource distribution terminal according to the selection operation of its user for at least one figure of the target category in the figure list.
[0080] In one embodiment, the resource distribution terminal randomly determines a figure from at least one figure of the target category in the figure list as the first figure to be selected, and displays the first figure to be selected in the figure display area on the resource distribution setting page. If the resource distribution terminal detects the determination selection operation of its user for the first figure to be selected, it determines the first figure to be selected as the target figure. If the resource distribution terminal detects the trigger operation of its user for the figure switching button on the resource distribution setting page, it switches the figure to be selected displayed on the resource distribution setting page from the first figure to be selected to the second figure to be selected; the second figure to be selected is any figure other than the first figure to be selected in the figure list. If it detects the determination selection operation of the user for the second figure to be selected, it determines the second figure to be selected as the target figure; if it detects the trigger operation of the user for the figure switching button on the resource distribution setting page again, it switches the figure to be selected displayed on the resource distribution setting page again until it detects the determination selection operation of the user for the figure to be selected displayed on the resource distribution setting page, and determines the figure to be selected currently displayed on the resource distribution setting page as the target figure.
[0081] In another embodiment, after receiving the graphic list sent by the server, the resource distribution terminal displays each target-category graphic in the graphic display area on the resource distribution settings page; and when detecting a selection operation by the user on each target-category graphic displayed on the resource distribution settings page, determines the graphic selected by the selection operation as the target graphic. In other embodiments, if the number of graphics in the graphic list is greater than the maximum number of graphics that can be displayed at one time on the resource distribution settings page, some of the graphics in the graphic list can be displayed first in the graphic display area on the resource distribution settings page; if detecting a trigger operation by the user on the list switching button on the resource distribution settings page, switches the graphics displayed on the resource distribution settings page according to the graphics not yet displayed in the graphic list; and when detecting a selection operation by the user on one or more target-category graphics currently displayed on the resource distribution settings page, determines the graphic selected by the selection operation as the target graphic.
[0082] It should be noted that the greater the total distribution amount and / or average amount of the electronic resources, the higher the corresponding reference level, and the greater the drawing difficulty of the corresponding target graphic, that is, the more complex the target graphic.
[0083] S204. The resource distribution terminal generates an electronic resource package message according to the resource distribution parameter and the target graphic, and sends the electronic resource package message to the resource receiving terminal, so as to perform resource distribution.
[0084] In the embodiments of the present application, the electronic resource package message is used to notify the resource recipient to receive the electronic resources corresponding to the electronic resource package message, and is also used to notify the resource recipient to perform graphic drawing before receiving the electronic resources, and is used to indicate the style of the graphic that the resource recipient needs to draw and the requirements that the graphic of this style drawn by the resource recipient needs to meet. The style of the graphic to be drawn is determined according to the target graphic, and the requirements to be met may include one or more of the following: the drawn graphic should include multiple key points of the target graphic; the number of lines of the drawn graphic is the same as the number of lines of the target graphic; the number of lines between any two target sampling points in the drawn graphic is the same as the number of lines between the two key points corresponding to the two target sampling points in the target graphic; the drawn graphic has a high similarity to the target graphic, that is, the similarity between the drawn graphic and the target graphic should be greater than or equal to a preset similarity threshold; the number of drawing strokes of the drawn graphic should be less than or equal to a preset stroke threshold; the drawing duration of the drawn graphic should be less than or equal to a preset duration threshold, and so on. The electronic resource package message not only includes the target graphic, but may also include the position information of multiple key points of the target graphic, the number of lines of the target graphic, the number of lines between any two key points, and the duration threshold, and so on. It should be noted that the settings of the stroke threshold and the duration threshold may vary according to the difficulty of the graphic, or may be fixed values.
[0085] Among them, the electronic resource package message also includes information such as the identifier of the resource recipient. The resource receiving terminal is also the terminal used by the resource recipient. The identifier of the resource recipient may be the account of the resource recipient, and so on. When the resource sender issues an electronic resource package in a group communication session, the resource recipient may be each member user in the group communication session. In other embodiments, the resource recipient may also be at least one member user selected by the resource sender from multiple member users in the group communication session who have the qualification to receive the electronic resource package. When the resource sender issues an electronic resource package in a C2C communication session, the resource recipient may be another member user in the C2C communication session other than the resource sender. In other embodiments, the resource recipient may also include the resource sender and another member user in the C2C communication session.
[0086] S205. The resource receiving terminal receives the electronic resource package message sent by the resource sending terminal and displays the electronic resource package message.
[0087] In the embodiments of the present application, the resource receiving terminal displays the electronic resource package message on the group or C2C session page where the resource recipient and the resource sender conduct a communication session. For example, as Figure 5a or Figure 5bAs shown in the left figure in , a message bubble of the electronic resource package message can be displayed on the conversation page.
[0088] S206. When the resource receiving terminal detects a resource collection operation by the user for the electronic resource package message, it displays a resource collection page.
[0089] In the embodiment of the present application, when it is detected that the user (i.e., the resource collection object) performs a trigger operation on the electronic resource package message, it is determined that a resource collection operation is detected. The trigger operation can be a click operation, a press operation, or a voice command operation. The resource collection page, for example Figure 5a or Figure 5b As shown in , may include a text display area, a graphic display area, and a graphic drawing area. It should be noted that the graphic display area and the graphic drawing area can be the same area or different areas.
[0090] S207. The resource receiving terminal obtains the graphic input by the user on the resource collection page according to the target graphic.
[0091] In the embodiment of the present application, for example Figure 5a As shown in the middle image and the right figure in , the resource receiving terminal displays the target graphic on the resource collection page and obtains the graphic input by the user on the resource collection page according to the target graphic. It should be noted that, for example Figure 5a The arrow in the right figure in is used to indicate the drawing trajectory for the user to draw a graphic. In a feasible implementation manner, the resource receiving terminal can also output graphic drawing requirement prompt information on the resource collection page, and the graphic drawing requirement prompt information is generated according to the requirements that the graphic drawn by the resource collection object indicated by the electronic resource package message needs to meet. The requirement prompt information is, for example, "Draw the following graphic in one stroke", "Draw the following graphic in one stroke within 5s", and so on.
[0092] In another embodiment, for example Figure 5b As shown in the middle image and the right figure in , the resource receiving terminal displays the target graphic and multiple key points of the target graphic on the resource collection page, and obtains the graphic input by the user on the resource collection page according to the target graphic and the multiple key points.
[0093] In still another embodiment, the resource receiving terminal displays the target graphic and the drawing method of the target graphic on the resource collection page, and the drawing method includes the drawing order of each line of the target graphic, and / or, key points that need to be passed when drawing the target graphic, etc. The resource receiving terminal obtains the graphic input by the user on the resource collection page according to the displayed target graphic and the drawing method of the target graphic.
[0094] S208. The resource receiving terminal performs resource collection based on the graphic input by the user.
[0095] In the embodiments of the present application, the resource receiving terminal detects whether the graph input by the user meets the graph drawing condition. If the graph input by the user meets the graph drawing condition, the resource is received; otherwise, the user is prompted to redraw the graph.
[0096] Among them, when the resource receiving terminal detects whether the graph input by the user meets the graph drawing condition, it detects whether the style of the graph input by the user is the same as the style of the target graph, and detects whether the drawing method of the graph input by the user meets the target condition (that is, the required graph drawing method); if the style of the graph input by the user is the same as the style of the target graph, and the drawing method of the graph input by the user meets the target condition, it is determined that the graph input by the user meets the graph drawing condition. It can be seen that meeting the graph drawing condition requires meeting both the graph style condition and the graph drawing method condition. It should be noted that the detection order of the graph style detection and the graph drawing method detection performed on the graph input by the user and the target graph is not limited, and can be one after the other or detected simultaneously.
[0097] In one embodiment, the way for the resource receiving terminal to detect whether the style of the graph input by the user is the same as the style of the target graph is: first, detect whether the graph input by the user includes each key point in the multiple key points of the target graph. If the graph input by the user includes each key point of the target graph, then further determine whether the number of lines between any two target sampling points in the graph input by the user is the same as the number of lines between the two key points corresponding to the two target sampling points in the target graph. Specifically, determine the first number of lines between any two target sampling points in the graph input by the user, where the target sampling point is the sampling point corresponding to the key point of the target graph in the graph input by the user; further, obtain the second number of lines between the two key points corresponding to the two target sampling points in the target graph, and detect whether each first number of lines is the same as the corresponding second number of lines. If there is a situation where the first number of lines is not the same as the corresponding second number of lines, it means that the user has not drawn the graph as required. At this time, it can be determined that the style of the graph input by the user is not the same as the style of the target graph. On the contrary, if each first number of lines is the same as the corresponding second number of lines, it means that the user is very likely to have completed the drawing of the target graph as required; at this time, it can be determined that the style of the graph input by the user is the same as the style of the target graph.
[0098] In a feasible embodiment, if each first number of lines is the same as the corresponding second number of lines, the number of lines (that is, the total number of lines) of the graph input by the user can be further detected to see if it is the same as the number of lines of the target graph; if the number of lines is the same, it is determined that the style of the graph input by the user is the same as the style of the target graph. Based on this, the accuracy of the detection result can be further improved.
[0099] In another embodiment, the way for the resource receiving terminal to detect whether the style of the graph input by the user is the same as that of the target graph may be: the resource receiving terminal determines the similarity between the graph input by the user and the target graph. In one embodiment, the contour information of the graph input by the user may be compared with the contour information of the target graph to obtain the similarity between the graph input by the user and the target graph. In other embodiments, the similarity between the drawn graph and the target graph may also be determined by combining the number of lines of the graph, the position information of the reference points, etc. Further, the resource receiving terminal determines whether the similarity between the graph input by the user and the target graph is greater than or equal to the similarity threshold. If so, it is determined that the style of the graph input by the user is the same as that of the target graph; otherwise, it is determined that the style of the graph input by the user is different from that of the target graph.
[0100] In one embodiment, meeting the target condition includes at least one of the following: the number of drawing strokes of the graph input by the user is less than or equal to the stroke number threshold, and the drawing duration of the graph input by the user is less than or equal to the duration threshold. During the drawing process, the time interval between the respective graph sampling points belonging to the same stroke is very short, while the time interval between the graph sampling points belonging to different strokes is relatively long. Therefore, the resource receiving terminal can determine the interval time between the respective graph sampling points according to the respective graph sampling points of the graph input by the user, and determine the number of drawing strokes of the graph input by the user according to the interval time between the respective graph sampling points, and then detect whether the number of drawing strokes of the graph input by the user is less than or equal to the stroke number threshold. In addition, the resource receiving terminal can determine the drawing duration of the graph input by the user according to the drawing time information of the respective graph sampling points, and then detect whether the drawing duration of the graph input by the user is less than or equal to the duration threshold.
[0101] It should be noted that the embodiments of the present application can also combine the above key point detection method, line number detection method and similarity detection method, and then combine the method of detecting whether the above target conditions are met to detect whether the received data meets the graph drawing conditions; based on this, the accuracy of the detection result can be further improved. In addition, in some feasible embodiments, parameters such as the degree of bending of each line of the graph can also be combined to detect whether the received data meets the graph drawing conditions.
[0102] In the embodiments of the present application, the resource receiving terminal generates a dynamic graph of the graph input by the user, and after the resource receiving terminal completes resource collection, the dynamic graph is displayed on the session page. For example Figure 6The dynamic diagram of the plane geometric figure input by the user as shown, the dynamic diagram includes the drawing trajectory of the user drawing the plane geometric figure, the arrow direction in the figure indicates the drawing trajectory, and indicates the order of each part of the trajectory shown in the dynamic diagram. In other embodiments, the resource receiving terminal may send the dynamic diagram to the terminals used by each resource receiving object in the communication session, so that the terminals used by each resource receiving object can display the dynamic diagram on the session page. In yet another embodiment, the resource receiving terminal may only send the dynamic diagram to the terminals used by each resource receiving object designated by the resource distributing object in the communication session and having the qualification to receive electronic resources, so as to display the dynamic diagram to each resource receiving object having the qualification to receive electronic resources.
[0103] The electronic resource sharing method provided by the embodiments of the present application adds the content operation of setting graphic questions at corresponding levels according to resource distribution parameters during the electronic resource distribution process, and adds the content operation of graphic input during the electronic resource receiving process. This can not only enrich the fun of electronic resource distribution and receiving, but also effectively avoid the misreceiving of electronic resources.
[0104] The embodiments of the present application also provide another electronic resource sharing method, which can be applied to another service processing system. The service processing system may include a server 71 and at least two clients 72. Among them, the client 72 may include, but is not limited to, portable devices such as smart phones, tablet computers, and laptop computers, as well as desktop computers, etc.; a communication APP (application program) supporting call session functions may also be installed and run in the client 72, such as instant messaging APPs (such as QQ, WeChat, etc.), social APPs (such as Weibo, etc.), payment APPs, and so on. The client 72 can be divided into a first client and a second client: the first client refers to the terminal used by the resource distributing object (or the resource distributor) (i.e., the resource distributing terminal), and the resource distributing object refers to the member user who distributes the electronic resource package in the communication session; the second client refers to the terminal used by the resource receiving object (or the resource receiver) (i.e., the resource receiving terminal), and the resource receiving object refers to the member user who receives the electronic resource package in the communication session. For example, member user A in the communication session distributes an electronic resource package (such as an electronic red envelope) in the target session, and member user B receives the electronic resource package in the target session. Then the terminal used by member user A is the first client, and the terminal used by member user B is the second client. It should be noted that if the resource distributing object receives the electronic resource package after distributing it, the resource distributing object and the resource receiving object are the same user. At this time, the first client and the second client can be the same terminal; for example, member user C in the communication session receives the electronic resource package after distributing it, then both the first client and the second client are the terminals used by member user C.
[0105] The server 71 refers to a server that can provide multiple business services such as configuration services, electronic resource package (such as electronic red envelope) services, and message services for the client 72. It includes, but is not limited to: data processing servers, application servers, and web servers, etc. Among them, the configuration service refers to the service of providing configuration data (such as the page data of the resource distribution setting page) for the client, and the configuration data here can be set in the server by the operator in advance. The electronic resource package service refers to the service of providing the distribution and receipt of electronic resource packages for the client, and the message service refers to the service of providing the sending of session messages for the client. In one implementation, the server 71 can be an independent service device; in this case, multiple business services such as configuration services, electronic resource package services, and message services can all be provided by one service device (i.e., the server 71), and the specific system architecture diagram can be referred to Figure 7a as shown. In another implementation, the server 71 can also be a cluster device composed of multiple service devices, and the specific system architecture diagram can be referred to Figure 7b as shown; in this case, multiple business services such as configuration services, electronic resource package services, and message services can be provided by each service device in the server 71 respectively. For example, the configuration service is provided by the configuration service device 711, the electronic resource package service is provided by the resource service device 712, the message service is provided by the message service device 713, etc. It can be understood that the specific structure of the server 71 in the embodiments of the present invention is not limited.
[0106] The electronic resource sharing method provided by the embodiment of the present application mainly includes the following steps: the first client (i.e., the resource issuing terminal) sends a resource issuing parameter to the server; the server determines the reference level according to the resource issuing parameter sent by the client, and obtains the target graphic corresponding to the reference level. The first client sends a resource issuing request to the server, and the resource issuing request carries the identifier of the resource receiving object; the server generates an electronic resource package message in response to the resource issuing request of the first client, and sets a graphic drawing condition for the electronic resource package message, and the graphic drawing condition is determined according to the target graphic. The server sends an electronic resource package message associated with the graphic drawing condition to the second client (i.e., the resource receiving terminal) according to the identifier of the resource receiving object; the second client outputs the electronic resource package message associated with the graphic drawing condition, and when detecting the resource receiving object's resource receiving operation for the electronic resource package message, collects the receiving data generated by the resource receiving operation; the second client sends a resource receiving request including the receiving data to the server; the server detects whether the receiving data in the resource receiving request meets the graphic drawing condition, and if so, the server allocates and processes the electronic resources corresponding to the electronic resource package message. The above-mentioned electronic resource sharing method will only perform electronic resource allocation processing when the collection data meets the graphics drawing conditions, which can effectively avoid the wrong collection of electronic resources during the electronic resource collection process; in addition, different levels of target graphics are associated with graphics drawing conditions according to different resource distribution parameters, which can increase the diversity of setting graphics drawing conditions, thereby helping to enrich the fun of the electronic resource package processing process.
[0107] The above introduces the main steps of the electronic resource sharing method provided in the embodiment of the present application. The following describes the specific implementation of the electronic resource sharing method.
[0108] See also Figure 8 , is a flow chart of an electronic resource sharing method provided in an embodiment of the present application. The electronic resource sharing method described in the embodiment of the present application includes but is not limited to the following steps:
[0109] S801. A first client sends resource issuance parameters to a server.
[0110] In an embodiment of the present application, the resource issuance parameter is used to determine the reference level (or difficulty), and the reference level is also the level of the graphics to be selected. Specifically, the resource issuance parameter can be used to determine the total issuance amount and / or the average issuance amount of the electronic resources, and then the reference level can be determined based on the total issuance amount and / or the average issuance amount of the electronic resources. In one embodiment, the resource issuance parameter may include the total issuance amount and the issuance number of the electronic resources. In another embodiment, the resource issuance parameter may include the equal issuance amount and the issuance number of the electronic resources.
[0111] It should be noted that the first client, which is also the client described in the claims, refers to the terminal used by the resource recipient; the resource recipient refers to the member user who distributes the electronic resource package in the communication session. The resource recipient can distribute the electronic resource package in a group communication session participated by at least three member users, or can also distribute the electronic resource package in a C2C communication session (one-to-one session) participated by two member users.
[0112] S802. The server receives the resource distribution parameter sent by the first client, and determines a reference level according to the resource distribution parameter. Among them, the reference level is also the level of the graph to be selected.
[0113] In one embodiment, the server determines the average distribution amount of the electronic resources according to the resource distribution parameter, and determines the reference level according to the average distribution amount of the electronic resources. Specifically, the server can determine the average distribution amount according to the total distribution amount and the number of distributions of the electronic resources included in the resource distribution parameter, or can also determine the equal distribution amount of the electronic resources included in the resource distribution parameter as the average distribution amount. Further, the server determines the reference amount range to which the average distribution amount belongs, and according to the mapping relationship between the amount range and the level, determines the level corresponding to the reference amount range as the reference level.
[0114] In another embodiment, the server determines the total distribution amount of the electronic resources according to the resource distribution parameter, and determines the reference level according to the total distribution amount of the electronic resources. Specifically, the server can directly obtain the total distribution amount of the electronic resources from the distribution parameter, or can also determine the total distribution amount according to the equal distribution amount and the number of distributions of the electronic resources included in the resource distribution parameter. Further, the server determines the reference amount range to which the total distribution amount belongs, and according to the mapping relationship between the amount range and the level, determines the level corresponding to the reference amount range as the reference level.
[0115] In a feasible implementation manner, the server can also determine the total distribution amount and the average amount of the electronic resources according to the resource distribution parameter, and determine the reference level according to the total distribution amount and the average amount of the electronic resources. The specific implementation manner is similar and will not be elaborated here.
[0116] It should be noted that the larger the total distribution amount and / or the average amount of the electronic resources, the higher the corresponding reference level.
[0117] S803. The server obtains the target graph corresponding to the reference level.
[0118] In the embodiments of the present application, the server may determine the target list identifier corresponding to the reference level according to the mapping relationship between the level and the list identifier, and obtain the graphic list corresponding to the target list identifier. The server may also directly determine the graphic list corresponding to the reference level according to the mapping relationship between the level and the graphic list. Among them, the graphic list may be pre-set in the server by the operator. The graphic list includes at least one graphic of the target category. The graphic of the target category includes a graphic that can be drawn with a number of strokes less than or equal to the stroke number threshold. In one embodiment, the graphic of the target category may specifically be a graphic that can be drawn in one stroke. The graphic that can be drawn in one stroke includes any one of a text graphic, an object graphic, a plane geometric graphic, a solid geometric graphic, and a dot matrix graphic. In some embodiments, the graphic list further includes the position information of multiple key points of each graphic of the target category. The multiple key points may indicate the style of the graphic; the position information may be used to indicate the position of the key point in the target graphic, and the position information may be coordinate information. The graphic list may further include the number of lines of each graphic of the target category, and the number of lines between any two key points of each graphic of the target category, etc. The line may be a straight line or a curved line.
[0119] After determining the graphic list corresponding to the reference level, the server obtains the target graphic according to the graphic list. In one embodiment, the server may randomly determine a graphic from the graphic list as the target graphic.
[0120] In another embodiment, the server sends the graphic list to the first client and receives the graphic identifier of the target graphic sent by the client for the graphic list; the server determines the graphic indicated by the graphic identifier as the target graphic. Among them, the target graphic is determined by the first client according to the selection operation of the resource distribution object for at least one graphic of the target category in the graphic list.
[0121] In one embodiment, after the first client receives the graphic list sent by the server, it randomly determines one graphic from at least one graphic of the target category in the graphic list as the first graphic to be selected, and displays the first graphic to be selected on the resource distribution setting page. If the first client detects a confirmation selection operation by the resource distribution object for the first graphic to be selected, it determines the first graphic to be selected as the target graphic. If the first client detects a trigger operation by the resource distribution object for the graphic switching button on the resource distribution setting page, it switches the graphic to be selected displayed on the resource distribution setting page from the first graphic to be selected to the second graphic to be selected; the second graphic to be selected is any graphic other than the first graphic to be selected in the graphic list. If a confirmation selection operation by the resource distribution object for the second graphic to be selected is detected, the second graphic to be selected is determined as the target graphic; if a trigger operation by the resource distribution object for the graphic switching button on the resource distribution setting page is detected again, the graphic to be selected displayed on the resource distribution setting page is switched again until a confirmation selection operation by the resource distribution object for the graphic to be selected displayed on the resource distribution setting page is detected, and the graphic to be selected currently displayed on the resource distribution setting page is determined as the target graphic. Further, the first client sends the graphic identifier of the target graphic to the server.
[0122] In another embodiment, after the first client receives the graphic list sent by the server, it displays each graphic of the target category in the graphic list on the resource distribution setting page; and when it detects a selection operation by the resource distribution object for each graphic of the target category displayed on the resource distribution setting page, it determines the graphic selected by the selection operation as the target graphic. Further, the first client sends the graphic identifier of the target graphic to the server. In other embodiments, if the number of graphics in the graphic list is greater than the maximum number of graphics that can be displayed on the resource distribution setting page at one time, some graphics in the graphic list can be displayed on the resource distribution setting page first; if a trigger operation by the resource distribution object for the list switching button on the resource distribution setting page is detected, the graphics displayed on the resource distribution setting page are switched according to the graphics not displayed in the graphic list; and when it detects a selection operation by the resource distribution object for one or more graphics of the target category currently displayed on the resource distribution setting page, it determines the graphic selected by the selection operation as the target graphic.
[0123] It should be noted that the larger the total distribution amount and / or average amount of the electronic resources, the higher the corresponding reference level, and the greater the drawing difficulty of the corresponding target graphic, that is, the more complex the target graphic.
[0124] S804. The first client sends a resource distribution request to the server, where the resource distribution request carries the identifier of the resource recipient, and the resource recipient can be one or more.
[0125] In the embodiments of the present application, the identifier of the resource recipient can be the account of the resource recipient, etc. When the resource distribution object is to distribute an electronic resource package in a group communication session, the resource recipients can be each member user in the group communication session. In other embodiments, the resource recipients can also be at least one member user who has the qualification to receive the electronic resource package selected by the resource distribution object for multiple member users in the group communication session. When the resource distribution object is to distribute an electronic resource package in a C2C communication session, the resource recipient can be another member user other than the resource distribution object in the C2C communication session. In other embodiments, the resource recipients can also include the resource distribution object and another member user in the C2C communication session.
[0126] Correspondingly, the server receives the resource distribution request sent by the first client.
[0127] It should be noted that if the target graph corresponding to the reference level is directly determined by the server from the graph list, steps S804 and S801 can be combined as step S801. The combined step can be: The first client sends a resource distribution request to the server, where the resource distribution request carries the resource distribution parameters and the identifier of the resource recipient.
[0128] S805. The server generates an electronic resource package message in response to the resource distribution request of the first client, and associates and sets graph drawing conditions for the electronic resource package message; where the graph drawing conditions are determined according to the target graph.
[0129] In the embodiments of the present application, the server first generates an electronic resource package order based on data such as resource distribution parameters, the identifier of the resource distribution object, and the identifier of the resource recipient object. Then, an electronic resource package message is generated based on the electronic resource package order. The electronic resource package message is used to notify the resource recipient object to receive the electronic resources in the electronic resource package corresponding to the electronic resource package message. Further, the server associates and sets graphic drawing conditions for the electronic resource package message. Among them, the graphic drawing conditions are used to indicate the style of the graphic that the resource recipient object needs to draw during the process of receiving the electronic resource package, and are used to indicate the requirements that the graphic of this style drawn by the resource recipient object needs to meet. The style of the graphic to be drawn is determined according to the target graphic. The requirements to be met may include one or more of the following: the drawn graphic should include multiple key points of the target graphic; the number of lines of the drawn graphic is the same as the number of lines of the target graphic; the number of lines between any two target sampling points in the drawn graphic is the same as the number of lines between the two key points corresponding to the two target sampling points in the target graphic; the drawn graphic has a high similarity to the target graphic, that is, the similarity between the drawn graphic and the target graphic should be greater than or equal to a preset similarity threshold; the number of drawing strokes of the drawn graphic should be less than or equal to a preset stroke threshold; the drawing duration of the drawn graphic should be less than or equal to a preset duration threshold, etc. The electronic resource package message associated with the graphic drawing conditions is not only used to notify the resource recipient object to receive the electronic resources, but also used to notify the resource recipient object to draw a graphic according to the indication of the graphic drawing conditions before receiving the electronic resources. Therefore, the electronic resource package message associated with the graphic drawing conditions includes the target graphic, and may also include the position information of multiple key points of the target graphic, the number of lines of the target graphic, the number of lines between any two key points, and the duration threshold, etc. It should be noted that the settings of the stroke threshold and the duration threshold can be different according to the difficulty of the graphic, or can be fixed values.
[0130] S806. The server sends the electronic resource package message associated with the graphic drawing conditions to the second client (i.e., the terminal used by the resource recipient object) according to the identifier of the resource recipient object. Among them, the second client can be one or more.
[0131] Correspondingly, the second client receives the electronic resource package message associated with the graphic drawing conditions sent by the server.
[0132] S807. The second client outputs the electronic resource package message associated with the graphic drawing conditions.
[0133] In the embodiments of the present application, the second client displays the electronic resource package message associated with the graphic drawing conditions in the group where the resource recipient object and the resource distribution object conduct a communication session or on the C2C session page. Specifically, it can be to display the message bubble of the electronic resource package message.
[0134] S808. When the second client detects a resource collection operation by the resource collection object for the electronic resource package message associated with the graphic drawing condition, it collects the collection data generated by the resource collection operation and generates a resource collection request based on the collection data. The resource collection request carries the collection data.
[0135] In the embodiment of the present application, when the second client detects a trigger operation by the resource collection object (i.e., the user of the second client) for the electronic resource package message displayed on the session page, it generates graphic drawing prompt information according to the style of the graphic (i.e., the target graphic) that the resource collection object needs to draw during the process of collecting the electronic resource package indicated by the graphic drawing condition; and outputs the graphic drawing prompt information on the resource collection page including the graphic drawing area. The graphic drawing prompt information includes the target graphic, may also include the position information of multiple key points of the target graphic, and may further include requirement prompt information generated according to the requirements that the graphic drawn by the resource collection object indicated by the graphic drawing condition needs to meet; the requirement prompt information is, for example, "draw the following graphic in one stroke", "draw the following graphic in one stroke within 5s", etc. It should be noted that the above trigger operation may be a click operation, a long press operation, or a voice command control operation.
[0136] Further, when the second client detects a graphic drawing operation by the resource collection object in the graphic drawing area, it collects drawing data for the graphic drawn by the resource collection object. The collected drawing data includes: the coordinate information of multiple sampling points of the graphic drawn by the resource collection object and / or the drawing time information. Further, the second client generates collection data based on the collected drawing data and generates a resource collection request based on the collection data. It should be noted that in addition to the drawing data, the collection data may also include the identification information of the resource collection object corresponding to the second client, verification information, etc.
[0137] S809. The second client sends the resource collection request to the server.
[0138] Correspondingly, the server receives the resource collection request sent by the second client.
[0139] S810. The server responds to the resource collection request, detects whether the collection data included in the resource collection request meets the graphic drawing condition, and when the collection data meets the graphic drawing condition, performs allocation processing on the electronic resource corresponding to the electronic resource package message.
[0140] In one embodiment, the server obtains drawing data from the collection data, and obtains the coordinate information of multiple sampling points of the graph drawn by the resource collection object from the drawing data; then, based on the coordinate information of the multiple sampling points and the position information of multiple key points of the target graph, it detects whether the graph drawn by the resource collection object includes each of the multiple key points, and obtains a detection result. Among them, the multiple key points of the target graph can be composed of multiple points on each line of the target graph. If the detection result indicates that the graph drawn by the resource collection object does not include each of the multiple key points, it means that the resource collection object has not drawn the graph as required, that is, the resource collection object has not completed the drawing of the target graph, or the similarity between the drawn graph and the target graph is relatively low, etc.; at this time, it can be determined that the collection data does not meet the graph drawing condition. If the detection result indicates that the graph drawn by the resource collection object includes each of the multiple key points, it means that the drawn graph includes each line of the target graph, and it is very likely that the resource collection object has completed the drawing of the target graph as required; at this time, it is further determined whether the graph drawn by the resource collection object meets the target condition according to the drawing time information of the multiple sampling points. If the graph drawn by the resource collection object meets the target condition, it is determined that the collection data meets the graph drawing condition; otherwise, it is determined that the collection data does not meet the graph drawing condition. In a feasible implementation manner, meeting the target condition includes at least one of the following: the number of drawing strokes of the graph drawn by the resource collection object is less than or equal to the stroke number threshold, and the drawing duration of the graph drawn by the resource collection object is less than or equal to the duration threshold.
[0141] In a feasible implementation manner, if the detection result indicates that the graph drawn by the resource collection object includes each of the multiple key points, the number of lines (i.e., the total number of lines) of the graph drawn by the resource collection object can be further detected according to the coordinate information of the multiple sampling points, and whether it is consistent with the number of lines of the target graph; if the number of lines is consistent, it is further determined whether the collection data meets the graph drawing condition by determining whether the graph drawn by the resource collection object meets the target condition. Based on this, the accuracy of the detection result can be further improved.
[0142] In another embodiment, the server obtains drawing data from the collection data, and obtains the coordinate information of multiple sampling points of the graph drawn by the resource collection object from the drawing data; then, based on the coordinate information of the multiple sampling points and the position information of multiple key points of the target graph, it detects whether the graph drawn by the resource collection object includes each of the multiple key points, and obtains a detection result. Among them, the multiple key points of the target graph can be composed of specific types of points in the target graph, and the specific types of points include one or more of the following: the intersection points of at least two lines, the points whose bending degree (such as curvature) exceeds the bending degree threshold (such as curvature threshold), and the endpoints and midpoints of the lines, etc. If the detection result indicates that the graph drawn by the resource collection object does not include each of the multiple key points, it means that the resource collection object does not draw the graph as required. At this time, it can be determined that the collection data does not meet the graph drawing conditions.
[0143] If the detection result indicates that the graph drawn by the resource collection object includes each of the multiple key points, then determine the number of first lines between any two target sampling points in the graph drawn by the resource collection object based on the coordinate information of the multiple sampling points. The target sampling points are the sampling points corresponding to the key points of the target graph in the drawn graph; further, obtain the number of second lines between the two key points corresponding to the any two target sampling points in the target graph, and detect whether each first line number is consistent with the corresponding second line number. If there is a situation where the first line number is inconsistent with the corresponding second line number, it also means that the resource collection object does not draw the graph as required. At this time, it can be determined that the collection data does not meet the graph drawing conditions. On the contrary, if each first line number is consistent with the corresponding second line number, it means that the resource collection object is very likely to have completed the drawing of the target graph as required; at this time, further determine whether the graph drawn by the resource collection object meets the target conditions according to the drawing time information of the multiple sampling points. If the graph drawn by the resource collection object meets the target conditions, it is determined that the collection data meets the graph drawing conditions; otherwise, it is determined that the collection data does not meet the graph drawing conditions. In a feasible implementation manner, meeting the target conditions includes at least one of the following: the number of drawing strokes of the graph drawn by the resource collection object is less than or equal to the stroke threshold, and the drawing duration of the graph drawn by the resource collection object is less than or equal to the duration threshold.
[0144] In a feasible implementation manner, if each first line number is consistent with the corresponding second line number, it is further possible to detect whether the number of lines (i.e., the total number of lines) of the graph drawn by the resource collection object is consistent with the number of lines of the target graph based on the coordinate information of the multiple sampling points; if the number of lines is consistent, then further determine whether the collection data meets the graph drawing conditions by determining whether the graph drawn by the resource collection object meets the target conditions. Based on this, the accuracy of the detection result can be further improved.
[0145] It should be noted that in the above two embodiments, the key points of the target graph included in the graph drawn by the resource recipient may refer to: among the multiple sampling points of the graph drawn by the resource recipient, there are sampling points with the same coordinate information as the key points of the target graph; or it may refer to: among the multiple sampling points of the graph drawn by the resource recipient, there are one or more sampling points whose position offsets from the key points of the target graph are within the error tolerance range. The position information of the key points of the target graph may be the coordinate information of the display position of the key points on the resource collection page.
[0146] In another embodiment, the server obtains the drawing data from the collection data and obtains the coordinate information of multiple sampling points of the graph drawn by the resource recipient from the drawing data; then, based on the coordinate information of the multiple sampling points, the similarity between the graph drawn by the resource recipient and the target graph is determined. In one implementation, first, based on the coordinate information of the multiple sampling points, the contour information of the graph drawn by the resource recipient is determined, and then the contour information of the graph drawn by the resource recipient is compared with the contour information of the target graph to obtain the similarity between the graph drawn by the resource recipient and the target graph. In other implementations, the similarity between the drawn graph and the target graph can also be determined by combining the number of lines of the graph, the position information of the reference points, etc.
[0147] Further, the server determines whether the similarity between the graph drawn by the resource recipient and the target graph is greater than or equal to the similarity threshold. If the similarity between the graph drawn by the resource recipient and the target graph is less than the similarity threshold, it is determined that the collection data does not meet the graph drawing condition; if the similarity between the graph drawn by the resource recipient and the target graph is greater than or equal to the similarity threshold, the drawing time information of multiple sampling points of the graph drawn by the resource recipient is obtained from the drawing data, and based on the drawing time information of the multiple sampling points, it is determined whether the graph drawn by the resource recipient meets the target condition. If the graph drawn by the resource recipient meets the target condition, it is determined that the collection data meets the graph drawing condition; otherwise, it is determined that the collection data does not meet the graph drawing condition. In a feasible implementation, meeting the target condition includes at least one of the following: the number of drawing strokes of the graph drawn by the resource recipient is less than or equal to the stroke number threshold, and the drawing duration of the graph drawn by the resource recipient is less than or equal to the duration threshold.
[0148] Specifically, during the drawing process, the time interval between sampling points belonging to the same stroke is very short, while the time interval between sampling points belonging to different strokes is relatively long. Therefore, the server can determine the interval time between each sampling point based on the drawing time information of the multiple sampling points, and determine the number of drawing strokes of the graph drawn by the resource receiving object based on the interval time between each sampling point, and then detect whether the number of drawing strokes of the graph drawn by the resource receiving object is less than or equal to the stroke number threshold. In addition, the server can determine the drawing duration of the graph drawn by the resource receiving object based on the drawing time information of the multiple sampling points, and then detect whether the drawing duration of the graph drawn by the resource receiving object is less than or equal to the duration threshold.
[0149] In a feasible implementation manner, the drawing data collected by the second client for the graph drawn by the resource receiving object may include the number of drawing strokes of the graph drawn by the resource receiving object. When drawing a certain stroke of the graph, the drawing tool (such as a finger or a stylus, etc.) used by the resource receiving object usually does not leave the screen of the client; while after the previous stroke is drawn and before the next stroke is drawn, the drawing tool used by the resource receiving object will briefly leave the screen of the client. Based on this, when the second client collects drawing data for the graph drawn by the resource receiving object, it can record the number of drawing strokes of the graph drawn by the resource receiving object. The server directly obtains the number of drawing strokes of the graph drawn by the resource receiving object from the drawing data, and then detects whether the number of drawing strokes of the graph drawn by the resource receiving object is less than or equal to the stroke number threshold. In other feasible implementation manners, the drawing data collected by the second client for the graph drawn by the resource receiving object may include indication information for indicating whether the number of drawing strokes of the graph drawn by the resource receiving object is less than or equal to the stroke number threshold. After the second client obtains the number of drawing strokes of the graph drawn by the resource receiving object, it detects whether the number of drawing strokes of the graph drawn by the resource receiving object is less than or equal to the stroke number threshold, and generates the indication information according to the detection result. The server obtains the indication information from the drawing data and directly determines whether the number of drawing strokes of the graph drawn by the resource receiving object is less than or equal to the stroke number threshold based on the indication information.
[0150] It should be noted that the embodiments of the present application can also combine the above key point detection method, line number detection method and similarity detection method, and then combine the method of detecting whether the above target conditions are met to detect whether the received data meets the graph drawing conditions; based on this, the accuracy of the detection result can be further improved. In addition, in some feasible implementation manners, parameters such as the bending degree of each line of the graph can also be combined to detect whether the received data meets the graph drawing conditions.
[0151] In the embodiments of the present application, when the received data sent by the second client meets the graphic drawing condition, the server determines the receiving amount of the resource receiving object corresponding to the second client according to the resource distribution parameters, and transfers the electronic resources corresponding to the receiving amount to the e-wallet of the resource receiving object corresponding to the second client; and returns to the second client the electronic resource receiving result of its corresponding resource receiving object, where the receiving result includes the receiving amount of the electronic resources. In other embodiments, the server may send the distribution result of the electronic resources to each client in the communication session, where the distribution result includes the un-received amount of the electronic resources, the identifiers of the resource receiving objects that have received the electronic resources, and the amounts they have received, etc.
[0152] In the embodiments of the present application, after detecting that the received data meets the graphic drawing condition, the server may generate a dynamic graph of the graphic drawn by the resource receiving object according to the coordinate information and time information of multiple sampling points of the graphic drawn by the resource receiving object included in the drawing data. Wherein, the dynamic graph includes the drawing trajectory of the graphic drawn by the resource receiving object. After the server processes the distribution of the electronic resources, it sends the dynamic graph to the terminal used by the resource receiving object (i.e., the second client) so that the terminal used by the resource receiving object can display the dynamic graph on the session page. In other embodiments, the server may send the dynamic graph to each client in the communication session so that each client can display the dynamic graph on the session page. In yet another embodiment, the server may only send the dynamic graph to the clients used by the resource receiving objects specified by the resource distributor in the communication session and having the qualification to receive the electronic resources, so as to display the dynamic graph to the resource receiving objects having the qualification to receive the electronic resources.
[0153] In other embodiments, the second client may generate a dynamic graph of the graphic drawn by the resource receiving object according to the coordinate information and time information of multiple sampling points collected for the graphic drawn by the resource receiving object. After the second client receives the electronic resource receiving result of its corresponding resource receiving object, it displays the dynamic graph on the session page. In other embodiments, the second client may also send the dynamic graph to each client in the communication session through the server so that each client can display the dynamic graph on the session page. In yet another embodiment, the second client may send the dynamic graph only to the clients used by the resource receiving objects having the qualification to receive the electronic resources in the communication session through the server, so as to display the dynamic graph to the resource receiving objects having the qualification to receive the electronic resources.
[0154] In the above-mentioned electronic resource sharing method, on the one hand, the electronic resource allocation process is only carried out when the received data meets the graphic drawing conditions, which can effectively avoid the mis-receipt of electronic resources during the process of receiving electronic resources; on the other hand, different levels of target graphics are associated with the graphic drawing conditions according to different resource distribution parameters, which can increase the diversity of the setting of graphic drawing conditions. In addition, based on the association of different levels of target graphics with the graphic drawing conditions according to different resource distribution parameters, different difficulty levels of graphic questions (including graphic styles and graphic drawing requirements) can be set according to the size of the electronic resource amount indicated by the resource distribution parameters, and it is required that the resource recipient draw a graphic according to the graphic question when receiving the electronic resource package, which can enrich the fun during the process of processing the electronic resource package. And when the electronic resource amount indicated by the resource distribution parameter is large, more difficult graphic questions can be set. The more difficult the graphic question is, the less likely it is to mis-receive the electronic resource. Therefore, when the amount of the electronic resource is large, the probability of mis-receiving the electronic resource can be effectively reduced.
[0155] To better understand the electronic resource sharing method in the embodiments of the present application, the following will be described by way of examples with reference to the accompanying drawings. Specifically, a business processing solution for receiving a red envelope (i.e., an electronic resource package) by drawing a picture in one stroke will be used as an example for illustration. The problem of drawing a picture in one stroke is a type of graph traversal, that is, for a given graph, find a way of drawing that exactly contains all the edges and has no repeated paths, and draw the graph in one stroke. The business processing solution for receiving a red envelope by drawing a picture in one stroke mainly includes a red envelope distribution process and a red envelope receiving process. As Figure 9 shown, the red envelope distribution process in the business processing solution for receiving a red envelope by drawing a picture in one stroke includes the following steps:
[0156] (1) Provide an entrance button for distributing red envelopes to the user on the session page of the target session displayed by the first client. This entrance button can be directly displayed on the session page of the target session. For example, Figure 3 the "red envelope icon" button 31 shown in the left figure in Figure 3 ; when detecting a selection operation by the user on the entrance button for distributing red envelopes, output a red envelope type selection window as shown in the middle image in Figure 3 . Among them, the red envelope type selection window may include various types of red envelope options, such as password red envelopes, red envelopes for drawing pictures in one stroke, etc.; the so-called drawing a picture in one stroke means drawing a specified graph in one stroke. Further, when the first client detects a selection operation by the user on the "red envelope for drawing a picture in one stroke" option in the red envelope type selection window, output a red envelope distribution setting page (or a red envelope distribution parameter setting page) as shown in the right figure in Figure 3 . The first client obtains the number of red envelopes and the red envelope amount input by the user on the red envelope distribution setting page. It should be noted that the target session here can be a C2C communication session or a group communication session. The first client is also the terminal used by the resource distributor.
[0157] (2) The first client sends the number of red envelopes and the amount of red envelopes obtained to the server.
[0158] (3) The server determines the average amount of red envelopes based on the received number of red envelopes and the amount of red envelopes. For example, Figure 3 for the number of red envelopes and the amount of red envelopes shown in the right figure on the right, the average amount of red envelopes is 10 yuan / 5 = 2 yuan. Further, the server searches for the question difficulty interval corresponding to the amount interval to which the average amount of red envelopes belongs based on the average amount of red envelopes, and obtains the graphic list corresponding to the question difficulty interval; then sends the obtained graphic list to the client. Among them, the graphic list includes at least one graphic that can be drawn in one stroke. The mapping relationship among the amount interval, the question difficulty interval, and the graphic list preset by the server can be shown in the following table:
[0159]
[0160] Among them, as shown in the above table, the larger the amount value in the amount interval, the larger the difficulty value in the corresponding question difficulty interval, and the more complex the graphics in the corresponding graphic list. The complexity of the graphics can be the drawing difficulty determined by the operator according to the number of sides of the graphics, the degree of graphic rules, etc. As shown in the above table and Figure 4 shown, the graphics that can be drawn in one stroke included in the graphic list can be any one of the following: text graphics, object graphics, plane geometry graphics, solid geometry graphics, dot matrix graphics. It should be noted that for some text graphics, although the text corresponding to the text graphics has more than one stroke when written in the correct writing method, the text graphics can be drawn in one stroke by adopting a certain drawing method. As Figure 4 shown, it shows the one-stroke drawing method of the text graphic of the character "string". In addition, for dot matrix graphics, one-stroke drawing can refer to connecting all the points in the dot matrix graphic in one stroke. As Figure 4 shown, it shows the one-stroke connection method of a certain dot matrix graphic.
[0161] (4) After the first client obtains the graphic list sent by the server, it randomly determines a graphic to be selected from the graphic list, and displays the graphic to be selected in the graphic question setting area of the red envelope distribution setting page as shown in Figure 3 the right figure on the right. If it detects a confirmation selection operation by the user for the graphic to be selected displayed in the question setting area, such as a click operation on the displayed graphic to be selected, or a click on the next button or payment button (not shown in the figure) on the red envelope distribution setting page, etc., then the graphic to be selected currently displayed in the question setting area is determined as the target graphic. If it detects that the user Figure 3For the click operation of the graphic switching button 32 in the question setting area shown in the upper right figure, the graphics displayed in the question setting area are switched according to the graphic list to provide the user with a new selection of the target graphic. After determining the target graphic, the first client sends information such as the user ID, red envelope recipient ID, red envelope amount, number of red envelopes, and target graphic ID to the server. Here, the ID, that is, the identifier, is used to indicate identity information, storage address, etc. The user ID can be the account of the red envelope sender, etc.; the red envelope recipient ID can be the account of the red envelope recipient, etc., and the red envelope recipient can be each member user in the session; the target graphic ID can be the Uniform Resource Locator (URL) of the target graphic or a pre-set number, etc.
[0162] (5) The server generates a red envelope order based on the information sent by the first client and associates the red envelope order with the target graphic ID. Then, the server sends the red envelope order ID to the first client.
[0163] (6) After receiving the red envelope order ID, the first client outputs the payment page corresponding to the red envelope order ID and obtains the payment password entered by the user. Then, the first client sends information such as the user ID, red envelope order ID, and payment password to the server.
[0164] (7) The server verifies the red envelope order ID and the payment password sent by the first client. After the verification passes, the server completes the deduction and generates a red envelope message, which includes the red envelope order ID, verification information, etc. The verification information can be information such as authkey. The authkey is a verification string generated by the server based on fields such as the red envelope recipient ID and the red envelope order ID and is used for authentication when the red envelope recipient claims the red envelope. The server sends the red envelope message to the second client so that the second client can display the red envelope message. Here, the second client is the terminal used by the red envelope recipient.
[0165] As Figure 10 shown, the red envelope claiming process in the business processing solution for claiming a red envelope by drawing a picture includes the following steps:
[0166] (1) After receiving the red envelope message sent by the server, the second client displays the red envelope message on the session page of the target session. For example, it displays the message bubble of the red envelope message as shown in the upper left figure of Figure 5b or Figure 5a . When it detects that the user (i.e., the red envelope recipient) clicks on the red envelope message displayed on the session page, it outputs as shown in Figure 5b or Figure 5aThe resource collection page shown in the middle image, and output graphic drawing prompt information on the resource collection page. The graphic drawing prompt information is used to indicate the target graphic that requires the user to complete a single stroke drawing. Additionally, as Figure 5b shown in the middle image, the graphic drawing prompt information can also indicate multiple key points of the target graphic to instruct the user to draw the graphic according to the multiple key points.
[0167] (2) During the process of the user drawing a graphic in the graphic drawing area shown in the right image, such as Figure 5b or Figure 5a as shown in the right image, according to the drawing prompt information, the second client detects whether the graphic drawn by the user is completed in a single stroke. If it is completed in a single stroke, the drawing data collected for the graphic drawn by the user, the red envelope order ID, etc. are sent to the server. Conversely, if it is not completed in a single stroke, the user is prompted to redraw the graphic. Among them, the drawing data collected by the second client includes the coordinate information and drawing time information of multiple sampling points of the graphic drawn by the user, etc. In other embodiments, during the process of the user drawing a graphic in the graphic drawing area shown in the right image, such as Figure 5b as shown in the right image, the second client can also detect whether the user passes through each key point of the displayed target graphic when drawing the graphic. If all key points are included and it is detected that the drawing is completed in a single stroke, the drawing data collected for the graphic drawn by the user, the red envelope order ID, etc. are sent to the server.
[0168] (3) The server verifies whether the drawing data sent by the second client complies with the one-stroke drawing rule, that is: based on the coordinate information and drawing time information of multiple sampling points of the graph drawn by the user included in the drawing data, as well as the position information of multiple key points of the target graph, it detects whether the graph drawn by the user includes each key point of the target graph; and detects the number of lines between any two target sampling points in the graph drawn by the user, and whether the number of lines between the two key points corresponding to the two target sampling points in the target graph is the same, and detects whether the graph drawn by the user is completed in one stroke; if the graph drawn by the user includes each key point of the target graph, and the number of lines between any two target sampling points and the number of lines between the corresponding key points are both the same, and the graph drawn by the user is completed in one stroke, then it is determined that the drawing data verification passes, and the drawing data is recorded. Or, that is: based on the coordinate information and drawing time information of multiple sampling points of the graph drawn by the user included in the drawing data, it detects whether there is a high similarity between the graph drawn by the user and the target graph, and detects whether the graph drawn by the user is completed in one stroke; if there is a high similarity between the graph drawn by the user and the target graph, and the graph drawn by the user is completed in one stroke, then it is determined that the drawing data verification passes, and the drawing data is recorded. Further, the server sends the drawing data ID and the verification result to the second client. Among them, the drawing data ID can be the storage address of the drawing data, etc.
[0169] (4) After the second client receives the verification result indicating that the drawing data verification passes sent by the server, it displays a red envelope button on the resource collection page. After detecting a click or press operation by the user on the red envelope button, it sends a red envelope collection request to the server. Among them, the red envelope collection request may include: user ID, red envelope order ID, verification information (such as authkey), drawing data ID and other information.
[0170] (5) The server responds to the red envelope collection request of the second client, first verifies the information in the red envelope collection request, including verifying the verification information and drawing data ID, etc.; when all the information in the red envelope collection request passes the verification, it determines the collection amount of the red envelope collection object corresponding to the second client according to the data such as the red envelope amount in the red envelope order, deposits the collection amount into the account of the red envelope collection object, and returns the red envelope collection result to the second client, so that the second client can display the red envelope collection result.
[0171] (6) The server can generate a dynamic graph (gif graph) of the graph drawn by the user based on the drawing data, and send the dynamic graph to the second client. After the second client receives the dynamic graph sent by the server, it displays the dynamic graph on the page of the target session, for example Figure 6The dynamic diagram of the plane geometric figure drawn by the user as shown, which includes the drawing trajectory of the plane geometric figure drawn by the client. In the figure, the arrow indicates the drawing trajectory, and also indicates the order of displaying each part of the trajectory in the dynamic diagram. It should be noted that the dynamic diagram of the figure drawn by the user can also be generated by the second client, and after receiving the red envelope receiving result sent by the server, the dynamic diagram is displayed on the page of the target session. In addition, the dynamic diagram can be sent to the terminals corresponding to each member user in the target session to display the drawing trajectory of the figure drawn by the user of the second client to each member user.
[0172] The above business processing solution for receiving red envelopes by drawing a single-stroke figure is a red envelope technical solution that combines the single-stroke figure gameplay with the red envelope gameplay. This solution requires the red envelope sender to specify a figure that can be drawn in a single stroke when sending a red envelope. Only when the red envelope receiver successfully draws the specified figure in a single stroke can they receive the red envelope. This can not only increase the fun of red envelope sending and receiving, but also effectively avoid the mis-receiving of red envelopes. In addition, this solution requires that the difficulty of the specified single-stroke figure is associated with the amount of the red envelope. The larger the amount, the more complex the specified single-stroke figure, and the greater the challenge for the red envelope receiver to complete the single-stroke drawing. The greater the sense of achievement and cash reward brought by successfully challenging a greater challenge, which can thus attract more user participation. This is conducive to stimulating users to send more large-amount red envelopes, and while increasing the total amount of social payment transactions, promoting the activity of social interactions. It should be noted that the above business processing solution for receiving red envelopes by drawing a single-stroke figure is only an example and does not limit the electronic resource sharing method provided by the embodiments of the present application.
[0173] Please refer to Figure 11 , Figure 11 which is a schematic structural diagram of an electronic resource sharing device provided by an embodiment of the present application. The electronic resource sharing device described in the embodiments of the present application includes:
[0174] A processing unit 1101, configured to respond to an input resource distribution instruction;
[0175] A display unit 1102, configured to display a resource distribution setting page according to the resource distribution instruction;
[0176] An acquisition unit 1103, configured to receive resource distribution parameters, and acquire a corresponding target figure according to the reference level corresponding to the resource distribution parameters;
[0177] The processing unit 1101 is further configured to generate an electronic resource package message for resource distribution according to the resource distribution parameters and the target figure.
[0178] In one embodiment, the resource distribution parameter includes the total distribution amount and the distribution quantity of the electronic resource. The obtaining unit 1103 is further configured to: determine the average distribution amount of the electronic resource according to the total distribution amount and the distribution quantity; determine the reference amount range to which the average distribution amount belongs; and according to the mapping relationship between the amount range and the level, determine the level corresponding to the reference amount range as the reference level corresponding to the resource distribution parameter.
[0179] In one embodiment, the resource distribution parameter includes the total distribution amount of the electronic resource. The obtaining unit 1103 is further configured to: determine the reference level corresponding to the resource distribution parameter according to the mapping relationship between the total distribution amount and the level.
[0180] In one embodiment, the obtaining unit 1103 is further configured to obtain a graphic list corresponding to the reference level of the resource distribution parameter, where the graphic list includes at least one graphic of a target category;
[0181] The processing unit 1101 is further configured to: determine a first graphic to be selected from at least one graphic of the target category in the graphic list, and trigger the display unit 1102 to display the first graphic to be selected on the resource distribution setting page; if a confirmation selection operation for the first graphic to be selected is detected, determine the first graphic to be selected as the target graphic; or, if a triggering operation for the graphic switching button on the resource distribution setting page is detected, trigger the display unit 1102 to switch the graphic to be selected displayed on the resource distribution setting page from the first graphic to be selected to a second graphic to be selected, and when a confirmation selection operation for the second graphic to be selected is detected, determine the second graphic to be selected as the target graphic.
[0182] In one embodiment, the obtaining unit 1103 is further configured to obtain a graphic list corresponding to the reference level of the resource distribution parameter, where the graphic list includes at least one graphic of a target category;
[0183] The processing unit 1101 is further configured to: trigger the display unit 1102 to display each graphic of the target category in the graphic list on the resource distribution setting page; and when a selection operation for each graphic of the target category displayed on the resource distribution setting page is detected, determine the graphic selected by the selection operation as the target graphic.
[0184] It can be understood that the functions of the functional units of the electronic resource sharing device in the embodiments of the present application can be specifically implemented according to the methods executed by the resource distribution terminal in the above method embodiments. The specific implementation process can refer to the relevant descriptions in the above method embodiments, which will not be elaborated here.
[0185] In addition, in some embodiments, the functions of the functional units of the electronic resource sharing device according to the embodiments of the present application can implement the methods executed by the resource receiving terminal in the above method embodiments. Specifically:
[0186] A display unit 1102 is configured to display an electronic resource package message, where the electronic resource package message is generated according to resource distribution parameters and a target graphic, and the target graphic corresponds to a reference level corresponding to the resource distribution parameters;
[0187] A processing unit 1101 is configured to, when detecting a resource receiving operation of a user for the electronic resource package message, trigger the display unit 1102 to display a resource receiving page, where the resource receiving page includes the target graphic;
[0188] An obtaining unit 1103 is configured to obtain a graphic input by the user on the resource receiving page according to the target graphic;
[0189] The processing unit 1101 is further configured to perform resource receiving based on the graphic input by the user.
[0190] In one embodiment, the display unit 1102 is configured to display the target graphic and a plurality of key points of the target graphic on the resource receiving page;
[0191] The obtaining unit 1103 is configured to obtain a graphic input by the user on the resource receiving page according to the target graphic and the plurality of key points.
[0192] In one embodiment, the display unit 1102 is configured to display the target graphic and a drawing method of the target graphic on the resource receiving page, where the drawing method includes the drawing order of each line of the target graphic;
[0193] The obtaining unit 1103 is configured to obtain a graphic input by the user on the resource receiving page according to the displayed target graphic and the drawing method of the target graphic.
[0194] In one embodiment, the processing unit 1101 is specifically configured to: detect whether the graphic input by the user meets a graphic drawing condition; if the graphic input by the user meets the graphic drawing condition, perform resource receiving.
[0195] In one embodiment, the processing unit 1101 is specifically configured to: detect whether the graph input by the user includes each key point of the target graph; if the graph input by the user includes each key point of the target graph, determine whether the number of lines between any two target sampling points in the graph input by the user is the same as the number of lines between the two key points corresponding to the any two target sampling points in the target graph; if they are the same, determine whether the graph input by the user meets the target condition; if the graph input by the user meets the target condition, determine that the graph input by the user meets the graph drawing condition.
[0196] In one embodiment, the meeting the target condition includes at least one of the following: the number of drawing strokes of the graph input by the user is less than or equal to the stroke threshold, and the drawing duration of the graph input by the user is less than or equal to the duration threshold.
[0197] In one embodiment, the processing unit 1101 is further configured to: generate a dynamic graph of the graph input by the user; after completing the resource collection, trigger the display unit 1102 to display the dynamic graph on the session page.
[0198] It should be noted that the specific implementation process of the above method can refer to the relevant description of the method embodiment above, and will not be elaborated here.
[0199] The electronic resource sharing device provided by the embodiment of the present application adds the content operation of setting graphic questions at corresponding levels according to resource distribution parameters during the electronic resource distribution process, and adds the content operation of graphic input during the electronic resource collection process. This can not only enrich the interest of electronic resource distribution and collection, but also effectively avoid the miscollection of electronic resources.
[0200] Please refer to Figure 12 , Figure 12 which is a schematic structural diagram of a computer device provided by the embodiment of the present application. The computer device described in the embodiment of the present application includes: a processor 1201, a user interface 1202, a communication interface 1203, and a memory 1204. Among them, the processor 1201, the user interface 1202, the communication interface 1203, and the memory 1204 can be connected through a bus or other means. In the embodiment of the present application, the connection through the bus is taken as an example.
[0201] Among them, the processor 1201 (or CPU (Central Processing Unit)) is the computing core and control core of the computer device. It can parse various instructions in the computer device and process various data of the computer device. For example, the CPU can be used to parse the power-on and power-off instructions sent by the user to the computer device and control the computer device to perform power-on and power-off operations. Another example is that the CPU can transmit various interaction data between the internal structures of the computer device, and so on. The user interface 1202 is a medium for realizing the interaction and information exchange between the user and the computer device. Its specific manifestations can include a display screen (Display) for output, a keyboard (Keyboard), a touch screen, a sound pickup device, etc. for input. It should be noted that the keyboard here can be either a physical keyboard, a touch screen virtual keyboard, or a keyboard that combines a physical and a touch screen virtual keyboard. The communication interface 1203 can optionally include standard wired interfaces, wireless interfaces (such as Wi-Fi, mobile communication interfaces, etc.), and is controlled by the processor 1201 to send and receive data. The memory 1204 (Memory) is a memory device in the computer device, used to store programs and data. It can be understood that the memory 1204 here can include both the built-in memory of the computer device and, of course, the extended memory supported by the computer device. The memory 1204 provides a storage space, and this storage space stores the operating system of the computer device, which can include but is not limited to: Android system, iOS system, Windows Phone system, etc. This application does not make any limitations in this regard.
[0202] In the embodiment of this application, the processor 1201 performs the following operations by running the executable program code in the memory 1204:
[0203] Respond to the input resource distribution instruction; according to the resource distribution instruction, display a resource distribution setting page through the user interface 1202 and receive resource distribution parameters; obtain a corresponding target graphic according to the reference level corresponding to the resource distribution parameters; generate an electronic resource package message according to the resource distribution parameters and the target graphic for resource distribution.
[0204] In one embodiment, the resource distribution parameters include the total distribution amount and the distribution number of the electronic resources. Before the processor 1201 obtains the corresponding target graphic according to the reference level corresponding to the resource distribution parameters, it is also used to: determine the average distribution amount of the electronic resources according to the total distribution amount and the distribution number; determine the reference amount interval to which the average distribution amount belongs; according to the mapping relationship between the amount interval and the level, determine the level corresponding to the reference amount interval as the reference level corresponding to the resource distribution parameters.
[0205] In one embodiment, the resource distribution parameter includes the total distribution amount of the electronic resource. Before obtaining the corresponding target graphic according to the reference level corresponding to the resource distribution parameter, the processor 1201 is further configured to: determine the reference level corresponding to the resource distribution parameter according to the mapping relationship between the total distribution amount and the level.
[0206] In one embodiment, when obtaining the corresponding target graphic according to the reference level corresponding to the resource distribution parameter, the processor 1201 is specifically configured to: obtain the graphic list corresponding to the reference level corresponding to the resource distribution parameter, where the graphic list includes at least one graphic of the target category; determine the first graphic to be selected from at least one graphic of the target category in the graphic list, and display it on the resource distribution setting page through the user interface 1202; if a confirmation selection operation for the first graphic to be selected is detected, determine the first graphic to be selected as the target graphic; or, if a trigger operation for the graphic switching button on the resource distribution setting page is detected, switch the graphic to be selected displayed on the resource distribution setting page from the first graphic to be selected to the second graphic to be selected through the user interface 1202, and when a confirmation selection operation for the second graphic to be selected is detected, determine the second graphic to be selected as the target graphic.
[0207] In one embodiment, when obtaining the corresponding target graphic according to the reference level corresponding to the resource distribution parameter, the processor is specifically configured to: obtain the graphic list corresponding to the reference level corresponding to the resource distribution parameter, where the graphic list includes at least one graphic of the target category; display each graphic of the target category in the graphic list on the resource distribution setting page through the user interface 1202; when a selection operation for each graphic of the target category displayed on the resource distribution setting page is detected, determine the graphic selected by the selection operation as the target graphic.
[0208] In specific implementation, the processor 1201, user interface 1202, communication interface 1203, and memory 1204 described in the embodiments of the present application may implement the resource distribution terminal described in a method for sharing electronic resources provided in the embodiments of the present application, or may also implement the implementation manner described in an electronic resource sharing device as Figure 10 shown, which will not be elaborated here.
[0209] In addition, in other specific implementations, the processor 1201, user interface 1202, communication interface 1203, and memory 1204 described in the embodiments of the present application can implement the resource receiving terminal described in a method for sharing electronic resources provided by the embodiments of the present application. Specifically, the processor 1201 performs the following operations by running the executable program code in the memory 1204:
[0210] Display an electronic resource package message through the user interface 1202. The electronic resource package message is generated according to resource distribution parameters and a target graphic, and the target graphic corresponds to a reference level corresponding to the resource distribution parameters; when detecting a resource receiving operation by the user for the electronic resource package message, display a resource receiving page through the user interface 1202, where the resource receiving page includes the target graphic; obtain a graphic input by the user according to the target graphic on the resource receiving page; and perform resource receiving based on the graphic input by the user.
[0211] In one embodiment, when the processor 1201 obtains the graphic input by the user according to the target graphic on the resource receiving page, it is specifically configured to: display the target graphic and a plurality of key points of the target graphic on the resource receiving page through the user interface 1202; and obtain the graphic input by the user according to the target graphic and the plurality of key points on the resource receiving page.
[0212] In one embodiment, when the processor 1201 obtains the graphic input by the user according to the target graphic on the resource receiving page, it is specifically configured to: display the target graphic and the drawing method of the target graphic on the resource receiving page through the user interface 1202, where the drawing method includes the drawing order of each line of the target graphic; and obtain the graphic input by the user according to the displayed target graphic and the drawing method of the target graphic on the resource receiving page.
[0213] In one embodiment, when the processor 1201 performs resource receiving based on the graphic input by the user, it is specifically configured to: detect whether the graphic input by the user meets the graphic drawing condition; and if the graphic input by the user meets the graphic drawing condition, perform resource receiving.
[0214] In one embodiment, when the processor 1201 detects whether the graph input by the user meets the graph drawing condition, it is specifically configured to: detect whether the graph input by the user includes each key point of the target graph; if the graph input by the user includes each key point of the target graph, then determine whether the number of lines between any two target sampling points in the graph input by the user is the same as the number of lines between the two key points corresponding to the any two target sampling points in the target graph; if they are the same, then determine whether the graph input by the user meets the target condition; if the graph input by the user meets the target condition, then determine that the graph input by the user meets the graph drawing condition.
[0215] In one embodiment, the meeting of the target condition includes at least one of the following: the number of drawing strokes of the graph input by the user is less than or equal to the stroke threshold, and the drawing duration of the graph input by the user is less than or equal to the duration threshold.
[0216] In one embodiment, the processor 1201 is further configured to: generate a dynamic graph of the graph input by the user; after completing the resource collection, display the dynamic graph on the session page through the user interface 1202.
[0217] It should be noted that the specific implementation manners of the above steps can be referred to the previous description and will not be elaborated here.
[0218] The computer device provided by the embodiments of the present application adds the content operation of setting the graphic questions at the corresponding level according to the resource distribution parameters during the electronic resource distribution process, and adds the content operation of graphic input during the electronic resource collection process. This can not only enrich the interest of the electronic resource distribution and collection, but also effectively avoid the miscollection of electronic resources.
[0219] The embodiments of the present application also provide a computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When it runs on a computer, it enables the computer to execute the electronic resource sharing method as described in the embodiments of the present application. The specific implementation manners can be referred to the previous description and will not be elaborated here.
[0220] The embodiments of the present application also provide a computer program product containing instructions. When it runs on a computer, it enables the computer to execute the electronic resource sharing method as described in the embodiments of the present application. The specific implementation manners can be referred to the previous description and will not be elaborated here.
[0221] It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action sequence, because according to this application, some steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0222] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and this program can be stored in a computer-readable storage medium. The storage medium can include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.
[0223] The foregoing disclosure is only part of the embodiments of this application. Of course, it cannot be used to limit the scope of rights of this application. Therefore, equivalent changes made according to the claims of this application still fall within the scope covered by this application.
Claims
1. An electronic resource sharing method, applied to a resource distribution terminal, characterized in that, The method includes: Responding to an input resource distribution instruction; According to the resource distribution instruction, displaying a resource distribution setting page and receiving resource distribution parameters; Obtaining a corresponding target graphic according to the reference level corresponding to the resource distribution parameters; Generating an electronic resource package message according to the resource distribution parameters and the target graphic for resource distribution; wherein, the electronic resource package message is used to indicate resource receiving conditions, and the resource receiving conditions include: performing graphic drawing on the resource receiving page according to the target graphic before receiving the resource, and the drawn graphic meets the graphic drawing conditions; the meeting of the graphic drawing conditions includes: the style of the drawn graphic is the same as the style of the target graphic, and the number of drawing strokes of the drawn graphic is less than or equal to the stroke number threshold.
2. The method according to claim 1, characterized in that, The resource distribution parameters include the total distribution amount and the number of distributions of the electronic resource. Before obtaining the corresponding target graphic according to the reference level corresponding to the resource distribution parameters, the method further includes: Determining the average distribution amount of the electronic resource according to the total distribution amount and the number of distributions; Determining the reference amount interval to which the average distribution amount belongs; According to the mapping relationship between the amount interval and the level, determining the level corresponding to the reference amount interval as the reference level corresponding to the resource distribution parameters.
3. The method according to claim 1, characterized in that, The resource distribution parameters include the total distribution amount of the electronic resource. Before obtaining the corresponding target graphic according to the reference level corresponding to the resource distribution parameters, the method further includes: Determining the reference level corresponding to the resource distribution parameters according to the mapping relationship between the total distribution amount and the level.
4. The method according to any one of claims 1 - 3, characterized in that, The obtaining of the corresponding target graphic according to the reference level corresponding to the resource distribution parameters includes: Obtaining a graphic list corresponding to the reference level corresponding to the resource distribution parameters, where the graphic list includes at least one graphic of a target category; Determining a first graphic to be selected from at least one graphic of the target category in the graphic list and displaying it on the resource distribution setting page; If a confirmation selection operation for the first graphic to be selected is detected, then determining the first graphic to be selected as the target graphic; or, If a trigger operation for the graphic switching button on the resource distribution setting page is detected, then switching the graphic to be selected displayed on the resource distribution setting page from the first graphic to be selected to a second graphic to be selected, and when a confirmation selection operation for the second graphic to be selected is detected, determining the second graphic to be selected as the target graphic.
5. The method according to any one of claims 1 - 3, characterized in that, The obtaining of the corresponding target graphic according to the reference level corresponding to the resource distribution parameters includes: Obtaining a graphic list corresponding to the reference level corresponding to the resource distribution parameters, where the graphic list includes at least one graphic of a target category; Displaying each graphic of the target category in the graphic list on the resource distribution setting page; When a selection operation for each graphic of the target category displayed on the resource distribution setting page is detected, determining the graphic selected by the selection operation as the target graphic.
6. An electronic resource sharing method, characterized in that, Applied to a resource receiving terminal, it includes: Display an e-resource package message, where the e-resource package message is generated according to resource distribution parameters and a target graphic, and the target graphic corresponds to a reference level corresponding to the resource distribution parameters; When a resource collection operation by the user for the e-resource package message is detected, display a resource collection page, where the resource collection page includes the target graphic; Obtain the graphic input by the user on the resource collection page according to the target graphic; Detect whether the graphic input by the user meets the graphic drawing conditions; where, meeting the graphic drawing conditions includes: the style of the graphic input by the user is the same as the style of the target graphic, and the number of drawing strokes of the graphic input by the user is less than or equal to the stroke number threshold; If the graphic input by the user meets the graphic drawing conditions, then perform resource collection.
7. The method according to claim 6, characterized in that, The obtaining the graphic input by the user on the resource collection page according to the target graphic includes: Display the target graphic and multiple key points of the target graphic on the resource collection page; Obtain the graphic input by the user on the resource collection page according to the target graphic and the multiple key points.
8. The method according to claim 6, characterized in that, The obtaining the graphic input by the user on the resource collection page according to the target graphic includes: Display the target graphic and the drawing method of the target graphic on the resource collection page, where the drawing method includes the drawing order of each line of the target graphic; Obtain the graphic input by the user on the resource collection page according to the displayed target graphic and the drawing method of the target graphic.
9. The method according to any one of claims 6 - 8, characterized in that, The detecting whether the graphic input by the user meets the graphic drawing conditions includes: Detect whether the graphic input by the user includes each key point of the target graphic; If the graphic input by the user includes each key point of the target graphic, then determine whether the number of lines between any two target sampling points in the graphic input by the user is the same as the number of lines between the two key points corresponding to the any two target sampling points in the target graphic; If they are the same, then determine whether the graphic input by the user meets the target conditions; where, meeting the target conditions includes: the number of drawing strokes of the graphic input by the user is less than or equal to the stroke number threshold, or, meeting the target conditions includes: the number of drawing strokes of the graphic input by the user is less than or equal to the stroke number threshold, and the drawing duration of the graphic input by the user is less than or equal to the duration threshold; If the graphic input by the user meets the target conditions, then determine that the graphic input by the user meets the graphic drawing conditions.
10. The method according to claim 6, characterized in that, The method further includes: Generate a dynamic graph of the graphic input by the user; After completing resource collection, display the dynamic graph on the session page.
11. An electronic resource sharing device, characterized in that, The device includes: A processing unit, configured to respond to an input resource distribution instruction; A display unit, configured to display a resource distribution setting page according to the resource distribution instruction; An obtaining unit, configured to receive resource distribution parameters and obtain a corresponding target graphic according to a reference level corresponding to the resource distribution parameters; The processing unit is further configured to generate an electronic resource package message according to the resource distribution parameter and the target graphic for resource distribution; wherein, the electronic resource package message is used to indicate the resource collection condition, and the resource collection condition includes: drawing a graphic on the resource collection page according to the target graphic before collecting the resource, and the drawn graphic meets the graphic drawing condition; the meeting of the graphic drawing condition includes: the style of the drawn graphic is the same as the style of the target graphic, and the number of drawing strokes of the drawn graphic is less than or equal to the stroke number threshold.
12. An electronic resource sharing device, characterized in that, The device includes: a display unit, configured to display an electronic resource package message, which is generated according to a resource distribution parameter and a target graphic, and the target graphic corresponds to a reference level corresponding to the resource distribution parameter; a processing unit, configured to trigger the display unit to display a resource collection page when detecting a resource collection operation of the user for the electronic resource package message, and the resource collection page includes the target graphic; an acquisition unit, configured to acquire the graphic input by the user according to the target graphic on the resource collection page; The processing unit is further configured to: detect whether the graphic input by the user meets the graphic drawing condition; wherein, the meeting of the graphic drawing condition includes: the style of the graphic input by the user is the same as the style of the target graphic, and the number of drawing strokes of the graphic input by the user is less than or equal to the stroke number threshold; if the graphic input by the user meets the graphic drawing condition, then resource collection is performed.
13. A computer device, characterized in that, including: a processor, a user interface, a communication interface, and a memory, the processor, the user interface, the communication interface, and the memory are interconnected, wherein the memory stores executable program code, and the processor is configured to call the executable program code to execute the electronic resource sharing method according to any one of claims 1-5, or execute the electronic resource sharing method according to any one of claims 6-10.
14. A computer-readable storage medium, characterized in that, Instructions are stored in the computer-readable storage medium, and when the instructions run on a computer device, the computer device is caused to execute the electronic resource sharing method according to any one of claims 1-5, or execute the electronic resource sharing method according to any one of claims 6-10.
15. A computer program product, characterized in that, The computer program product includes instructions, and when the instructions run on a computer device, the computer device is caused to execute the electronic resource sharing method according to any one of claims 1-5, or execute the electronic resource sharing method according to any one of claims 6-10.
Citation Information
Patent Citations
A method of distributing, dispensing, and collecting virtual items
CN109284714A
Animation display method and related equipment
CN111008061A