CN105760160B - Method, device and system for adding cards from plug-in - Google Patents

Method, device and system for adding cards from plug-in Download PDF

Info

Publication number
CN105760160B
CN105760160B CN201610079537.0A CN201610079537A CN105760160B CN 105760160 B CN105760160 B CN 105760160B CN 201610079537 A CN201610079537 A CN 201610079537A CN 105760160 B CN105760160 B CN 105760160B
Authority
CN
China
Prior art keywords
card
added
plug
cards
add
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
CN201610079537.0A
Other languages
Chinese (zh)
Other versions
CN105760160A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201610079537.0A priority Critical patent/CN105760160B/en
Publication of CN105760160A publication Critical patent/CN105760160A/en
Application granted granted Critical
Publication of CN105760160B publication Critical patent/CN105760160B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method, a device and a system for adding cards from plug-ins, wherein the method comprises the following steps: when the plug-in calls the card adding interface, providing a card set to be added for the plug-in; and determining a card to be added from the set of cards to be added, and adding the determined card to be added into the application. According to the technical scheme, the card adding interface is called by the plug-in, so that the card can be added to the host APP from the plug-in of the host APP, and the technical effect of conveniently and quickly adding the card is achieved.

Description

Method, device and system for adding cards from plug-in
[ technical field ] A method for producing a semiconductor device
The invention relates to the technical field of computers, in particular to a method, a device and a system for adding cards from plug-ins.
[ background of the invention ]
In the existing implementation schemes, it has become more popular to use a card type layout in a user interface of a client Application (APP), where the card type layout can integrate a series of data such as information, images, texts, buttons, input boxes, links, etc. into various rectangular frames. The card can reasonably utilize space and clearly list all information.
In the prior art, cards are directly added to a user interface from a host APP, the cards can only be added from the host APP, and no technology is available for adding the cards to the host APP from a plug-in of the host APP.
[ summary of the invention ]
In order to solve the technical problem that a card cannot be added to a host APP from a plug-in unit in the prior art, the invention provides a method, a device and a system for adding the card from the plug-in unit, so that the inconvenience of adding the card in the prior art is overcome.
The specific technical scheme is as follows:
the invention provides a method for adding cards from plug-ins, which comprises the following steps:
when the plug-in calls the card adding interface, providing a card set to be added for the plug-in;
and determining a card to be added from the set of cards to be added, and adding the determined card to be added into the application.
According to a preferred embodiment of the present invention, when the add-card interface is called by the plug-in, providing the set of cards to be added for the plug-in includes:
providing an add-card interface to the plug-in;
determining a triggering operation of the add-card interface from the plug-in;
and providing a set of cards to be added in the plug-in according to the triggering operation.
According to a preferred embodiment of the present invention, the determining the cards to be added according to the set of cards to be added includes:
and determining the cards to be added according to the IDs of the cards to be added selected from the card set to be added.
According to a preferred embodiment of the present invention, before adding the determined card to be added to the application, the method further comprises:
verifying the determined card to be added;
if the verification is passed, continuing to add the determined card to be added into the application, otherwise, prohibiting to add the determined card to be added into the application.
According to a preferred embodiment of the present invention, verifying the determined card to be added includes:
judging whether the plug-in ID calling the card adding interface and the card ID to be added are matched with the corresponding relation between the plug-in ID and the card ID in the white list or not;
if yes, the verification is passed;
otherwise the check fails.
According to a preferred embodiment of the present invention, the white list is issued by a monitoring platform.
According to a preferred embodiment of the present invention, verifying the determined card to be added includes:
determining whether a number of cards to be added exceeds a maximum threshold, wherein the maximum threshold is related to a maximum number of cards that an add-in or application can add;
if the number of the cards to be added does not exceed the maximum threshold value, the verification is passed;
otherwise the check fails.
According to a preferred embodiment of the invention, the card comprises images, text, buttons, input boxes or links describing the functionality of the application.
The present invention also provides an apparatus for adding cards from an insert, the apparatus comprising:
the card adding device comprises a providing unit, a processing unit and a processing unit, wherein the providing unit is used for providing a card set to be added for a plug-in when the plug-in calls an add card interface;
the determining unit is used for determining the cards to be added from the card set to be added;
and the adding unit is used for adding the determined cards to be added into the application.
According to a preferred embodiment of the present invention, the providing unit specifically performs the following operations:
providing an add-card interface to the plug-in;
determining a triggering operation of the add-card interface from the plug-in;
and providing a set of cards to be added in the plug-in according to the triggering operation.
According to a preferred embodiment of the present invention, the determining unit determines the card to be added according to the ID of the card to be added selected from the set of cards to be added.
According to a preferred embodiment of the present invention, the apparatus further comprises a verification unit, configured to verify the determined card to be added before the adding unit executes;
if the check is passed, the adding unit is handed over to execute the corresponding operation, otherwise, the adding unit is prohibited to execute the corresponding operation.
According to a preferred embodiment of the present invention, the verification unit verifies the card to be added by performing the following operations:
judging whether the plug-in ID calling the card adding interface and the card ID to be added are matched with the corresponding relation between the plug-in ID and the card ID in the white list or not;
if yes, the verification is passed;
otherwise the check fails.
According to a preferred embodiment of the present invention, the white list is issued to the verification unit by a monitoring platform.
According to a preferred embodiment of the present invention, the verification unit verifies the card to be added by performing the following operations:
determining whether a number of cards to be added exceeds a maximum threshold, wherein the maximum threshold is related to a maximum number of cards that an add-in or application can add;
if the number of the cards to be added does not exceed the maximum threshold value, the verification is passed;
otherwise the check fails.
According to a preferred embodiment of the invention, the card comprises images, text, buttons, input boxes or links describing the functionality of the application.
The invention also provides a system for adding cards from a plug-in, which is characterized by comprising:
the plug-in module is used for calling an adding card interface provided by the application;
an application module comprising the apparatus for adding cards from an add-in as described in any one of the above.
According to the technical scheme, the card adding interface is called by the plug-in, so that the card can be added to the host APP from the plug-in of the host APP, and the technical effect of conveniently and quickly adding the card is achieved.
[ description of the drawings ]
FIG. 1 is a flowchart of a method for adding cards from a plug-in according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a card management interface provided for a user according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for adding cards from an inserter according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a system for adding cards from plug-ins according to a third embodiment of the present invention.
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
The first embodiment,
Fig. 1 is a flowchart of a method for adding a card from an add-in according to an embodiment of the present invention. As shown in fig. 1, the method may include the following processes:
101. when the plug-in calls the add-card interface, a set of cards to be added is provided for the plug-in.
In this step, the host APP may provide an interface for the plug-in to support the add-in card, and the interface may be called by the plug-in addition to the function of adding the card. Through the trigger operation to adding the card interface from plug-in components department, can realize plug-in components and to the call of interface to can add a card to host APP.
In particular, the host APP may provide an add-card interface to the plug-in and display a corresponding card management interface entry to the user.
The card management interface entrance can be displayed in a small icon mode in a functional area displayed by the plug-in, or displayed in a floating window mode and the like. When a user clicks a small icon or a floating window, the host APP can determine that the add-card interface is triggered by the plug-in, and the plug-in calls the add-card interface.
The card management interface access may be provided to the user at any time during the card installation or execution process.
When the interface for adding the card is triggered, the host APP can further provide the plug-in with a set of cards to be added.
Fig. 2 is a schematic diagram of a card management interface provided for a user according to an embodiment of the present invention. As shown in FIG. 2, two areas of add and added are mainly included in the card management interface, wherein the add area shows the set of cards to be added. Each region includes a plurality of functional cards, such as bouquet, search records, bouquet, etc., from which a user may select one or more cards to be added to add to the host APP, with the cards that have been added to the host APP being displayed in the added region.
Of course, fig. 2 is only one way to provide the card set to be added in a tiled form, and the card set may also be provided in other ways, such as in a list form, in a tree structure, and the like, which are all within the protection scope of the present invention.
In practical applications, for example, a baccarat is taken as a plug-in of a baccarat search application, when a user enters the baccarat, a card management interface entry button displayed in a small icon manner is provided for the user, the user clicks the small icon to enter the card management interface, a set of cards to be added is provided for the user on the interface, and after the user selects and clicks one or more cards to be added in the set, one (or more) card(s) is/are created on a home page of the baccarat search application.
While providing add-on card interfaces for add-ons, interface documents are also provided for add-ons. The document includes various functions in the host APP, which may be functions possessed by the application itself of the host APP, such as a search record function, or functions possessed by each of a plurality of plug-ins of the host APP, such as a wallet function, a cafe function, and the like. The information recorded in the interface document may include card information in the set of cards to be added, and may include, for example, a card ID of the card to be added, a corresponding link of the card, and the like.
The card ID maintained by the interface document may be obtained from a card with the existing function of the host APP, or may be a card distributed for the installed plug-in according to the function thereof when each plug-in is installed in the host APP, and the card ID of the distributed card is maintained in the interface document, so that the card with the function related to the installed plug-in may be used as an element in a set of cards to be added.
Because the cards related to the installation plug-in can also be placed in the card set to be added through the interface document, the cards of the installation plug-in can be added into the host APP by themselves or other plug-ins in a form of calling an interface for adding the cards, or can be directly added into the host APP.
102. And determining the cards to be added from the card set to be added.
In this step, the card to be added may be determined according to the ID of the card to be added selected from the set of cards to be added.
The plug-in party selects one or more cards to be added from the card set to be added, then the information for the selected cards to be added, such as card ID, etc., is transmitted to the host APP, and the host APP can determine the cards to be added from the card set to be added according to the information of the cards to be added.
The plug-in provides the host APP with not only the card ID but also information of the plug-in itself, such as the plug-in ID.
103. Checking the determined card to be added; if the verification is passed, the determined card to be added is continuously added into the application, otherwise, the determined card to be added is prohibited from being added into the application.
Due to the fact that the cards to be added are possibly added too much through the random addition of the plug-in, or the plug-in does not have the authority to add the corresponding cards, when the cards to be added are determined according to the set of the cards to be added, before the determined cards to be added are added into the application, the host APP can check the operation legality of the determined cards to be added, and whether the cards to be added can be added or not is determined.
The purpose of verification is to supervise the plug-in, control and prevent the plug-in party from adding the cards at will, guarantee that adding the cards will not make the number of the added cards in the host APP exceed the threshold, or in order to guarantee that the plug-in itself requesting to add the cards is a legal plug-in, or the plug-in has the authority to add the cards to be added.
Wherein, the checking can be performed by adopting a white list mode.
In particular, the host APP may obtain a white list and store it in a host database. When a request for adding a card initiated by a plug-in is received, a host APP can read a white list field of the plug-in from a host database, and the ID of the plug-in the white list and the ID of the card corresponding to the ID are compared with the ID of the plug-in calling an interface for adding the card and the ID of the card to be added corresponding to the ID; if the plug-in ID of the calling added card interface and the corresponding relation of the ID of the card to be added are in the white list, the verification is passed; otherwise the check fails.
The white list may record a correspondence between the plug-in and the cards that can be added, for example, table 1 shows a correspondence between the plug-in and the cards that can be added.
Figure BDA0000922525290000071
TABLE 1
As shown in table 1, cards a through E represent the set of cards to be added provided for each plug-in the host application. The check "√" indicates a card ID in the set of cards to be added that has authority to add for a particular card, e.g., card 1 allows only cards A, C and D to be added and card 2 allows only cards B, D and E to be added.
The white list can be issued to the host APP by the monitoring platform, and the monitoring platform can set corresponding rules of the plug-in and the card to set and maintain specific contents of the white list.
In addition, the number of cards to be added can also be used for verification.
It may be determined whether the number of cards to be added exceeds a maximum threshold, wherein the maximum threshold is related to a maximum number of cards that can be added by an add-in or application;
if the number of the cards to be added does not exceed the maximum threshold value, the verification is passed;
otherwise the check fails.
Specifically, the white list may not only define which specific cards the add-in may add, but may also define the number of cards the add-in may add. For example, a white list may define that the insert 1 is capable of adding up to 5 cards, the insert 2 is capable of adding up to 3 cards, etc. When the number of cards added by a particular card exceeds a maximum threshold that can be added, then the card is prohibited from adding cards.
And host APP itself also has a limitation on the number of added cards, that is, host APP itself also has a maximum threshold for the number of added cards, for example, if it is assumed that 30 cards can be added at most in the APP home page, if it is found that the number of added cards in host APP is greater than 30 after the host APP or the card to be added is added by the plug-in, the verification is not passed, and the plug-in is prohibited from adding cards.
Or when the number of the cards to be added is detected to exceed the maximum threshold value, prompt information can be provided for the plug-in unit to prompt the plug-in unit to reduce the number of the cards to be added to a reasonable range.
The checking by using the white list or the number of the cards can be independently completed, and the checking can also be cooperatively performed.
As a specific example, assuming that the white list stores the corresponding relationship between each plug-in and each card, including that the news forum plug-in can only select to add the cards such as pictures and videos related to the news forum, but cannot add the cards used for shopping, when the news forum plug-in selects and determines to add a video card, the host APP sends the information of the news forum ID and the video ID to the host APP for verification, and the host APP determines whether the news forum plug-in can add the video card according to the white list, and if the plug-in ID in the white list and the card ID corresponding to the plug-in ID conform to the news forum plug-in ID and the video card ID calling the added card interface, the adding is allowed. And when the plug-in of the news forum requests to add the shopping card, the verification fails and the addition is not allowed because the shopping card is not under the plug-in corresponding to the news forum. Further, after the white list verification is passed, the number of cards allowed to be added by the news forum plug-in and the number of cards already added by the host APP can be verified, and if the number exceeds a maximum threshold value, the addition fails.
104. And adding the determined cards to be added into the application.
In this step, if the check passes, a card may be added to the home page of the host APP by the host APP.
If the add-on card is successful, the card will be displayed in the home page of the host APP, which may include images, text, buttons, input boxes or links, etc. describing the application functionality.
Because the card corresponds to each function of the host APP, when the displayed card is clicked, the corresponding function of the APP can be started through the link of the card.
Or, the operation may be directly performed on the displayed card, for example, a search word is input in an input box of the card providing the search function, so that the search is directly performed on the card, and the other displayed cards are not changed.
The container holding the cards can be implemented in an assembly or sub-view, so that it can be operated in a single sub-view.
In addition, after the adding is successful, prompt information of successful adding can be returned for the plug-in.
Of course, if the verification fails or the addition fails, prompt information of the addition failure can be returned for the plug-in.
Example II,
Fig. 3 is a schematic structural diagram of an apparatus for adding cards from an inserter according to a second embodiment of the present invention. As shown in fig. 3, the apparatus may include:
the providing unit 301 is configured to provide a set of cards to be added for the plug-in when the plug-in calls the add-card interface.
The providing unit 301 in the host APP may provide an interface for the plug-in to support adding the card, and the interface may be called by the plug-in addition to the function of adding the card. Through the trigger operation to adding the card interface from plug-in components department, can realize plug-in components and to the call of interface to can add a card to host APP.
Specifically, the providing unit 301 may provide an add-card interface to the plug-in and display a corresponding card management interface entry to the user.
The card management interface entrance can be displayed in a small icon mode in a functional area displayed by the plug-in, or displayed in a floating window mode and the like. When a user clicks a small icon or a floating window, the host APP can determine that the add-card interface is triggered by the plug-in, and the plug-in calls the add-card interface.
The card management interface access may be provided to the user at any time during the card installation or execution process.
When the interface for adding cards is triggered, the providing unit 301 may further provide the plug-in with a set of cards to be added.
The card management interface provided for the user in this embodiment is the same as the schematic diagram provided in fig. 2 of the first embodiment, and is not described herein again.
Of course, fig. 2 is only one way to provide the card set to be added in a tiled form, and the card set may also be provided in other ways, such as in a list form, in a tree structure, and the like, which are all within the protection scope of the present invention.
While providing add-on card interfaces for add-ons, interface documents are also provided for add-ons. The document includes various functions in the host APP, which may be functions of the application itself of the host APP or functions of each of a plurality of plug-ins of the host APP. The information recorded in the interface document may include card information in the set of cards to be added. The cards to be added can be determined according to the card IDs to be added selected from the card set to be added.
The card ID maintained by the interface document may be obtained from a card with the existing function of the host APP, or may be a card distributed for the installed plug-in according to the function thereof when each plug-in is installed in the host APP, and the card ID of the distributed card is maintained in the interface document, so that the card with the function related to the installed plug-in may be used as an element in a set of cards to be added.
Because the cards related to the installation plug-in can also be placed in the card set to be added through the interface document, the cards of the installation plug-in can be added into the host APP by themselves or other plug-ins in a form of calling an interface for adding the cards, or can be directly added into the host APP.
A determining unit 302, configured to determine a card to be added from the set of cards to be added.
The cards to be added can be determined according to the IDs of the cards to be added selected from the set of cards to be added.
The plug-in party selects one or more cards to be added from the set of cards to be added, then information for the selected cards to be added, such as card IDs, etc., is transmitted to the determining unit 302 of the host APP, and the determining unit 302 may determine the cards to be added from the set of cards to be added according to the information of the cards to be added.
The card supplied to the determination unit 302 includes not only the card ID but also information of the card itself, such as the card ID and the like.
A verification unit 303, configured to verify the determined card to be added; if the check is passed, the corresponding operation is executed by the adding unit 304, otherwise, the corresponding operation is prohibited from being executed by the adding unit 304.
Since the cards to be added may be excessively added due to any addition of the plug-in, or the plug-in does not have a right to add the corresponding card, when the card to be added is determined according to the set of cards to be added, before the determined card to be added is added to the application, the verification unit 303 of the host APP may perform operation validity verification on the determined card to be added, so as to determine whether the card to be added can be added.
The purpose of verification is to supervise the plug-in, control and prevent the plug-in party from adding the cards at will, guarantee that adding the cards will not make the number of the added cards in the host APP exceed the threshold, or in order to guarantee that the plug-in itself requesting to add the cards is a legal plug-in, or the plug-in has the authority to add the cards to be added.
Wherein, the checking can be performed by adopting a white list mode.
In particular, the host APP may obtain a white list and store it in a host database. When a request for adding a card initiated by a plug-in is received, a host APP can read a white list field of the plug-in from a host database, and the ID of the plug-in the white list and the ID of the card corresponding to the ID are compared with the ID of the plug-in calling an interface for adding the card and the ID of the card to be added corresponding to the ID; if the plug-in ID of the calling added card interface and the corresponding relation of the ID of the card to be added are in the white list, the verification is passed; otherwise the check fails.
The white list may record a corresponding relationship between the plug-in and the cards that can be added to the plug-in, where the corresponding relationship between one of the plug-ins and the cards that can be added to the plug-in is shown in table 1 in the first embodiment, and details are not repeated here.
The white list can be issued to the host APP by the monitoring platform, and the monitoring platform can set corresponding rules of the plug-in and the card to set and maintain specific contents of the white list.
In addition, the number of cards to be added can also be used for verification.
It may be determined whether the number of cards to be added exceeds a maximum threshold, wherein the maximum threshold is related to a maximum number of cards that can be added by an add-in or application;
if the number of the cards to be added does not exceed the maximum threshold value, the verification is passed;
otherwise the check fails.
Specifically, the white list may not only define which specific cards the add-in may add, but may also define the number of cards the add-in may add. For example, a white list may define that the insert 1 is capable of adding up to 5 cards, the insert 2 is capable of adding up to 3 cards, etc. When the number of cards added by a particular card exceeds a maximum threshold that can be added, then the card is prohibited from adding cards.
And host APP itself also has a limitation on the number of added cards, that is, host APP itself also has a maximum threshold for the number of added cards, for example, if it is assumed that 30 cards can be added at most in the APP home page, if it is found that the number of added cards in host APP is greater than 30 after the host APP or the card to be added is added by the plug-in, the verification is not passed, and the plug-in is prohibited from adding cards.
Or when the number of the cards to be added is detected to exceed the maximum threshold value, prompt information can be provided for the plug-in unit to prompt the plug-in unit to reduce the number of the cards to be added to a reasonable range.
The checking by using the white list or the number of the cards can be independently completed, and the checking can also be cooperatively performed.
And an adding unit 304, configured to add the determined card to be added to the application.
If the check is passed, a card may be added to the home page of the host APP by the adding unit 304 of the host APP.
If the add-on card is successful, the card will be displayed in the home page of the host APP, which may include images, text, buttons, input boxes or links, etc. describing the application functionality.
Because the card corresponds to each function of the host APP, when the displayed card is clicked, the corresponding function of the APP can be started through the link of the card.
Or, the operation may be directly performed on the displayed card, for example, a search word is input in an input box of the card providing the search function, so that the search is directly performed on the card, and the other displayed cards are not changed.
The container holding the cards can be implemented in an assembly or sub-view, so that it can be operated in a single sub-view.
In addition, after the addition is successful, the adding unit 304 may return prompt information of successful addition for the plug-in.
Of course, if the verification fails or the addition fails, prompt information of the addition failure can be returned for the plug-in.
Example III,
Fig. 4 is a schematic structural diagram of a system for adding cards from plug-ins according to a third embodiment of the present invention. As shown in fig. 4, the system may include:
the plug-in module 401 is used for calling an add card interface provided by an application;
an application module 402 for providing an interface for adding cards for the plug-ins;
and the supervision platform 403 is used for issuing a white list.
The application module includes the device for adding cards from plug-ins in the second embodiment, namely, a providing unit 301, a determining unit 302, a verifying unit 303, and an adding unit 304.
Specifically, the plug-in module 401 may transmit a card adding request to the application module 402 according to an operation of a user on a card adding interface and a card set to be added, the application module 402 obtains a plug-in ID and a card ID to be added from the card adding request information, and verifies the IDs by using a white list issued from the monitoring platform, that is, the application module 402 compares the plug-in ID and the card ID thereof in the white list with a plug-in ID calling the card adding interface and a card ID to be added thereof, and if the card ID to be added is in the white list, the verification passes; otherwise the check fails.
Or, determining whether the number of cards to be added exceeds a maximum threshold, wherein the maximum threshold is related to a maximum number of cards that can be added by the add-in or the application; if the number of cards to be added does not exceed the maximum threshold, the verification passes, otherwise the verification fails.
If the verification is passed, the application module 402 adds the determined card to be added to the application, otherwise, the determined card to be added is prohibited from being added to the application.
Other descriptions of the device for adding cards from the plug-in included in the application module 402 are the same as those in the second embodiment, and are not repeated herein.
By implementing the technical scheme of the invention, the following technical effects can be obtained:
(1) through the technical scheme of the invention, one or more cards can be added to the host APP from the plug-in unit, so that the inconvenience of adding the cards in the prior art is overcome, and the technical effect of conveniently and quickly adding the cards is achieved.
(2) Because the user can accomplish the addition of its required card in the plug-in components, the click volume of card has potentially been increased, and the corresponding click volume that can bring for host APP.
In the embodiments provided in the present invention, it should be understood that the disclosed method, apparatus and system can be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (17)

