Popup window display method and device for shielding plug-in, electronic equipment and storage medium

By calculating the hash value of the user account and adjusting the size of the pop -up window, combined with the setting of the pop -up background to be transparent, the problem of the existing technologies and foreign landing shielding methods have been solved, and the effective shielding and fairness of the plug -in. Assure.

CN119376836APending Publication Date: 2025-01-28GUANGZHOU XINYU NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411366900.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

The existing technology of plug-in blocking methods have been cracked, and plug-in blocking cannot be effectively blocked, affecting the user experience of normal users and reducing fairness.

Method used

Obtain the user account by responding to the clicks of the preset spike activity, and the hash transportation calculates the hash value. Based on the hash value, the device screen size and the original pop -up size, calculate the pop -up window size, adjust the pop -up window size and set the bullet The background of the window is transparent to display the adjusted pop -up window.

Benefits of technology

Effectively block the plug -in, ensure the fairness of the spike activity, protect the use experience of normal users, and to the outside world, the pop -up window remains its original state, and does not affect the normal use of users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119376836A_ABST
    Figure CN119376836A_ABST
Patent Text Reader

Abstract

The invention provides a plug-in shielding pop-up window display method and device, electronic equipment and a storage medium, and relates to the technical field of computers. The method comprises the steps of obtaining a user account in response to a click event of a preset seckilling activity; performing Hash operation based on the user account to obtain a Hash value; based on the hash value, the equipment screen size and the original pop-up window size, carrying out calculation to obtain pop-up window size offset; adjusting the size of the original pop-up window according to the pop-up window size offset to obtain a first pop-up window; setting the pop-up window background outside the visual control area in the first pop-up window to be transparent to obtain a second pop-up window, and displaying the second pop-up window. The pop-up window is still kept in an original state from the outside, and normal use of a user is not affected; the plug-in can be normally used by using the user account of the plug-in during the self-test stage, but the plug-in cannot be normally used when other users use the plug-in, so that the plug-in is shielded, the fairness of the seckilling activity is improved, and the use of normal users is protected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for displaying a pop-up window for shielding plug-ins. Background Art

[0002] Cheats, also known as third-party auxiliary software, can automatically detect the order window of the software. After detecting the window, it will automatically click and simulate human operations to complete some tasks and activities to obtain corresponding rewards or grab certain coupons. The use of such software will have a great impact on users who use the software normally. Therefore, detecting cheats is usually an important task in games, software and applications to ensure the fairness of games or applications.

[0003] In the prior art, PC software usually blocks plug-ins by modifying the pop-up window title and adjusting the location where the pop-up window appears. However, plug-ins can also be adjusted with the blocking means. By mainly judging the window title, the location where the pop-up window appears, the size of the pop-up window and other conditions, the blocking means can be further bypassed to perform automated operations on the software. Existing blocking means cannot effectively block plug-ins. Summary of the invention

[0004] The present invention provides a method, device, electronic device and storage medium for displaying a pop-up window for shielding plug-ins, so as to solve the defect that the plug-in shielding means in the prior art can be cracked, effectively shield the plug-in, prevent the plug-in software from affecting the normal user's use and experience, and ensure fairness.

[0005] The present invention provides a pop-up window display method for shielding plug-ins, comprising:

[0006] In response to a click event of a preset flash sale activity, obtaining a user account;

[0007] Perform a hash operation based on the user account to obtain a hash value;

[0008] A pop-up window size offset is obtained by performing calculation based on the hash value, the device screen size, and the original pop-up window size, wherein the original pop-up window size is the size of the original pop-up window of the preset flash sale activity;

[0009] Adjust the size of the original pop-up window according to the pop-up window size offset to obtain a first pop-up window;

[0010] The pop-up window background outside the visual control area in the first pop-up window is set to transparent to obtain a second pop-up window, and the second pop-up window is displayed.

[0011] According to a method for displaying a pop-up window for shielding plug-ins provided by the present invention, the device screen size includes the device screen width and the device screen height, the original pop-up window size includes the original pop-up window width and the original pop-up window height, the pop-up window size offset includes the pop-up window width offset and the pop-up window height offset, and the pop-up window size offset is obtained by calculating based on the hash value, the device screen size, and the original pop-up window size, including:

[0012] Perform a modulo operation based on the hash value, the device screen width, and the original pop-up window width to obtain the pop-up window width offset;

[0013] A modulo operation is performed based on the hash value, the device screen width, and the original pop-up window height to obtain the pop-up window height offset.

