Data processing method, device, equipment and storage medium
By distributing virtual resources to users during data loading, the problem of lack of patience is solved, the effect of reducing churn and avoiding lag is achieved, and user stickiness is improved.
Patent Information
- Application Number
- CN202110173579.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-07
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2041-02-07
AI Technical Summary
In the era of oversaturation of information, users lack patience when waiting for data to be loaded, resulting in user churn. The existing technology cannot effectively reduce data loading delay, resulting in interaction lag.
When the virtual resource issuance conditions are met, a virtual resource batch acquisition request is sent to the server, and resource animation is played in the user interface. In response to the click operation, determine whether to issue virtual resources based on the number of virtual resource groups and the animation duration, and transfer it to the client account.
Reduce user loss, improve user stickiness, avoid interaction lag, divert user attention through fun resource distribution, and alleviate waiting anxiety.
Smart Images

Figure CN112905926B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to data processing methods, devices, equipment, and storage media. Background Art
[0002] In this age of information oversaturation, users are becoming extremely impatient to wait for data to load. If the data loading delay cannot be reduced, it is easy to cause user loss. Summary of the Invention
[0003] The embodiments of the present application provide a data processing method, apparatus, device, and storage medium that can reduce user churn and avoid interaction freezes.
[0004] In one aspect, an embodiment of the present application provides a data processing method, which is applied to a client and includes:
[0005] When the virtual resource issuance conditions are met, a virtual resource batch acquisition request is sent to the server;
[0006] receiving a virtual resource group sent by the server in response to the virtual resource batch acquisition request, wherein the virtual resource group includes a plurality of virtual resources;
[0007] Playing a first resource animation in a first preset area of the user interface, the first resource animation including at least one resource image, one or more resource images in the at least one resource image corresponding to one virtual resource among the multiple virtual resources;
[0008] In response to a click operation on a resource image in the first resource animation, determining whether to release the virtual resource corresponding to the resource image based on the number of virtual resources included in the virtual resource group and a preset playback duration of the first resource animation;
[0009] If it is determined to release the virtual resource corresponding to the resource image, the virtual resource corresponding to the resource image is transferred to a target account associated with the client.
[0010] Accordingly, an embodiment of the present application provides an electronic device that has the function of implementing the data processing method described in the above aspects. The function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
[0011] In one implementation, the electronic device includes:
[0012] The sending unit is used to send a virtual resource batch acquisition request to the server when the virtual resource issuance condition is met;
[0013] a receiving unit, configured to receive a virtual resource group sent by the server in response to the virtual resource batch acquisition request, wherein the virtual resource group includes a plurality of virtual resources;
[0014] A processing unit is used to play a first resource animation in a first preset area of a user interface, wherein the first resource animation includes at least one resource image, and one or more resource images in the at least one resource image correspond to a virtual resource among the multiple virtual resources; in response to a click operation on a resource image in the first resource animation, based on the number of virtual resources included in the virtual resource group and the preset playback time of the first resource animation, determine whether to issue the virtual resource corresponding to the resource image; if it is determined that the virtual resource corresponding to the resource image is to be issued, transfer the virtual resource corresponding to the resource image to a target account associated with the client.
[0015] Accordingly, an embodiment of the present application provides an electronic device, comprising a processor coupled to a memory, wherein:
[0016] The memory is used to store computer programs;
[0017] The processor is used to call the computer program so that the electronic device executes the data processing method described in the above aspects.
[0018] Accordingly, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program is executed by a processor to implement the data processing method as described in the above aspects.
[0019] Through the embodiments of the present application, when the conditions for issuing virtual resources are met, a virtual resource group can be obtained from the server, and then a first resource animation can be played in the first preset area of the user interface. In response to a click operation on a resource image in the first resource animation, based on the number of virtual resources contained in the virtual resource group and the preset playing time of the first resource animation, it is determined whether to issue the virtual resource corresponding to the resource image. If it is determined that the virtual resource corresponding to the resource image is to be issued, the virtual resource corresponding to the resource image is transferred to the target account associated with the client, which can reduce user churn and thus improve user stickiness. In addition, when any client meets the conditions for issuing virtual resources, it can request a virtual resource group including multiple virtual resources from the server at one time, and then when it is determined that the virtual resource corresponding to the resource image is to be issued, one of the virtual resources in the virtual resource group is transferred to the target account associated with the client, which can avoid interaction freezes. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background technology, the drawings required for use in the embodiments of the present application will be described below.
[0021] Figure 1 A schematic diagram of the architecture of a data processing system provided in an embodiment of the present application;
[0022] Figure 2a A schematic diagram of a user interface provided in an embodiment of the present application;
[0023] Figure 2b A schematic diagram of another user interface provided in an embodiment of the present application;
[0024] Figure 2c A schematic diagram of another user interface provided in an embodiment of the present application;
[0025] Figure 2d A schematic diagram of another user interface provided in an embodiment of the present application;
[0026] Figure 3a A schematic diagram of another user interface provided in an embodiment of the present application;
[0027] Figure 3b A schematic diagram of another user interface provided in an embodiment of the present application;
[0028] Figure 4 A flowchart of a data processing method provided in an embodiment of the present application;
[0029] Figure 5 A schematic diagram of a data processing system according to an embodiment of the present invention;
[0030] Figure 6 A schematic structural diagram of an electronic device provided in an embodiment of the present application;
[0031] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] The embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application.
[0033] The data processing method provided in the embodiments of the present application can be applied to data loading scenarios. In this era of information oversaturation, users' patience in waiting for data loading has become extremely scarce. If the data loading delay cannot be reduced, it is easy to cause user loss. Exemplary, data loading scenarios may include application startup scenarios or interface switching scenarios. The application startup scenario may be: after a user clicks an application icon in an electronic device, the electronic device can respond to the user's click operation and start the application corresponding to the application icon. If the application starts slowly, the user's patience in waiting for the application to start will gradually disappear, leading to user loss. The interface switching scenario may be: when an electronic device is running an application and displaying the first user interface of the application, if the user clicks on the first user interface, the electronic device can respond to the user's click operation and switch from the first user interface to the second user interface of the application. However, if the data contained in the second user interface is loaded slowly, the user's patience in waiting for the interface switch will gradually disappear, leading to user loss. Based on this, the embodiments of the present application can divert the user's attention by allowing the user to perform other operations while waiting for data to load, so as to increase the user's patience and alleviate the anxiety of waiting. For example, the electronic device can distribute virtual resources to the user during the data loading process.
[0034] Among them, virtual resources may include coupons, red envelopes or virtual currency, etc. Virtual currency may include Q coins or points, etc., which are not limited by the embodiments of the present application.
[0035] The data processing method provided by the embodiment of the present application can be: when the virtual resource issuance conditions are met, a virtual resource batch acquisition request is sent to the server, a virtual resource group sent by the server in response to the virtual resource batch acquisition request is received, and then a first resource animation is played in the first preset area of the user interface, and in response to a click operation on the resource image in the first resource animation, based on the number of virtual resources contained in the virtual resource group and the preset playback time of the first resource animation, it is determined whether to issue the virtual resource corresponding to the resource image, and if it is determined that the virtual resource corresponding to the resource image is issued, the virtual resource corresponding to the resource image is transferred to the target account associated with the client. The embodiment of the present application can send a virtual resource batch acquisition request to the server when the virtual resource issuance conditions are met, for example, executing the above data processing method in a data loading scenario can reduce user churn and thus improve user stickiness. In addition, when any client meets the virtual resource issuance conditions, the embodiment of the present application requests a virtual resource group including multiple virtual resources from the server at one time, and then can respond to a click operation on the resource image in the first resource animation. When it is determined that the virtual resource corresponding to the resource image is issued, the virtual resource in the virtual resource group is transferred to the target account associated with the client, which can avoid interaction freezes.
[0036] The data processing method provided in the embodiments of the present application can be applied to electronic devices running a client, such as smartphones, personal computers (PCs), tablet computers, wearable devices, or in-vehicle devices. A client corresponds to a server. For example, if the client can be a micro-insurance client, the server can be a micro-insurance server. The micro-insurance server is a service agent or a third-party platform that can facilitate insurance purchases, inquiries, and claims, such as providing auto insurance quotes. Alternatively, if the client can be a WeChat client, the server can be a WeChat server, and so on, without being limited by the embodiments of the present application.
[0037] See Figure 1 , Figure 1 This is a schematic diagram of the architecture of a data processing system provided in an embodiment of the present application. Figure 1 As shown, the data processing system may include a server and at least one electronic device, and a client corresponding to the server is running in each electronic device.
[0038] The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. The server and any electronic device can be directly or indirectly connected through wired or wireless communication to achieve data interaction between the server and the client running in the electronic device, which is not limited in this application.
[0039] The following uses the financial field as an example, specifically taking the data loading scenario of a car insurance quotation scenario and the virtual resource of an electronic voucher as an example to illustrate.
[0040] When a user queries for auto insurance quotes through a third-party platform (such as Weibo), the third-party platform needs to obtain auto insurance quotes for the vehicle from multiple service providers. Since the service provider needs to estimate the vehicle's auto insurance costs based on the vehicle information sent by the third-party platform, and then send the estimated auto insurance quotes to the third-party platform. Based on this, the delay in the third-party platform obtaining auto insurance quotes depends on the system response speed of each service provider, resulting in the third-party platform being unable to reduce the loading delay of the auto insurance quotes. For example, in external advertising channels, users only occasionally try to obtain auto insurance quotes through a third-party platform. If there is a loading delay in the auto insurance quotes, users will be lost to a large extent, but the third-party platform has invested a lot of advertising fees, and the cost caused by user loss becomes very high. However, because auto insurance quotes need to be obtained from multiple insurance companies, the time it takes for users to wait to obtain auto insurance quotes cannot be shortened. In order to improve user stickiness and avoid interaction freezes, a data processing method provided in an embodiment of the present application is proposed.
[0041] by Figure 2a Taking the interface diagram of the user interface shown as an example, the user can start the application (such as the micro-insurance application) by clicking the application icon in the electronic device (such as the application icon of the micro-insurance application) or the external advertising entrance. The electronic device can respond to the user's click operation to display the first user interface (i.e., the car insurance quotation interface) and obtain the account information used by the user to log in to the client of the application. The account information may include a social account, the registration name of the application, or the mobile phone number or email account bound at the time of registration, etc. The social account is, for example, a WeChat account. For example, the car insurance quotation interface can be as follows Figure 2a As shown in the left interface. The user can enter the vehicle information for which the user needs to make a car insurance quote in the "Fill in information to check premium" area of the car insurance quote interface, such as the license plate number, insurance area, and insurance method (such as the first insurance for a used car or the first insurance for a non-used car), etc. The electronic device can respond to the user's input operation to obtain the vehicle information. When the user clicks the "Check premium and get a thousand-yuan gift" button in the car insurance quote interface, the electronic device can respond to the user's click operation to switch from the first user interface to the second user interface (i.e., the quotation result interface). The second user interface can be as shown in the left interface. Figure 2a As shown in the middle right interface, the second user interface includes multiple numbers, which are used to indicate the car insurance quote, and each number can be presented in a scrolling manner.
[0042] Compared with the traditional response to the user's click operation to switch from the car insurance quotation interface to the loading interface, the loading interface may include a prompt message or a progress bar for prompting that the car insurance quotation is loading. After the client obtains the car insurance quotation from each service provider, the loading interface switches to the quotation result interface. In the embodiment of the present application, when the user queries the car insurance quotation through the client, the first user interface can be directly switched to the second user interface, that is, the car insurance quotation interface can be directly switched to the quotation result interface, which can efficiently meet the user's expectations, increase the user's patience, and relieve the anxiety of waiting.
[0043] In one embodiment, before the client obtains the car insurance quote, the loading process of the car insurance quote can be presented in the form of digital scrolling for indicating the car insurance quote. For example, the number of scrolling elements for indicating the car insurance quote in the second user interface is 7, and each scrolling element corresponds to 10 numerical values (i.e., 0 to 9). The 10 numerical values are arranged in order of numerical size to form a scroll bar. Each scrolling element in the second user interface can be scrolled by the scroll bar, and the scrolling speed of each scrolling element can gradually slow down as the car insurance quote loads. Figure 2b Take the user interface diagram shown as an example, Figure 2b It includes three user interfaces, among which the client can switch from the left interface to the middle interface, and then switch from the middle interface to the right interface. The scrolling speed of each scrolling element in the left interface is greater than the scrolling speed of each scrolling element in the middle interface, and the scrolling speed of each scrolling element in the middle interface is greater than the scrolling speed of each scrolling element in the right interface.
[0044] The scrolling of numbers can divert user attention, increase user patience, and alleviate the anxiety of waiting, thereby reducing user churn and improving user stickiness. Specifically, the scrolling speed of the scrolling element can gradually slow down as the auto insurance quote loads, giving users the expectation that they will see the auto insurance quote soon and alleviating their anxiety about waiting. In addition, the values of each scrolling element can scroll from large to small. For example, the values of the scrolling elements can be arranged in a scrolling manner with small values at the top and large values at the bottom, and the scrolling can be done from top to bottom. Alternatively, the values of the scrolling elements can be arranged in a scrolling manner with large values at the top and small values at the bottom, and the scrolling can be done from bottom to top. Then, when the scrolling speed is very slow, each smaller number can touch the user's sensitive nerve of wanting the number to be smaller, which can alleviate the user's anxiety.
[0045] In one embodiment, the client can display electronic coupons that match the user profile in the second user interface. The electronic coupons can include welfare coupons related to auto insurance services that are suitable for the user or intended to guide the user to use, as well as blessing coupons, etc. Figure 2bAs shown in the left interface, the client displays e-vouchers that match the user profile in the second user interface. The user can redeem the e-vouchers by continuously clicking on the e-vouchers. The user profile can be obtained based on the vehicle information entered by the user and the account information used by the user to log in to the client.
[0046] This embodiment of the present application guides users to claim benefits through an entertaining way, which can divert users' attention, increase their patience, and alleviate their anxiety about waiting, thereby reducing user churn and improving user stickiness. In addition, since the e-vouchers include coupons related to auto insurance services, such as car wash coupons, auto insurance coupons, or car purchase coupons, they can guide users to handle related services.
[0047] In one embodiment, the client can set the time for obtaining auto insurance quotes and the channels for obtaining auto insurance quotes. For example, the time for obtaining auto insurance quotes is 15 seconds (s), and the channels for obtaining auto insurance quotes are 9 insurance companies such as China Life Insurance, Pacific Insurance, and China Life Insurance. The time for obtaining auto insurance quotes and the channels for obtaining auto insurance quotes can be adjusted according to actual needs. Before the time for obtaining auto insurance quotes is passed when switching from the first user interface to the second user interface, if the client obtains the auto insurance quote through the set acquisition channel, the client can switch from the second user interface to the third user interface. The third user interface can be as follows: Figure 2c As shown, the user can obtain the auto insurance quote through the third user interface. Before the auto insurance quote acquisition time period elapses after switching from the first user interface to the second user interface, if the client has not obtained the auto insurance quote through the set acquisition channel, the client can perform at least one of the following operations: scrolling a scrolling element indicating the auto insurance quote in the second user interface, or displaying an electronic voucher in the second user interface.
[0048] In addition, after the time period for obtaining auto insurance quotes has elapsed since the switch from the first user interface to the second user interface, if the client has not obtained an auto insurance quote through any acquisition channel, the client may switch from the second user interface to a fourth user interface, which may be as shown in Figure 2d. The user may be informed through the fourth user interface that there is currently no auto insurance quote for the vehicle corresponding to the above vehicle information. For example, before the time period for obtaining auto insurance quotes has elapsed since the switch from the first user interface to the second user interface, if the client has not obtained an auto insurance quote through the set acquisition channel, then each scrolling element continues to scroll. After the time period for obtaining auto insurance quotes has elapsed since the switch from the first user interface to the second user interface, if the client has not obtained an auto insurance quote through any acquisition channel, then the client switches from the second user interface to the fourth user interface, each scrolling element in the fourth user interface stops scrolling, and the values of each scrolling element are all reset to "0." A prompt message "No quote yet, going to provide you with a fuzzy quote right away" is displayed in the fourth user interface, and then the fourth user interface switches to the fuzzy quote interface.
[0049] For example, assuming the server sets the time to obtain a car insurance quote to 15 seconds, the process for a user to obtain a car insurance quote through the client can be as follows:
[0050] (1) In the first second after the client switches from the first user interface to the second user interface, the scrolling speed of each scrolling element in the second user interface is the first preset speed threshold, and the user cannot clearly see the value of each scrolling element, such as Figure 2a The client can also display a prompt message in the second user interface, "Waiting for quotes is not boring, there are always surprises~", which can prevent users from closing the second user interface immediately after switching to the second user interface, thus alleviating the user's anxiety while waiting.
[0051] (2) In the 2nd to 4th second after the client switches from the first user interface to the second user interface, the client may eject multiple electronic coupons from the middle of the scrolling element in an inertial pattern.
[0052] like Figure 2b As shown in the left-center interface, the e-voucher scales from small to large as it flies toward the bottom of the electronic device's display screen. During this process, as long as the e-voucher reaches the first preset area, the client will respond to user clicks on the e-voucher. However, if the e-voucher is in the second preset area, meaning it hasn't reached the first preset area, the client won't respond to user clicks. For example, if the client displays multiple e-vouchers from the middle of a scrolling element, only when the e-voucher reaches the area containing "Quote from 11 insurance companies, including 500,000 RMB in compulsory traffic insurance and third-party liability insurance" will the text on the e-voucher be displayed, allowing the user to test their click speed.
[0053] After the user clicks on the e-voucher, the client can display a "welfare voucher +1" field or a "blessing +1" field above the e-voucher to prompt the user that the e-voucher has been successfully received. "Blessing +1" means there is no actual reward, just a blessing. "Welfare voucher +1" indicates that the user can get an actual reward, such as a 20 yuan car wash voucher, a 50 yuan car insurance voucher, etc.
[0054] The client can count the total number of welfare coupons successfully received by the user, and then display the total number of welfare coupons successfully received by the user in the preset area of the third user interface. Figure 2c As shown, when the user obtains a car insurance quote through the client, the total number of welfare coupons successfully received is 6. Then the client can display "Welfare Coupons + 6" on the upper right corner of the "See specific premiums to receive a thousand-yuan gift" button on the third user interface.
[0055] The user can click the "See specific premiums and get a thousand-yuan gift" button in the third user interface. The client can respond to the user's click operation by switching from the third user interface to the quotation details interface and display a prompt message on the quotation details interface. The prompt message is used to prompt the user to view the welfare coupons that have been successfully received and use the welfare coupons, thereby guiding the user to handle related business.
[0056] In one embodiment, 2 to 4 seconds after the client switches from the first user interface to the second user interface, the scrolling element in the second user interface can stop scrolling, and the electronic coupon is superimposed on the area where the scrolling element is located, so that the user can click quickly. Figure 3a As shown in the left interface, 2 to 4 seconds after the client switches from the first user interface to the second user interface, the scrolling element in the second user interface stops scrolling, and the client can display an electronic coupon "0.2 yuan cash coupon" on the scrolling element of the second user interface. After the user successfully receives the electronic coupon, the client can display "welfare coupon +1" above the electronic coupon. Figure 3a As shown in the middle right interface, after the client displays the electronic coupon "0.2 yuan cash coupon", the client can also display the next electronic coupon "Travel Safety Blessing Coupon". After the user successfully receives the electronic coupon, the client can display "Blessing +1" above the electronic coupon.
[0057] (3) 5 to 8 seconds after the client switches from the first user interface to the second user interface, the scrolling speed of the scrolling element is decelerated to a medium speed, that is, the scrolling speed of the scrolling element after adjustment is less than the first preset speed threshold and greater than the second preset speed threshold, and the user can roughly see the value of the scrolling element, such as Figure 2b As shown in the middle interface, or as Figure 3b As shown in the middle interface.
[0058] (4) From the 9th to the 11th second after the client switches from the first user interface to the second user interface, the client again flies out multiple electronic coupons from the middle of the scrolling element in an inertial pattern, such as Figure 2b The way the electronic voucher flies out and the interactive logic for the user to receive the electronic voucher are the same as (2), and will not be repeated in this embodiment of the application.
[0059] In one embodiment, 9 to 11 seconds after the client switches from the first user interface to the second user interface, the client again overlays and displays the electronic coupon in the area where the scrolling element is located, such as Figure 3b As shown on the right side of the interface.
[0060] (5) From 12 to 15 seconds after the client switches from the first user interface to the second user interface, the scrolling element decelerates to a second preset speed threshold, which is smaller than the first preset speed threshold, and the user can clearly see the value of the scrolling element.
[0061] In the first to 15 seconds after the client switches from the first user interface to the second user interface, if the client obtains the car insurance quote through all the set acquisition channels, then the client can switch from the second user interface to the third user interface. Figure 2c As shown, in the third user interface, the second and third digits of the car insurance quote will eventually stop displaying as "*", and the other digits are the actual quote numbers. At the same time, the client can display prompt information above the car insurance quote. For example, if the electronic device is located in Shenzhen or the vehicle corresponding to the vehicle information entered by the user is registered at the Shenzhen Vehicle Administration Office, then the client can compare the car insurance quote for the same car in Shenzhen with the car insurance quote provided by the client to obtain the ranking of the car insurance quotes provided by the client, such as displaying a bubble above the car insurance quote that says "cheaper than 65% of the same car premiums in Shenzhen". The client can also display a "See the specific premium and get a thousand-yuan gift" button below the car insurance quote, and the user can view the specific car insurance quote by clicking the button.
[0062] After 15 seconds have passed since the client switched from the first user interface to the second user interface, if the client fails to obtain a car insurance quote through any of the set acquisition channels, the client switches from the second user interface to the fourth user interface. Figure 2d As shown, each scrolling element in the fourth user interface stops scrolling, and the values of each scrolling element are all reset to "0", and a prompt message "No quotation yet, a fuzzy quotation for you will be given immediately" is displayed in the fourth user interface, and then the fourth user interface switches to the fuzzy quotation interface.
[0063] based on Figure 1 For a schematic diagram of the data processing system architecture shown in Figure 4 , Figure 4This is a flow chart of a data processing method provided in an embodiment of the present application, which includes but is not limited to the following steps:
[0064] Step S401: When the virtual resource issuance conditions are met, the client sends a virtual resource batch acquisition request to the server.
[0065] The virtual resource issuance conditions may be set by the server. For example, when the client detects that it has entered a data loading scenario, it determines that the virtual resource issuance conditions are met. Another example is that when a preset time has been reached since the data loading scenario was entered, it determines that the virtual resource issuance conditions are met. For example, taking the data loading scenario as an auto insurance quotation scenario, assuming that the auto insurance quotation acquisition time set by the server is 15 seconds, after the client switches from the first user interface to the second user interface, the client can determine that the virtual resource issuance conditions are met; after the client switches from the first user interface to the second user interface, the client can determine that the virtual resource issuance conditions are met. In this example, the preset time can be 2 seconds and 9 seconds.
[0066] In one embodiment, a client can respond to a vehicle information input operation, obtain vehicle information, and then send the vehicle information to a server, allowing the server to search for a predicted rating value for the vehicle corresponding to the vehicle information. While sending the vehicle information to the server, the client can also, when virtual resource allocation conditions are met, send a batch virtual resource acquisition request to the server until the server receives a predicted rating value search result. The search result indicates whether the server has successfully searched for a predicted rating value for the vehicle corresponding to the vehicle information. The predicted rating value can be, for example, a car insurance quote or a selling price.
[0067] In this embodiment of the present application, since it takes a certain amount of time for the server to search for the predicted evaluation value of the vehicle corresponding to the vehicle information, the client can send the vehicle information to the server while determining whether the virtual resource issuance conditions are met. When the virtual resource issuance conditions are met, the client sends a virtual resource batch acquisition request to the server and further executes steps S402 to S406. During the process of executing steps S401 to S406, if the client receives the search result of the predicted evaluation value sent by the server, the client stops executing steps S401 to S406 and displays the user interface corresponding to the search result so that the user is aware of the search result of the predicted evaluation value of the vehicle.
[0068] In one embodiment, a scrolling animation is played in the third preset area of the user interface, and the scrolling speed of each scrolling element in the scrolling animation is negatively correlated with the preset server search time for the predicted evaluation value.
[0069] In this embodiment, the scrolling speed of each scrolling element gradually slows down as the search time increases, thereby improving user stickiness.
[0070] In one embodiment, when sending a batch acquisition request for virtual resources to the server, the client can concurrently play a second resource animation in a second preset area of the user interface, wherein the second resource animation includes at least one resource image, and the second resource animation refers to: an animation that does not respond to click operations in the second resource animation.
[0071] In this embodiment, when the client sends a request to the server to obtain a batch of virtual resources, since the client has not yet obtained the virtual resources, the client can play the second resource animation that does not respond to the user's click operation in the second resource animation in the second preset area of the user interface, so as to achieve a prompt effect through the second preset area, thereby improving user responsiveness and enhancing user stickiness. Figure 2b As shown in the left interface, the client displays multiple resource images from the second preset area (i.e., the area between the scroll element and the location of "Joint quotation from 11 insurance companies, including compulsory traffic insurance and third-party liability insurance of 500,000"). Figure 2b The resource image with no text displayed in the left interface of the is smaller than a preset size threshold. The preset size threshold can be pre-set, such as 20 mm * 20 mm, or 16 mm * 20 mm, etc., and is not limited to the embodiments of the present application.
[0072] Step S402: The server obtains multiple virtual resources in response to the virtual resource batch acquisition request.
[0073] In one embodiment, a request for batch acquisition of virtual resources can carry the client's client identifier. Based on the client identifier, the server can search for the application data of the client corresponding to the client identifier, construct a user profile based on the application data, and then search the database for multiple virtual resources that match the user profile. The client identifier can be the account information used by the user to log in to the client. The account information can include a social account, the registered name of the application, or the mobile phone number or email account bound during registration, such as a WeChat account. Application data can include social data, behavior logs, and information entered by the user during data loading.
[0074] In one embodiment, the server may determine a user tag based on the user portrait, determine a virtual resource type based on the user tag, and search a database for multiple virtual resources based on all virtual resource types.
[0075] Furthermore, the server can obtain user tags related to financial application scenarios (such as car insurance quotation scenarios) from the user portrait, determine the corresponding virtual resource type based on the user tag, and search for multiple virtual resources from the database based on all virtual resource types.
[0076] Alternatively, the server may obtain user tags related to entertainment application scenarios (eg, video playback scenarios) from user portraits, determine corresponding virtual resource types based on the user tags, and search for multiple virtual resources from a database based on all virtual resource types.
[0077] For example, taking the data loading scenario as a financial application scenario, the application data may include vehicle information input by the user, the auto insurance data purchased by the user, the auto insurance data purchased by the vehicle corresponding to the vehicle information, etc. For example, the server can determine the user profile based on the vehicle information, that is, the vehicle information corresponds to the annual inspection period of the vehicle, the user tag can be an "annual inspection" tag, and the virtual resource type can be an "annual inspection" type, thereby obtaining an "annual inspection agency" coupon from the database. For another example, the server can predict the frequency of car wash and maintenance based on the user profile, that is, the user's registration date, the mileage and model of the vehicle corresponding to the vehicle information, and obtain the user tag based on the car wash and maintenance frequency, such as a "car wash" tag or a "maintenance" tag, and the virtual resource type can be a "car wash" type or a "maintenance" type, and obtain one or more types of "car wash" coupons and "maintenance" coupons from the database. For example, if the registration date is no more than 1 year, the server can increase the number of "car wash" coupons obtained; if the vehicle is predicted to have less than 3 months left from the next maintenance period based on the mileage, the server can obtain "maintenance" coupons from the database; the car model can reflect the price of the vehicle. If the price is above 300,000, the server can obtain "car wash" coupons and "maintenance" coupons from the database.
[0078] In addition, virtual resources can also include targeted business coupons that intentionally guide users to use. For example, if the user was originally a WeDrive user but has not returned to WeSure car insurance for more than one month, the server can obtain WeDrive benefits, such as a 0.5 yuan cash red envelope coupon, a 100 yuan driving accident insurance coupon, etc.; if the user is in the quotation period, the server can obtain value-added service coupons given for purchasing WeSure car insurance, such as a 1-year Tencent membership redemption coupon, 5 movie tickets, etc., which can be collected immediately, but can only be activated and used after purchasing car insurance, etc.
[0079] In the embodiment of the present application, the server allocates different virtual resources to different clients to achieve specific resource allocation, increase user interest in virtual resources, and help improve the retention rate of the user interface.
[0080] In another embodiment, the server can respond to a virtual resource batch acquisition request and obtain a preset number of virtual resources from the database. For example, if the database includes a plurality of virtual resources, the server can divide the plurality of virtual resources into multiple virtual resource groups, each of which contains the same number of virtual resources and the same virtual resources. Then, when any client sends a virtual resource batch acquisition request to the server, the server can respond to the virtual resource batch acquisition request and send a virtual resource group to the client, i.e., each client obtains the same virtual resources from the server.
[0081] Step S403: the server sends the virtual resource group including the acquired multiple virtual resources to the client.
[0082] After the server obtains the multiple virtual resources, it may send a virtual resource group including the obtained multiple virtual resources to the client, and the client may cache the virtual resource group in a virtual resource pool.
[0083] Step S404: the client plays a first resource animation in a first preset area of the user interface.
[0084] Among them, the first resource animation may include at least one resource image, one or more resource images in at least one resource image correspond to a virtual resource among multiple virtual resources, and the first resource animation refers to: an animation that responds to a click operation in the first resource animation, that is, the user can obtain the virtual resource corresponding to the resource image by clicking on the resource image within a certain time range.
[0085] In one embodiment, the first resource animation may include multiple resource images. Figure 2b As shown in the left interface, the first preset area is the area between the position of "Joint quotation from 11 insurance companies, including compulsory traffic insurance and third-party liability insurance of 500,000" and the bottom of the display screen of the electronic device running the client. The resource images in the first preset area are Figure 2b A resource image of text is displayed in the left interface of , and the size of the resource image is larger than the preset size threshold.
[0086] In one embodiment, the first resource animation may include a resource image. Figure 3a Taking the user interface in as an example, the client plays the first resource animation in the area where the scrolling element is located. The first resource animation only displays one resource image at the same time, such as "0.2 cash coupons" or "travel safety blessing coupons".
[0087] One or more resource images in the at least one resource image correspond to one of the multiple virtual resources. This means that when a user clicks a resource image in the first resource animation, the user does not successfully claim the virtual resource for each click. Instead, the client determines whether to grant the virtual resource corresponding to the resource image based on the number of virtual resources included in the virtual resource group and the preset playback duration of the first resource animation. Therefore, a user will only successfully claim a virtual resource when they click one or more resource images, achieving reasonable resource allocation.
[0088] Step S405: The client responds to a click operation on the resource image in the first resource animation and determines whether to release the virtual resource corresponding to the resource image based on the number of virtual resources included in the virtual resource group and the preset playing time of the first resource animation.
[0089] In a specific implementation, the client can determine whether to distribute the virtual resource corresponding to the resource image to the user when the user currently clicks the resource image based on the number of virtual resources contained in the virtual resource group and the preset playback duration of the first resource animation. For example, if the number of virtual resources contained in the virtual resource group is large (for example, 30) and the preset playback duration of the first resource animation is short (for example, 5s), then the probability of the client distributing the virtual resource is high, that is, the probability of the user successfully receiving the virtual resource is high. For another example, if the number of virtual resources contained in the virtual resource group is small (for example, 5) and the preset playback duration of the first resource animation is long (for example, 30s), then the probability of the client distributing the virtual resource is low, that is, the probability of the user successfully receiving the virtual resource is low. In short, the client should distribute all virtual resources in the virtual resource group as much as possible before reaching the preset playback duration of the first resource animation (for example, distribute all virtual resources in the virtual resource group or distribute most of the virtual resources in the virtual resource group), but should not distribute all virtual resources in the virtual resource group before the playback of the first resource animation, so as to achieve reasonable resource allocation and thus improve stickiness.
[0090] In one embodiment, if it is determined that the virtual resource corresponding to the resource image is not to be issued, a first prompt message is output in a first preset area of the user interface, where the first prompt message is used to prompt that the virtual resource has not been successfully obtained.
[0091] For example, if the client determines not to issue the virtual resource corresponding to the resource image, the client may display "Fortune +1" above the virtual resource to prompt the user to receive the fortune coupon, which does not have any substantial benefits.
[0092] In one embodiment, if it is determined to distribute the virtual resource corresponding to the resource image, a second prompt message is output in the first preset area of the user interface, where the second prompt message is used to prompt that the virtual resource has been successfully received.
[0093] For example, if the client determines not to issue the virtual resource corresponding to the resource image, the client can display "welfare coupon + 1" above the virtual resource to prompt the user to receive the welfare coupon, which includes actual benefits, such as a 20 yuan car wash coupon or a 0.2 yuan cash coupon.
[0094] Step S406: If it is determined to release the virtual resource corresponding to the resource image, the client transfers the virtual resource corresponding to the resource image to a target account associated with the client.
[0095] For example, assuming that the client is a WeChat client, if it is determined to release the virtual resource corresponding to the resource image, the client can transfer the virtual resource corresponding to the resource image to the WeChat card wallet of the user.
[0096] In one embodiment, if the client stores the virtual resources sent by the server in a virtual resource pool, then after determining to release the virtual resources corresponding to the resource image, the client may transfer the virtual resources corresponding to the resource image from the virtual resource pool to the target account.
[0097] In one embodiment, if the virtual resource corresponding to the resource image is determined to be released, the client may send a virtual resource release message to the server, which carries the resource identifier of the virtual resource corresponding to the resource image. Then, upon receiving a response message from the server, the client may transfer the virtual resource corresponding to the resource image to the target account. The response message is sent by the server upon determining that the virtual resource corresponding to the resource identifier to be released exists in the virtual resource group sent to the client.
[0098] In this embodiment, if it is determined that the virtual resource corresponding to the resource image is to be released, the client may synchronize the virtual resource to be released with the server, and transfer the virtual resource to the target account after synchronization to ensure the accuracy of the virtual resource transfer.
[0099] In one embodiment, after the client transfers the virtual resource corresponding to the resource image to the target account associated with the client, when the virtual resource issuance condition is met again, steps S401 to S406 may be triggered.
[0100] Optionally, when the virtual resource issuance conditions are met again, the number of virtual resources in the most recently received virtual resource group sent by the server may be greater than the number of virtual resources in the last received virtual resource group sent by the server. In this embodiment, as the user's waiting time increases, the number of virtual resources contained in the virtual resource group obtained by the client from the server increases. Therefore, when the user clicks on the resource image, the probability of successfully receiving the virtual resource increases, which can increase the user's interest in the first resource animation and improve the retention rate of the first user interface.
[0101] In one embodiment, the scrolling animation in the embodiments of the present application can achieve 3D scrolling through Cascading Style Sheets (CSS) three-dimensional deformation (3D Transform). The first resource animation can achieve the effect of flying out electronic coupons through CSS3D Transform. The specific implementation process is: add the Transform attribute to each element in the animation; then use two layers of div to nest the CSS3 background animation, where DIV is the positioning technology in Cascading Style Sheets, the full name is DIVision, which means division, and can also be called a layer; add perspective (perspective) and transform-style attribute CSS3 navigation menu to the outer layer to add a 3D deformation effect to the entire animation.
[0102] Because HTML nodes are used to achieve animation effects, all resource images in the first resource animation are clickable. After the first resource animation plays, users can click on any resource image to interact. The 3D effect is achieved based on the principle of 3D perspective, that is, a specific type of transformation is performed on the resource image to achieve a 3D perspective effect. The sample code can be:
[0103] transform:perspective(600px)rotateY(45deg);
[0104] Here, perspective(600px) means that the distance between the element in the animation and the view is 600 pixels. rotateY(45deg) means that it rotates 45 degrees along the Y axis.
[0105] The animation effects in the embodiments of the present application include but are not limited to being achieved through CSS 3D Transform. For example, the client can achieve 3D animation through World Wide Web (web) Java technology, or through HTML5 Canvas technology, etc., which are not specifically limited by the embodiments of the present application.
[0106] In an embodiment of the present application, when the conditions for issuing virtual resources are met, the client requests multiple virtual resources from the server at one time, and then plays the first resource animation in the first preset area of the user interface. The client responds to a click operation on the resource image in the first resource animation, and determines whether to issue the virtual resources corresponding to the resource image based on the number of virtual resources contained in the virtual resource group and the preset playback duration of the first resource animation. If it is determined that the virtual resources corresponding to the resource image are to be issued, the virtual resources corresponding to the resource image are transferred to the target account associated with the client to avoid interaction jams.
[0107] based on Figure 4 For a flow chart of the data processing method shown in Figure 5 , Figure 5 A schematic diagram of a data processing system provided in an embodiment of the present application, wherein the data processing system includes a front-end process and a background process, wherein the front-end process runs on Figure 4 In the client shown, the background process runs on Figure 4 In the server shown.
[0108] In the specific implementation, the front-end process requests the back-end for the virtual resource group that can be obtained this time in advance. Then, during the playback of the first resource animation, the front-end process controls whether to release the virtual resource to the user. Through the parallel processing and mutual interaction of the front-end and back-end processes, smooth page switching can be achieved.
[0109] In one embodiment, the front-end process initiates a batch request to the background process while playing the second resource animation on the front-end (at this time, because the front-end has not received the virtual resource group, the user cannot obtain the virtual resource by clicking on the resource image in the second resource animation). After the front-end process receives the virtual resource group sent by the background process, the front-end process caches all virtual resources contained in the virtual resource group to the virtual resource pool, and then the front-end process plays the first resource animation, wherein the resource images in the first resource animation are identical, that is, no text is displayed on all resource images in the first resource animation, or the text displayed on all resource images in the first resource animation is the same, for example, the displayed text is "red envelope", etc. When the user clicks on the resource image in the first resource animation, the virtual resource is randomly distributed to the user. If the front-end process determines to issue a virtual resource to the user, the front-end process generates a card (cardList) for the virtual resource. The card automatically displays data in the form of a card. For example, if the virtual resource is an electronic movie ticket, the card generated by the front-end process can automatically display text in the form of a card, indicating that the user has received an electronic movie ticket, such as the description of the electronic movie ticket. For another example, if the virtual resource is an electronic cash voucher, the card generated by the front-end process can automatically display text in the form of a card, indicating that the user has received an electronic cash voucher, such as the amount indicated on the electronic cash voucher, etc. In addition, the front-end process transfers the virtual resource to the user's target account and synchronizes it to the background process (only after synchronization to the background can the user use the virtual resource).
[0110] In another embodiment, after the front-end process receives the virtual resource group sent by the background process, it generates different coupons based on the different virtual resources in the virtual resource group. The coupons automatically display data in the form of cards and automatically scroll through them. The front-end process caches the coupon group containing these coupons in the coupon pool. When a user clicks a coupon in the first resource animation, the virtual resource corresponding to the coupon is randomly distributed to the user. In addition, the front-end process transfers the virtual resource to the user's target account and synchronizes it with the background process (only after synchronization with the background can the user use the virtual resource).
[0111] In one embodiment, to appease users who have been waiting for a long time, after the first cycle of virtual resources is sent, if the front-end process has not yet obtained the loading data (such as a car insurance quote), the front-end process can continue to play the second resource animation while simultaneously obtaining a batch of virtual resources from the backend. Then, after obtaining the virtual resource group sent by the backend process, the first resource animation can be played. Similarly, if there is a longer wait time, the above process is repeated to achieve a continuous experience effect. In this way, no matter how long the user waits, they can obtain the virtual resource by clicking on the resource image. In addition, the longer the wait time, the more virtual resources the front-end process obtains from the backend at one time, and the greater the probability that the user will successfully claim the virtual resource, thus achieving a reasonable allocation of virtual resources and achieving the optimal display with limited virtual resources.
[0112] In one embodiment, the amount of virtual resources returned by the background process to the front end is random, and the total of the random virtual resources is no more than a limited value. For example, there are denominations of various sizes, and the front end process needs to control the probability of the user successfully receiving the virtual resources. When the user successfully receives the virtual resources, it indicates that the resource image clicked by the user is a welfare voucher; when the user fails to successfully receive the virtual resources, it indicates that the resource image clicked by the user is a blessing voucher.
[0113] See Figure 6 , Figure 6 This is a structural diagram of an electronic device provided in an embodiment of the present application. The electronic device is used to execute the steps executed by the electronic device in the above embodiment. The electronic device may include a sending unit 601, a receiving unit 602 and a processing unit 603.
[0114] The sending unit 601 is used to send a virtual resource batch acquisition request to the server when the virtual resource issuance condition is met;
[0115] A receiving unit 602 is configured to receive a virtual resource group sent by the server in response to the virtual resource batch acquisition request, where the virtual resource group includes a plurality of virtual resources;
[0116] Processing unit 603 is used to play a first resource animation in a first preset area of the user interface, where the first resource animation includes at least one resource image, and one or more resource images in the at least one resource image correspond to a virtual resource among the multiple virtual resources; in response to a click operation on the resource image in the first resource animation, based on the number of virtual resources included in the virtual resource group and the preset playback time of the first resource animation, determine whether to issue the virtual resource corresponding to the resource image; if it is determined that the virtual resource corresponding to the resource image is to be issued, transfer the virtual resource corresponding to the resource image to the target account associated with the client.
[0117] In one implementation, the virtual resource batch acquisition request carries the client identifier of the client;
[0118] The receiving unit 602 receives the virtual resource group sent by the server in response to the virtual resource batch acquisition request, including:
[0119] receiving a virtual resource group matching the user profile found by the server in a database in response to the virtual resource batch acquisition request, wherein the user profile is constructed based on application data of a client corresponding to the client identifier;
[0120] caching the virtual resource group into a virtual resource pool;
[0121] The processing unit 603 transfers the virtual resource corresponding to the resource image to the target account associated with the client, including:
[0122] The virtual resource corresponding to the resource image is transferred from the virtual resource pool to the target account.
[0123] In one implementation, the sending unit 601 is also used to trigger the execution of sending a virtual resource batch acquisition request to the server after the processing unit 603 transfers the virtual resources corresponding to the resource image to the target account associated with the client, when the virtual resource issuance conditions are met again, wherein the number of virtual resources in the virtual resource group sent by the server most recently received is greater than the number of virtual resources in the virtual resource group sent by the server last received.
[0124] In one implementation, the processing unit 603 is further configured to concurrently play a second resource animation in a second preset area of the user interface when the sending unit 601 sends the virtual resource batch acquisition request to the server, where the second resource animation includes at least one resource image;
[0125] The second resource animation refers to an animation that does not respond to a click operation on a resource image in the second resource animation, and the first resource animation refers to an animation that responds to a click operation on a resource image in the first resource animation.
[0126] In one implementation, if the processing unit 603 determines to release the virtual resource corresponding to the resource image, the virtual resource corresponding to the resource image is transferred to the target account associated with the client, including:
[0127] If it is determined to release the virtual resource corresponding to the resource image, a virtual resource release message is sent to the server, where the virtual resource release message carries a resource identifier of the virtual resource corresponding to the resource image;
[0128] Upon receiving a response message from the server, the virtual resource corresponding to the resource image is transferred to the target account. The response message is sent by the server when it is determined that the virtual resource corresponding to the resource identifier to be issued exists in the virtual resource group sent to the client.
[0129] In one implementation, the sending unit 601 is also used to, after the processing unit 603 determines whether to issue the virtual resource corresponding to the resource image, output a first prompt message in the first preset area of the user interface if it is determined that the virtual resource corresponding to the resource image will not be issued, and the first prompt message is used to prompt that the virtual resource has not been successfully received; if it is determined that the virtual resource corresponding to the resource image will be issued, output a second prompt message in the first preset area of the user interface, and the second prompt message is used to prompt that the virtual resource has been successfully received.
[0130] In one implementation, the receiving unit 602 is further configured to respond to a vehicle information input operation and obtain vehicle information before sending a virtual resource batch acquisition request to the server when the sending unit 601 meets the virtual resource issuance condition;
[0131] The sending unit 601 is further configured to send the vehicle information to the server so that the server searches for a predicted evaluation value of a vehicle corresponding to the vehicle information;
[0132] The sending unit 601 is triggered to execute, and when the conditions for issuing virtual resources are met, a request for batch acquisition of virtual resources is sent to the server. The receiving unit 602 receives the virtual resource group sent by the server in response to the request for batch acquisition of virtual resources. The processing unit 603 plays a first resource animation in a first preset area of the user interface, and responds to a click operation on the resource image in the first resource animation. Based on the number of virtual resources contained in the virtual resource group and the preset playing time of the first resource animation, it is determined whether the virtual resource corresponding to the resource image is issued. If it is determined that the virtual resource corresponding to the resource image is issued, the virtual resource corresponding to the resource image is transferred to the target account associated with the client, until the receiving unit 602 receives the search result of the predicted evaluation value sent by the server, and the search result is used to indicate whether the server has successfully found the predicted evaluation value of the vehicle corresponding to the vehicle information.
[0133] In one implementation, the processing unit 603 is also used to play a scrolling animation in the third preset area of the user interface after the receiving unit 602 responds to the vehicle information input operation and obtains the vehicle information. The scrolling speed of each scrolling element in the scrolling animation is negatively correlated with the search time of the server for the predicted evaluation value.
[0134] It should be noted that Figure 6 The details not mentioned in the corresponding embodiments and the specific implementation methods of the steps performed by each unit can be found in Figure 4 The illustrated embodiments and the aforementioned contents will not be described in detail here.
[0135] See Figure 7 , Figure 7 7 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device includes a processor 701, a memory 702, and a communication interface 703, wherein the processor 701, the memory 702, and the communication interface 703 are connected via one or more communication buses.
[0136] The processor 701 is configured to support the electronic device to execute the corresponding functions in the above embodiments. The processor 701 can be a central processing unit (CPU), a network processor (NP), a hardware chip or any combination thereof.
[0137] Memory 702 is used to store program code, etc. Memory 702 may include volatile memory, such as random access memory (RAM); non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD); or a combination of the aforementioned types of memory.
[0138] The communication interface 703 is used to receive and send data. For example, the communication interface 703 is used to send a virtual resource batch acquisition request to the server, or the communication interface 703 is used to receive a virtual resource group sent by the server in response to the virtual resource batch acquisition request.
[0139] In an embodiment of the present application, the electronic device includes multiple communication interfaces, wherein the communication interface for sending data and the communication interface for receiving data may not be the same communication interface.
[0140] The communication interface 703 can call the program code stored in the memory 702 to perform the following operations:
[0141] When the virtual resource issuance conditions are met, a virtual resource batch acquisition request is sent to the server;
[0142] receiving a virtual resource group sent by the server in response to the virtual resource batch acquisition request, wherein the virtual resource group includes a plurality of virtual resources;
[0143] The processor 701 may call the program code stored in the memory 702 to perform the following operations:
[0144] Playing a first resource animation in a first preset area of the user interface, the first resource animation including at least one resource image, one or more resource images in the at least one resource image corresponding to one virtual resource among the multiple virtual resources;
[0145] In response to a click operation on a resource image in the first resource animation, determining whether to release the virtual resource corresponding to the resource image based on the number of virtual resources included in the virtual resource group and a preset playback duration of the first resource animation;
[0146] If it is determined to release the virtual resource corresponding to the resource image, the virtual resource corresponding to the resource image is transferred to a target account associated with the client.
[0147] In one implementation, the virtual resource batch acquisition request carries the client identifier of the client;
[0148] The processor 701 receives the virtual resource group sent by the server in response to the virtual resource batch acquisition request, including:
[0149] receiving a virtual resource group matching the user profile found by the server in a database in response to the virtual resource batch acquisition request, wherein the user profile is constructed based on application data of a client corresponding to the client identifier;
[0150] caching the virtual resource group into a virtual resource pool;
[0151] The processor 701 transfers the virtual resource corresponding to the resource image to the target account associated with the client, including:
[0152] The virtual resource corresponding to the resource image is transferred from the virtual resource pool to the target account.
[0153] In one implementation, the communication interface 703 is also used to trigger the execution of sending a virtual resource batch acquisition request to the server after the processor 701 transfers the virtual resources corresponding to the resource image to the target account associated with the client, when the virtual resource issuance conditions are met again, wherein the number of virtual resources in the virtual resource group sent by the server most recently received is greater than the number of virtual resources in the virtual resource group sent by the server last received.
[0154] In one implementation, the processor 701 is further configured to concurrently play a second resource animation in a second preset area of the user interface when the communication interface 703 sends the virtual resource batch acquisition request to the server, where the second resource animation includes at least one resource image;
[0155] The second resource animation refers to an animation that does not respond to a click operation on a resource image in the second resource animation, and the first resource animation refers to an animation that responds to a click operation on a resource image in the first resource animation.
[0156] In one implementation, if the processor 701 determines to release the virtual resource corresponding to the resource image, the processor 701 transfers the virtual resource corresponding to the resource image to a target account associated with the client, including:
[0157] If it is determined to release the virtual resource corresponding to the resource image, a virtual resource release message is sent to the server, where the virtual resource release message carries a resource identifier of the virtual resource corresponding to the resource image;
[0158] Upon receiving a response message from the server, the virtual resource corresponding to the resource image is transferred to the target account. The response message is sent by the server when it is determined that the virtual resource corresponding to the resource identifier to be issued exists in the virtual resource group sent to the client.
[0159] In one implementation, the communication interface 703 is also used to, after the processor 701 determines whether to issue the virtual resource corresponding to the resource image, output a first prompt message in the first preset area of the user interface if it is determined that the virtual resource corresponding to the resource image is not issued, and the first prompt message is used to prompt that the virtual resource has not been successfully received; if it is determined that the virtual resource corresponding to the resource image is issued, output a second prompt message in the first preset area of the user interface, and the second prompt message is used to prompt that the virtual resource has been successfully received.
[0160] In one implementation, the communication interface 703 is further configured to, before sending a virtual resource batch acquisition request to the server when the virtual resource issuance conditions are met, respond to a vehicle information input operation to obtain vehicle information; and further configured to send the vehicle information to the server so that the server searches for a predicted evaluation value of the vehicle corresponding to the vehicle information; the communication interface 703 is triggered to execute sending a virtual resource batch acquisition request to the server when the virtual resource issuance conditions are met, and receiving a virtual resource group sent by the server in response to the virtual resource batch acquisition request. The processor 701 plays a first resource animation in a first preset area of the user interface, responds to a click operation on a resource image in the first resource animation, and determines whether to issue the virtual resource corresponding to the resource image based on the number of virtual resources included in the virtual resource group and the preset playback duration of the first resource animation. If it is determined that the virtual resource corresponding to the resource image is to be issued, the virtual resource corresponding to the resource image is transferred to a target account associated with the client, until a search result for the predicted evaluation value sent by the server is received, wherein the search result is used to indicate whether the server has successfully found the predicted evaluation value of the vehicle corresponding to the vehicle information.
[0161] In one implementation, the processor 701 is also used to respond to the vehicle information input operation of the communication interface 703, and after obtaining the vehicle information, play a scrolling animation in the third preset area of the user interface, and the scrolling speed of each scrolling element in the scrolling animation is negatively correlated with the search time of the server for the predicted evaluation value.
[0162] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is executed by a processor to implement the data processing method described in the above embodiment.
[0163] The computer-readable storage medium includes but is not limited to a flash memory, a hard disk, and a solid-state drive.
[0164] The present application also provides a computer program product. When the computer program product is run by a computer device, the computer program product can execute the above Figure 4 The embodiment provides a data processing method designed for an electronic device.
[0165] In an embodiment of the present application, a chip is further provided, comprising a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, and the computer program is used to implement the method in the above method embodiment.
[0166] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0167] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted via the computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
[0168] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.
Claims
1. A data processing method, characterized in that: The method is applied to a client, and includes: Responding to vehicle information input operation, obtaining vehicle information; Sending the vehicle information to a server so that the server searches for a predicted evaluation value of a vehicle corresponding to the vehicle information; Playing a scrolling animation in a third preset area of the user interface, wherein the scrolling speed of each scrolling element in the scrolling animation is negatively correlated with the search time of the server for searching the predicted evaluation value; When the virtual resource issuance conditions are met, a virtual resource batch acquisition request is sent to the server; receiving a virtual resource group sent by the server in response to the virtual resource batch acquisition request, wherein the virtual resource group includes a plurality of virtual resources; Playing a first resource animation in a first preset area of the user interface, the first resource animation including at least one resource image, one or more resource images in the at least one resource image corresponding to one virtual resource among the multiple virtual resources; In response to a click operation on a resource image in the first resource animation, determining whether to release the virtual resource corresponding to the resource image based on the number of virtual resources included in the virtual resource group and a preset playback duration of the first resource animation; If it is determined to issue the virtual resource corresponding to the resource image, the virtual resource corresponding to the resource image will be transferred to the target account associated with the client until the search result of the predicted evaluation value sent by the server is received. The search result is used to indicate whether the server has successfully found the predicted evaluation value of the vehicle corresponding to the vehicle information.
2. The method according to claim 1, wherein The virtual resource batch acquisition request carries the client identifier of the client; The receiving the virtual resource group sent by the server in response to the virtual resource batch acquisition request includes: receiving a virtual resource group matching the user profile found by the server in a database in response to the virtual resource batch acquisition request, wherein the user profile is constructed based on application data of a client corresponding to the client identifier; caching the virtual resource group into a virtual resource pool; The transferring the virtual resource corresponding to the resource image to the target account associated with the client includes: The virtual resource corresponding to the resource image is transferred from the virtual resource pool to the target account.
3. The method according to claim 1 or 2, wherein: After transferring the virtual resource corresponding to the resource image to the target account associated with the client, the method further includes: When the virtual resource issuance condition is met again, the execution of sending a virtual resource batch acquisition request to the server is triggered, wherein the number of virtual resources in the virtual resource group recently received from the server is greater than the number of virtual resources in the virtual resource group received last time from the server.
4. The method according to claim 1, wherein The method further comprises: When sending the virtual resource batch acquisition request to the server, concurrently playing a second resource animation in a second preset area of the user interface, the second resource animation including at least one resource image; The second resource animation refers to an animation that does not respond to a click operation on a resource image in the second resource animation, and the first resource animation refers to an animation that responds to a click operation on a resource image in the first resource animation.
5. The method according to claim 1, wherein If it is determined to release the virtual resource corresponding to the resource image, the virtual resource corresponding to the resource image is transferred to the target account associated with the client, including: If it is determined to release the virtual resource corresponding to the resource image, a virtual resource release message is sent to the server, where the virtual resource release message carries a resource identifier of the virtual resource corresponding to the resource image; Upon receiving a response message from the server, the virtual resource corresponding to the resource image is transferred to the target account. The response message is sent by the server when it is determined that the virtual resource corresponding to the resource identifier to be issued exists in the virtual resource group sent to the client.
6. The method according to claim 1, wherein After determining whether to release the virtual resource corresponding to the resource image, the method further includes: If it is determined that the virtual resource corresponding to the resource image is not to be issued, a first prompt message is output in a first preset area of the user interface, where the first prompt message is used to prompt that the virtual resource has not been successfully obtained; If it is determined to distribute the virtual resource corresponding to the resource image, a second prompt message is output in the first preset area of the user interface, where the second prompt message is used to prompt that the virtual resource is successfully received.
7. An electronic device, characterized in that: The electronic device comprises: A receiving unit, configured to respond to a vehicle information input operation and obtain vehicle information; a sending unit, configured to send the vehicle information to a server, so that the server searches for a predicted evaluation value of a vehicle corresponding to the vehicle information; a processing unit, configured to play a scrolling animation in a third preset area of the user interface, wherein a scrolling speed of each scrolling element in the scrolling animation is negatively correlated with a search time of the server for searching for the predicted evaluation value; The sending unit is further configured to send a virtual resource batch acquisition request to the server when the virtual resource issuance condition is met; The receiving unit is further configured to receive a virtual resource group sent by the server in response to the virtual resource batch acquisition request, wherein the virtual resource group includes a plurality of virtual resources; The processing unit is further used to play a first resource animation in a first preset area of the user interface, wherein the first resource animation includes at least one resource image, and one or more resource images in the at least one resource image correspond to one virtual resource among the multiple virtual resources; in response to a click operation on the resource image in the first resource animation, based on the number of virtual resources included in the virtual resource group and the preset playback time of the first resource animation, determine whether to issue the virtual resource corresponding to the resource image; if it is determined to issue the virtual resource corresponding to the resource image, transfer the virtual resource corresponding to the resource image to the target account associated with the client until the search result of the predicted evaluation value sent by the server is received, and the search result is used to indicate whether the server has successfully found the predicted evaluation value of the vehicle corresponding to the vehicle information.
8. A computer storage medium, characterized in that The computer storage medium stores a computer program, and the computer program is executed by a processor to implement the data processing method according to any one of claims 1 to 6.
9. An electronic device, characterized in that: The electronic device includes a processor coupled to a memory, wherein: The memory is used to store computer programs; The processor is configured to call the computer program so that the electronic device executes the data processing method according to any one of claims 1 to 6.
10. A computer program product, characterized in that When the computer program product is executed by a computer device, the data processing method according to any one of claims 1 to 6 is executed.
Citation Information
Patent Citations
Allocation method and device of virtual resources
CN104519124A
Virtual resource transfer method, client device, application server, and system
US20180096416A1