1. A method of adding cards from an insert, the method comprising:
providing an adding card interface for a plug-in, wherein the adding card interface has a function of adding a card and can be called by the plug-in, and calling of the interface by the plug-in is realized by triggering operation of a user of the adding card interface from the plug-in;
when an add-card interface is called from a plug-in of an application, providing a set of cards to be added for the plug-in;
determining cards to be added from the set of cards to be added, and adding the determined cards to be added into the application.
2. The method of claim 1, wherein providing a set of cards to be added for a plug-in when an add-card interface is called from the plug-in of an application comprises:
providing an add-card interface to the plug-in;
determining a triggering operation of the add-card interface from the plug-in;
and providing a set of cards to be added in the plug-in according to the triggering operation.
3. The method of claim 1, wherein the determining a card to add from the set of cards to add comprises:
and determining the cards to be added according to the IDs of the cards to be added selected from the card set to be added.
4. The method according to any one of claims 1-3, wherein prior to adding the determined card to be added to the application, the method further comprises:
verifying the determined card to be added;
if the verification is passed, continuing to add the determined card to be added into the application, otherwise forbidding to add the determined card to be added into the application.
5. The method of claim 4, wherein verifying the determined card to be added comprises:
judging whether the plug-in ID calling the card adding interface and the card ID to be added are matched with the corresponding relation between the plug-in ID and the card ID in the white list or not;
if yes, the verification is passed;
otherwise the check fails.
6. The method of claim 5, wherein the white list is issued by a regulatory platform.
7. The method of claim 4, wherein verifying the determined card to be added comprises:
determining whether a number of cards to be added exceeds a maximum threshold, wherein the maximum threshold is related to a maximum number of cards that an add-in or application can add;
if the number of the cards to be added does not exceed the maximum threshold value, the verification is passed;
otherwise the check fails.
8. The method of any of claims 1-3, wherein the card includes an image, text, a button, an input box, or a link describing an application function.
9. An apparatus for adding cards from an insert, the apparatus comprising:
the card adding device comprises a providing unit, a card adding unit and a card adding unit, wherein the providing unit is used for providing an adding card interface for a plug-in, the adding card interface has the function of adding a card and can be called by the plug-in, and providing a set of cards to be added for the plug-in when the adding card interface is called by the plug-in of an application, and the calling of the plug-in to the interface is realized by triggering operation of a user of the adding card interface from the plug-in;
the determining unit is used for determining the cards to be added from the card set to be added;
and the adding unit is used for adding the determined cards to be added into the application.
10. The apparatus according to claim 9, wherein the providing unit performs the following operations:
providing an add-card interface to the plug-in;
determining a triggering operation of the add-card interface from the plug-in;
and providing a set of cards to be added in the plug-in according to the triggering operation.
11. The apparatus according to claim 9, wherein the determination unit determines the card to be added according to the card ID to be added selected from the set of cards to be added.
12. The apparatus according to claim 9, further comprising a verification unit for verifying the determined card to be added before the adding unit performs;
if the check is passed, the adding unit is handed over to execute the corresponding operation, otherwise, the adding unit is prohibited to execute the corresponding operation.
13. The apparatus of claim 12, wherein the verification unit verifies the card to be added by:
judging whether the plug-in ID calling the card adding interface and the card ID to be added are matched with the corresponding relation between the plug-in ID and the card ID in the white list or not;
if yes, the verification is passed;
otherwise the check fails.
14. The apparatus of claim 13, wherein the white list is issued to the verification unit by a supervisory platform.
15. The apparatus of claim 12, wherein the verification unit verifies the card to be added by performing the following operations:
determining whether a number of cards to be added exceeds a maximum threshold, wherein the maximum threshold is related to a maximum number of cards that an add-in or application can add;
if the number of the cards to be added does not exceed the maximum threshold value, the verification is passed;
otherwise the check fails.
16. The apparatus of any of claims 9-15, wherein the card comprises an image, text, a button, an input box, or a link describing an application function.
17. A system for adding cards from an insert, the system comprising:
the plug-in module is used for calling an adding card interface provided by the application;
an application module comprising a means for adding cards from an insert as claimed in any one of claims 9 to 15.
CN201610079537.0A 2016-02-04 2016-02-04 Method, device and system for adding cards from plug-in Active CN105760160B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610079537.0A CN105760160B (en) 2016-02-04 2016-02-04 Method, device and system for adding cards from plug-in

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610079537.0A CN105760160B (en) 2016-02-04 2016-02-04 Method, device and system for adding cards from plug-in