[0014] According to a method for displaying a pop-up window to block plug-ins provided by the present invention, the calculation formula of the pop-up window width offset is:

[0015] Popup window width offset = hash value% (device screen width - original popup window width);

[0016] The calculation formula of the pop-up window height offset is:

[0017] Pop-up window height offset = hash value % (device screen height - original pop-up window height).

[0018] According to a method for displaying a pop-up window to block plug-ins provided by the present invention, the calculation formula of the pop-up window width offset is:

[0019] Popup window width offset = hash value% (device screen width - 2 × original popup window width);

[0020] The calculation formula of the pop-up window height offset is:

[0021] Pop-up window height offset = hash value % (device screen height - 2 × original pop-up window height).

[0022] According to a method for displaying a pop-up window to block plug-ins provided by the present invention, the calculation based on the hash value, the device screen size, and the original pop-up window size to obtain the pop-up window size offset includes:

[0023] Convert the hash value into a decimal value;

[0024] The pop-up window size offset is obtained by performing calculation based on the decimal value, the device screen size, and the original pop-up window size.

[0025] According to a pop-up window display method for shielding plug-ins provided by the present invention, the visual control area includes a flash sale button, and the method further includes:

[0026] Performing random calculation based on the original position coordinates of the flash sale button to obtain the target position coordinates;

[0027] The position of the flash sale button in the visual control area is adjusted according to the target position coordinates.

[0028] According to a pop-up window display method for shielding plug-ins provided by the present invention, the visual control area includes a flash sale button, and the method further includes:

[0029] Obtain at least one RGB color value based on the hash value;

[0030] At least one noise point is generated according to the RGB color value, and the noise point is added to the flash sale button.

[0031] The present invention also provides a pop-up window display device for shielding plug-ins, comprising:

[0032] An acquisition module, used for acquiring a user account in response to a click event of a preset flash sale activity;

[0033] A first calculation module, configured to perform a hash operation based on the user account to obtain a hash value;

[0034] A second calculation module is used to calculate based on the hash value, the device screen size, and the original pop-up window size to obtain a pop-up window size offset, wherein the original pop-up window size is the size of the original pop-up window of the preset flash sale activity;

[0035] A first pop-up window setting module, used for adjusting the size of the original pop-up window according to the pop-up window size offset to obtain a first pop-up window;

[0036] The second pop-up window setting module is used to set the pop-up window background outside the visual control area in the first pop-up window to transparent, obtain the second pop-up window, and display the second pop-up window.

[0037] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a pop-up window display method for shielding plug-ins as described in any one of the above is implemented.

[0038] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the pop-up window display method for shielding plug-ins as described in any of the above-mentioned methods is implemented.

[0039] The present invention provides a pop-up window display method, device, electronic device and storage medium for shielding plug-ins. The method performs hash operation by taking a user account as a key to generate a hash value, and calculates a pop-up window size offset according to the hash value, the device screen size and the original pop-up window size, and adjusts the size of the flash sale activity window according to the pop-up window size offset. In addition, only the size of the window is adjusted, the size of the visual control area in the window remains unchanged, and the area outside the visual control area in the window is set to be transparent, so that the pop-up window (visual control area) of the flash sale activity still maintains its original state from the outside world, and does not affect the normal use of users; at the same time, when the plug-in is in the self-testing stage, the flash sale button is located by judging the size of the pop-up window, and can be used normally when tested with its own user account, but there is a high probability that it cannot be used normally when other users use the plug-in, thereby shielding the plug-in, improving the fairness of the flash sale activity, protecting the use of normal users, and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 This is one of the flow charts of the pop-up window display method for shielding plug-ins provided by the present invention;

[0042] Figure 2 This is the second flow chart of the pop-up window display method for shielding plug-ins provided by the present invention;

[0043] Figure 3 It is a structural schematic diagram of a pop-up window display device for shielding plug-ins provided by the present invention;

[0044] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] It should be noted that in the description of the embodiments of the present invention, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "include one..." do not exclude the existence of other identical elements in the process, method, article or device including the elements. The orientation or position relationship indicated by the terms "upper", "lower" and the like is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. Unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be a connection between two elements. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0047] The terms "first", "second", etc. in the present invention are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present invention can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" means at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0048] Combine the following Figure 1-Figure 4 The present invention describes a method, device, electronic device and storage medium for displaying a pop-up window for shielding plug-ins.

