CN115033317B - Method and device for processing bullet frame, electronic equipment and readable storage medium - Google Patents

Method and device for processing bullet frame, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN115033317B
CN115033317B CN202111328220.3A CN202111328220A CN115033317B CN 115033317 B CN115033317 B CN 115033317B CN 202111328220 A CN202111328220 A CN 202111328220A CN 115033317 B CN115033317 B CN 115033317B
Authority
CN
China
Prior art keywords
frame
bullet
bullet frame
triggerable control
user
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.)
Active
Application number
CN202111328220.3A
Other languages
Chinese (zh)
Other versions
CN115033317A (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)
  • Software Systems (AREA)
  • General Engineering & Computer Science (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 method, a device, electronic equipment and a readable storage medium for processing a bullet frame, wherein the method comprises the following steps: responding to the operation of triggering the electronic equipment to display the bullet frame by a user, and acquiring the level of the bullet frame triggered by the operation; acquiring a 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 processing the bullet frame by adopting a processing strategy of the bullet frame. When a user executes an operation of triggering the electronic device to display the bullet frame, the level of the bullet frame can be obtained, and then the bullet frame is processed based on the level of the bullet frame.

Description

Method and device for processing bullet frame, electronic equipment and readable storage medium
Technical Field
The embodiment of the application relates to terminal technology, in particular to a method and device for processing a bullet frame, electronic equipment and a readable storage medium.
Background
A user may install an application in an electronic device, and the user may navigate, listen to songs, watch videos, etc. using the application. With the development of application programs, third party application components can be integrated in the application programs, so that the more powerful the application programs are.
Currently, in the process of using an electronic device, various types of boxes, such as advertisement boxes, error boxes, etc., may appear in an application program. Thus, there is a need for a method of handling a box within an application.
Disclosure of Invention
The embodiment of the application provides a method and device for processing a bullet frame, electronic equipment and a readable storage medium, which can effectively process the bullet frame in an application program.
In a first aspect, an embodiment of the present application provides a method for processing a frame, where an execution body for executing the method for processing a frame may be an electronic device or a chip in the electronic device, and the electronic device is taken as an execution body for explanation. In the method, when the electronic equipment detects that a user triggers the operation of the electronic equipment to display the bullet frame, the level of the bullet frame triggered by the operation can be obtained. The mapping relation between the level and the processing policy is stored in the electronic equipment, so that the electronic equipment can acquire the processing policy of the bullet frame according to the level of the bullet frame and the mapping relation between the level and the processing policy, and further process the bullet frame by adopting the processing policy of the bullet frame.
The advertisement bullets are displayed on the interface of the electronic device, and the user experience is improved. In the embodiment of the application, when the electronic device detects that the user executes the operation of triggering the electronic device to display the bullet frame, the processing strategy of the bullet frame is obtained in advance, and then the processing strategy corresponding to the bullet frame is adopted to process 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, the electronic device has stored therein a mapping of operations to levels of the bullet boxes. And the electronic equipment can acquire the level of the bullet frame triggered by the operation according to the operation and the mapping relation between the operation and the level of the bullet frame.
In one embodiment, the operation of the user triggering the electronic device to display the bullet frame is: 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 relation between the identification of the control and the level of the bullet frame can be triggered. That is, the mapping relation between the identifier of the triggerable control and the level of the bullet frame is stored in the electronic device, and the electronic device can respond to detection of the user operation target triggerable control, so as to obtain the level of the target triggerable control based on the mapping relation between the identifier of the triggerable control and the level of the bullet frame.
The following describes the processing strategies of the bullet frames with different grades:
first, when the processing policy is to shield the frame, the operation triggered frame is shielded.
For example, if the processing policy of the advertisement bullet frame is a shielding bullet frame, the electronic device may respond to the user to execute the operation of triggering the electronic device to display the advertisement bullet frame, and shield the advertisement bullet frame, i.e. not display the advertisement bullet frame, so that the user does not feel the advertisement bullet frame, and user experience may be improved.
Secondly, when the processing strategy is opened after the user agrees, outputting first prompt information, wherein the first prompt information is used for prompting the user whether to open the bullet frame; responding to the receiving of an instruction of the user agreeing to open the bullet frame, and displaying the bullet frame triggered by the operation; and shielding the operation-triggered bullet frame in response to receiving the instruction that the user does not agree to open the bullet frame.
For example, if the processing policy of the function guide information box is opened by the user's consent, the electronic device may output the first prompt information in response to the user performing an operation that triggers the electronic device to display the function guide information box. The electronic device can display the function guide information box in response to receiving the instruction that the user agrees to open the box, and shield the function guide information box in response to receiving the instruction that the user does not agree to open the box.
In one embodiment, the electronic device may further guide the information frame in response to not receiving an instruction from the user to agree to open the frame within a preset time period.
Thirdly, when the processing strategy is opened based on the state of the bullet frame switch, acquiring the state of the bullet frame switch; responding to the state of the spring frame switch to be opened, and displaying the spring frame triggered by the operation; and shielding the operation triggered bullet frame in response to the status of the bullet frame switch being closed.
For example, if the processing policy of the guidance information box is based on the state of the box switch being opened, the electronic device responds to the user to execute the operation of triggering the electronic device to display the guidance information box, and obtains the state of the box switch. The electronic equipment responds to the state of the bullet frame switch to be on, the guidance information bullet frame can be displayed, and the electronic equipment responds to the state of the bullet frame switch to be off, and the guidance information bullet frame is shielded.
The following describes a process of the electronic device obtaining the "mapping relation between operation and level of the bullet frame", that is, the "mapping relation between the mark of the triggerable control and level of the bullet frame":
in one embodiment, the bullet frame displayed by the electronic device triggered by the user is: a box in the application.
The electronic equipment can traverse the triggerable controls in the application program according to the source codes of the application program to obtain the corresponding popup frames of the triggerable controls for triggering the popup frames in the application program so as to obtain the grade of the popup frame corresponding to each triggerable control. And the electronic device can store the identifier of each triggerable control and the level of the bullet frame corresponding to the identifier of each triggerable control.
The manner in which the electronic device obtains the level of the popup frame corresponding to each triggerable control may be: and the electronic equipment calls stack information to acquire 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 information of the corresponding bullet frame in the source code of each triggerable control, and determine the type of the bullet frame corresponding to the title or information containing the preset keyword of the bullet frame of the first type as the first type.
Thus, after the electronic device obtains the source of the frame corresponding to each triggerable control and the type of the frame corresponding to each triggerable control, the electronic device may obtain the level of the frame corresponding to each triggerable control according to the source of the frame corresponding to each triggerable control, the type of the frame corresponding to each triggerable control, and the first mapping relationship, where the first mapping relationship is: the source of the bullet frame, the type of the bullet frame, and the mapping relation of the level of the bullet frame.
It should be appreciated that the first mapping relationship may be stored in the electronic device, 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 the specification of the frame based on a preset address. For example, the preset address may be an address of "release law and regulation of a frame of an application", and the address may be a web page address or an applet address, which is not limited in the embodiment of the present application.
The electronic device may analyze the rule according to the preset keywords corresponding to the bullet frames of each level, and obtain a second mapping relationship. Wherein, the second mapping relation 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 the statement that includes the "keyword corresponding to the level box" in the specification to obtain the processing policy, source, and type of the level box limited in the specification.
In addition, when the electronic device traverses the triggerable control in the application program and acquires 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. If the bullet frame is a problem bullet frame, the electronic device outputs second prompt information, and the second prompt information is used for indicating to modify the bullet frame corresponding to the triggerable control.
In one possible implementation manner, the electronic device may obtain a style of the frame corresponding to the triggerable control, and further detect whether the frame corresponding to the triggerable control is a problem frame based on the style of the frame corresponding to the triggerable control. For example, if the style of the frame is "the ratio of the size of the closed control of the frame corresponding to the triggerable control to the size of the frame corresponding to the triggerable control", if the "the ratio of the size of the closed control of the frame corresponding to the triggerable control to the size of the frame corresponding to the triggerable control" is smaller than the preset ratio, the electronic device may determine that the frame corresponding to the triggerable control is the problem frame.
For the problem popup frame, the electronic device may output a second prompting message to prompt modification of the popup frame corresponding to the triggerable control.
In a second aspect, embodiments of the present application provide a device for processing a frame, where the device may include:
the bullet frame management module is used for responding to the operation of triggering the electronic equipment to display the bullet frame by a user and acquiring the level of the bullet 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 one possible implementation manner, the frame management module is specifically configured to obtain the level of the frame triggered by the operation according to the operation and the mapping relationship between the operation and the level of the frame.
In one possible implementation manner, the operation of the user triggering the electronic device to display the bullet frame is: 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 relation between the identification of the control and the level of the bullet frame can be triggered.
In one possible implementation, the system management module is specifically configured to mask the operation-triggered frame when the processing policy is a mask frame.
In one possible implementation manner, the system management and control module is specifically configured to output a first prompt message when the processing policy is opened by the user, where the first prompt message is used to prompt the user whether to open the bullet frame. The method comprises the steps of responding to receiving an instruction of agreeing to open a bullet frame by a user, and displaying the bullet frame triggered by the operation; and shielding the operation-triggered bullet frame in response to receiving the instruction that the user does not agree to open the bullet frame.
In one possible implementation, the system management module is specifically configured to obtain a status of the chase switch when the processing policy is based on the status of the chase switch being opened. Wherein, the status of the spring frame switch is opened, and the spring frame triggered by the operation is displayed; and shielding the operation triggered bullet frame in response to the status of the bullet frame switch being closed.
In one possible implementation manner, the bullet frame displayed by the electronic device triggered by the user is: a box in the application.
The compliance ensuring module is also used for traversing the triggerable control in the application program according to the source code of the application program to obtain a popup frame corresponding to the triggerable control for triggering the popup frame in the application program; acquiring the grade 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 one possible implementation manner, the compliance assurance module is specifically configured to invoke stack information to obtain a source of a frame 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; 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 relation, acquiring the grade of the popup frame corresponding to each triggerable control, wherein the first mapping relation is as follows: the source of the bullet frame, the type of the bullet frame, and the mapping relation of the level of the bullet frame.
In one possible implementation, the respective types of bullet boxes are preset with corresponding keywords.
And the compliance ensuring module is specifically used for inquiring the title and the information of the bullet frame corresponding to each triggerable control in the source code and determining the type of the bullet frame corresponding to the title or the information containing the keyword preset by the bullet frame of the first type as the first type.
In one possible implementation, the compliance assurance module is further configured to query the specification of the frame based on a preset address; analyzing the rule according to the preset keywords corresponding to the bullet frames of each level 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 one possible implementation manner, the bullet frame management module is further configured to detect whether a bullet frame corresponding to the triggerable control is a problem bullet frame; if yes, the bullet frame management module outputs second prompt information, wherein the second prompt information is used for indicating modification of the bullet frame corresponding to the triggerable control.
In one 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 one possible implementation manner, the bullet frame management module is specifically configured to obtain a ratio of a size of a closed control of the bullet frame corresponding to the triggerable control to a size of the bullet frame corresponding to the triggerable control; and if the duty ratio is smaller than the preset duty ratio, determining that the frame corresponding to the triggerable control is a problem frame.
In a third aspect, embodiments of the present application provide an electronic device, which may include: a processor and a memory. The memory is for storing computer executable program code, the program code comprising instructions; the instructions, when executed by a 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 frame 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 method provided in the first aspect above.
In a fifth aspect, embodiments of the present application provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of the first aspect described above.
In a sixth aspect, embodiments of the present application provide a computer-readable storage medium having instructions stored therein, which when run on a computer, cause the computer to perform the method of the first aspect described above.
The advantages of each of the possible implementation manners of the second aspect to the sixth aspect may be referred to as the advantages brought by the first aspect, and are not described herein.
Drawings
FIG. 1A is a schematic view of a spring frame;
FIG. 1B is a schematic view of another spring frame;
FIG. 1C is a schematic view of another spring frame;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating an embodiment of a method for processing a frame according to an embodiment of the present disclosure;
FIG. 4A is a schematic diagram of a chase processing according to an embodiment of the present disclosure;
FIG. 4B is another schematic diagram of a chase processing provided in embodiments of the present disclosure;
FIG. 4C is another schematic diagram of a chase processing provided in embodiments of the present disclosure;
fig. 5 is a schematic diagram of a state that a user sets a box switch on a setting interface of an application according to an embodiment of the present application;
fig. 6 is a flowchart illustrating a mapping relationship between an obtaining operation and a level according to an embodiment of the present application;
FIG. 7 is a schematic diagram illustrating an analysis of source codes by an application analysis module according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a processing strategy according to an embodiment of the present disclosure;
FIG. 9 is a flowchart illustrating an embodiment of a method for processing a frame according to an embodiment of the present disclosure;
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the process of using the electronic device, a user often encounters a situation that the electronic device displays a bullet frame. It should be understood that the box in the embodiment of the present application refers to a box in an Application (APP). The box in the application may include: the application itself or a third party software development kit (software development kit, SDK) integrated in the application. In one embodiment, the application may include, but is not limited to, the following: video class applications, social class applications, shopping class applications, etc., the application may also be a system application.
Fig. 1A-1C are schematic views of different spring frames. Referring to a and b in fig. 1A, when a user opens a video class application, the electronic device displays a box that enters "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 box "go to news application view full text". Referring to fig. 1C, a and b, when a user opens a shopping application, the electronic device displays an advertisement frame, such as a red envelope. In the process of using the electronic equipment, the electronic equipment can display different types of bullets, advertisement bullets, wrong bullets and other bullets which are not required by the user, so that the use of the user can be influenced, and the user experience is poor.
Based on the technical problems, the embodiment of the application provides a bullet frame processing method, when a user executes the operation of triggering the electronic device to display the bullet frame, the electronic device can identify the type of the bullet frame to be triggered by the user in advance, and further process the bullet frames of different types by adopting different strategies, so that the purposes that the electronic device does not display advertisement bullet frames, wrong bullet frames and bullet frames which are not required by other users can be achieved, and the 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 for an application program, and so on. For example, the user device may be a mobile phone, a tablet (portable android device, PAD), a personal digital assistant (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 (augmented reality, AR) terminal device, a wireless terminal in an industrial control (industrial control), a wireless terminal in a smart home (smart home), or the like, and the form of the electronic device is not specifically limited in the embodiments of the present application.
The following is a brief description of a scenario applicable to the method for processing a frame according to the embodiment of the present application:
scene one: test scenario of application program.
After an application is developed by a worker (e.g., a developer), the worker may use a test device to test the application to detect whether a box in the application is compliant (i.e., compliant). Compliance means: in compliance with legal regulations for the bullet boxes in applications, specific testing methods may be described with reference to the following examples.
For example, if the box in the application meets the rule, the processing policy of the worker on the application may be: the application is brought on-line. If the frame in the application program does not meet the specification, the staff member may modify and adjust the frame not meeting the specification, so that the frame in the application program meets the specification, and the specific processing strategy may refer to the related description in the following embodiments.
Scene II: an on-line scenario for an application.
When an application is online, the server can test the online application to detect whether a bullet box in the application meets the specification. For example, after an application is online in an application mall, the corresponding server in the application mall may test the application.
For example, if the box in the application meets the specification, the processing policy of the application by the server may be: allowing the application to be online at the application mall. If the bullet box in the application program does not meet the specification, the processing policy of the application program by the server may be: prompting to modify and adjust the box in the application program which is not in accordance with the rule, so that the box in the application program is online after being in accordance with the rule, and specific processing strategies can be described in the following embodiments.
Scene III: the user uses the context of the application.
After the application is online, the user may download the application to the electronic device. When a user uses an application program on the electronic device, the electronic device can detect the popup frame in the application program to detect whether the popup frame in the application program meets the rule or not, and then different processing strategies are adopted for the popup frame.
For example, if the box in the application meets the specification, the processing policy of the electronic device on the application may be: and displaying the popup frame in the application program. If the bullet box in the application program does not meet the specification, the processing policy of the application program by the server may be: the box in the masking application may be referred to for specific processing strategies in the following description of the embodiments.
Before introducing the method for processing the bullet frame, which is provided by the embodiment of the application, a structure of the 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 assurance 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 that is used to assist the application in achieving more functionality. For example, a third party SDK for "login sharing" may be included in the social-class application, where the third party SDK for "login sharing" is used to display information on the second device that prompts "logged in to the first device" when the user logs in to the social-class application on the first device.
And the bullet frame management module is used for identifying the type of the bullet frame in the application program. Wherein, having higher-level bullet frames, the greater the impact on the user's use experience. In one embodiment, the advertising bullets as described above in FIG. 1C are illustratively rated at a greater level than the bullets entering "teenager mode" in FIG. 1A.
And the compliance assurance module is used for acquiring the regulations of different types of bullet frames in the application program by law and regulation and acquiring the processing strategies of the different types of bullet frames according to the regulations. In one embodiment, the compliance assurance module may have stored therein a website address such as the industry department issuing a specification of different types of frames in the application. The compliance assurance module may periodically access the web page of the worksheet department based on the web site address to obtain "law and regulation for different types of bullets in the application".
It should be understood that the specification of the different types of bullets in the application program by the worker is not limited to the specification of the different types of bullets in the application program by the worker, but may be other specification of the different types of bullets in the application program, and in the following embodiments, the website address of the worker or other website addresses of the website address of the other publication "specification of the different types of bullets in the application program" will be collectively referred to as a preset address.
And the application program analysis module is used for analyzing the codes of the application program and traversing the functions in the application program to detect whether the popup frame in the application program meets the specification.
And the system management and control module is used for processing different types of bullet frames by adopting corresponding processing strategies.
And the analysis result management module is used for sending adjustment information to a developer of the application program or a wire manager of the application program for the popup frames which do not accord with the regulations in the application program. The adjustment information is used for indicating to modify and adjust the popup frame which is not in accordance with the rule in the application program so as to enable the popup frame in the application program to be in accordance with the rule.
It should be appreciated that the compliance assurance module, the frame management module, the application analysis module, the system management module, and the analysis result management module may refer to the related descriptions in fig. 3 below.
The method for processing the bullet frame according to the embodiment of the present application is described below with reference to specific embodiments. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
Fig. 3 is a flowchart of an embodiment of a method for processing a frame according to an embodiment of the present application. Referring to fig. 3, the method for processing a frame according to the embodiment of the present application may include:
s301, the bullet frame management module responds to the operation of triggering the bullet frame by the user and acquires the level of the bullet frame triggered by the user.
The bullet box classification database stores the mapping relation between the user-triggered operations of the bullet boxes and the user-triggered levels of the bullet boxes, and the mapping relation is simply referred to as "mapping relation between the operations and the levels" in the following description. The rank of the sabot may include, but is not limited to: the higher the level of the bullet box, the greater the impact of characterizing the 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, and reference may be made to the following description of fig. 6.
In one embodiment, the mapping of operations and levels may be: in the process of using the electronic equipment by the user in history, after the user executes the operation of triggering the bullet frame, the bullet frame management module can acquire the level 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 level in the bullet frame classification database. It should be noted that, in a manner that the frame management module obtains the level of the frame displayed on the electronic device, reference may be made specifically to the following description of fig. 6.
In this embodiment, when detecting the operation of triggering the frame by the user, the frame management module may determine the level of the frame triggered by the user before the electronic device displays the frame triggered by the user based on the mapping relationship between the operation and the level, so as to make a contribution to "processing the frame by using different processing strategies according to different frames in advance". That is, the bullet frame management module may query the bullet frame classification database for the level of the bullet frame mapped by the user-triggered operation of the bullet frame when detecting the user-triggered operation of the bullet frame, thereby obtaining the level of the bullet frame triggered by the user.
S302, the compliance assurance module obtains the processing strategy of the bullet frame triggered by the user according to the level of the bullet frame and the mapping relation between the level and the processing strategy.
After the bullet frame management module obtains the level of the bullet frame triggered by the user, the level of the bullet frame triggered by the user can be synchronized with the compliance assurance module.
In one embodiment, the bullet frame modification database stores mapping relations between the levels of the bullet frames and the processing strategies, and the compliance assurance module is capable of querying the bullet frame modification database in response to receiving the levels of the user-triggered bullet frames synchronized by the bullet frame management module, and acquiring the processing strategies of the user-triggered bullet frames mapped by the levels of the user-triggered bullet frames based on the mapping relations between the levels stored in the bullet frame modification database and the processing strategies.
Illustratively, the following table one is a mapping relationship between the class of the bullet frame and the processing policy stored in the bullet frame modification database:
list one
Figure BDA0003347724370000071
The compliance assurance module may query the processing policy corresponding to the class of the frame in the table one according to the class of the frame. Illustratively, if the rank of a frame is high, the compliance assurance module may determine that the processing policy for that frame is "mask not frame".
S303, the system management and control module processes the bullet frame according to the processing strategy of the bullet frame.
After the compliance assurance module obtains the processing strategy of the bullet frame, the compliance assurance module can synchronize the processing strategy of the bullet frame with the system management and control module. The system management and control module responds to the received processing strategy of the bullet frame of the compliance assurance module, and can process the bullet frame according to the processing strategy of the bullet frame.
As shown in table one above, when the level of the bullet box is high, the processing strategy is: 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 user does not display the bullet frame on the electronic device, and therefore, the user cannot see the bullet frame.
Illustratively, the advertising box shown as b in fig. 1C is a nuisance information box, and the level of the box is high. Because the electronic device may display the harassment information popup frame when the user opens the shopping application, in this embodiment of the present application, the popup frame management module responds to the operation of opening the shopping application by the user (i.e. the operation of triggering the advertisement popup frame), that is, the popup frame management module in a in fig. 4A responds to the detection that the user clicks the icon of the shopping application on the electronic device, and may acquire that the level of the popup frame triggered by the user is high. Thus, the compliance assurance module may obtain a processing policy to shield against the frame based on the level of the frame. Accordingly, the system management and control module may mask the advertisement frame such that the electronic device does not display the advertisement frame when displaying the interface of the shopping application. Illustratively, unlike b in FIG. 1C described above, referring to b in FIG. 4A, the electronic device displays the main interface of the shopping-type application, but does not display the advertisement bulletin.
When the level of the bullet frame is medium, the processing strategy is: the user agrees to the bullet box. That is, the system management and control module may control the electronic device to output a first prompt message, where the first prompt message is used to indicate whether the user selects to agree to display the bullet frame, and further the system management and control module may control the electronic device to display the bullet frame on the interface or not display the bullet frame based on the operation of the user. In one embodiment, the first prompt information may be a text prompt information or a voice prompt information, which is not limited in the embodiments of the present application.
Illustratively, the box shown as b in fig. 1A is a function guidance information box, and the boxes are classified as medium. Because the electronic device may display the function guide information box when the user opens the video application, in this embodiment of the present application, the box management module responds to the operation of the user opening the video application (i.e. the operation of triggering the function guide information box), that is, the box management module in a in fig. 4B responds to the detection that the user clicks the icon of the video application on the electronic device, and may acquire the class of the box triggered by the user. Thus, the compliance assurance module may obtain a processing policy based on the level of the frame that the user agrees to the frame.
Correspondingly, the system management and control module can control the electronic equipment to display first prompt information on the interface so as to prompt a user to select whether to open the function guide information bullet frame. For example, referring to B in fig. 4B, the electronic device may display, on the main interface of the video-class application, a first prompt of "whether to open a box" entering "teenager mode", and a "confirm" control and a "cancel" control. If the user clicks the "cancel" control, the system management module may mask the box entering "teenager mode" without displaying the box, as shown with reference to c in fig. 4B. If the user clicks the "confirm" control, the system management module may control the electronic device to display a box for entering "teenager mode", as shown with reference to d in fig. 4B.
When the level of the bullet frame is low, the processing strategy is: and performing the flick frame based on the state of the flick frame switch set by the user. It should be understood that in one embodiment, a box switch may be displayed on a setting interface of the electronic device or a setting interface of the application, and a user may open the box switch to trigger the system management module to display a box in the application, and may also close the box switch to trigger the system management module to shield the box in the application. That is, when the level of the box is low, the system management and control module may process the box based on the state of the user-set box switch. If the user sets the status of the box switch to be in an on state, the system management and control module can display the box in the application program, and if the user sets the status of the box switch to be in an off state, the system management and control module can shield the box in the application program. It should be appreciated that when the user does not set the status of the sabot switch, the status of the sabot switch defaults to an off state.
By way of example, a process of setting the state of the jog dial switch by the user will be described with reference to fig. 5. It should be understood that fig. 5 exemplifies a state in which the user sets a box switch on the setting interface of the application program. Referring to fig. 5, the setting interface of the application program includes: spring frame switch 51. The user can operate the sabot switch 51 to change the state of the sabot switch. In one embodiment, the system management module may store the status of the chase switch.
Illustratively, the box shown as B in fig. 1B is an induced information box, and the level of the box is low. Because the electronic device may display the guidance information box when the user opens the news link, in this embodiment of the present application, the box management module responds to the operation of opening the news link by the user (i.e. the operation of triggering the guidance information box), that is, the box management module in a in fig. 4C responds to the detection that the user clicks the news link, and may acquire that the level of the box triggered by the user is low.
Thus, the compliance assurance module may obtain a processing policy to perform the frame based on the user setting the status of the frame switch based on the level of the frame. Accordingly, the system management and control module may detect the status of the chase switch (or based on the stored status of the chase switch) and process the chase. Referring to fig. 5, if the status of the frame switch is an off status, the system management and control module may mask the induced information frame, so that the electronic device does not display the frame. As shown with reference to b in fig. 4C, the electronic device does not display the guidance information box.
In the embodiment of the application, the bullet frame management module responds to the operation of triggering the bullet frame by the user, the grade of the bullet frame triggered by the user can be obtained, and the compliance assurance module obtains the processing strategy of the bullet frame triggered by the user 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 processes the bullet frame according to the processing strategy of the bullet frame. According to the method for processing the bullet frames, the electronic device can acquire processing strategies of the bullet frames triggered by the user operation in advance based on the user operation, further, for bullet frames of different grades in an application program, different strategies are executed, the electronic device can shield bullet frames affecting user experience, such as advertisement bullet frames, and can process the bullet frames according to user setting or user selection of whether the bullet frames are displayed, habit of the user is fitted better, and user experience is further improved.
The above describes how to obtain the "operation and level mapping relationship" by using the "operation and level mapping relationship" by the elastic frame management module, and further describes functions of each module in the electronic device at the same time:
In one embodiment, a worker may formulate a mapping relationship of "attributes and processing policies of an application" as shown in the following table two according to the specification of a bullet box in the application by law and regulation. Wherein, the attribute of the bullet frame may include: the level of the bullet frame, the source of the bullet frame, and the type of bullet frame.
The sources of the spring frame may include: the method comprises the steps of an application program self popup frame, a system popup frame and a popup frame integrating a third party SDK in the application program. Taking a box integrated with a third-party SDK in an application as an example, the box integrated with the third-party SDK in the application characterizes: the bullet box displayed on the electronic device is triggered by integrating a third party SDK in the application. In the following table two, the source of the bullet frame is taken as the bullet frame of the application program itself and the bullet frame integrating the third-party SDK in the application program as an example.
Types of the sabot may include, but are not limited to: harassment information bullets, function guidance information bullets, and the like. Illustratively, harassment information bullets such as advertising bullets, etc., function guidance information bullets such as the bullets shown in FIG. 1A, etc.
The level of the spring frame is exemplified by the embodiments of the present application, which are described in terms of high, medium, and low.
Watch II
Figure BDA0003347724370000091
For example, if the rule of the bullet frame in the application program by law and regulation (hereinafter simply referred to as the rule) is "forbidden" the advertisement bullet frame in the application program, "forbidden" is the highest level of processing the bullet frame, then before the application program performs bullet frame detection, the staff member may set the level of the advertisement bullet frame (such as the harassment information bullet frame in table two) to be high based on the rule, and set the processing policy of the advertisement bullet frame to be "shielding no bullet frame".
For example, when an application program needs to be tested for a frame of the application program after the application program is developed, a worker may set the level of the advertisement frame to be high, set the processing policy for the advertisement frame to be "shielding non-frame", and store the mapping relationship of "advertisement frame, level to be high and shielding non-frame" in the test device (i.e. the electronic device) in advance, so that the test device may use the mapping relationship of "advertisement frame, level to be high and shielding non-frame" when the test device detects the frame of the application program.
For example, if a user installs an application program in an electronic device, during a production and manufacturing stage of the electronic device, a worker may set a level of an advertisement frame to be high, set a processing policy for the advertisement frame to be "shielding non-frame", and store a mapping relationship of "advertisement frame, level to be high, and shielding non-frame" in the electronic device in advance, so that the electronic device uses the mapping relationship of "advertisement frame, level to be high, and shielding non-frame" when detecting a frame in the application program.
In one embodiment, the level and processing policy of the frames may be different for the same type but different sources, and the above table two is exemplified as the same. For example, if the frame is defined as "a frame for prohibiting the third-party SDK in the application", the source in the second table is a frame for integrating the third-party SDK in the application ", and the processing policy is" a mask non-frame "regardless of the level of the frame and regardless of the type of the frame.
In one embodiment, the staff may not be employed to formulate a mapping of "application attributes and processing policies" as shown in Table two below, because of the high cost of labor. In this embodiment of the present application, the compliance assurance module may store a preset address, where the preset address is an address specified by the release. Therefore, the compliance assurance module can obtain the specifications issued at the preset address. The compliance assurance module may analyze the specifications to generate a mapping of "application attributes and processing policies" as shown in table two above.
The compliance assurance module extracts keywords in the specification and generates a mapping relationship of the attributes of the application program and the processing strategy. For example, taking a high-level bullet frame as an example, keywords corresponding to the high level may be bullet frames, shielding, forbidden, and the like, and the compliance assurance module generates a mapping relationship of the attribute of the application program and the processing policy according to the semantics of the statement in response to detecting the statement containing the keywords in the rule. If "forbidden application" is specified, the compliance assurance module may determine that the advertisement frame is a high-level frame based on the rule. It should be understood that keywords corresponding to different levels may be different. Here, the high-level bullet frame is taken as an example, and the description of the "medium" and "low" levels is omitted.
In one embodiment, the mapping relationship of the "application attributes and processing policies" may be referred to as a second mapping relationship.
In the embodiment, the compliance assurance module can acquire the regulations issued at the preset address, update the mapping relation of the attribute and the processing strategy of the application program in time, and improve the accuracy of the processing of the bullet frame.
In summary, no matter the staff makes the mapping relation between the attribute of the application program and the processing policy, or the compliance assurance module updates the mapping relation between the attribute of the application program and the processing policy, the mapping relation between the attribute of the application program and the processing policy can be obtained and then stored in the bullet frame rectifying database. Therefore, the bullet frame rectifying database can store the mapping relation between the attribute of the application program and the processing strategy so as to obtain the processing strategy corresponding to the bullet frame based on the mapping relation between the attribute of the application program and the processing strategy by the electronic equipment. In one embodiment, the box modification database may store the above table one and table two, or only the above table two may be stored in the box modification database.
The following describes the procedure of the electronic device to acquire the "operation and level mapping relation":
Fig. 6 is a schematic flow chart of an application analysis module analyzing source codes according to an embodiment of the present application. Referring to fig. 6, the process of the application analysis module analyzing the source code of the application and acquiring the "operation and level mapping relationship" 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 a popup 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 test device) tests an application after a worker develops the application, an 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 by an algorithm (e.g., a smartlick algorithm), and then virtually traverse the triggerable controls in the triggering application. When the triggerable control is virtually triggered, the electronic equipment displays the 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 may click on. If 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 appreciated that the triggerable controls may be buttons, links, etc. that a user may operate, and that after the user operates the triggerable controls, the electronic device may display an interface responsive to the operation, the interface displayed by the electronic device being different from the interface displayed before the user operates the triggerable controls.
S602, the bullet frame management module acquires the attribute of the bullet frame corresponding to the triggerable control.
In one embodiment, the application analysis module may display a frame in response to an interface of the electronic device, send an identifier of a triggerable control corresponding to the frame management module, and obtain an attribute of the frame corresponding to the triggerable control in response to receiving the identifier of the triggerable control corresponding to the frame.
The bullet frame management module may invoke the stack information to obtain a source of the bullet frame in response to the electronic device displaying the bullet frame. The stack information includes a package name (name of the installation package), which indicates the source of the bullet box. For example, if the package name in the stack information is the package name of the application, the box management module may determine that the box is an "application self box", and the source of the box is "application self". If the package name in the stack information is the package name of the third party SDK integrated in the application program, the bullet frame management module can determine that the bullet frame is a "bullet frame integrating the third party SDK in the application program", and the source of the bullet frame is the "integration third party SDK in the application program". If the package name in the stack information is the system application program, the source of the popup frame is the system.
The bullet frame management module can obtain the type of the bullet frame according to the title and the information (message) in the corresponding source code when the electronic device displays the bullet frame. In one embodiment, the bullet frame management module stores keywords of titles corresponding to different types of bullet frames and keywords and/or links of information in advance, and the bullet frame management module can determine the type of the bullet frame based on the keywords and/or links.
Illustratively, the following table three is keywords and/or links corresponding to different types of bullet boxes:
watch III
Type of spring frame Keywords corresponding to titles Keywords and/or links corresponding to information
Harassment information bullet frame Shopping Advertisement, aaa.com.cn
Function guiding information bullet frame Mode setting Teenager mode, validation, bxxx
Information inducing bullet frame News Heat degree, real time
The method includes that a frame management module inquires the title and information of a frame corresponding to each triggerable control in the source code, and determines the type of the frame corresponding to the title or information containing a keyword preset by the frame of a first type as the first type. For example, if the frame management module queries that the frame corresponding to the triggerable control includes the keyword of "advertisement" in the title in the source code, the first type, that is, "harassment information frame" may be used as the type of the frame.
As above, the bullet frame management module may obtain the source of the bullet frame and the type of the bullet frame, and correspondingly, the bullet frame management module may obtain the level of the bullet frame according to the table two above. In one embodiment, the frame management module may obtain the level of the frame corresponding to each triggerable control according to the mapping relationship of the source of the frame corresponding to each triggerable control, the type of the frame corresponding to each triggerable control, the source of the frame, the type of the frame, and the level of the frame. The mapping relationship of the source of the frame, the type of the frame, and the level of the frame may be referred to as a first mapping relationship.
In this manner, the bullet box management module may obtain the properties (source, type, and level) of the bullet box.
In one embodiment, the frame management module may detect whether a frame has a problem according to the frame style. It should be appreciated that a problematic frame may be referred to as a problematic frame.
Illustratively, if the "close control" in a box is small in size, affecting user closure, such boxes are problematic. In this example, the frame management module may obtain the size of the frame and the size of the "close control" in the frame, so as to obtain the duty ratio of the size of the "close control" in the frame, and if the duty ratio is smaller than the preset duty ratio, the frame management module determines that the frame has a problem. It should be appreciated that the preset duty cycle is preset and stored in the sabot management module. It should be understood that, for example, the bullet frame management module may also detect whether a bullet frame has a problem by using other preset rules or modes, which is not limited in this embodiment of the present application.
S602 may be illustrated with reference to fig. 7.
And S603, the bullet frame management module stores the identification of the triggerable control and the corresponding bullet frame level of the triggerable control in a bullet frame classification database.
After the application analysis module traverses the triggerable controls in the application, the bullet frame management module can acquire the levels of the bullet frames corresponding to each triggerable control, so that the bullet frame management module can store the identification of the triggerable controls and the level correspondence of the bullet frames corresponding to the triggerable controls in the bullet frame classification database. The "mapping relation between operation and level" is stored in the bullet frame classification database, and the operation is the operation of the triggerable control corresponding to the operation.
The above embodiment teaches a process of the electronic device acquiring the "mapping relationship between operation and level", and a process of the electronic device preprocessing a frame using the "mapping relationship between operation and level", where the following describes a processing policy of the electronic device for a frame in "test scenario of application" and "scenario of application online":
scene one: test scenario for application
The electronic device (test device) tests the application program to detect whether a bullet box in the application program meets the specification. The electronic device may refer to the related description of S601-S602 in a manner of analyzing the source code of the application program, and traverse all the bullet frames in the application program, thereby obtaining the attribute of each bullet frame in the application program.
In one embodiment, the bullet frame with high level and the "bullet frame style" has problems is the bullet frame that needs to be modified, and the analysis result management module in the electronic device can output the title and the information of the bullet frame that needs to be modified in the source code, so as 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 so as 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 a third party SDK integrated in the application based on the source of the problematic box.
Scene II: application on-line scenarios
The electronic device (server) tests the application to detect whether a box in the application meets the specification. The electronic device may refer to the related description of S601-S602 in a manner of analyzing the source code of the application program, and traverse all the bullet frames in the application program, thereby obtaining the attribute of each bullet frame in the application program.
In one embodiment, the analysis result management module in the electronic device may make a modification prompt for a "high-level frame" and a frame with a problem in "frame style", where the modification prompt may refer to the description of scenario one above.
In one embodiment, the analysis results management module may also employ the processing strategy of "off-shelf application" for processing, as shown in FIG. 8.
As described in the above embodiment, the electronic device includes: the application program, the compliance assurance module, the bullet frame management module, the application program analysis module, the system management and control module, and the analysis result management module, so for the electronic device, referring to fig. 9, the bullet frame processing method provided in the embodiment of the application may include:
s901, responding to the operation of triggering the electronic equipment to display the bullet frame by a user, and acquiring the level of the bullet frame triggered by the operation.
In one embodiment, the bullet box displayed by the electronic device may include, but is not limited to, the following: a box in the application.
The electronic device includes a bullet frame classification database, in which "operation and level mapping relationships" are stored, and the application and the obtaining manner of the mapping relationships may refer to the related descriptions in the above embodiments.
In one embodiment, the operation of the user triggering the electronic device to display the bullet box is: 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 relation between the identification of the control and the level of the bullet frame can be triggered.
That is, the bullet box classification database stores the mapping relation between the identification of the triggerable control and the level of the bullet box. The electronic device may obtain the level of the bullet frame based on the identifier of the target triggerable control and the mapping relation between the identifier of the triggerable control and the level of the bullet frame in response to the target triggerable control displayed on the interface of the electronic device operated by the user.
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 electronic device includes a mapping relationship between the level and the processing policy, and the mapping relationship may refer to the related description in the above embodiment. The electronic device may obtain the processing policy of the frame according to the level of the frame and the mapping relationship between the level and the processing policy, and specifically reference may be made to the description related to S302.
S903, processing the bullet frame by adopting a processing strategy of the bullet frame.
S903 may refer to the related description in S303 described above.
The method for processing the bullet frame provided by the embodiment of the application has the same implementation principle and technical effect as the embodiment, and can be referred to the related description in the embodiment.
In an embodiment, an electronic device is further provided in an embodiment, and referring 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) or may further include a non-volatile memory (NVM), such as at least one magnetic disk memory, in which various instructions may be stored in the memory 1002 for performing various processing functions and implementing method steps of the present application. In an embodiment of the present application, the memory 1002 is configured to store computer executable program code, the program code including instructions; when the processor 1001 executes the instructions, the instructions cause the processor 1001 of the electronic device to perform the actions in the above method embodiment, which achieve 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 to enable connection communication between the electronic device and other peripherals. The communication bus 1004 is used to connect the elements 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 (application specific integrated circuit, ASIC), or one or more microprocessors (digital signal processor, DSP), or one or more field programmable gate arrays (field programmable gate array, FPGA), or the like. For another example, when a module above 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 (central processing unit, CPU) or other processor that may invoke the program code, such as a controller. For another example, the modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
In the above embodiments, it may be implemented in whole or in part 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. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.) means from one website, computer, server, or data center. Computer readable storage media can be any available media that can be accessed by a computer or data storage devices, such as servers, data centers, etc., that contain an integration of one or more 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)), etc.
The term "plurality" herein refers to two or more. The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship; in the formula, the character "/" indicates that the front and rear associated objects are a "division" relationship. In addition, it should be understood that in the description of this application, the words "first," "second," and the like are used merely for distinguishing between the descriptions and not for indicating or implying any relative importance or order.
It will be appreciated that the various numerical numbers referred to in the embodiments of the present application are merely for ease of description and are not intended to limit the scope of the embodiments of the present application.
It should be understood that, in the embodiments of the present application, the sequence number of each process described above does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not constitute any limitation on the implementation process of the embodiments of the present application.