Publications (2)

Publication Number Publication Date
CN105760160A CN105760160A (en) 2016-07-13
CN105760160B true CN105760160B (en) 2020-03-03

Family

ID=56330608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610079537.0A Active CN105760160B (en) 2016-02-04 2016-02-04 Method, device and system for adding cards from plug-in

Country Status (1)

Country Link
CN (1) CN105760160B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406866A (en) * 2016-09-02 2017-02-15 百度在线网络技术(北京)有限公司 Method and apparatus for supporting card transparentizing
CN116700556B (en) * 2022-11-15 2024-05-31 荣耀终端有限公司 Card generation method and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622220A (en) * 2011-06-14 2012-08-01 北京小米科技有限责任公司 Plug-in interface placement method of mobile terminal
CN103645919A (en) * 2013-12-18 2014-03-19 用友软件股份有限公司 Method for extending functions of management information system through plugins
CN103744659A (en) * 2013-12-24 2014-04-23 北京百度网讯科技有限公司 Method and device for card type management of application entries
CN104714828A (en) * 2015-03-31 2015-06-17 北京奇虎科技有限公司 Methods and devices for installing and operating application
CN104881224A (en) * 2015-05-18 2015-09-02 百度在线网络技术(北京)有限公司 Method and device for adding cards
CN105045596A (en) * 2015-07-31 2015-11-11 百度在线网络技术(北京)有限公司 Plug-in calling method and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622220A (en) * 2011-06-14 2012-08-01 北京小米科技有限责任公司 Plug-in interface placement method of mobile terminal
CN103645919A (en) * 2013-12-18 2014-03-19 用友软件股份有限公司 Method for extending functions of management information system through plugins
CN103744659A (en) * 2013-12-24 2014-04-23 北京百度网讯科技有限公司 Method and device for card type management of application entries
CN104714828A (en) * 2015-03-31 2015-06-17 北京奇虎科技有限公司 Methods and devices for installing and operating application
CN104881224A (en) * 2015-05-18 2015-09-02 百度在线网络技术(北京)有限公司 Method and device for adding cards
CN105045596A (en) * 2015-07-31 2015-11-11 百度在线网络技术(北京)有限公司 Plug-in calling method and apparatus

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
如何管理百度卡片;撸游七;《https://jingyan.baidu.com/article/cb5d610514308e005c2fe0f4.html》;20141221;1-3 *
手机百度5.0卡片三大趋势;无;《计算机与网络》;20140112;15 *