[0049] like Figure 1 As shown, the present invention provides a method for displaying a pop-up window to shield plug-ins, which can be applied to software on a PC, and specifically includes the following steps:

[0050] Step 110, in response to a click event of a preset flash sale activity, obtaining a user account.

[0051] Specifically, when a user clicks to participate in a preset flash sale activity, the PC receives a click event of the preset flash sale activity and obtains the user account currently logged in to the software.

[0052] The preset flash sale activity may be an order grabbing activity, a limited-time flash sale activity for a product, a limited-time item redemption activity, or other activity that requires the user to click on the flash sale at a specified time point, and the present invention does not make any specific limitation thereto.

[0053] Step 120: Perform a hash operation based on the user account to obtain a hash value.

[0054] Specifically, after obtaining the currently logged-in user account, the PC uses the user account as the key value and performs a calculation through a hash algorithm to obtain a corresponding hash value (value). In the present invention, there is no specific limitation on the hash algorithm, which can be any one of MD4, MD5, SHA-1, SHA-2, SHA-3, BLAKE2, etc. The appropriate hash algorithm is selected according to the application requirements.

[0055] In order to further effectively shield plug-ins, in some embodiments, the hash algorithm is determined by a random mechanism. That is, the hash algorithm used to calculate the hash value based on the user account each time is random, and the hash values ​​calculated in response to different click events of the same user account are different, so the size of the pop-up window adjusted later is also different, which can further effectively avoid plug-in software and plug-in cracking shielding means and improve the fairness of the activity.

[0056] Step 130, performing calculation based on the hash value, the device screen size, and the original pop-up window size to obtain a pop-up window size offset, wherein the original pop-up window size is the size of the original pop-up window of the preset flash sale activity.

[0057] Specifically, the preset flash sale activity is displayed in the form of a pop-up window, and the PC end can obtain the size of the original pop-up window according to the configuration file. The original pop-up window refers to the pop-up window that was originally displayed. The original pop-up window includes the title, content, flash sale button, background, etc. of the preset flash sale activity, which can also be called the visual control area. The size of the visual control area is the same as the size of the original pop-up window.

[0058] The device screen size refers to the interface size of the device screen currently in use, such as the screen size of a computer monitor, the screen size of a mobile phone, the screen size of a tablet computer, etc.

[0059] It is understandable that the user account is the unique identifier of the user in the software. Different users correspond to different user accounts. Therefore, the hash values ​​obtained by hashing the user accounts are also different. The hash value is calculated in combination with the device screen size and the original pop-up window size, and the pop-up window size offset obtained is different.

[0060] For the convenience of calculation, in some embodiments, step 130 may specifically include the following steps:

[0061] Convert the hash value into a decimal value;

[0062] The pop-up window size offset is obtained by performing calculation based on the decimal value, the device screen size, and the original pop-up window size.

[0063] Specifically, the hash value obtained after the hash operation of the user account may be a non-decimal string. The hash value is first converted into a decimal value, and then the decimal value is substituted into the operation to obtain the pop-up window size offset.

[0064] Step 140: adjusting the size of the original pop-up window according to the pop-up window size offset to obtain a first pop-up window.

[0065] Specifically, according to the calculated pop-up window size offset, the size of the original pop-up window is adjusted, and the window size of the pop-up window is enlarged to obtain the first pop-up window.

[0066] The device screen size generally includes the device screen width and the device screen height. The original pop-up window size includes the original pop-up window width and the original pop-up window height. Then, the calculated pop-up window size offset includes the pop-up window width offset and the pop-up window height offset. The pop-up window width is adjusted by the pop-up window width offset, and the pop-up window height is adjusted by the pop-up window height offset.

[0067] Step 150, setting the pop-up window background outside the visual control area in the first pop-up window to transparent, obtaining a second pop-up window, and displaying the second pop-up window.

[0068] It should be understood that although the frame size of the window is enlarged in step 140, the size of the visible control area remains unchanged and is not adjusted. Therefore, the first pop-up window includes the visible control area and the pop-up window background outside the visible control area.

[0069] Step 150 sets the background of the pop-up window outside the visual control area in the first pop-up window to be transparent. In this way, when the second pop-up window is displayed, the user actually sees the visual control area instead of the entire pop-up window. The size and content of the visual control area are consistent with the original pop-up window. Therefore, in the user's visual experience, the position and size of the pop-up window of the preset flash sale activity relative to the device screen do not change significantly, and it is still the original pop-up window. Figure 2 shown.

