CN115033317A - Bullet frame processing method and device, electronic equipment and readable storage medium - Google Patents

Bullet frame processing method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN115033317A
CN115033317A CN202111328220.3A CN202111328220A CN115033317A CN 115033317 A CN115033317 A CN 115033317A CN 202111328220 A CN202111328220 A CN 202111328220A CN 115033317 A CN115033317 A CN 115033317A
Authority
CN
China
Prior art keywords
frame
bullet
box
pop
popup
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111328220.3A
Other languages
Chinese (zh)
Other versions
CN115033317B (en
Inventor
郝占峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202111328220.3A priority Critical patent/CN115033317B/en
Publication of CN115033317A publication Critical patent/CN115033317A/en
Application granted granted Critical
Publication of CN115033317B publication Critical patent/CN115033317B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides a bullet frame processing method, a bullet frame processing device, electronic equipment and a readable storage medium, wherein the method comprises the following steps: responding to the operation that a user triggers the electronic equipment to display the bullet frame, and acquiring the grade of the bullet frame triggered by the operation; acquiring a processing strategy of the bullet frame according to the level of the bullet frame and the mapping relation between the level and the processing strategy; and processing the bullet frame by adopting a bullet frame processing strategy. When a user executes an operation of triggering the electronic device to display the popup frame, the level of the popup frame can be acquired, and then the popup frame is processed based on the level of the popup frame.

Description

Bullet frame processing method and device, electronic equipment and readable storage medium
Technical Field
The embodiment of the application relates to a terminal technology, and in particular relates to a popup frame processing method and device, an electronic device and a readable storage medium.
Background
The user can install the application program in the electronic equipment, and the user can navigate, listen to songs, watch videos and the like by using the application program. With the development of the application program, third-party application components can be integrated in the application program, so that the functions of the application program become more powerful.
Currently, in the process of using the electronic device by a user, various types of pop-up frames, such as advertisement pop-up frames, error pop-up frames, etc., may appear in an application program. Therefore, a method of handling a pop frame within an application is needed.
Disclosure of Invention
The embodiment of the application provides a method and a device for processing a popup box, electronic equipment and a readable storage medium, which can effectively process the popup box in an application program.
In a first aspect, an execution main body for executing the bounding box processing method may be an electronic device or a chip in the electronic device, and the following description takes the electronic device as the execution main body as an example. In the method, when the electronic device detects that the user triggers the electronic device to display the popup frame, the level of the popup frame triggered by the operation can be acquired. The electronic equipment stores the mapping relation between the grade and the processing strategy, so that the electronic equipment can acquire the processing strategy of the popup frame according to the grade of the popup frame and the mapping relation between the grade and the processing strategy, and further process the popup frame by adopting the processing strategy of the popup frame.
Illustratively, the bullet frame triggered by the user operation is an advertisement bullet frame, the rank of the advertisement bullet frame is high, and the processing policy of the bullet frame with the rank of the high is "no bullet frame shielding", so that the electronic device may shield the advertisement bullet frame, that is, the advertisement bullet frame is not displayed on the interface of the electronic device, thereby improving the user experience. The advertisement bullet frame is taken as an example for illustration, in the embodiment of the application, when the electronic device detects that a user executes an operation of triggering the electronic device to display the bullet frame, a processing strategy of the bullet frame is obtained in advance, and then the bullet frame is processed by adopting the processing strategy corresponding to the bullet frame, so that the bullet frame of the electronic device can be effectively processed, and the user experience is improved.
In one possible implementation manner, the electronic device stores a mapping relationship between the operation and the level of the bullet box. The electronic device may obtain the level of the popup box triggered by the operation according to the operation and the mapping relationship between the operation and the level of the popup box.
In an embodiment, the operation of the user triggering the electronic device to display the pop-up box is: the user operates a target triggerable control displayed on the interface of the electronic equipment, and the mapping relation between the operation and the level of the popup frame is as follows: the mapping relationship between the identification of the control and the level of the bullet box can be triggered. That is to say, the electronic device stores a mapping relationship between an identifier of the triggerable control and a level of the pop-up box, and the electronic device may obtain the level of the target triggerable control based on the "mapping relationship between the identifier of the triggerable control and the level of the pop-up box" in response to detecting that the target triggerable control is operated by the user.
The following describes the processing strategy of the bullet boxes in different levels:
firstly, when the processing strategy is a shielding bullet frame, the bullet frame triggered by the operation is shielded.
For example, if the processing policy of the advertisement bullet box is a shield bullet box, the electronic device may shield the advertisement bullet box in response to the user performing an operation of triggering the electronic device to display the advertisement bullet box, that is, the advertisement bullet box is not displayed, and the user does not feel the advertisement bullet box, so that the user experience may be improved.
When the processing strategy is opened by the user's consent, outputting first prompt information, wherein the first prompt information is used for prompting the user whether to open the bullet box; responding to an instruction that the user agrees to open a bullet frame, and displaying the bullet frame triggered by the operation; and shielding the bullet box triggered by the operation in response to receiving the instruction that the user disagrees with opening the bullet box.
For example, if the processing policy of the function guidance information box is to be opened by the user's approval, the electronic device may output the first prompt information in response to the user performing an operation of triggering the electronic device to display the function guidance information box. The electronic equipment can display the function guide information bullet frame in response to receiving an instruction that the user agrees to open the bullet frame, and the electronic equipment shields the function guide information bullet frame in response to receiving an instruction that the user disagrees to open the bullet frame.
In one embodiment, the electronic device may further guide the information pop-up box in response to not receiving an instruction that the user agrees to open the pop-up box within a preset time period.
Thirdly, when the processing strategy is based on the opening of the elastic frame switch, acquiring the state of the elastic frame switch; responding to the state of the pop frame switch as open, and displaying the pop frame triggered by the operation; and shielding the bullet frame triggered by the operation in response to the state of the bullet frame switch being closed.
For example, if the processing policy for inducing the information popup box is turned on based on the state of the popup box switch, the electronic device obtains the state of the popup box switch in response to the user performing an operation of triggering the electronic device to display the induced information popup box. The electronic equipment responds to the state of the elastic frame switch as being on, the induction information elastic frame can be displayed, and responds to the state of the elastic frame switch as being off, and the induction information elastic frame is shielded.
The following describes a process of acquiring, by the electronic device, a "mapping relationship between an operation and a level of a pop-up box", that is, a "mapping relationship between an identifier of a triggerable control and a level of a pop-up box":
in one embodiment, the user-triggered pop-up box displayed by the electronic device is: a popup box in an application.
The electronic device may traverse the triggerable control in the application program according to the source code of the application program to obtain a bullet frame corresponding to the triggerable control of the triggerable bullet frame in the application program, so as to obtain a level of the bullet frame corresponding to each triggerable control. The electronic device may then store the identification of each triggerable control, and the rank of the pop-up box corresponding to the identification of each triggerable control.
The manner for the electronic device to obtain the level of the popup box corresponding to each triggerable control may be: and the electronic equipment calls the stack information to obtain the source of the popup frame corresponding to each triggerable control. And the electronic equipment acquires the type of the bullet frame corresponding to each triggerable control according to the title and the information of the bullet frame corresponding to each triggerable control in the source code. The electronic device can query the title and the information of the bullet box corresponding to each triggerable control in the source code, and determine the type of the bullet box corresponding to the title or the information containing the keywords preset by the first type of bullet box as the first type.
Thus, after the electronic device obtains the source of the popup frame corresponding to each triggerable control, the type of the popup frame corresponding to each triggerable control, the electronic device may obtain the level of the popup frame corresponding to each triggerable control according to the source of the popup frame corresponding to each triggerable control, the type of the popup frame corresponding to each triggerable control, and a first mapping relationship, where the first mapping relationship is: the source of the bullet box, the type of the bullet box, and the mapping relation of the level of the bullet box.
It should be understood that the electronic device may store the first mapping relationship, the first mapping relationship may be included in other mapping relationships, or the first mapping relationship may be an independent mapping relationship.
In one possible implementation, the electronic device may also query for the specification of the popup box based on the preset address. For example, the preset address may be an address of "issuing a rule for a pop-up box of an application", and the address may be a web address or an applet address, which is not limited in this embodiment of the application.
The electronic device may analyze the rule according to a keyword corresponding to a preset bullet box of each level, and obtain the second mapping relationship. Wherein the second mapping relationship is: the source of the bullet frame, the type of the bullet frame, the grade of the bullet frame, and the mapping relation of the processing strategy of the bullet frame, wherein the second mapping relation comprises the first mapping relation.
For example, the electronic device may parse a statement that includes "a keyword corresponding to a bullet box of a level" in the specification to obtain a processing policy, a source, and a type of the bullet box of the level that is limited in the specification.
In addition, when traversing the triggerable control in the application program and acquiring the level of the bullet frame, the electronic device can also detect whether the bullet frame corresponding to the triggerable control is a problem bullet frame. And if the bullet frame is a problem bullet frame, the electronic equipment outputs second prompt information, and the second prompt information is used for indicating that the bullet frame corresponding to the triggerable control is modified.
In a possible implementation manner, the electronic device may obtain a style of the bullet frame corresponding to the triggerable control, and further detect whether the bullet frame corresponding to the triggerable control is a problem bullet frame based on the style of the bullet frame corresponding to the triggerable control. For example, if the style of the pop-up box is "the ratio of the size of the closing control of the pop-up box corresponding to the triggerable control to the size of the pop-up box corresponding to the triggerable control", and if "the ratio of the size of the closing control of the pop-up box corresponding to the triggerable control to the size of the pop-up box corresponding to the triggerable control" is smaller than a preset ratio, "the electronic device may determine that the pop-up box corresponding to the triggerable control is a problem pop-up box.
And for the problem bullet frame, the electronic equipment can output second prompt information to prompt that the bullet frame corresponding to the triggerable control is modified.
In a second aspect, an embodiment of the present application provides a cartridge frame processing apparatus, which may include:
the electronic equipment comprises a popup frame management module, a popup frame display module and a popup frame display module, wherein the popup frame management module is used for responding to the operation of triggering the electronic equipment to display a popup frame by a user and acquiring the grade of the popup frame triggered by the operation;
the compliance ensuring module is used for acquiring the processing strategy of the bullet frame according to the grade of the bullet frame and the mapping relation between the grade and the processing strategy;
and the system management and control module is used for processing the bullet frame by adopting the processing strategy of the bullet frame.
In a possible implementation manner, the elastic frame management module is specifically configured to obtain the level of the elastic frame triggered by the operation according to the operation and a mapping relationship between the operation and the level of the elastic frame.
In a possible implementation manner, the operation of the user triggering the electronic device to display the pop-up box is: the user operates a target triggerable control displayed on the interface of the electronic equipment, and the mapping relation between the operation and the level of the popup frame is as follows: the mapping relationship between the identification of the control and the level of the bullet box can be triggered.
In a possible implementation manner, the system management and control module is specifically configured to mask the bullet box triggered by the operation when the processing policy is to mask the bullet box.
In a possible implementation manner, the system management and control module is specifically configured to output first prompt information when the processing policy is that the processing policy is opened by agreement of a user, where the first prompt information is used to prompt the user whether to open the pop-up box. Wherein, in response to receiving an instruction that the user agrees to open a popup box, the popup box triggered by the operation is displayed; and shielding the bullet box triggered by the operation in response to receiving the instruction that the user does not agree to open the bullet box.
In a possible implementation manner, the system management and control module is specifically configured to acquire the state of the popup box switch when the processing policy is that the popup box switch is turned on based on the state of the popup box switch. Responding to the state of the pop frame switch as open, and displaying the pop frame triggered by the operation; and shielding the bullet frame triggered by the operation in response to the state of the bullet frame switch being closed.
In a possible implementation manner, the user-triggered pop-up box displayed by the electronic device is: a popup box in an application.
The compliance ensuring module is further used for traversing the triggerable control in the application program according to the source code of the application program to obtain a popup box corresponding to the triggerable control for triggering the popup box in the application program; acquiring the level of a bullet frame corresponding to each triggerable control; and storing the identification of each triggerable control and the grade of the bullet frame corresponding to the identification of each triggerable control.
In a possible implementation manner, the compliance ensuring module is specifically configured to call stack information and obtain a source of a popup box corresponding to each triggerable control; acquiring the type of the bullet frame corresponding to each triggerable control according to the title and the information of the bullet frame corresponding to each triggerable control in the source code; obtaining the level of the pop-up frame corresponding to each triggerable control according to the source of the pop-up frame corresponding to each triggerable control, the type of the pop-up frame corresponding to each triggerable control, and a first mapping relationship, where the first mapping relationship is: the source of the bullet box, the type of the bullet box, and the mapping relation of the level of the bullet box.
In one possible implementation, each type of bullet box is preset with corresponding keywords.
And the compliance ensuring module is specifically used for inquiring the title and the information of the bullet box corresponding to each triggerable control in the source code, and determining the type of the bullet box corresponding to the title or the information containing the preset keywords of the first type of bullet box as the first type.
In one possible implementation, the compliance assurance module is further configured to query the stipulations of the popup box based on a preset address; analyzing the rule according to the preset keywords corresponding to the bullet boxes at all levels to obtain a second mapping relation, wherein the second mapping relation is as follows: the source of the bullet frame, the type of the bullet frame, the grade of the bullet frame, and the mapping relation of the processing strategy of the bullet frame, wherein the second mapping relation comprises the first mapping relation.
In a possible implementation manner, the pop frame management module is further configured to detect whether the pop frame corresponding to the triggerable control is a problem pop frame; if yes, the pop-up frame management module outputs second prompt information, and the second prompt information is used for indicating that the pop-up frame corresponding to the triggerable control is modified.
In a possible implementation manner, the bullet frame management module is specifically configured to obtain a style of a bullet frame corresponding to the triggerable control; and detecting whether the bullet frame corresponding to the triggerable control is a problem bullet frame or not based on the style of the bullet frame corresponding to the triggerable control.
In a possible implementation manner, the box management module is specifically configured to obtain a ratio of a size of a closing control of a box corresponding to the triggerable control to a size of a box corresponding to the triggerable control; and if the occupation ratio is smaller than a preset occupation ratio, determining that the bullet frame corresponding to the triggerable control is a problem bullet frame.
In a third aspect, an embodiment of the present application provides an electronic device, which may include: a processor, a memory. The memory is for storing computer executable program code, the program code comprising instructions; the instructions, when executed by the processor, cause the electronic device to perform the method as in the first aspect.
In a fourth aspect, an embodiment of the present application provides an electronic device, which may be the bezel processing apparatus of the second aspect or the electronic device of the first aspect. The electronic device may comprise means, modules or circuits for performing the methods provided in the first aspect above.
In a fifth aspect, embodiments of the present application provide a computer program product containing instructions, which when run on a computer, cause the computer to perform the method of the first aspect.
In a sixth aspect, embodiments of the present application provide a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to perform the method in the first aspect.
For the beneficial effects of the possible implementation manners of the second aspect to the sixth aspect, reference may be made to the beneficial effects brought by the first aspect, which are not described herein again.
Drawings
FIG. 1A is a schematic view of a bullet box;
FIG. 1B is a schematic view of another bullet box;
FIG. 1C is a schematic view of another bullet box;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of an embodiment of a bullet frame processing method according to an embodiment of the present disclosure;
fig. 4A is a schematic diagram of a bezel processing provided in the present application;
fig. 4B is another schematic diagram of the processing of the bullet frame according to the embodiment of the present application;
fig. 4C is another schematic diagram of a bezel processing provided in the present application;
fig. 5 is a schematic diagram illustrating a state in which a user sets a popup box switch on a setting interface of an application according to an embodiment of the present application;
fig. 6 is a schematic flowchart of obtaining a mapping relationship between an operation and a level according to an embodiment of the present application;
FIG. 7 is a diagram illustrating an application analysis module analyzing source code according to an embodiment of the present disclosure;
FIG. 8 is a schematic diagram of a processing strategy provided in an embodiment of the present application;
fig. 9 is a schematic flowchart of an embodiment of a bullet frame processing method according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The user often encounters the situation that the electronic device displays the bullet box in the process of using the electronic device. It should be understood that the bullet box in the embodiment of the present application refers to a bullet box in an Application (APP). The pop-up box in the application may include: a popup box of the application itself or a popup box of a third-party Software Development Kit (SDK) integrated in the application. In one embodiment, the application programs may include, but are not limited to: video type applications, social type applications, shopping type applications, etc., and the applications may also be system applications.
Fig. 1A-1C are schematic diagrams of different bullet boxes. Referring to a and b in fig. 1A, when the user opens the video-type application, the electronic device displays a popup into "teenager mode". Referring to a and B in fig. 1B, when a user opens a news link recommended by an application, the electronic device displays a pop-up box "go to the news application to view the full text". Referring to a and b of fig. 1C, when the user opens the shopping application, the electronic device displays an advertisement frame, such as a get red envelope. In the process of using the electronic equipment by a user, the electronic equipment can display different types of pop-up frames, advertisement pop-up frames, error pop-up frames and other pop-up frames which are not required by the user, so that the use of the user is influenced, and the user experience is poor.
Based on the above technical problem, an embodiment of the present application provides a method for processing a pop-up box, when a user performs an operation of triggering an electronic device to display a pop-up box, the electronic device may identify a type of the pop-up box to be triggered by the user in advance, and then process the different types of pop-up boxes by using different strategies, so that the purpose that the electronic device does not display an advertisement pop-up box, an error pop-up box, and other pop-up boxes that are not required by the user can be achieved, and user experience is improved.
The electronic device in the embodiment of the present application may be a User Equipment (UE), a terminal (terminal), a server, a test device of an application, and the like. For example, the user device may be a mobile phone, a tablet computer (PAD), a Personal Digital Assistant (PDA), a handheld device with a wireless communication function, a computing device, a vehicle-mounted device or a wearable device, a Virtual Reality (VR) terminal device, an Augmented Reality (AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in smart home (smart home), and the like, and the form of the electronic device is not particularly limited in this embodiment.
The following first briefly describes a scenario to which the bullet box processing method provided in the embodiment of the present application is applied:
scene one: test scenarios for applications.
After a worker (e.g., a developer) of the application develops the application, the worker may use the testing device to test the application to detect whether the pop-up box in the application conforms to the specification (i.e., whether the pop-up box is in compliance). Compliance with the specification means: according to the law and regulation for the specification of the bullet box in the application program, the specific test method can refer to the relevant description in the following embodiments.
For example, if the pop-up box in the application complies with the specification, the processing policy of the worker on the application may be: and the application program is brought online. If the pop frame in the application program does not meet the specification, the worker may modify and adjust the pop frame that does not meet the specification, so that the pop frame in the application program meets the specification, and the specific processing policy may refer to the related description in the following embodiments.
Scene two: and (4) a scene of an application program online.
When the application program is online, the server can test the online application program to detect whether the pop-up frame in the application program meets the regulations. For example, after an application is online in an application mall, a server corresponding to the application mall may test the application.
For example, if the pop-up box in the application complies with the specification, the processing policy of the server on the application may be: allowing the application to be online at the application mall. If the pop-up frame in the application program does not meet the specification, the processing policy of the server on the application program may be: and prompting to modify and adjust the bullet frames which do not accord with the specification in the application program so as to enable the bullet frames in the application program to be online after the bullet frames accord with the specification, wherein specific processing strategies can refer to the relevant description in the following embodiments.
Scene three: the user uses the scenario of the application.
After the application program is on line, the user can download the application program to the electronic equipment. When the user uses the application program on the electronic device, the electronic device can detect the pop-up frame in the application program to detect whether the pop-up frame in the application program meets the regulations or not, and further adopt different processing strategies for the pop-up frame.
For example, if the pop-up box in the application conforms to the specification, the processing policy of the application by the electronic device may be: and displaying the bullet frame in the application program. If the pop-up frame in the application program does not meet the specification, the processing policy of the server on the application program may be: the bullet box in the application program is shielded, and the specific processing strategy can refer to the relevant description in the following embodiments.
Before introducing the bezel processing method provided in the embodiment of the present application, a structure of an electronic device is described:
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Referring to fig. 2, the electronic device may include: the system comprises an application program, a compliance guarantee module, a bullet frame management module, an application program analysis module, a system management and control module and an analysis result management module.
The application program may be an application program to be detected.
In one embodiment, a third party SDK may be integrated into the application, and the third party SDK is used to assist the application in implementing more functions. For example, a "login sharing" third-party SDK may be included in the social application, and when the user logs in the social application on the first device, information for prompting "logged in on the first device" is displayed on the second device.
And the bullet frame management module is used for identifying the type of the bullet frame in the application program. Wherein, the higher the level of the bullet box, the greater the impact on the user experience. In one embodiment, the rating of the advertisement frame as described above in fig. 1C is illustratively greater than the rating of the frame entering "teenager mode" in fig. 1A.
And the compliance ensuring module is used for acquiring the regulations of the laws and regulations on the different types of the popup frames in the application program and acquiring the processing strategies of the different types of the popup frames according to the regulations. In one embodiment, the compliance assurance module may store therein a website address such as the Ministry of industry "issues a specification of different types of frames in the application" that the Ministry of industry is specifying. The compliance assurance module may periodically access the web page of the Ministry of industry and correspondence to obtain "regulations for different types of pop-up boxes in the application" based on the website address.
It should be understood that the specification of different types of pop-up frames in the application program by the letter of industry is an example, and the specification of different types of pop-up frames in the application program by the letter of industry is not limited in the embodiment of the present application, and may also be other specifications of different types of pop-up frames in the application program, and in the following embodiments, the website address of the letter of industry or other website addresses that issue "specification of different types of pop-up frames in the application program" are collectively referred to as a preset address.
And the application program analysis module is used for analyzing the codes of the application programs and traversing the functions in the application programs so as to detect whether the pop-up frames in the application programs meet the regulations or not.
And the system management and control module is used for processing the bullet frames of different types by adopting corresponding processing strategies.
And the analysis result management module is used for sending the adjustment information to the popup box which does not accord with the regulation in the application program to a developer of the application program or an online manager of the application program. The adjustment information is used for indicating that the modification adjustment is carried out on the bullet frames which do not accord with the specification in the application program, so that the bullet frames in the application program accord with the specification.
It should be understood that the compliance assurance module, the pop-up box management module, the application analysis module, the system management and control module, and the analysis result management module may refer to the related description of fig. 3 described below.
The following describes a bullet frame processing method provided in the embodiments of the present application with reference to specific embodiments. The following several embodiments may be combined with each other and may not be described in detail for the same or similar concepts or processes in some embodiments.
Fig. 3 is a schematic flowchart of an embodiment of a bullet frame processing method according to an embodiment of the present application. Referring to fig. 3, a bullet frame processing method provided in an embodiment of the present application may include:
s301, the pop-up frame management module responds to the operation of triggering the pop-up frame by the user and obtains the level of the pop-up frame triggered by the user.
The bullet box classification database stores a mapping relationship between the operation of the user-triggered bullet box and the level of the user-triggered bullet box, and the mapping relationship is simply referred to as "mapping relationship between the operation and the level" in the following description. The level of the bullet box may include, but is not limited to: high, medium and low, the higher the level of the bullet box, the greater the impact of the characterization bullet box on the user experience.
In one embodiment, the mapping of operations and levels may be: the application analysis module analyzes the code (source code) of the application and traverses the function detection in the application, which can be referred to the following description in fig. 6.
In one embodiment, the mapping of operations and levels may be: in the process that the user uses the electronic equipment historically, after the user executes the operation of triggering the bullet frame, the bullet frame management module can acquire the grade of the bullet frame displayed on the electronic equipment, and then the bullet frame management module can store the mapping relation between the operation and the grade in the bullet frame classification database. It should be noted that, the manner in which the pop-up frame management module obtains the rank of the pop-up frame displayed on the electronic device may specifically refer to the following description in fig. 6.
In this embodiment, the elastic frame management module may determine, based on a mapping relationship between an operation and a level, the level of the elastic frame triggered by the user before the electronic device displays the elastic frame triggered by the user when detecting the operation of triggering the elastic frame by the user, so as to contribute to "processing the elastic frame by using different processing strategies according to different elastic frames in advance". That is to say, when detecting the operation of triggering the pop frame by the user, the pop frame management module may query the level of the pop frame mapped by the operation of triggering the pop frame by the user in the pop frame classification database, and further obtain the level of the pop frame triggered by the user.
And S302, the compliance ensuring module acquires the processing strategy of the popup frame triggered by the user according to the grade of the popup frame and the mapping relation between the grade and the processing strategy.
After the bullet frame management module obtains the level of the bullet frame triggered by the user, the bullet frame management module can synchronize the level of the bullet frame triggered by the user with the compliance guarantee module.
In an embodiment, the mapping relationship between the class of the bullet frame and the processing policy is stored in the bullet frame rectification database, the compliance guarantee module may query the bullet frame rectification database in response to receiving the class of the user-triggered bullet frame synchronized by the bullet frame management module, and obtain the user-triggered processing policy of the bullet frame mapped by the class of the user-triggered bullet frame based on the mapping relationship between the class stored in the bullet frame rectification database and the processing policy.
Illustratively, the following table one is a mapping relationship between the levels of the bullet boxes and the processing strategies stored in the bullet box correction database:
watch 1
Figure BDA0003347724370000071
And the compliance ensuring module can inquire the processing strategy corresponding to the grade of the bullet frame in the first table according to the grade of the bullet frame. For example, if the level of a bullet box is high, the compliance assurance module may determine that the processing policy for the bullet box is "mask not bullet box".
And S303, the system management and control module processes the bullet frame according to the processing strategy of the bullet frame.
After acquiring the processing strategy of the popup frame, the compliance ensuring module may synchronize the processing strategy of the popup frame with the system management and control module. The system management and control module responds to the processing strategy of the bullet frame received from the compliance ensuring module, and can process the bullet frame according to the processing strategy of the bullet frame.
As shown in the first table, when the rank of the bullet box is high, the processing strategy is: the bullet frame is not shielded, that is to say, the system management and control module can shield the bullet frame, and the bullet frame is not displayed on the interface of the electronic device, so that after the user performs the operation of triggering the bullet frame, the bullet frame is not displayed on the electronic device, and therefore the user cannot see the bullet frame.
Illustratively, the advertisement frame as shown in b of FIG. 1C above is a nuisance message frame, the rating of the frame being high. Because the electronic device displays the harassment information popup when the user opens the shopping application, in this embodiment of the application, the popup management module may obtain that the user-triggered popup is in a high level in response to an operation of opening the shopping application (i.e., an operation of triggering an advertisement popup) by the user, that is, in response to detecting that the user clicks an icon of the shopping application on the electronic device, by the popup management module in a in fig. 4A. In this way, the compliance assurance module may obtain the processing policy as a mask no-pop frame based on the rank of the pop frames. Accordingly, the system management and control module can shield the advertisement bullet frame, so that the advertisement bullet frame is not displayed when the electronic device displays the interface of the shopping application program. Illustratively, unlike b in fig. 1C described above, referring to b in fig. 4A, the electronic device displays the main interface of the shopping application, but does not display the advertisement frame.
When the grade of the bullet frame is middle, the processing strategy is as follows: and (5) popping the frame after the user agrees. That is to say, the system management and control module may control the electronic device to output first prompt information, where the first prompt information is used to indicate whether the user selects to approve displaying the popup frame, and then the system management and control module may control the electronic device to display the popup frame on the interface or not based on the operation of the user. In an embodiment, the first prompt message may be a text prompt message or a voice prompt message, which is not limited in this application.
Illustratively, the box as shown in b of fig. 1A above is a function guidance information box, and the level of the box is middle. Since the electronic device displays the function guidance information popup when the user opens the video application, in this embodiment, the popup management module may obtain that the user triggered popup is of a medium level in response to an operation of the user opening the video application (that is, an operation of triggering the function guidance information popup), that is, in response to detecting that the user clicks an icon of the video application on the electronic device, by the popup management module in a in fig. 4B. In this manner, the compliance assurance module may get the processing policy to agree to the bullet box by the user based on the rank of the bullet box.
Correspondingly, the system management and control module can control the electronic device to display first prompt information on the interface so as to prompt a user to select whether to open the function guide information bullet box. Illustratively, referring to B in fig. 4B, the electronic device may display a first prompt message on the main interface of the video-class application as to whether to open a pop-up box entering the "teenager mode", as well as a "confirm" control and a "cancel" control. If the user clicks the "cancel" control, the system management and control module may shield the pop-up box entering the "teenager mode" and does not display the pop-up box, as shown in fig. 4B with reference to c. If the user clicks the "confirm" control, the system management and control module may control the electronic device to display a popup box entering the "teenager mode," which is shown with reference to d in fig. 4B.
When the level of the bullet box is low, the processing strategy is: and popping the frame based on the state of the user setting the frame popping switch. It should be understood that, in an embodiment, a pop frame switch may be displayed on a setting interface of the electronic device or a setting interface of the application, and a user may turn on the pop frame switch to trigger the system management and control module to display the pop frame in the application, and may also turn off the pop frame switch to trigger the system management and control module to shield the pop frame in the application. That is, when the level of the bullet box is low, the system management and control module may process the bullet box based on the state of the user-set bullet box switch. If the state that the user sets the pop frame switch is the on state, the system control module can display the pop frame in the application program, and if the state that the user sets the pop frame switch is the off state, the system control module can shield the pop frame in the application program. It should be understood that when the user does not set the state of the bezel switch, the state of the bezel switch defaults to the off state.
For example, the process of setting the state of the pop-up switch by the user is first illustrated in fig. 5. It should be understood that fig. 5 exemplifies a state in which the user sets the popup switch on the setting interface of the application. Referring to fig. 5, the setting interface of the application includes: a pop-up switch 51. The user can operate the bezel switch 51 to change the state of the bezel switch. In one embodiment, the system management and control module may store the state of the bullet box switch.
Illustratively, the bullet box as shown by B in FIG. 1B above is an inducement information bullet box, and the rank of the bullet box is low. Because the electronic device displays the guidance information box when the user opens the news link, in this embodiment of the application, the box management module responds to an operation of opening the news link by the user (that is, an operation of triggering the guidance information box), that is, the box management module in a in fig. 4C responds to detection of the user clicking the news link, and may acquire that the level of the box triggered by the user is low.
In this way, the compliance assurance module may derive a processing policy to frame based on the level of the frame based on the state of the user setting the frame switch. Accordingly, the system management and control module may detect the state of the pop-up frame switch (or process the pop-up frame based on the stored state of the pop-up frame switch). Referring to fig. 5, for example, if the state of the pop frame switch is an off state, the system management and control module may shield the guidance information pop frame, so that the electronic device does not display the pop frame. As shown with reference to b in fig. 4C, the electronic device does not display the inducement information bullet box.
In the embodiment of the application, the elastic frame management module responds to the operation of triggering the elastic frame by the user, can acquire the grade of the elastic frame triggered by the user, the compliance guarantee module acquires the processing strategy of the elastic frame triggered by the user according to the grade of the elastic frame and the mapping relation between the grade and the processing strategy, and the system management and control module processes the elastic frame according to the processing strategy of the elastic frame. In the method for processing the pop-up frame, the electronic device can acquire the processing strategy of the pop-up frame triggered by the operation of the user in advance based on the operation of the user, and then execute the processing of different strategies for the pop-up frames of different grades in the application program, the electronic device can shield the pop-up frames which affect the user experience, such as the advertisement pop-up frame, and the pop-up frame can be processed according to the setting of the user or the selection of whether the pop-up frame is displayed by the user, so that the habit of the user can be fitted more, and the user experience is further improved.
As the foregoing description explains the "mapping relationship between operations and levels" used by the pop-up box management module, the following description explains a process of how to obtain the "mapping relationship between operations and levels", and further explains the functions of each module in the electronic device:
in one embodiment, the staff may make a mapping relationship of "attribute of the application and processing policy" as shown in table two below according to the regulations of the law and regulations on the pop-up box in the application. Wherein, the property of the bullet frame can include: the level of the shot box, the source of the shot box, and the type of shot box.
Sources of the bullet box may include: the method comprises the steps of enabling an application program to automatically pop a frame, enabling a system to pop a frame, and enabling a third-party SDK to be integrated in the application program to pop a frame. Illustratively, taking a bullet box integrated with the third-party SDK in the application as an example, the bullet box integrated with the third-party SDK in the application is characterized in that: the pop-up box displayed on the electronic device is triggered by the integration of a third party SDK in the application. In the following table two, the source of the bullet box is taken as the bullet box of the application itself and the bullet box of the third-party SDK integrated in the application is taken as an example for explanation.
Types of the bullet box may include, but are not limited to: harassment information bomb frame, function guide information bomb frame, guidance information bomb frame, etc. Illustratively, a nuisance infoball such as a billboard box or the like, a functional guidance infoball such as the one shown in FIG. 1A, or the like.
The grade of the bullet frame is exemplarily described by taking high, medium and low as an example in the embodiments of the present application.
Watch two
Figure BDA0003347724370000091
For example, if the law and regulation stipulates that the pop-up box in the application program (hereinafter referred to as the stipulation) is "strictly forbidden to use the advertisement pop-up box in the application program" and "strictly forbidden pop-up box" is the highest level of processing for the pop-up box, the staff may set the level of the advertisement pop-up box (e.g., harassment information pop-up box in table two) to be high and set the processing policy for the advertisement pop-up box to be "shielded not pop-up box" based on the stipulation before detecting the pop-up box for the application program.
For example, if an application needs to perform a pop-up frame test of the application after being developed, a worker may set the level of an advertisement pop-up frame to be high, set the processing policy for the advertisement pop-up frame to be a "no pop-up frame" based on a specification in advance, and store the mapping relationship between the "advertisement pop-up frame, the level high, and the no pop-up frame" in the test device (i.e., the electronic device) in advance, so that the test device may use the mapping relationship between the "advertisement pop-up frame, the level high, and the no pop-up frame" when the test device performs pop-up frame detection on the application.
For example, if a user installs an application in an electronic device, during a manufacturing phase of the electronic device, a worker may set a level of an advertisement bullet frame to be high, set a processing policy for the advertisement bullet frame to be a "no bullet shielding frame" based on a specification in advance, and store a mapping relationship between the "advertisement bullet frame, the level high, and the no bullet shielding frame" in the electronic device in advance, so that the electronic device uses the mapping relationship between the "advertisement bullet frame, the level high, and the no bullet shielding frame" when detecting a bullet frame in the application.
In one embodiment, the rank and processing strategy of the bullet boxes may be different for the same type of bullet boxes but from different sources, and the above table two is illustrated with the same as an example. For example, if the rule is "forbid the pop box of the third-party SDK in the application", the source in the above table two is the pop box of "integrating the third-party SDK in the application", and the processing policy is "mask no pop box" regardless of the level of the pop box and the type of the pop box.
In one embodiment, the mapping of "attributes of application and processing policy" as shown in table two below may not be made by a human operator because of the high cost of the manual approach. In the embodiment of the application, the compliance ensuring module may store a preset address, where the preset address is an address specified for issuing. Thus, the compliance assurance module may obtain the provisions issued at the preset address. The compliance assurance module may analyze the specification to generate a mapping of "attributes of the application and processing policies" as shown in table two above.
The compliance assurance module extracts keywords in the specification to generate a mapping relation of the attributes of the application program and the processing strategies. For example, by taking a bullet box with a high level as an example, the keyword corresponding to the high level may be a bullet box, a mask, a strict prohibition, and the like, and the compliance ensuring module generates a mapping relation of "attribute of application and processing policy" according to semantics of a sentence in response to detecting the sentence in which the rule includes the keyword. If specified as "strictly disallowing ad frames in the application," the compliance assurance module may determine that the ad frame is a high-ranked frame based on the rule. It should be understood that the keywords corresponding to different levels may be different. Here, the bullet box with the high level is taken as an example, and the description of the "middle" and "low" levels is omitted.
In one embodiment, the mapping of the "attributes of the application and the processing policy" may be referred to as a second mapping.
In this embodiment, the compliance ensuring module may obtain the rule issued at the preset address, update the mapping relationship between the attribute of the application program and the processing policy in time, and improve the accuracy of the pop-up box processing.
In summary, no matter the mapping relationship between the attributes of the application program and the processing policy is formulated by the staff or the mapping relationship between the attributes of the application program and the processing policy is updated by the compliance guarantee module, the mapping relationship between the attributes of the application program and the processing policy is acquired and then stored in the pop-up frame correction database. Therefore, the mapping relationship between the attribute of the application program and the processing policy can be stored in the pop-up box correction database, so that the electronic device can obtain the processing policy corresponding to the pop-up box based on the mapping relationship between the attribute of the application program and the processing policy. In one embodiment, the bullet box correction database may store tables one and two as above, or the bullet box correction database may store only tables two as above.
The following describes a process of acquiring the "mapping relationship between operation and level" by the electronic device:
first, fig. 6 is a schematic flowchart of a process of analyzing source codes by an application program analysis module according to an embodiment of the present application. Referring to fig. 6, the process of analyzing the source code of the application program by the application program analysis module and obtaining the "mapping relationship between operation and level" may include:
s601, the application program analysis module traverses the triggerable control in the application program according to the source code of the application program to obtain the bullet frame corresponding to the triggerable control.
In such an embodiment, the application analysis module may obtain the source code of the application. For example, when an electronic device (e.g., a testing device) tests an application after a worker develops the application, the application analysis module obtains source code of the application.
In one embodiment, the application analysis module may simulate the process of using the application by the user according to the source code of the application through an algorithm (e.g., smartchip algorithm), thereby virtually traversing the triggerable control in the trigger application. When the triggerable control is triggered virtually, the electronic equipment displays a bullet frame, and the application program can correspondingly store the triggerable control and the bullet frame corresponding to the triggerable control. It should be appreciated that the triggerable controls may include: keys, links, pictures, etc. that the user can click on. After the triggerable control is operated, the electronic equipment responds to the operation and displays an interface after the triggerable control is operated. It should be understood that the triggerable control may be a key, a link, or the like that can be operated by a user, and after the user operates the triggerable control, the electronic device may display an interface that responds to the operation, where the interface displayed by the electronic device is different from the interface displayed before the user operates the triggerable control.
S602, the bullet frame management module acquires the property of the bullet frame corresponding to the triggerable control.
In an embodiment, the application program analysis module may respond to an interface display popup frame of the electronic device, send an identifier of a triggerable control corresponding to the popup frame management module, and the popup frame management module obtains an attribute of the popup frame corresponding to the triggerable control in response to receiving the identifier of the triggerable control corresponding to the popup frame.
The pop frame management module responds to the electronic equipment to display the pop frame and can call stack information to obtain the source of the pop frame. The stack information includes a packet name (name of the installation packet) indicating the source of the popup box. For example, if the packet name in the stack information is the packet name of the application, the pop frame management module may determine that the pop frame is an "application self pop frame", and the source of the pop frame is "application self". If the packet name in the stack information is the packet name of the third-party SDK integrated in the application, the bullet box management module may determine that the bullet box is the "bullet box integrated with the third-party SDK in the application", and the source of the bullet box is the "third-party SDK integrated in the application". If the packet name in the stack information is the system application, the source of the pop box is "system".
The bullet frame management module can obtain the type of the bullet frame according to a title (title) and information (message) in the source code corresponding to the bullet frame displayed by the electronic device. In one embodiment, keywords of titles corresponding to different types of boxes and keywords and/or links of information are stored in the box management module in advance, and the box management module may determine the type of the box based on the keywords and/or the links.
Illustratively, the following table three is the keywords and/or links corresponding to different types of boxes:
watch III
Type of bullet frame Keyword corresponding to title Keywords and/or links corresponding to information
Harassment information bullet frame Shopping Advertisement, aaa, com, cn
Function guide information bullet frame Mode setting Com, adolescent model, verification, bxxx
Induced information bullet frame News Hot, real time
For example, the bullet box management module queries a title and information of a bullet box corresponding to each triggerable control in the source code, and determines a type of the bullet box corresponding to the title or the information, which includes a keyword preset by the bullet box of the first type, as the first type. For example, if the bullet box management module queries that the bullet box corresponding to the triggerable control includes a keyword of "advertisement" in the title of the source code, the first type, i.e., "harassment information bullet box", may be used as the type of the bullet box.
As described above, the bounding box management module may obtain the source of the bounding box and the type of the bounding box, and accordingly, the bounding box management module may obtain the rank of the bounding box according to the second table above. In an embodiment, the bounding box management module may obtain the level of the bounding box corresponding to each triggerable control according to a mapping relationship between the source of the bounding box corresponding to each triggerable control, the type of the bounding box corresponding to each triggerable control, the source of the bounding box, the type of the bounding box, and the level of the bounding box. The mapping relationship among the source of the bullet box, the type of the bullet box, and the level of the bullet box may be referred to as a first mapping relationship.
In this way, the bounding box management module can obtain the attributes (source, type, and rank) of the bounding box.
In one embodiment, the bullet frame management module can detect whether the bullet frame has a problem according to the style of the bullet frame. It should be understood that the problematic bullet box may be referred to as a problem bullet box.
Illustratively, such a pop-up box has a problem if the "close control" in the pop-up box is small in size, which affects the user's closing. In this example, the pop-up frame management module may obtain the size of the pop-up frame and the size of the "closing control" in the pop-up frame, and further obtain a proportion of the size of the "closing control" in the pop-up frame, and if the proportion is smaller than a preset proportion, the pop-up frame management module determines that the pop-up frame has a problem. It should be understood that the preset ratio is preset and stored in the bullet box management module. It should be understood that the example for detecting whether there is a problem in the pop-up frame is illustrated, and the pop-up frame management module may also use other preset rules or manners to detect whether there is a problem in the pop-up frame, which is not limited in this embodiment of the application.
S602 may be as described with reference to fig. 7.
S603, the bullet frame management module stores the identification of the triggerable control and the corresponding grade of the bullet frame of the triggerable control in a bullet frame classification database.
After the application program analysis module traverses the triggerable controls in the application program, the bullet frame management module can acquire the level of the bullet frame corresponding to each triggerable control, so that the bullet frame management module can correspondingly store the identification of the triggerable controls and the level of the bullet frame corresponding to the triggerable controls in the bullet frame classification database. That is, the mapping relationship between the operation and the level is stored in the bullet frame classification database, and the operation is the operation of the triggerable control corresponding to the operation.
In the above embodiment, a process of acquiring a "mapping relationship between an operation and a level" by an electronic device, and a process of preprocessing a popup box by the electronic device using the "mapping relationship between an operation and a level" are described, and the following description is given to a processing policy of the popup box by the electronic device in an "test scenario of an application" and an "online scenario of an application":
scene one: test scenario for application
The electronic device (test device) tests the application to detect whether a pop-up box in the application meets specifications. The manner for the electronic device to detect whether the pop-up frame in the application program conforms to the specification may refer to the relevant description of S601-S602, and the electronic device may traverse all the pop-up frames in the application program in a manner of analyzing the source code of the application program, so as to obtain the attribute of each pop-up frame in the application program.
In an embodiment, the bullet frame with the high grade and the bullet frame with the problem of the "style of the bullet frame" are the bullet frames needing to be modified, and the analysis result management module in the electronic device may output the title of the bullet frame needing to be modified and the position of the information in the source code to prompt the staff to modify the bullet frame. Or the analysis result management module can output the position of the triggerable control corresponding to the bullet frame in the source code to prompt the staff to correct the bullet frame triggered by the triggerable control.
In one embodiment, the analysis results management module may prompt modification of the application or the third party SDK integrated in the application based on the source of the problematic popup.
Scene two: application on-line scene
The electronic device (server) tests the application to detect whether the pop-up box in the application meets the specification. The manner of detecting whether the pop-up frame in the application program meets the specification by the electronic device may refer to the related descriptions in S601-S602, and the electronic device may traverse all the pop-up frames in the application program in a manner of analyzing the source code of the application program, so as to obtain the attribute of each pop-up frame in the application program.
In an embodiment, the analysis result management module in the electronic device may perform an adjustment prompt on the "bullet box with a high level" and the "bullet box with a problem" with the style of the bullet box, where the adjustment prompt may refer to the description of scenario one above.
In one embodiment, the analysis result management module may also use a processing policy of "off-shelf application" for processing, as shown in fig. 8.
As described in the above embodiment, the electronic device includes: therefore, for the electronic device, referring to fig. 9, the pop-up frame processing method provided in the embodiment of the present application may include:
s901, responding to the operation of the user for triggering the electronic equipment to display the bullet frame, and acquiring the level of the bullet frame triggered by the operation.
In one embodiment, the pop-up box displayed by the electronic device may include, but is not limited to: a popup box in an application.
The electronic device includes a bullet frame classification database, where the bullet frame classification database stores "mapping relationship between operation and level", and the application and acquisition manner of the mapping relationship may refer to the related description in the above embodiment.
In one embodiment, the operation of the user triggering the electronic device to display the popup box is as follows: the user operates a target triggerable control displayed on an interface of the electronic equipment, and the mapping relation between the operation and the level of the popup frame is as follows: the mapping relationship between the identification of the control and the level of the bullet box can be triggered.
That is, the mapping relationship between the identifier of the triggerable control and the level of the bullet box is stored in the bullet box classification database. The electronic device, in response to a target triggerable control displayed on an interface of the electronic device operated by a user, may obtain a level of the pop-up box based on an identifier of the target triggerable control and a mapping relationship between the identifier of the triggerable control and the level of the pop-up box.
And S902, acquiring the processing strategy of the bullet frame according to the level of the bullet frame and the mapping relation between the level and the processing strategy.
The mapping relationship between the levels and the processing strategies is included in the electronic device, and the mapping relationship may refer to the relevant description in the above embodiments. The electronic device may obtain the processing policy of the bounding box according to the level of the bounding box and the mapping relationship between the level and the processing policy, and specifically refer to the related description in S302.
And S903, processing the popup frame by adopting a popup frame processing strategy.
S903 may refer to the description related to S303 above.
The elastic frame processing method provided by the embodiment of the application has the same implementation principle and technical effect as those of the embodiment, and reference may be made to the related description in the embodiment.
In an embodiment, an embodiment of the present application further provides an electronic device, and with reference to fig. 10, the electronic device may include: a processor 1001 (e.g., CPU)1001, and a memory 1002. The memory 1002 may include a random-access memory (RAM) and a non-volatile memory (NVM), such as at least one disk memory, and the memory 1002 may store various instructions for performing various processing functions and implementing the method steps of the present application. In an embodiment of the present application, the memory 1002 is used for storing computer executable program code, which includes instructions; when the processor 1001 executes the instruction, the instruction causes the processor 1001 of the electronic device to execute the actions in the above method embodiments, which implement similar principles and technical effects, and are not described herein again.
Optionally, the electronic device related to the present application may further include: a power supply 1003, a communication bus 1004, and a communication port 1005. The communication port 1005 is used for connecting communication between the electronic device and other peripherals. The communication bus 1004 is used to connect various components in the electronic device, and the power supply 1003 is used to supply power to the electronic device.
It should be noted that the modules or components described in the above embodiments may be one or more integrated circuits configured to implement the above methods, for example: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, when one of the above modules is implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor that can call program code, such as a controller. As another example, these modules may be integrated together, implemented in the form of a system-on-a-chip (SOC).
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The term "plurality" herein means two or more. The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship; in the formula, the character "/" indicates that the preceding and following related objects are in a relationship of "division". In addition, it is to be understood that the terms first, second, etc. in the description of the present application are used for distinguishing between the descriptions and not necessarily for describing a sequential or chronological order.
It is to be understood that the various numerical references referred to in the embodiments of the present application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of the present application.
It should be understood that, in the embodiment of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.

Claims (17)

1. A method of processing a cartridge frame, comprising:
responding to an operation that a user triggers an electronic device to display a bullet frame, and acquiring the grade of the bullet frame triggered by the operation;
acquiring a processing strategy of the bullet frame according to the level of the bullet frame and the mapping relation between the level and the processing strategy;
and processing the bullet frame by adopting the processing strategy of the bullet frame.
2. The method of claim 1, wherein the obtaining the level of the operation-triggered bullet box comprises:
and acquiring the grade of the bullet frame triggered by the operation according to the operation and the mapping relation between the operation and the grade of the bullet frame.
3. The method of claim 2, wherein the operation of the user triggering the electronic device to display the popup box is: the target displayed on the interface of the user operation electronic equipment can trigger the control, and the mapping relation between the operation and the level of the popup frame is as follows: the mapping relationship between the identification of the control and the level of the bullet box can be triggered.
4. The method according to any one of claims 1-3, wherein the processing the bounding box using the processing strategy of the bounding box comprises:
and when the processing strategy is a shielding bullet frame, shielding the bullet frame triggered by the operation.
5. The method according to any one of claims 1-3, wherein the processing the bounding box with the processing strategy of the bounding box comprises:
when the processing strategy is opened by agreement of the user, outputting first prompt information, wherein the first prompt information is used for prompting the user whether to open the bullet box;
responding to an instruction that the user agrees to open a bullet frame, and displaying the bullet frame triggered by the operation;
and shielding the bullet box triggered by the operation in response to receiving the instruction that the user disagrees with opening the bullet box.
6. The method according to any one of claims 1-3, wherein the processing the bounding box with the processing strategy of the bounding box comprises:
when the processing strategy is based on the opening of the state of the elastic frame switch, acquiring the state of the elastic frame switch;
responding to the state of the elastic frame switch as open, and displaying the elastic frame triggered by the operation;
and shielding the bullet frame triggered by the operation in response to the state of the bullet frame switch being closed.
7. The method of claim 3, wherein the user-triggered electronic device displays a bullet box: the method comprises the following steps that before responding to the operation that a user triggers the electronic equipment to display the popup frame and obtaining the level of the popup frame triggered by the operation, the popup frame in the application program further comprises the following steps:
traversing the triggerable control in the application program according to the source code of the application program to obtain a bullet frame corresponding to the triggerable control for triggering the bullet frame in the application program;
acquiring the level of a bullet frame corresponding to each triggerable control;
and storing the identification of each triggerable control and the grade of the bullet frame corresponding to the identification of each triggerable control.
8. The method of claim 7, wherein obtaining the level of the pop-up box corresponding to each triggerable control comprises:
calling stack information to obtain a source of a popup frame corresponding to each triggerable control;
acquiring the type of the pop-up frame corresponding to each triggerable control according to the title and the information of the pop-up frame corresponding to each triggerable control in the source code;
obtaining the level of the pop-up frame corresponding to each triggerable control according to the source of the pop-up frame corresponding to each triggerable control, the type of the pop-up frame corresponding to each triggerable control, and a first mapping relationship, where the first mapping relationship is: the source of the bullet box, the type of the bullet box, and the mapping relation of the level of the bullet box.
9. The method according to claim 8, wherein corresponding keywords are preset in each type of the pop-up box, and the obtaining of the type of the pop-up box corresponding to each triggerable control according to the title and the information of the pop-up box corresponding to each triggerable control in the source code comprises:
and inquiring the title and the information of the bullet box corresponding to each triggerable control in the source code, and determining the type of the bullet box corresponding to the title or the information containing the preset keywords of the first type of bullet box as the first type.
10. The method according to claim 8 or 9, wherein before traversing the triggerable control in the application according to the source code of the application, the method further comprises:
inquiring the stipulation of the bullet frame based on the preset address;
analyzing the rule according to the preset keywords corresponding to the bullet boxes at all levels to obtain a second mapping relation, wherein the second mapping relation is as follows: the source of the bullet frame, the type of the bullet frame, the grade of the bullet frame, and the mapping relation of the processing strategy of the bullet frame, wherein the second mapping relation comprises the first mapping relation.
11. The method according to any one of claims 7 to 10, wherein after obtaining the box corresponding to the triggerable control for triggering the box in the application program, the method further comprises:
detecting whether the bullet frame corresponding to the triggerable control is a problem bullet frame or not;
and if so, outputting second prompt information, wherein the second prompt information is used for indicating that the bullet frame corresponding to the triggerable control is modified.
12. The method of claim 11, wherein the detecting whether the bullet box corresponding to the triggerable control is a problem bullet box comprises:
acquiring the style of a bullet frame corresponding to the triggerable control;
and detecting whether the bullet frame corresponding to the triggerable control is a problem bullet frame or not based on the style of the bullet frame corresponding to the triggerable control.
13. The method of claim 12, wherein the obtaining the style of the bullet box corresponding to the triggerable control comprises:
obtaining the ratio of the size of a closing control of a pop-up frame corresponding to the triggerable control in the size of the pop-up frame corresponding to the triggerable control;
the detecting whether the bullet frame corresponding to the triggerable control is a preset problem bullet frame based on the style of the bullet frame corresponding to the triggerable control includes:
and if the occupation ratio is smaller than a preset occupation ratio, determining that the bullet frame corresponding to the triggerable control is a problem bullet frame.
14. A bezel processing apparatus, comprising:
the electronic equipment comprises a popup frame management module, a popup frame display module and a popup frame display module, wherein the popup frame management module is used for responding to the operation of triggering the electronic equipment to display the popup frame by a user and acquiring the grade of the popup frame triggered by the operation;
the compliance ensuring module is used for acquiring the processing strategy of the popup frame according to the grade of the popup frame and the mapping relation between the grade and the processing strategy;
and the system management and control module is used for processing the bullet frame by adopting the processing strategy of the bullet frame.
15. An electronic device, comprising: a processor and a memory;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory, causing the processor to perform the method of any of claims 1-13.
16. A computer-readable storage medium, in which a computer program or instructions are stored which, when executed, implement the method of any one of claims 1-13.
17. A computer program product comprising a computer program or instructions for implementing the method of any one of claims 1 to 13 when executed by a processor.
CN202111328220.3A 2021-11-10 2021-11-10 Method and device for processing bullet frame, electronic equipment and readable storage medium Active CN115033317B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111328220.3A CN115033317B (en) 2021-11-10 2021-11-10 Method and device for processing bullet frame, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111328220.3A CN115033317B (en) 2021-11-10 2021-11-10 Method and device for processing bullet frame, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN115033317A true CN115033317A (en) 2022-09-09
CN115033317B CN115033317B (en) 2023-05-09

Family

ID=83118017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111328220.3A Active CN115033317B (en) 2021-11-10 2021-11-10 Method and device for processing bullet frame, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115033317B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116679999A (en) * 2022-10-28 2023-09-01 荣耀终端有限公司 Method for displaying bullet frame, electronic device and readable medium
CN116680000A (en) * 2022-10-28 2023-09-01 荣耀终端有限公司 Method for displaying bullet frame, electronic device and readable medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117643A (en) * 2015-09-23 2015-12-02 北京金山安全软件有限公司 Method and device for processing popup
CN108763056A (en) * 2018-04-19 2018-11-06 福建天晴数码有限公司 A kind of automatic test bullet frame processing method and terminal
CN109491736A (en) * 2018-10-16 2019-03-19 深圳壹账通智能科技有限公司 A kind of display methods and equipment playing frame window
CN109819096A (en) * 2018-11-26 2019-05-28 努比亚技术有限公司 Push display control method, terminal and the computer storage medium of notification message
CN110636459A (en) * 2019-07-19 2019-12-31 北京无限光场科技有限公司 Message reminding method and device, electronic equipment and storage medium
CN111752664A (en) * 2020-06-29 2020-10-09 浙江传化绿色慧联物流有限公司 Terminal multi-window popup management method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117643A (en) * 2015-09-23 2015-12-02 北京金山安全软件有限公司 Method and device for processing popup
CN108763056A (en) * 2018-04-19 2018-11-06 福建天晴数码有限公司 A kind of automatic test bullet frame processing method and terminal
CN109491736A (en) * 2018-10-16 2019-03-19 深圳壹账通智能科技有限公司 A kind of display methods and equipment playing frame window
CN109819096A (en) * 2018-11-26 2019-05-28 努比亚技术有限公司 Push display control method, terminal and the computer storage medium of notification message
CN110636459A (en) * 2019-07-19 2019-12-31 北京无限光场科技有限公司 Message reminding method and device, electronic equipment and storage medium
CN111752664A (en) * 2020-06-29 2020-10-09 浙江传化绿色慧联物流有限公司 Terminal multi-window popup management method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116679999A (en) * 2022-10-28 2023-09-01 荣耀终端有限公司 Method for displaying bullet frame, electronic device and readable medium
CN116680000A (en) * 2022-10-28 2023-09-01 荣耀终端有限公司 Method for displaying bullet frame, electronic device and readable medium
CN116679999B (en) * 2022-10-28 2024-05-03 荣耀终端有限公司 Method for displaying bullet frame, electronic device and readable medium
CN116680000B (en) * 2022-10-28 2024-05-24 荣耀终端有限公司 Method for displaying bullet frame, electronic device and readable medium

Also Published As

Publication number Publication date
CN115033317B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
US10963470B2 (en) Website scoring system
CN108509533B (en) Control method, device and equipment for screen shot file sharing and computer storage medium
CN110826071B (en) Software vulnerability risk prediction method, device, equipment and storage medium
CN106686599B (en) Method and equipment for risk management of application information
US20130117855A1 (en) Apparatus for automatically inspecting security of applications and method thereof
CN115033317A (en) Bullet frame processing method and device, electronic equipment and readable storage medium
JP6047463B2 (en) Evaluation apparatus and method for evaluating security threats
US8838430B1 (en) Detection of memory access violation in simulations
US10649881B2 (en) Determining compliance of software applications to compliance standards based on mapped application capabilities
CN113254923B (en) Method and system for generating privacy policy text according to APK (android package)
CN112528326B (en) Information processing method and device and electronic equipment
Rutledge et al. Privacy impacts of IoT devices: A SmartTV case study
CN112016138A (en) Method and device for automatic safe modeling of Internet of vehicles and electronic equipment
CN111079186A (en) Data analysis method, device, equipment and storage medium
CN110471859A (en) Service test method, device, medium and electronic equipment
CN114138651A (en) Test data generation method and device
CN107423362B (en) Industry determining method, object obtaining method and device, client and server
CN112346608A (en) Page display method and device based on business activity result display and electronic equipment
US20230236950A1 (en) Static source code analysis using explicit feedback and implicit feedback
CN111460235A (en) Atlas data processing method, device, equipment and storage medium
US9959196B2 (en) Unification of descriptive programming and object repository
CN114265777B (en) Application program testing method and device, electronic equipment and storage medium
US9965744B1 (en) Automatic dynamic vetting of browser extensions and web applications
CN115757995A (en) Method and device for processing characteristic-free data label, computer equipment and storage medium
CN112947984B (en) Application program development method and device

Legal Events

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