Claims (14)

1. A method of processing a frame, comprising:
responding to an operation of triggering the electronic equipment to display the bullet frame by a user, and acquiring the level of the bullet frame triggered by the operation according to the operation and the mapping relation between the operation and the level of the bullet frame; the operation of triggering the electronic equipment to display the bullet frame by the user 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 relation between the mark of the triggerable control and the level of the bullet frame;
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;
adopting a processing strategy of the bullet frame to process the bullet frame;
the bullet frame that the electronic equipment that the said user triggered shows is: and responding to the operation of triggering the electronic equipment to display the bullet frame by the user in the bullet frame in the application program, and before acquiring the level of the bullet frame triggered by the operation, further comprising:
traversing the triggerable control in the application program according to the source code of the application program to obtain a popup frame corresponding to the triggerable control for triggering the popup frame in the application program;
acquiring the grade 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.
2. The method of claim 1, wherein the processing the sabot using the sabot processing policy comprises:
and shielding the operation-triggered bullet frame when the processing strategy is shielding bullet frame.
3. The method of claim 1, wherein the processing the sabot using the sabot processing policy comprises:
when the processing strategy is opened after the user agrees, outputting first prompt information, wherein the first prompt information is used for prompting the user whether to open the bullet frame;
responding to the receiving of an instruction of the user agreeing to open the bullet frame, and displaying the bullet frame triggered by the operation;
and shielding the operation-triggered bullet frame in response to receiving the instruction that the user does not agree to open the bullet frame.
4. The method of claim 1, wherein the processing the sabot using the sabot processing policy comprises:
when the processing strategy is opened based on the state of the spring frame switch, acquiring the state of the spring frame switch;
responding to the state of the spring frame switch to be opened, and displaying the spring frame triggered by the operation;
And shielding the operation triggered bullet frame in response to the status of the bullet frame switch being closed.
5. The method of claim 1, wherein the obtaining the level of the frame corresponding to each triggerable control comprises:
calling stack information to obtain the source of the popup frame 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;
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 relation, acquiring the grade of the popup frame corresponding to each triggerable control, wherein the first mapping relation is as follows: the source of the bullet frame, the type of the bullet frame, and the mapping relation of the level of the bullet frame.
6. The method of claim 5, wherein the respective types of the frames are preset with corresponding keywords, and the obtaining the type of the frame corresponding to each triggerable control according to the title and the information of the frame corresponding to each triggerable control in the source code includes:
inquiring the title and information of the bullet frame corresponding to each triggerable control in the source code, and determining the type of the bullet frame corresponding to the title or information of the keyword preset by the bullet frame with the first type as the first type.
7. The method of claim 5 or 6, wherein before traversing the triggerable controls in the application according to the source code of the application, further comprising:
inquiring the regulation of the bullet frame based on a preset address;
analyzing the rule according to the preset keywords corresponding to the bullet frames of each level 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.
8. The method according to any one of claims 1, 6-7, wherein after obtaining a box corresponding to a triggerable control for triggering a 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;
if yes, outputting second prompt information, wherein the second prompt information is used for indicating modification of the bullet frame corresponding to the triggerable control.
9. The method of claim 8, wherein the detecting whether the frame corresponding to the triggerable control is a problem frame comprises:
acquiring a style of the 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.
10. The method of claim 9, wherein the obtaining the style of the frame corresponding to the triggerable control comprises:
acquiring the ratio of the size of the closed control of the bullet frame corresponding to the triggerable control to the size of the bullet frame corresponding to the triggerable control;
based on the style of the frame corresponding to the triggerable control, detecting whether the frame corresponding to the triggerable control is a preset problem frame or not includes:
and if the duty ratio is smaller than the preset duty ratio, determining that the frame corresponding to the triggerable control is a problem frame.
11. A spring frame handling apparatus, comprising:
the bullet frame management module is used for responding to the operation of triggering the electronic equipment to display the bullet frame by a user, and acquiring the level of the bullet frame triggered by the operation according to the operation and the mapping relation between the operation and the level of the bullet frame; the operation of triggering the electronic equipment to display the bullet frame by the user 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 relation between the mark of the triggerable control and the level of the bullet frame;
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;
the system management and control module is used for processing the bullet frame by adopting a processing strategy of the bullet frame;
the bullet frame that the electronic equipment that the said user triggered shows is: a bullet box in the application;
the compliance ensuring module is also used for traversing the triggerable control in the application program according to the source code of the application program to obtain a popup frame corresponding to the triggerable control for triggering the popup frame in the application program; acquiring the grade 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.
12. An electronic device, comprising: a processor and a memory;
the memory stores computer-executable instructions;
the processor executing computer-executable instructions stored in the memory, causing the processor to perform the method of any one of claims 1-10.
13. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program or instructions, which when executed, implement the method of any of claims 1-10.
14. A computer program product comprising a computer program or instructions which, when executed by a processor, implements the method of any of claims 1-10.
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 CN115033317A (en) 2022-09-09
CN115033317B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116680000B (en) * 2022-10-28 2024-05-24 荣耀终端有限公司 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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117643B (en) * 2015-09-23 2018-02-23 北京金山安全软件有限公司 Method and device for processing popup
CN109819096A (en) * 2018-11-26 2019-05-28 努比亚技术有限公司 Push display control method, terminal and the computer storage medium of notification message
CN110636459B (en) * 2019-07-19 2021-11-23 北京无限光场科技有限公司 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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN115033317A (en) 2022-09-09