[0070] When plug-in software and plug-ins detect the size of the pop-up window, what is detected is the window size of the adjusted second pop-up window, and the flash sale button is located according to the window size of the second pop-up window. When testers use plug-in software and plug-ins for self-testing, they often use their own user accounts, so that the test results obtained can be successful in flash sales using plug-ins. However, when other users use plug-in software and plug-ins to perform flash sales, due to different user accounts, the calculated hash values ​​and pop-up window size offsets are different, and the adjusted window size of the second pop-up window is also different. The result of locating the flash sale button according to the window size of the second pop-up window will be biased, so there is a greater probability that the flash sale cannot be successful using the plug-in. It can block plug-ins to a certain extent and improve the fairness of flash sales activities.

[0071] The present invention provides a method for displaying a pop-up window for shielding plug-ins. The method uses a user account as a key to perform a hash operation to generate a value hash value, and calculates a pop-up window size offset according to the hash value, a device screen size, and an original pop-up window size. The size of the flash sale activity window is adjusted according to the pop-up window size offset. In addition, only the size of the window is adjusted, while the size of a visual control area in the window remains unchanged. The area outside the visual control area in the window is set to be transparent. In this way, the pop-up window (visual control area) of the flash sale activity still maintains its original state from the outside world, and does not affect the normal use of users. At the same time, when the plug-in is in the self-testing stage, the flash sale button is located by judging the size of the pop-up window. It can be used normally when tested with its own user account, but it is very likely that it cannot be used normally when other users use the plug-in, thereby shielding the plug-in, improving the fairness of the flash sale activity, protecting the use of normal users, and improving the user experience.

[0072] In some embodiments, step 130 may specifically include the following steps:

[0073] Perform a modulo operation based on the hash value, the device screen width, and the original pop-up window width to obtain the pop-up window width offset;

[0074] A modulo operation is performed based on the hash value, the device screen width, and the original pop-up window height to obtain the pop-up window height offset.

[0075] In this embodiment, a modulo operation is adopted so that the calculated pop-up window width offset is related to the device screen size and the original pop-up window size.

[0076] Specifically, in some embodiments, the calculation formula of the pop-up window width offset may be:

[0077] Popup window width offset = hash value% (device screen width - original popup window width);

[0078] The calculation formula of the pop-up window height offset is:

[0079] Pop-up window height offset = hash value % (device screen height - original pop-up window height).

[0080] In this embodiment, the difference between the device screen width and the original pop-up window width is used to calculate the remainder of the hash value, so that the obtained remainder is smaller than the difference, that is, the pop-up window width offset is smaller than the difference, so that the adjusted pop-up window width does not exceed the device screen width.

[0081] Similarly, the pop-up window height offset obtained by the modulo operation is smaller than the difference between the device screen height and the original pop-up window height, so that the adjusted pop-up window height does not exceed the device screen height.

[0082] In some other embodiments, the calculation formula of the pop-up window width offset may be:

[0083] Popup width offset = hash value% (device screen width - 2 × original popup width);

[0084] The calculation formula of the pop-up window height offset is:

[0085] Pop-up window height offset = hash value % (device screen height - 2 × original pop-up window height).

[0086] In this embodiment, the pop-up window width offset obtained by the modulus operation is less than the difference between the device screen width and 2 times the original pop-up window width, and the pop-up window height offset is less than the difference between the device screen height and 2 times the original pop-up window height. In this way, the size range of the adjusted pop-up window size is further reduced, avoiding unreasonable detection of external plug-ins and taking further measures to crack.

[0087] It should be understood that after obtaining the pop-up window width offset and the pop-up window height offset, the original pop-up window of the preset flash sale activity is adjusted to expand the size of the pop-up window. The specific adjustment direction can be to extend the pop-up window width horizontally and the pop-up window height vertically from a certain point of the original pop-up window as the starting point. It can be extended in one direction or in two directions, so as to obtain the first pop-up window. The width of the first pop-up window is the sum of the pop-up window width offset and the original pop-up window width, and the height of the first pop-up window is the sum of the pop-up window height offset and the original pop-up window height.

[0088] In order to further shield plug-ins, in some embodiments, the method further includes:

[0089] Performing random calculation based on the original position coordinates of the flash sale button to obtain the target position coordinates;

[0090] The position of the flash sale button in the visual control area is adjusted according to the target position coordinates.