Also Published As

Publication number Publication date
CN105760160A (en) 2016-07-13

Similar Documents

Publication Publication Date Title
US10216956B2 (en) Virtualization input component
US20160232374A1 (en) Permission control method and apparatus
US20150324579A1 (en) Method, apparatus, and system for managing user accounts
CN110334144B (en) Message display method, device, computer equipment and storage medium
CN110851879A (en) Method, device and equipment for infringement and evidence preservation based on evidence preservation block chain
US10791115B1 (en) Bidirectional authentication
EP3176719B1 (en) Methods and devices for acquiring certification document
CN107852412A (en) For phishing and the system and method for brand protection
KR102110642B1 (en) Password protection question setting method and device
CN107729768B (en) Page display method and device, intelligent panel and storage medium
US20160063240A1 (en) Managing registration of user identity using handwriting
US20170279789A1 (en) Information processing method and system, electronic device, and server
CN110990798B (en) Application program permission configuration method and device, electronic equipment and storage medium
CN110750765B (en) Service system, front-end page control method thereof, computer device, and storage medium
CN105760160B (en) Method, device and system for adding cards from plug-in
US20060047783A1 (en) Methods and apparatuses for automatically selecting a profile
CN105677891B (en) A kind of file naming method, device and terminal
CN107766743B (en) Method and device for setting file access authority, terminal equipment and storage medium
CN112800401A (en) Privacy processing method and device and terminal
CN113568542A (en) Interface display method and electronic equipment
CN111666543A (en) Identity authentication code generation system and method based on user input habit
CN112788017A (en) Safety verification method, device, equipment and medium
CN108965335B (en) Method for preventing malicious access to login interface, electronic device and computer medium
CN110704498A (en) Data extraction method, device, equipment and computer readable storage medium
CN104219251A (en) Website data obtaining method and device

Legal Events

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