Article adding information adjusting method and device, equipment, medium and product
By detecting the number of consecutive clicks in the item addition component and calling the item addition update service only once, the system performance degradation and inaccurate number of item additions caused by frequent clicks is solved, and efficient item addition information display is achieved .
Patent Information
- Application Number
- CN202411471634.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-21
- Publication Date
- 2025-02-07
AI Technical Summary
During application development, frequent clicking on item addition components will lead to multiple requests for item addition and update services, resulting in poor system performance, taking a long time, and inaccurate quantity of item additions.
By detecting the click operation of the target item addition component, determine the number of the first clicks for consecutive clicks, and obtain the item addition update result on this basis. The item addition update service is called only once, and the number of item additions displayed by the target item addition component is updated.
Reduce the number of calls to the item addition and update service, improve resource usage efficiency, and avoid the problems of poor system performance and inaccurate number of items added.
Smart Images

Figure CN119396384A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to methods, devices, equipment, media, and products for adjusting item addition information. Background Art
[0002] At present, in the process of application development, by encapsulating some common components, each scene can be directly embedded and used. There is a need to apply item adding components in many scenes. The method of using item adding components is usually as follows: first, after receiving multiple clicks on the item adding component, the item adding update service is requested each time to update the number of items added, so as to display the number of additions corresponding to the target item in real time.
[0003] However, the inventors have found that when the above method is used to use the item adding component to display the added number, the following technical problems often occur:
[0004] Each click will request the item adding and updating service. Multiple consecutive clicks will request the item adding and updating service multiple times, which will take a long time, deteriorate system performance, and the final number of items added will not be very accurate.
[0005] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention
[0006] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.
[0007] Some embodiments of the present disclosure propose methods, devices, equipment, media and products for adjusting item addition information to solve the technical problems mentioned in the above background technology section.
[0008] In a first aspect, some embodiments of the present disclosure provide a method for adjusting item adding information, comprising: in response to detecting a first click operation on a target item adding component, determining a first number of consecutive clicks on the target item adding component, wherein the consecutive clicks represent that the click time interval between two adjacent clicks is less than a preset duration; obtaining a first item adding update result for the target item, wherein the first item adding update result is a result of updating the cached item adding result based on the first number of clicks, and the target item is an item adding object corresponding to the target item adding component; according to the first item adding update result, updating the number of item additions displayed corresponding to the target item adding component, wherein the number of item additions represents the number of additions corresponding to the target item.
[0009] Optionally, the obtaining of the first item adding update result for the target item includes: in response to monitoring that a cached item adding result has changed, obtaining the first item adding update result.
[0010] Optionally, the first item adding and updating result is generated by the following steps: calling the item adding and updating service to add the first click number and the added value corresponding to the item adding result to obtain the first item adding and updating result.
[0011] Optionally, the above-mentioned determination of the first number of clicks for continuous clicks on the above-mentioned target item adding component includes using a preset countdown device to perform the following determination steps: in response to detecting a second click event that is a click operation after the first click event, and the remaining time corresponding to the above-mentioned countdown device is not 0, adding the cumulative click value corresponding to the first click event to the target value to obtain a cumulative value as the cumulative click value corresponding to the second click event, and setting the remaining time corresponding to the above-mentioned countdown device to the above-mentioned preset duration; performing countdown processing for the target countdown device, wherein the above-mentioned target countdown device is a countdown device after time setting; in response to the remaining time corresponding to the above-mentioned target countdown device being 0, and no third click event that is a click processing after the second click event is detected, determining the above-mentioned cumulative value as the above-mentioned number of clicks; in response to determining that the remaining time corresponding to the above-mentioned target countdown device is not 0, and a third click event that is a click processing after the second click event is detected, taking the second click event as the first click event, and the third click event as the second click event, and continuing to perform the above-mentioned determination steps.
[0012] Optionally, the target item adding component is a component in a page that displays the target item; and the target item adding component in the page is displayed through the following steps: obtaining a component size and a component position corresponding to the target item adding component, wherein the component size is set based on a page size corresponding to the page; in response to determining that there is customized display information of a component corresponding to the target item adding component, displaying the target item adding component in a corresponding form on the page according to the customized display information, the component size and the component position.
[0013] Optionally, the target item adding component supports target component manipulation operations to display a first click mark and a second click mark on the above page, wherein the first click operation is an operation of clicking on the first click mark, the first click mark is a click mark for increasing the number of items added, and the second click mark is a click mark for reducing the number of items added.
[0014] Optionally, the method further includes: in response to detecting a second click operation for the target item adding component, determining a second click number of consecutive clicks on the target item adding component, wherein the second click operation is an operation of clicking on the second click identifier; obtaining a second item adding update result for the target item, wherein the second item adding update result is the result of subtracting the second click number from the first item adding update result; and updating the number of item additions displayed corresponding to the target item adding component according to the second item adding update result.
[0015] In a second aspect, some embodiments of the present disclosure provide an item adding information adjustment device, comprising: a determination unit, configured to determine a first number of consecutive clicks on the target item adding component in response to detecting a first click operation on the target item adding component, wherein the consecutive clicks represent that the click time interval between two adjacent clicks is less than a preset time length; an acquisition unit, configured to acquire a first item adding update result for the target item, wherein the first item adding update result is a result of updating the cached item adding result based on the first number of clicks, and the target item is the item adding object corresponding to the target item adding component; an updating unit, configured to update the number of item additions displayed corresponding to the target item adding component according to the first item adding update result, wherein the number of item additions represents the number of additions corresponding to the target item.
[0016] Optionally, the acquisition unit may be configured to: in response to monitoring a change in the cached item addition result, acquire the first item addition update result.
[0017] Optionally, the determination unit can be configured to: use a preset countdown device to perform the following determination steps: in response to detecting a second click event that is a click operation performed after a first click event, and the remaining time corresponding to the above countdown device is not 0, add the cumulative click value corresponding to the first click event to the target value to obtain a cumulative value as the cumulative click value corresponding to the second click event, and set the remaining time corresponding to the above countdown device to the above preset duration; perform countdown processing for the target countdown device, wherein the above target countdown device is a countdown device after time setting; in response to the remaining time corresponding to the above target countdown device being 0, and no third click event that is a click operation performed after the second click event is detected, determine the above cumulative value as the above number of clicks; in response to determining that the remaining time corresponding to the above target countdown device is not 0, and a third click event that is a click operation performed after the second click event is detected, take the second click event as the first click event, the third click event as the second click event, and continue to execute the above determination steps.
[0018] Optionally, the device also includes: in response to detecting a second click operation on the target item adding component, determining a second click number of consecutive clicks on the target item adding component, wherein the second click operation is an operation of clicking on the second click identifier; obtaining a second item adding update result for the target item, wherein the second item adding update result is the result of subtracting the second click number from the first item adding update result; and updating the number of item additions displayed corresponding to the target item adding component according to the second item adding update result.
[0019] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner in the first aspect.
[0020] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner in the first aspect is implemented.
[0021] In a fifth aspect, some embodiments of the present disclosure provide a computer program product, including a computer program, which implements the method described in any implementation manner in the above-mentioned first aspect when executed by a processor.
[0022] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the item adding information adjustment method of some embodiments of the present disclosure, the item adding process can be conveniently and effectively displayed, and the display of the change of the number of additions corresponding to the target item can be effectively realized under the condition of using less resources. Specifically, the reason for the use of more resources when displaying the relevant number of additions is that each click will request the item adding update service, and multiple consecutive clicks will request the item adding update service multiple times, resulting in a long time, poor system performance, and the final number of items added is not very accurate. Based on this, the item adding information adjustment method of some embodiments of the present disclosure, first, in response to detecting the first click operation on the target item adding component, can accurately determine the first click number of continuous clicks on the above target item adding component, so as to update the cached item adding result. Among them, the above continuous click indicates that the click time interval between two adjacent clicks is less than the preset time length. Then, the first item adding update result for the target item is obtained, wherein the above first item adding update result is the result of updating the cached item adding result based on the above first click number, and the above target item is the item adding object corresponding to the above target item adding component. Here, the first item addition update result is the updated item addition result obtained after the cached item addition result is updated after the first click number is determined. Therefore, for multiple consecutive clicks on the target item, it is only necessary to call the item addition update service once to realize the generation of the first item addition update result, which can greatly reduce the number of service calls and avoid the problem of long time consumption. Finally, according to the above-mentioned first item addition update result, the number of item additions displayed corresponding to the above-mentioned target item addition component is updated in real time to show the corresponding number of additions of the target item. Among them, the above-mentioned number of item additions represents the corresponding number of additions of the above-mentioned target item. In summary, after determining the first number of clicks of consecutive clicks, the cached item addition result is updated, and the change of the number of item additions can be realized on the basis of calling the item addition service only once, which greatly improves the resource utilization efficiency and avoids excessive waste of resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0024] Figure 1 is a schematic diagram of an application scenario of the method for adjusting item addition information according to some embodiments of the present disclosure;
[0025] Figure 2is a flow chart of some embodiments of the method for adjusting item adding information according to the present disclosure;
[0026] Figure 3 is a schematic diagram of a first click mark and a second click mark in some embodiments of the method for adjusting item adding information disclosed in the present invention;
[0027] Figure 4 is a flow chart of other embodiments of the method for adjusting item adding information according to the present disclosure;
[0028] Figure 5 It is a schematic diagram of the structure of some embodiments of the device for adjusting item addition information according to the present disclosure;
[0029] Figure 6 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0030] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0031] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0032] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0033] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0034] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0035] With regard to the collection, storage, and use of user personal information (such as the first-click operation) involved in this disclosure, before performing the corresponding operations, the relevant organizations or individuals shall fulfill their obligations, including conducting personal information security impact assessments, fulfilling the obligation to inform the personal information subject, and obtaining the authorization and consent of the personal information subject in advance.
[0036] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0037] Figure 1 It is a schematic diagram of an application scenario of the method for adjusting item adding information according to some embodiments of the present disclosure.
[0038] exist Figure 1 In the application scenario, first, in response to detecting the first click operation on the target item adding component 102, the electronic device 101 can determine the first click number 103 of the continuous clicks on the target item adding component 102. The continuous click indicates that the click time interval between two adjacent clicks is less than the preset time length. In this application scenario, the first click number 103 can be "3 times". Then, the electronic device 101 can obtain the first item adding update result 105 for the target item. The first item adding update result 105 is the result of updating the cached item adding result 104 based on the first click number 103, and the target item is the item adding object corresponding to the target item adding component 102. In this application scenario, the item adding result 104 can be "2 times". The first item adding update result 105 can be "5 times". Finally, the electronic device 101 can update the number of item additions displayed corresponding to the target item adding component 102 according to the first item adding update result 103. The item adding number indicates the number of additions corresponding to the target item. In this application scenario, the item adding number can be "5".
[0039] It should be noted that the electronic device 101 can be hardware or software. When the electronic device is hardware, it can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or it can be implemented as a single server or a single terminal device. When the electronic device is embodied as software, it can be installed in the hardware devices listed above. It can be implemented as multiple software or software modules for providing distributed services, for example, or it can be implemented as a single software or software module. No specific limitation is made here.
[0040] It should be understood that Figure 1 The number of electronic devices in the embodiment is only for illustration. Any number of electronic devices may be provided according to implementation requirements.
[0041] Continue to refer Figure 2, shows a process 200 of some embodiments of the method for adjusting item addition information according to the present disclosure. The method for adjusting item addition information comprises the following steps:
[0042] Step 201, in response to detecting a first click operation on a target item adding component, determining a first click number of consecutive clicks on the target item adding component.
[0043] In some embodiments, in response to detecting a first click operation on the target item adding component, the execution subject (eg, Figure 1 The electronic device 101 shown in the figure can determine the first number of clicks for continuously clicking the above-mentioned target item adding component. Among them, the target item adding component can be a component that performs item adding processing on the target item. The item adding processing can be an increase processing on the number of predetermined target items. In practice, for e-commerce scenarios, the target item can be a target commodity. The item adding processing can be a commodity purchase processing. For example, the item adding processing can be a processing operation of adding a commodity to a shopping cart. The target item adding control can be a shopping cart control. In practice, by clicking the target item adding control, the selected number of items can be increased. The first click operation can be an operation of performing click processing on the target item adding component. Among them, the above-mentioned continuous clicks represent that the click time interval between two adjacent clicks is less than a preset duration. The preset duration can be a preset number. The target item adding component can be a component displayed on the page for the target item.
[0044] In addition, the corresponding execution subject can also be a target item adding component.
[0045] In some optional implementations of some embodiments, the execution subject may determine a first number of consecutive clicks on the target item adding component, including the following steps:
[0046] The first step is to use the preset countdown device to perform the following determination steps:
[0047] Sub-step 1, in response to detecting a second click event that is a click operation after the first click event, and the remaining time corresponding to the above-mentioned countdown device is not 0, the cumulative click value corresponding to the first click event is added to the target value to obtain a cumulative value as the cumulative click value corresponding to the second click event, and the remaining time corresponding to the above-mentioned countdown device is set to the above-mentioned preset duration. Among them, the first click event and the second click event can be events that represent clicking on the target item adding component. The click time corresponding to the second click event is after the click time corresponding to the first click event. The countdown device can be a device for countdown processing. The remaining time can be the remaining time of the countdown. The cumulative click value corresponding to the first click event can be the number of occurrences of consecutive click events that occurred before the first click event. For example, the cumulative click value can be "5". The target value can be a preset value. For example, the target value can be a value "1". The cumulative value can be a value "6". The preset duration can be the total countdown duration set for the countdown device. For example, the preset duration can be 0.5 seconds.
[0048] Sub-step 2, executing countdown processing for the target countdown device. The target countdown device is a countdown device after the time is set.
[0049] Sub-step 3, in response to the remaining time corresponding to the above-mentioned target countdown device being 0 and the third click event being processed after the second click event being detected, the above-mentioned cumulative value is determined as the above-mentioned number of clicks. The third click event may be a click event that occurs after the second click and the time interval between the occurrences is less than the preset time length.
[0050] In the second step, in response to determining that the remaining time corresponding to the above-mentioned target countdown device is not 0, and detecting a third click event that is processed after the second click event, the second click event is taken as the first click event, and the third click event is taken as the second click event, and the above-mentioned determination step is continued.
[0051] In some optional implementations of some embodiments, the target item adding component is a component in a page displaying the target item. In practice, for e-commerce scenarios, the target item adding component is an add to cart component, and the page corresponding to the target item may be a product details page corresponding to the target product.
[0052] And the target item addition component in the above page is displayed through the following steps:
[0053] The first step is to obtain the component size and component position corresponding to the target item adding component. The component size is set based on the page size corresponding to the page. The component size can be the length and width of the target item adding component. The component position can be the display position of the target item adding component on the page. The page size can be the size of the view corresponding to the page. In practice, the component position generally defaults to the lower right corner of the page.
[0054] As an example, the execution subject may multiply the target component scaling ratio by the corresponding page size of the page to generate the component size. The target component scaling ratio may be a size ratio between the target item added component and the page. In practice, the target component scaling ratio may include: a width ratio and a length ratio.
[0055] In the second step, in response to determining that there is customized component display information corresponding to the target item adding component, the target item adding component is displayed on the page in a corresponding form according to the customized component display information, the component size and the component position. The customized component display information may be display information of display resources that are pre-set and customized for the item adding component. The customized component display information may represent the page rendering result corresponding to the target item adding component. For example, the customized component display information may be information that displays the target item adding component on the page in a target style and target color. The corresponding form may be a display form corresponding to the display resource form, component size and component position.
[0056] Step 202, obtaining the first item addition update result for the target item.
[0057] In some embodiments, the execution subject may obtain the first item addition update result for the target item by wired or wireless means. The first item addition update result is the result of updating the cached item addition result based on the first click number. The target item is the item addition object corresponding to the target item addition component. The item addition result may be the addition result cached by the execution subject, which represents the number of historical item additions. The number of historical item additions may be the number of target items added before the current time. In practice, for e-commerce scenarios, the current number of item additions may be the number of target items added to the shopping cart at the current time. The first item addition update result may be the number of target items added at the current time. For example, for the current time of 11:15, the corresponding cached item addition result is "the number of items added is: 15". The corresponding number of items added may represent that the number of items that have been added to the shopping cart before 11:15 is 15. The first item addition update result may be the updated item addition result after the target object clicks the target item addition control 10 times at 11:15. For example, the first item added update result may be "the number of items added is: 25".
[0058] As an example, the first item addition update result may be generated by the following steps:
[0059] In the first step, the execution entity may add the first click number to the value corresponding to the item adding result to generate an added value.
[0060] The second step is to determine the upper limit value of adding items for the target item. The upper limit value of adding items can represent the upper limit value of adding the target item. For example, the upper limit value of adding items can be 10. That is, in the e-commerce scenario, it represents that the number of items corresponding to the target item added to the shopping cart is 10.
[0061] The third step is to determine the minimum value between the above-mentioned added value and the upper limit value of the item addition as the first item addition update result.
[0062] In some optional implementations of some embodiments, the first item addition update result is generated by the following steps:
[0063] Call the item adding and updating service to add the above-mentioned first number of clicks and the added value corresponding to the above-mentioned item adding result to obtain the above-mentioned first item adding and updating result. Among them, the item adding and updating service can be a service for updating the item adding result. In practice, for e-commerce scenarios, the item adding and updating service can be a commodity shopping cart service. Among them, the commodity shopping cart service can represent that users can browse commodities and select their favorite commodities, and add commodities to the shopping cart by clicking the "Add to Cart" button. The server receives the user's request to add the cart, updates the user's shopping cart data and stores it in the database. Here, unified settlement and payment can be effectively realized through the commodity shopping cart service.
[0064] Here, for multiple consecutive click events, the item adding and updating service is called only once, which can achieve accurate and timely update of the number of items added on the page, avoiding the problem of wasting too many resources by calling the item adding and updating service multiple times.
[0065] Step 203: according to the first item adding update result, the number of items added displayed corresponding to the target item adding component is updated.
[0066] In some embodiments, the execution subject may update the number of items added displayed in the target item adding component according to the update result of the first item addition. The number of items added may represent the number of target items added. In practice, the number of items added is displayed in a corresponding number at the target position of the target item adding component. For example, if the number of items added is 10, the number 10 may be displayed in the upper right corner of the target item adding control.
[0067] In some optional implementations of some embodiments, the target item adding component supports target component manipulation operations to display a first click mark and a second click mark on the above page, wherein the first click operation is an operation of clicking on the first click mark, the first click mark is a click mark for increasing the number of items to be added, and the second click mark is a click mark for decreasing the number of items to be added. The target component manipulation operation may be a control operation pre-set for the target item adding component for selecting to add items or reduce items. For example, the target component manipulation operation may be a long press operation on the target item adding component. That is, after a long press operation is performed on the target item adding component, the first click mark and the second click mark will be displayed directly above the target item adding component on the page. Specifically, Figure 3As shown. The first click mark may be a mark for adding an item. By clicking the first click mark, a continuous accumulation operation of the target item can be achieved. The second click mark may be a mark for reducing an item. By clicking the second click mark, a continuous reduction operation of the target item can be achieved.
[0068] Optionally, after step 204, the steps further include:
[0069] The first step is to determine the second click number of consecutive clicks on the target item adding component in response to detecting the second click operation on the target item adding component. The second click operation is an operation of clicking on the second click identifier. The second click number can represent the number of additions and reductions performed on the adding number corresponding to the target item.
[0070] The second step is to obtain a second item adding and updating result for the target item, wherein the second item adding and updating result is the result obtained by subtracting the second number of clicks from the first item adding and updating result. The second item adding and updating result can be obtained by calling an item adding and updating service.
[0071] The third step is to update the number of items added displayed by the target item adding component according to the second item adding update result.
[0072] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the item adding information adjustment method of some embodiments of the present disclosure, the item adding process can be conveniently and effectively displayed, and the display of the change of the number of additions corresponding to the target item can be effectively realized under the condition of using less resources. Specifically, the reason for the use of more resources when displaying the relevant number of additions is that each click will request the item adding update service, and multiple consecutive clicks will request the item adding update service multiple times, resulting in a long time, poor system performance, and the final number of items added is not very accurate. Based on this, the item adding information adjustment method of some embodiments of the present disclosure, first, in response to detecting the first click operation on the target item adding component, can accurately determine the first click number of continuous clicks on the above target item adding component, so as to update the cached item adding result. Among them, the above continuous click indicates that the click time interval between two adjacent clicks is less than the preset time length. Then, the first item adding update result for the target item is obtained, wherein the above first item adding update result is the result of updating the cached item adding result based on the above first click number, and the above target item is the item adding object corresponding to the above target item adding component. Here, the first item addition update result is the updated item addition result obtained after the cached item addition result is updated after the first click number is determined. Therefore, for multiple consecutive clicks on the target item, it is only necessary to call the item addition update service once to realize the generation of the first item addition update result, which can greatly reduce the number of service calls and avoid the problem of long time consumption. Finally, according to the above-mentioned first item addition update result, the number of item additions displayed corresponding to the above-mentioned target item addition component is updated in real time to show the corresponding number of additions of the target item. Among them, the above-mentioned number of item additions represents the corresponding number of additions of the above-mentioned target item. In summary, after determining the first number of clicks of consecutive clicks, the cached item addition result is updated, and the change of the number of item additions can be realized on the basis of calling the item addition service only once, which greatly improves the resource utilization efficiency and avoids excessive waste of resources.
[0073] Further references Figure 4 , shows a process 400 of another embodiment of the method for adjusting item addition information according to the present disclosure. The method for adjusting item addition information includes the following steps:
[0074] Step 401, in response to detecting a first click operation on a target item adding component, determining a first click number of consecutive clicks on the target item adding component.
[0075] Step 402, in response to monitoring that the cached item addition result has changed, obtaining the first item addition update result.
[0076] In some embodiments, in response to monitoring a change in the cached item addition result, the execution subject (eg Figure 1 The electronic device 101 shown in the figure can obtain the above-mentioned first item addition update result. Here, the above-mentioned target item addition control can monitor in real time whether the item addition result changes, and after monitoring the change, it can obtain the pre-cached first item addition update result.
[0077] Step 403: according to the first item adding update result, the number of items added displayed corresponding to the target item adding component is updated.
[0078] In some embodiments, the specific implementation of steps 401 and 403 and the technical effects thereof can be referred to in Figure 2 Steps 201 and 203 in the corresponding embodiment will not be described in detail here.
[0079] from Figure 4 It can be seen that Figure 2 Compared with the description of some corresponding embodiments, Figure 4 In some corresponding embodiments, the process 400 of the item addition information adjustment method monitors in real time the changes in the cached item addition results to quickly and effectively obtain the first item addition update result, so as to facilitate the subsequent update of the displayed number of item additions.
[0080] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of an item adding information adjustment device. These device embodiments are similar to Figure 2 Corresponding to the method embodiments shown, the item addition information adjustment device can be specifically applied to various electronic devices.
[0081] like Figure 5As shown, an item adding information adjustment device 500 includes: a determination unit 501, an acquisition unit 502 and an update unit 503. The determination unit 501 is configured to determine the first number of consecutive clicks on the target item adding component in response to detecting a first click operation on the target item adding component, wherein the consecutive clicks represent that the click time interval between two adjacent clicks is less than a preset time length; the acquisition unit 502 is configured to obtain a first item adding update result for the target item, wherein the first item adding update result is a result of updating the cached item adding result based on the first number of clicks, and the target item is the item adding object corresponding to the target item adding component; the update unit 503 is configured to update the number of item adding corresponding to the target item adding component according to the first item adding update result, wherein the number of item adding represents the number of additions corresponding to the target item.
[0082] In some optional implementations of some embodiments, the acquisition unit 502 may be further configured to: in response to monitoring a change in the cached item addition result, acquire the above-mentioned first item addition update result.
[0083] In some optional implementations of some embodiments, the above-mentioned first item adding and updating result is generated by the following steps: calling the item adding and updating service to add the above-mentioned first click number and the added value corresponding to the above-mentioned item adding result to obtain the above-mentioned first item adding and updating result.
[0084] In some optional implementations of some embodiments, the determination unit 501 can be further configured to: use a preset countdown device to perform the following determination steps: in response to detecting a second click event that is a click operation performed after a first click event, and the remaining time corresponding to the above countdown device is not 0, add the cumulative click value corresponding to the first click event to the target value to obtain a cumulative value as the cumulative click value corresponding to the second click event, and set the remaining time corresponding to the above countdown device to the above preset duration; perform countdown processing for the target countdown device, wherein the above target countdown device is a countdown device after time setting; in response to the remaining time corresponding to the above target countdown device being 0, and no third click event that is a click operation performed after the second click event is detected, determine the above cumulative value as the above number of clicks; in response to determining that the remaining time corresponding to the above target countdown device is not 0, and a third click event that is a click operation performed after the second click event is detected, take the second click event as the first click event, the third click event as the second click event, and continue to execute the above determination steps.
[0085] In some optional implementations of some embodiments, the target item adding component is a component in a page that displays the target item; and the target item adding component in the page is displayed through the following steps: obtaining a component size and a component position corresponding to the target item adding component, wherein the component size is set based on the page size corresponding to the page; in response to determining that there is customized display information of a component corresponding to the target item adding component, displaying the target item adding component in a corresponding form on the page according to the customized display information, the component size and the component position.
[0086] In some optional implementations of some embodiments, the target item adding component supports target component manipulation operations to display a first click mark and a second click mark on the above page, wherein the first click operation is an operation of clicking on the first click mark, the first click mark is a click mark for increasing the number of items added, and the second click mark is a click mark for reducing the number of items added.
[0087] In some optional implementations of some embodiments, the device 500 further includes: a number determination unit, a result acquisition unit, and a number update unit (not shown in the figure). The number determination unit may be configured to: in response to detecting a second click operation on the target item adding component, determine the second number of clicks for continuous clicks on the target item adding component, wherein the second click operation is an operation of clicking on the second click identifier. The result acquisition unit may be configured to: acquire a second item adding update result for the target item, wherein the second item adding update result is the result of subtracting the second number of clicks from the first item adding update result. The number update unit may be configured to: update the number of item additions displayed corresponding to the target item adding component according to the second item adding update result.
[0088] It is understandable that the units recorded in the item addition information adjustment device 500 are similar to the reference Figure 2 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the item addition information adjustment device 500 and the units included therein, and will not be described in detail here.
[0089] Reference below Figure 6 , which shows an electronic device (eg, Figure 1 Schematic diagram of the structure of the electronic device 101)600. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0090] like Figure 6 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory 602 or a program loaded from a storage device 608 into a random access memory 603. Various programs and data required for the operation of the electronic device 600 are also stored in the random access memory 603. The processing device 601, the read-only memory 602, and the random access memory 603 are connected to each other via a bus 604. An input / output interface 605 is also connected to the bus 604.
[0091] Typically, the following devices may be connected to the input / output interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 6 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0092] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a read-only memory 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.
[0093] It should be noted that the computer-readable medium in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0094] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0095] The computer-readable medium may be included in the electronic device; or it may exist independently without being assembled into the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: in response to detecting a first click operation on a target item adding component, determines a first number of consecutive clicks on the target item adding component, wherein the consecutive clicks represent that the click time interval between two adjacent clicks is less than a preset time length; obtains a first item adding update result for the target item, wherein the first item adding update result is a result of updating the cached item adding result based on the first number of clicks, and the target item is the item adding object corresponding to the target item adding component; according to the first item adding update result, updates the number of item adding corresponding to the target item adding component, wherein the number of item adding represents the number of additions corresponding to the target item.
[0096] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0097] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0098] The units described in some embodiments of the present disclosure may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes a determination unit, an acquisition unit, and an update unit. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the acquisition unit may also be described as "a unit for acquiring a first item addition update result for a target item".
[0099] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0100] Some embodiments of the present disclosure further provide a computer program product, including a computer program, which implements any of the above-mentioned methods for adjusting item addition information when executed by a processor.
[0101] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.
Claims
1. A method for adjusting item added information, comprising: In response to detecting a first click operation on a target item adding component, determining a first click number of consecutive clicks on the target item adding component, wherein the consecutive clicks represent that a click time interval between two adjacent clicks is less than a preset time length; Obtaining a first item adding update result for a target item, wherein the first item adding update result is a result of updating a cached item adding result based on the first click number, and the target item is an item adding object corresponding to the target item adding component; According to the first item addition update result, the number of items added displayed corresponding to the target item addition component is updated, wherein the number of items added represents the number of additions corresponding to the target item.
2. The method according to claim 1, wherein: The obtaining of the first item addition update result for the target item includes: In response to monitoring that the cached item addition result has changed, the first item addition update result is obtained.
3. The method according to claim 1, wherein: The first item addition update result is generated by the following steps: Calling the item adding and updating service to add the first number of clicks and the added value corresponding to the item adding result to obtain the first item adding and updating result.
4. The method according to claim 1, wherein: The determining a first number of consecutive clicks on the target item adding component includes: Using the preset countdown device, perform the following determination steps: In response to detecting a second click event that is a click operation performed after the first click event, and the remaining time corresponding to the countdown device is not 0, adding the cumulative click value corresponding to the first click event to the target value to obtain a cumulative value as the cumulative click value corresponding to the second click event, and setting the remaining time corresponding to the countdown device to the preset duration; Execute countdown processing for a target countdown device, wherein the target countdown device is a countdown device after time setting; In response to the remaining time corresponding to the target countdown device being 0 and the third click event being processed after the second click event not being detected, determining the accumulated value as the number of clicks; In response to determining that the remaining time corresponding to the target countdown device is not 0 and detecting a third click event that is processed after the second click event, the second click event is taken as the first click event and the third click event is taken as the second click event, and the determination step is continued.
5. The method according to claim 1, wherein: The target item adding component is a component in a page displaying the target item; and The target item adding component in the page is displayed through the following steps: Obtaining a component size and a component position corresponding to the target item added component, wherein the component size is set based on a page size corresponding to the page; In response to determining that there is component customized display information corresponding to the target item additional component, the target item additional component is displayed on the page in a corresponding form according to the component customized display information, the component size and the component position.
6. The method according to claim 5, wherein: The target item adding component supports target component manipulation operations to display a first click mark and a second click mark on the page, wherein the first click operation is an operation of clicking on the first click mark, the first click mark is a click mark for increasing the number of items added, and the second click mark is a click mark for reducing the number of items added.
7. The method according to claim 6, wherein: The method further comprises: In response to detecting a second click operation on the target item adding component, determining a second click number of consecutive clicks on the target item adding component, wherein the second click operation is an operation of clicking on the second click identifier; Obtain a second item adding and updating result for the target item, wherein the second item adding and updating result is a result obtained by subtracting the second number of clicks from the first item adding and updating result; According to the second item adding update result, the number of items added displayed corresponding to the target item adding component is updated.
8. An item adding information adjustment device, comprising: a determining unit configured to determine a first click number of consecutive clicks on the target item adding component in response to detecting a first click operation on the target item adding component, wherein the consecutive clicks represent that a click time interval between two adjacent clicks is less than a preset time length; an acquisition unit configured to acquire a first item adding update result for a target item, wherein the first item adding update result is a result of updating a cached item adding result based on the first number of clicks, and the target item is an item adding object corresponding to the target item adding component; The updating unit is configured to update the number of added items displayed corresponding to the target item adding component according to the first item adding update result, wherein the number of added items represents the number of additions corresponding to the target item.
9. An electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer readable medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
11. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.