[0091] Specifically, the visual control area includes a flash sale button, and the user participates in the preset flash sale activity by clicking the flash sale button. In this embodiment, the original position coordinates of the flash sale button are randomly calculated to obtain a new position coordinate, and the position of the flash sale button is adjusted according to the new position coordinate, that is, the flash sale position is moved, further shielding the plug-in software and plug-in plug-in from positioning the flash sale button through the original position coordinates to perform flash sale, thereby reducing the success probability of the plug-in software and plug-in plug-in flash sale.

[0092] In order to further shield plug-ins, in some embodiments, the method further includes:

[0093] Obtain at least one RGB color value based on the hash value;

[0094] At least one noise point is generated according to the RGB color value, and the noise point is added to the flash sale button.

[0095] In this embodiment, the RGB value is obtained based on the hash value, and at least one noise point is generated according to the RGB color value and added to the flash sale button. This can shield the means by which the plug-in software and the plug-in plug-in locate the flash sale button by detecting the RGB color value. That is, the plug-in cannot use the color to accurately detect the position of the flash sale button, thereby reducing the success probability of the flash sale by the plug-in software and the plug-in plug-in. In addition, the method of adding noise points can ensure that the appearance of the flash sale button does not change, thereby avoiding affecting normal use.

[0096] It should be understood that if the hash value is a non-decimal value, the hash value can be first converted to decimal, and then at least one RGB color value is obtained based on the obtained decimal value. If the hash value or the decimal value is large, for example, greater than 255, a modulo operation or a random operation is performed on the hash value or the decimal value so that the operation result ranges from 0 to 255, and the operation result is used as the RGB color value.

[0097] In some other embodiments, the method further comprises:

[0098] Perform a random operation based on the hash value to obtain at least one random number;

[0099] Obtain at least one RGB color value based on the random number;

[0100] At least one noise point is generated according to the RGB color value, and the noise point is added to the flash sale button.

[0101] In this embodiment, random operations are further performed on the hash value to obtain the RGB value, which can increase the difficulty of cracking and further shield the means by which plug-in software and plug-in plug-ins locate the flash sale button by detecting the RGB color value.

[0102] In other embodiments, the color of the flash sale button can be adjusted according to the RGB color value to change the color of at least a part of the area of ​​the flash sale button. Specifically, the color adjustment can be a monochrome effect or a gradient effect.

[0103] The pop-up window display device for shielding plug-ins provided by the present invention is described below. The pop-up window display device for shielding plug-ins described below and the pop-up window display method for shielding plug-ins described above can be referenced to each other.

[0104] The present invention provides a pop-up window display device for shielding plug-ins, comprising:

[0105] An acquisition module, used for acquiring a user account in response to a click event of a preset flash sale activity;

[0106] A first calculation module, configured to perform a hash operation based on the user account to obtain a hash value;

[0107] A second calculation module is used to calculate based on the hash value, the device screen size, and the original pop-up window size to obtain a pop-up window size offset, wherein the original pop-up window size is the size of the original pop-up window of the preset flash sale activity;

[0108] A first pop-up window setting module, used for adjusting the size of the original pop-up window according to the pop-up window size offset to obtain a first pop-up window;

[0109] The second pop-up window setting module is used to set the pop-up window background outside the visual control area in the first pop-up window to transparent, obtain the second pop-up window, and display the second pop-up window.

[0110] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 complete mutual communication through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute a pop-up window display method for shielding plug-ins, the method comprising: in response to a click event of a preset second kill activity, obtaining a user account; performing a hash operation based on the user account to obtain a hash value; performing a calculation based on the hash value, the device screen size, and the original pop-up window size to obtain a pop-up window size offset, wherein the original pop-up window size is the size of the original pop-up window of the preset second kill activity; adjusting the size of the original pop-up window according to the pop-up window size offset to obtain a first pop-up window; setting the pop-up window background outside the visual control area in the first pop-up window to transparent, obtaining a second pop-up window, and displaying the second pop-up window.

[0111] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

[0112] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the pop-up display method for shielding plug-ins provided by the above-mentioned methods, and the method includes: in response to a click event of a preset flash sale activity, obtaining a user account; performing a hash operation based on the user account to obtain a hash value; performing a calculation based on the hash value, the device screen size, and the original pop-up window size to obtain a pop-up window size offset, wherein the original pop-up window size is the size of the original pop-up window of the preset flash sale activity; adjusting the size of the original pop-up window according to the pop-up window size offset to obtain a first pop-up window; setting the pop-up window background outside the visual control area in the first pop-up window to transparent to obtain a second pop-up window, and displaying the second pop-up window.