Similar Documents

Publication Publication Date Title
CN110826071B (en) Software vulnerability risk prediction method, device, equipment and storage medium
CN115033317B (en) Method and device for processing bullet frame, electronic equipment and readable storage medium
US20130117855A1 (en) Apparatus for automatically inspecting security of applications and method thereof
Yu et al. Autoppg: Towards automatic generation of privacy policy for android applications
US9069968B2 (en) Method and apparatus providing privacy benchmarking for mobile application development
KR102355973B1 (en) Apparatus and method for detecting smishing message
CN109145603A (en) A kind of Android privacy leakage behavioral value methods and techniques based on information flow
CN105787366A (en) Android software visualization safety analysis method based on module relations
US20150242470A1 (en) Systems and methods for recommending software applications
US10649881B2 (en) Determining compliance of software applications to compliance standards based on mapped application capabilities
CN111753192A (en) Advertisement popup intercepting method and device, electronic equipment and storage medium
CN108664471A (en) Text region error correction method, device, equipment and computer readable storage medium
CN112016138A (en) Method and device for automatic safe modeling of Internet of vehicles and electronic equipment
US11373004B2 (en) Report comprising a masked value
US20080126430A1 (en) Intermediary document for critical change control
CN114579452A (en) Interface influence detection method and related equipment
CN113254923A (en) Method and system for generating privacy policy text according to APK (android package)
CN114138651A (en) Test data generation method and device
CN107423362B (en) Industry determining method, object obtaining method and device, client and server
CN110838929B (en) System error checking method and system error checking device
US20240104005A1 (en) Method for testing application
CN108563578B (en) SDK compatibility detection method, device, equipment and readable storage medium
CN110209572A (en) Ui testing method, ui testing system and terminal
CN111385661A (en) Method and terminal for controlling full-screen playing through voice
CN114461909A (en) Information processing method, information processing apparatus, electronic device, and storage medium

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