[0113] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a pop-up window display method for shielding plug-ins provided by the above-mentioned methods, the method comprising: obtaining a user account in response to a click event of a preset flash sale activity; performing a hash operation based on the user account to obtain a hash value; performing a calculation based on the hash value, the device screen size, and the original pop-up window size to obtain a pop-up window size offset, wherein the original pop-up window size is the size of the original pop-up window of the preset flash sale activity; adjusting the size of the original pop-up window according to the pop-up window size offset to obtain a first pop-up window; setting the pop-up window background outside the visual control area in the first pop-up window to transparent to obtain a second pop-up window, and displaying the second pop-up window.

[0114] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0115] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0116] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for shielding plug-in pop-up window display, characterized in that: include: In response to a click event of a preset flash sale activity, obtaining a user account; Perform a hash operation based on the user account to obtain a hash value; A pop-up window size offset is obtained by performing calculation based on the hash value, the device screen size, and the original pop-up window size, wherein the original pop-up window size is the size of the original pop-up window of the preset flash sale activity; Adjust the size of the original pop-up window according to the pop-up window size offset to obtain a first pop-up window; The pop-up window background outside the visual control area in the first pop-up window is set to transparent to obtain a second pop-up window, and the second pop-up window is displayed.

2. The pop-up window display method for shielding plug-ins according to claim 1 is characterized in that: The device screen size includes the device screen width and the device screen height, the original pop-up window size includes the original pop-up window width and the original pop-up window height, the pop-up window size offset includes the pop-up window width offset and the pop-up window height offset, and the pop-up window size offset is obtained by calculating based on the hash value, the device screen size, and the original pop-up window size, including: Perform a modulo operation based on the hash value, the device screen width, and the original pop-up window width to obtain the pop-up window width offset; A modulo operation is performed based on the hash value, the device screen width, and the original pop-up window height to obtain the pop-up window height offset.

3. The pop-up window display method for shielding plug-ins according to claim 2 is characterized in that: The calculation formula of the pop-up window width offset is: Popup window width offset = hash value% (device screen width - original popup window width); The calculation formula of the pop-up window height offset is: Pop-up window height offset = hash value % (device screen height - original pop-up window height).

4. The pop-up window display method for shielding plug-ins according to claim 2 is characterized in that: The calculation formula of the pop-up window width offset is: Popup width offset = hash value% (device screen width - 2 × original popup width); The calculation formula of the pop-up window height offset is: Pop-up window height offset = hash value % (device screen height - 2 × original pop-up window height).

5. The pop-up window display method for shielding plug-ins according to claim 1 is characterized in that: The calculation based on the hash value, the device screen size, and the original pop-up window size to obtain the pop-up window size offset includes: Convert the hash value into a decimal value; The pop-up window size offset is obtained by performing calculation based on the decimal value, the device screen size, and the original pop-up window size.

6. The pop-up window display method for shielding plug-ins according to claim 1 is characterized in that: The visual control area includes a flash sale button, and the method further includes: Performing random calculation based on the original position coordinates of the flash sale button to obtain the target position coordinates; The position of the flash sale button in the visual control area is adjusted according to the target position coordinates.

7. The pop-up window display method for shielding plug-ins according to claim 1 is characterized in that: The visual control area includes a flash sale button, and the method further includes: Obtain at least one RGB color value based on the hash value; At least one noise point is generated according to the RGB color value, and the noise point is added to the flash sale button.

8. A pop-up window display device for shielding plug-ins, characterized in that: include: An acquisition module, used for acquiring a user account in response to a click event of a preset flash sale activity; A first calculation module, configured to perform a hash operation based on the user account to obtain a hash value; A second calculation module is used to calculate based on the hash value, the device screen size, and the original pop-up window size to obtain a pop-up window size offset, wherein the original pop-up window size is the size of the original pop-up window of the preset flash sale activity; A first pop-up window setting module, used for adjusting the size of the original pop-up window according to the pop-up window size offset to obtain a first pop-up window; The second pop-up window setting module is used to set the pop-up window background outside the visual control area in the first pop-up window to transparent, obtain the second pop-up window, and display the second pop-up window.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the pop-up window display method for shielding plug-ins as described in any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the pop-up window display method for shielding plug-ins as described in any one of claims 1 to 7 is implemented.