A method, device, equipment and medium for reviewing a small program

By obtaining the interactive design draft of the mini program, and judging the user information acquisition page and program type, the problems of advancement of mini program review and compliance with rules are solved, reducing the frequency of online and updates of unqualified mini programs, and improving the review efficiency.

CN113836494BActive Publication Date: 2024-11-19ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202111070234.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-13
Publication Date
2024-11-19
Estimated Expiration
2041-09-13

AI Technical Summary

Technical Problem

The review of existing technology mini- and medium-sized programs is usually carried out after development is completed, which makes it difficult to detect defects in a timely manner, and mini-programs that do not comply with the rules are difficult to avoid the problems of online and frequent updates.

Method used

By obtaining the interactive design draft of the mini program, determine the user information referring to the pronoun and program type in the information acquisition page, determine whether the user information acquisition complies with the rules, and generate a logo that complies with the rules for review in advance.

Benefits of technology

It has realized the advancement of mini program review, avoiding the launch and frequent update of mini programs that do not comply with the rules, and reducing the workload of development and operation and maintenance personnel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113836494B_ABST
    Figure CN113836494B_ABST
Patent Text Reader

Abstract

The embodiments of this specification disclose a method, device, equipment and medium for reviewing a mini program. The scheme includes: obtaining an interactive design draft of a target mini program; determining an information acquisition page for obtaining user information from the interactive design draft; determining each first user information reference term in the information acquisition page; determining the program type to which the target mini program belongs; judging whether the user information required to be obtained by the target mini program complies with the user information acquisition rules that the mini program of the program type needs to comply with, and obtaining a first judgment result; if the first judgment result indicates that the user information required to be obtained by the target mini program complies with the user information acquisition rules that the mini program of the program type needs to comply with, then generating an identifier to indicate that the mini program corresponding to the interactive design draft complies with the user information acquisition rules.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, equipment and medium for reviewing a mini-program. Background Art

[0002] Mini Programs are applications that can be used without downloading and installing. They realize the dream of having applications “at your fingertips” and users can open the application by scanning or searching.

[0003] Due to the convenience of mini programs, more and more users choose to use mini programs. With the emergence of various mini programs, how to conduct timely and effective review of mini programs is a technical problem that needs to be solved urgently. Summary of the invention

[0004] The embodiments of this specification provide a method, device, equipment and medium for reviewing a mini-program to improve the review efficiency of the corresponding mini-program.

[0005] To solve the above technical problems, the embodiments of this specification are implemented as follows:

[0006] The embodiment of this specification provides a method for reviewing a mini program, including:

[0007] Get the interactive design draft of the target mini program;

[0008] Determine an information acquisition page for acquiring user information from the interaction design draft;

[0009] Determine each first user information reference term in the information acquisition page; the first user information reference term is used to represent the user information that the target mini program needs to obtain;

[0010] Determine the program type to which the target applet belongs;

[0011] According to each of the first user information pronouns, determining whether the user information that the target mini-program needs to obtain complies with a user information acquisition rule that a mini-program of the program type needs to comply with, and obtaining a first determination result;

[0012] If the first judgment result indicates that the user information that the target mini-program needs to obtain complies with the user information acquisition rules that the mini-program of the program type needs to comply with, an identifier is generated to indicate that the mini-program corresponding to the interactive design draft complies with the user information acquisition rules.

[0013] An embodiment of this specification provides a device for reviewing a mini program, including:

[0014] The manuscript acquisition module is used to obtain the interactive design manuscript of the target applet;

[0015] A page acquisition module, used to determine an information acquisition page for acquiring user information from the interaction design draft;

[0016] A pronoun determination module, used to determine each first user information pronoun in the information acquisition page; the first user information pronoun is used to represent the user information that the target mini program needs to obtain;

[0017] A type determination module, used to determine the program type to which the target applet belongs;

[0018] A judgment module, configured to judge, based on each of the first user information pronouns, whether the user information required to be obtained by the target mini-program complies with a user information acquisition rule required to be complied with by a mini-program of the program type, and obtain a first judgment result;

[0019] A result processing module is used to generate an identifier indicating that the mini program corresponding to the interactive design draft complies with the user information acquisition rules if the first judgment result indicates that the user information that the target mini program needs to obtain complies with the user information acquisition rules that the mini program of the program type needs to comply with.

[0020] An embodiment of this specification provides a device for reviewing a mini program, including:

[0021] at least one processor; and,

[0022] a memory communicatively connected to the at least one processor; wherein,

[0023] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:

[0024] Get the interactive design draft of the target mini program;

[0025] Determine an information acquisition page for acquiring user information from the interaction design draft;

[0026] Determine each first user information reference term in the information acquisition page; the first user information reference term is used to represent the user information that the target mini program needs to obtain;

[0027] Determine the program type to which the target applet belongs;

[0028] According to each of the first user information pronouns, determining whether the user information that the target mini-program needs to obtain complies with a user information acquisition rule that a mini-program of the program type needs to comply with, and obtaining a first determination result;

[0029] If the first judgment result indicates that the user information that the target mini-program needs to obtain complies with the user information acquisition rules that the mini-program of the program type needs to comply with, an identifier is generated to indicate that the mini-program corresponding to the interactive design draft complies with the user information acquisition rules.

[0030] An embodiment of the present specification provides a computer-readable medium on which computer-readable instructions are stored. The computer-readable instructions can be executed by a processor to implement a method for auditing a mini-program.

[0031] An embodiment of this specification can achieve the following beneficial effects:

[0032] In the embodiments of this specification, by obtaining the interactive design draft of the target mini-program, it is determined whether the user information that the target mini-program needs to obtain complies with the user information acquisition rules. The mini-program can be reviewed before the mini-program is developed or launched, so that the mini-program review process is advanced, so that the mini-program review can be completed in a timely and effective manner. In addition, the development and launch of mini-programs that do not comply with the rules can be avoided, and there is no need to frequently update or remove unqualified mini-programs, which can further reduce the workload of developers and operation and maintenance personnel. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0034] Figure 1 A schematic diagram of an application scenario of a method for reviewing a mini program provided in an embodiment of this specification;

[0035] Figure 2 A flowchart of a method for reviewing a mini program provided in an embodiment of this specification;

[0036] Figure 3 A swim lane diagram of a method for reviewing a mini program provided in an embodiment of this specification;

[0037] Figure 4 A schematic diagram of the structure of a device for reviewing a mini-program provided in an embodiment of this specification;

[0038] Figure 5 A schematic diagram of the structure of a device for reviewing mini-programs provided in an embodiment of this specification. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solutions and advantages of one or more embodiments of this specification clearer, the technical solutions of one or more embodiments of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this description, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of one or more embodiments of this specification.

[0040] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0041] In the prior art, the review of a mini program is usually conducted after the mini program is developed, by simulating operations on the mini program to be launched and reviewing the mini program, or by discovering defects in the mini program through user feedback after the mini program is launched. That is, the review of a mini program in the prior art is usually conducted after the mini program is developed, and problems in the mini program can only be discovered by running the mini program.

[0042] In order to solve the defects in the prior art, this solution provides the following embodiments:

[0043] Figure 1 This is a schematic diagram of an application scenario of a method for reviewing a mini program provided in an embodiment of this specification. Figure 1 As shown, the scenario may include an interaction design draft 1 and an audit platform 2 of a target mini program, wherein the audit platform 2 may audit the interaction design draft 1, determine the first user information pronoun contained in the interaction design draft 1 for representing the user information that the target mini program needs to obtain, and determine whether the user information that the target mini program needs to obtain complies with the user information acquisition rules that the mini program of this program type needs to comply with. If so, it can be determined that the interaction design draft complies with the regulations, and further it can be explained that the target mini program developed according to the interaction design draft complies with the regulations, and then the mini program can be audited before the mini program is developed or launched, so that the mini program audit process is advanced, thereby completing the mini program audit in a timely and effective manner.

[0044] Next, a method for reviewing a mini program provided in the embodiment of the specification will be specifically described with reference to the accompanying drawings:

[0045] Figure 2 A flowchart of a method for reviewing a mini program provided in an embodiment of this specification. From a program perspective, the execution subject of the process can be a program installed on an application server or an application client.

[0046] like Figure 2 As shown, the process may include the following steps:

[0047] Step 202: Obtain the interactive design draft of the target applet.

[0048] In actual applications, the interactive draft can be designed to provide interactive solutions in the form of interactive drafts based on different product requirements. Developers can complete the program writing, effect design, testing, etc. of the target mini program based on the interactive design draft.

[0049] The interactive design draft in the embodiments of this specification may be an interactive draft designed according to the requirements of the target applet, wherein the interactive design draft may present the complete process of the target applet, for example, including the interface that the target applet needs to present, the jump relationship between the interfaces, all functional points required for the elements in the interface to present, the various states of the elements in the interface, the effects after the elements are operated, etc. The interactive design draft may include a picture representing the interface of the target applet, and may also include annotation information on the elements in the interface, etc. The specific content of the interactive design draft needs to be set according to the specific requirements of the target applet, and is not specifically limited here.

[0050] Step 204: Determine an information acquisition page for acquiring user information from the interaction design draft.

[0051] The interactive design draft may include various interfaces that can be presented by the target mini program, including an information acquisition page for obtaining user information. In the information acquisition page, the user can choose whether to allow the target mini program to obtain user information. The information acquisition page may include an authorization request page that appears when the user enters the target mini program or after entering the target mini program, such as an authorization request pop-up window, an agreement signing request interface, etc. In actual applications, the information acquisition page can be presented on the homepage of the target mini program. For example, the user enters and clicks on the logo of the target mini program to enter the mini program homepage, and the information acquisition page will be displayed in at least part of the homepage; it can also be a non-homepage of the target mini program. For example, after the user enters the mini program and activates a certain function, the information acquisition page may also appear.

[0052] Step 206: Determine each first user information pronoun in the information acquisition page; the first user information pronoun is used to represent the user information that the target applet needs to obtain.

[0053] Step 208: Determine the program type to which the target applet belongs.

[0054] The program types of the target mini-programs may include shopping, entertainment, games, catering, sports, medicine, funds, etc.

[0055] In order to ensure the security of user information in actual applications, it is necessary to set the user information that different types of mini-programs are allowed to obtain in accordance with the "Information Security Technology Personal Information Security Specification", "Internet Personal Information Security Protection Guidelines", "Network Security Standard Practice Guidelines - Mobile Internet Application (App) Software Development Kit (SDK) Security Guidelines", etc. For example, sports mini-programs can be allowed to obtain information such as the number of steps taken by users; catering mini-programs can be allowed to obtain user location information, but if catering mini-programs also request to obtain information unrelated to catering, such as the user's address book, it can be considered as not in compliance with regulations.

[0056] Step 210: Based on the first user information pronouns, determine whether the user information that the target mini-program needs to obtain complies with the user information acquisition rules that the mini-program of the program type needs to comply with, and obtain a first determination result.

[0057] In the embodiments of this specification, according to relevant regulations, user information acquisition rules corresponding to different types of mini-programs can be set for the program types of the mini-programs. The user information acquisition rules can indicate the user information that is allowed to be obtained by the mini-programs of this type. In actual applications, the user information that the mini-programs are allowed to obtain is usually the user information that affects the use of the mini-programs. If the required user information is not obtained, the user's use of the mini-programs may be affected. For example, a mini-program is a sports mini-program that needs to obtain the user's exercise steps and count the user's exercise volume in order to reflect the role of the mini-program. The mini-program can obtain the user's exercise step information.

[0058] Step 212: If the first judgment result indicates that the user information that the target mini-program needs to obtain complies with the user information acquisition rules that the mini-program of the program type needs to comply with, then an identifier is generated to indicate that the mini-program corresponding to the interactive design draft complies with the user information acquisition rules.

[0059] It should be understood that the order of some steps in the methods described in one or more embodiments of this specification can be interchanged according to actual needs, or some steps can be omitted or deleted.

[0060] Figure 2 In the method, in the embodiment of this specification, by obtaining the interactive design draft of the target mini-program, it is determined whether the user information that the target mini-program needs to obtain complies with the user information acquisition rules. The mini-program can be reviewed before the mini-program is developed or launched, so that the process of reviewing the mini-program is advanced, so that the review of the mini-program can be completed in a timely and effective manner. In addition, the development and launch of mini-programs that do not comply with the rules can be avoided, and there is no need to frequently update or remove unqualified mini-programs, which can further reduce the workload of developers or operation and maintenance personnel.

[0061] The interactive design draft is used to review the target Mini Program in the embodiments of this specification. This is also due to the fact that in actual applications, compared with ordinary application APPs and other clients, Mini Programs involve fewer interfaces and the jump relationships between interfaces are simpler. The process logic of the entire interactive design draft is clearer, and it is more feasible to review Mini Programs by reviewing the interactive design draft.

[0062] based on Figure 2 The present specification also provides some specific implementation plans of the method, which are described below.

[0063] In the embodiment of this specification, the display mode of the information acquisition page can also be reviewed to determine whether the page information mode of the information acquisition page conforms to the preset page display mode. Among them, the preset page display mode can be set according to relevant regulations. Specifically, before generating the identifier used to indicate that the mini program corresponding to the interactive design draft conforms to the user information acquisition rule in step 212 of this specification, it can also include:

[0064] Determine that the page display mode of the information acquisition page complies with the preset page display mode; the preset page display is a mode that enables the user of the target applet to clearly understand the content of the information acquisition page.

[0065] In actual applications, in order to prevent users from having their information obtained without their knowledge, the content of the information acquisition page needs to be clearly displayed to users.

[0066] The preset page display method described in the embodiments of this specification may specifically include:

[0067] The information obtains the preset font size of the text in the page.

[0068] The font format may include the size of the font. To facilitate users to see the page content in the information acquisition page, the font in the information acquisition page cannot be too small to prevent users from missing information.

[0069] The font format may also include a font style, for example, traditional Chinese characters, simplified Chinese characters, Songti, Kaiti, etc. Generally, the font style in the information acquisition page may be the same as the font style in other pages of the mini program.

[0070] In actual applications, the interactive design draft may include annotation information indicating the font specifications of the text in the information acquisition page. The annotation information may describe the font style, font color, font size, etc. of the text.

[0071] As an implementation manner, in the embodiments of this specification, determining that the page display mode of the information acquisition page complies with the preset page display mode may specifically include:

[0072] Obtaining text information from the information acquisition page;

[0073] Determine the text font size corresponding to the text information;

[0074] It is determined that the text font size meets the preset font size.

[0075] Among them, font annotation information for describing the font specifications displayed in the information acquisition page can also be obtained from the annotation information in the interactive design draft; based on the font annotation information, the font specifications displayed in the information acquisition page are determined; and it is determined whether the font specifications are the preset font specifications.

[0076] The annotation information in the interactive design draft is usually connected to the annotation object through association marks such as connecting lines, indicating the corresponding relationship between the annotation information and the annotation object. The annotation information can be determined through the association marks.

[0077] In practical applications, it is also possible to determine whether the font size of the text in the information acquisition page meets the preset font size by calculating the area occupied by each word in the information acquisition page. Specifically, in the example of this specification, determining whether the page display mode of the information acquisition page meets the preset page display mode may include:

[0078] Extracting each word in the information acquisition page;

[0079] Determine whether the area ratio of each character is greater than or equal to a preset area ratio; the area ratio represents the ratio of the area occupied by each character in the characters to the area on the information acquisition page;

[0080] If the area proportions of the various characters are greater than or equal to the preset area proportions, it can be determined that the page display mode of the information acquisition page complies with the preset page display mode.

[0081] The preset page display method described in the embodiments of this specification may specifically include:

[0082] The information acquires a preset color contrast ratio between text in the page and the background page.

[0083] Wherein, determining that the page information mode of the information acquisition page conforms to the preset page display mode may specifically include:

[0084] Acquire text color information corresponding to the text in the information acquisition page;

[0085] Obtaining background color information corresponding to the background page in the information acquisition page;

[0086] Based on the text color information and the background color information, it is determined whether the color contrast between the text in the information acquisition page and the background page meets the preset color contrast.

[0087] Among them, text color annotation information for describing the display color of text in the information acquisition page can also be obtained from the annotation information in the interactive design draft;

[0088] Determining the display color of the text based on the text color annotation information;

[0089] Acquire background color annotation information for describing the display color of the background page in the information acquisition page from the annotation information in the interaction design draft;

[0090] Based on the background color annotation information, determining the display color of the background page;

[0091] The contrast between the text and the background page is determined according to the display color of the text and the display color of the background.

[0092] In actual applications, the information acquisition page may include controls indicating whether the user agrees or disagrees with the target mini program obtaining user information, whether the user accepts or rejects the agreement that the user needs to sign provided in the information acquisition page, and other functions. The user can select the corresponding control, and the target mini program will perform corresponding processing based on the user's selection.

[0093] The preset page display method described in the embodiments of this specification may specifically include:

[0094] The control for user selection in the information acquisition page is in an unselected state.

[0095] Among them, the controls in the information acquisition page can be used to determine whether the user pays attention to the target information.

[0096] In actual applications, the target mini program should obtain user information with the user's awareness and consent, and should not make default choices on behalf of the user.

[0097] In the embodiment of the present specification, determining that the page information mode of the information acquisition page conforms to the preset page display mode may specifically include:

[0098] Obtain each control in the information acquisition page;

[0099] Determine that each of the controls is in an unselected state.

[0100] Among them, each control in the information acquisition page can be obtained based on graphic recognition confirmation, and it can be determined that each control is in an unselected state.

[0101] The preset page display method described in the embodiments of this specification may specifically include:

[0102] The information acquisition page does not contain preset prohibited words.

[0103] In actual applications, some illegal or unclear words should also appear on the information acquisition page. Among them, a library of illegal words corresponding to the program category can be set according to the program category and based on corresponding laws, regulations and other provisions.

[0104] Wherein, determining that the page information mode of the information acquisition page conforms to the preset page display mode may specifically include:

[0105] Obtaining text information from the information acquisition page;

[0106] It is determined that the text information does not contain words in a preset illegal word library; the preset illegal word library contains words that are prohibited from being displayed on the information acquisition page.

[0107] The text information in the information acquisition page may be acquired based on image character recognition technology such as optical character recognition (OCR).

[0108] In actual applications, when the target mini program requests to obtain the user's user information, the user can be informed of the user information that needs to be obtained through the information acquisition page. After the user agrees to obtain the information, the mini program can only obtain the user information that has been informed to the user on the information acquisition page, and cannot obtain other user information without the user's knowledge and consent.

[0109] After the user agrees to the target Mini Program obtaining the user information prompted on the page, the user can view what user information the target Mini Program has obtained on certain pages of the Mini Program. For example, the user information obtained by the target Mini Program can be viewed on the settings page, user personal center page, and other Mini Program pages.

[0110] In the embodiment of this specification, before generating an identifier indicating that the mini-program corresponding to the interactive design draft complies with the user information acquisition rule, the following may also be included:

[0111] Acquire a user information display page corresponding to the information acquisition page; the user information display page includes a second user information reference term; the second user information reference term is used to indicate the user information that the target applet has acquired;

[0112] It is determined that the second user information pronoun is included in each of the first user information pronouns.

[0113] When the second user information pronouns contained in the user information display page are all included in the first preset keywords in the information acquisition page, it means that the target mini program only obtains the user information that the user is informed to obtain on the information acquisition page, and does not exceed the user's permitted scope, which is in compliance with regulations.

[0114] In actual applications, there may be one or more user information display pages, and each user information display page may contain one or more second user information pronouns. Determining that the second user information pronouns are contained in the first user information pronouns may specifically include: determining that the second user information pronouns contained in the various user information display pages are all contained in the first pronoun set consisting of all the first user information pronouns.

[0115] In actual applications, in order to ensure the security of user information, some user information needs to be displayed in an anonymized form. After determining that the second user information pronoun is included in the first user information pronouns, it can also be determined whether the user information corresponding to the second user information pronoun needs to be displayed in an anonymized form. If an anonymized form is required, before generating an identifier indicating that the mini-program corresponding to the interactive design draft complies with the user information acquisition rules, it is also necessary to determine whether an anonymized form is required.

[0116] In the embodiment of this specification, before generating an identifier indicating that the mini-program corresponding to the interactive design draft complies with the user information acquisition rule, the following may also be included:

[0117] Determine a third user information pronoun corresponding to the user information that needs to be desensitized in the second user information pronoun;

[0118] It is determined that the user information corresponding to the third user information pronoun has been displayed in an anonymized manner.

[0119] In actual applications, in the display page of the target mini-program, the user information may be displayed on the same page or interface as the corresponding user information pronouns. For example, in the same display interface, the user's name pronoun "name" is directly followed by the user's name "Zhang San"; it is also possible that the user information pronouns and the corresponding user information are in different interfaces. For example, clicking on "ID Number" will jump to the details page showing the specific ID number.

[0120] As an implementation manner, the method of determining that the user information corresponding to the third user information pronoun has been desensitized and displayed in the embodiments of this specification may specifically include:

[0121] Based on the association identifier, determining a user information detail page corresponding to the user information display page; the user information detail page is a page containing specific user information;

[0122] Obtaining user information corresponding to the third user information pronoun in the user information details page;

[0123] Determine that the user information corresponding to the third user information pronoun in the user information details page has been displayed in an anonymized manner.

[0124] In actual applications, the interactive design draft of the target applet may include various pages that the target applet needs to display. The associated pages or jump pages may be represented by connecting lines or other associated identifiers. For example, a connecting line with an arrow may be used to represent a jump from page A to page B, where the arrow in the connecting line with an arrow may point from page A to page B. In the embodiments of this specification, the interactive design draft may be reviewed in the order in which the pages are displayed in the target applet. For example, if page A does not comply with the relevant regulations, the review may be terminated and the interactive design draft may be determined to be unqualified; if page A complies with the relevant regulations, page B may continue to be reviewed, which may also reduce the workload of the review.

[0125] In actual applications, in order to avoid excessive disturbance to users, after the user rejects or closes the information acquisition page, or the number of rejections or closing of the information acquisition page reaches a preset number of times, the information acquisition page should not appear again when the user uses or opens the target applet again within a preset time period.

[0126] Before generating the identifier indicating that the mini-program corresponding to the interactive design draft complies with the user information acquisition rule in the embodiments of this specification, the following may also be included:

[0127] Obtain a rejection control in the information acquisition page for indicating that the user refuses the target applet to obtain the user information;

[0128] Obtaining annotation information corresponding to the rejection control in the interaction design draft;

[0129] It is determined that the annotation information corresponding to the reject control includes description information indicating that the information acquisition page is terminated from being displayed again.

[0130] For example, the information acquisition page contains an "Agree" control and a "Disagree" control. The interaction design draft needs to include annotation information for the "Disagree" control. The annotation information should include descriptive information indicating the termination of the information acquisition page from being displayed again, so that subsequent developers can write corresponding programs.

[0131] In actual applications, the information acquisition page may also include a control for closing the information acquisition page. Closing the information acquisition page may also indicate that the user does not agree with the target mini program to obtain user information. As an implementation method, before generating an identifier indicating that the mini program corresponding to the interactive design draft complies with the user information acquisition rules in the implementation of this specification, the following may also be included:

[0132] Obtaining a close control in the information acquisition page for indicating closing the information acquisition page;

[0133] Obtaining annotation information corresponding to the close control in the interaction design draft;

[0134] It is determined that the annotation information corresponding to the close control contains description information indicating that the information acquisition page is terminated from being displayed again.

[0135] Among them, the annotation information can be analyzed and identified based on semantic analysis algorithms or models such as Neuro-Linguistic Programming (NLP).

[0136] In the embodiment of the present specification, the first user information pronoun may include at least one of name, mobile phone number, account information, avatar, nickname, ID number, date of birth, geographic location, step information, address book, and message notification.

[0137] In actual applications, a vocabulary of user information pronouns referring to user information may be determined based on expert experience, and the first user information pronoun included in the information acquisition page may be determined based on the vocabulary.

[0138] In the embodiment of this specification, determining each first user information pronoun in the information acquisition page specifically includes:

[0139] Acquire a first preset pronoun word library; the first preset pronoun word library contains pronouns representing user information;

[0140] Based on the first preset pronoun lexicon, determining the pronouns in the first preset pronoun lexicon contained in the information acquisition page;

[0141] The pronoun in the first preset pronoun library contained in the information acquisition page is determined as the first user information pronoun.

[0142] Optionally, the determining whether the user information that the target mini-program needs to obtain complies with a user information acquisition rule that a mini-program of the program type needs to comply with may specifically include:

[0143] Based on the program type, determining a second preset pronoun word library corresponding to the program type; the second preset pronoun word library contains pronouns for user information that the mini program of the program type is allowed to obtain;

[0144] Determining whether each of the first user information pronouns is included in the second preset pronoun word library;

[0145] or,

[0146] Based on the program type, determining a third preset pronoun word library corresponding to the program type; the third preset pronoun word library contains pronouns for user information that the mini program of the program type is not allowed to obtain;

[0147] It is determined whether each of the first user information pronouns does not exist in the third preset pronoun database.

[0148] In the embodiment of this specification, the first user information pronoun in the page can also be obtained based on the neural network model recognition information.

[0149] To more clearly illustrate a method for reviewing a mini program provided in an embodiment of this specification, Figure 3 A swim lane diagram of a method for reviewing a mini program provided in an embodiment of this specification, such as Figure 3 As shown, the method may include an acquisition phase, a review phase, and a result processing phase, which may specifically include:

[0150] Step 302: The interactive design draft provider submits the interactive design draft of the target applet. In practical applications, the interactive design draft submitter can be a submission port with submission capability or a submission device, and the review server can be an application or platform with the ability to review the interactive design draft. The interactive design draft and the review server can be the same device or different devices.

[0151] Step 304: The review server obtains the interactive design draft of the target applet.

[0152] Step 306: Determine an information acquisition page for acquiring user information from the interaction design draft.

[0153] Step 308: Determine whether the page display mode of the information acquisition page complies with the preset page display mode.

[0154] Step 310: If the page display mode of the information acquisition page conforms to the preset page display mode, each first user information pronoun in the information acquisition page may be determined.

[0155] Step 312: Determine the program type to which the target applet belongs.

[0156] Step 314: Based on the first user information pronouns, determine whether the user information that the target mini-program needs to obtain complies with the user information acquisition rules that the mini-program of the program type needs to comply with.

[0157] Step 316: If the user information acquisition rules are met, a user information display page corresponding to the information acquisition page can be obtained; the user information display page includes a second user information reference noun; the second user information reference noun is used to indicate the user information that the target applet has acquired; and it is determined whether the second user information reference noun is included in each of the first user information reference nouns.

[0158] Step 318: If the second user information pronoun is included in each of the first user information pronouns, an identifier may be generated to indicate that the mini-program corresponding to the interactive design draft complies with the user information acquisition rule.

[0159] Step 320: If the judgment result in any of steps 308, 314, and 316 is a negative result, an identifier can be generated to indicate that the mini-program corresponding to the interactive design draft does not comply with the user information acquisition rules, indicating that the interactive design draft is unqualified, or that the target mini-program designed based on the interactive design draft is unqualified.

[0160] In actual applications, when it is determined that the interaction design draft of the target applet is qualified, the interaction design draft can be provided to the developer to carry out the program writing process of the target applet. When it is determined that the interaction design draft of the target applet is unqualified, information indicating unqualified can also be fed back to the submitter of the interaction design draft.

[0161] In the embodiments of this specification, after an executable target applet is encoded according to the approved interactive design draft, the program code of the target applet can also be checked based on the interactive design draft to see if there are any design errors, which can also improve the review process of the target applet.

[0162] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method. Figure 4 This is a schematic diagram of a structure of a device for reviewing a mini program provided in an embodiment of this specification. Figure 4 As shown, the device may include:

[0163] A manuscript acquisition module 402 is used to acquire an interactive design manuscript of a target applet;

[0164] A page acquisition module 404 is used to determine an information acquisition page for acquiring user information from the interaction design draft;

[0165] The pronoun determination module 406 is used to determine each first user information pronoun in the information acquisition page; the first user information pronoun is used to represent the user information that the target applet needs to obtain;

[0166] A type determination module 408, used to determine the program type to which the target applet belongs;

[0167] The judgment module 410 is used to judge whether the user information required to be obtained by the target mini program complies with the user information acquisition rules required to be complied with by the mini program of the program type according to the first user information pronouns, and obtain a first judgment result;

[0168] The result processing module 412 is used to generate an identifier indicating that the mini program corresponding to the interactive design draft complies with the user information acquisition rules if the first judgment result indicates that the user information that the target mini program needs to obtain complies with the user information acquisition rules that the mini program of the program type needs to comply with.

[0169] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method.

[0170] Figure 5 This is a schematic diagram of a device for reviewing a mini program provided in an embodiment of this specification. Figure 5 As shown, the device 500 may include:

[0171] at least one processor 510; and,

[0172] A memory 530 in communication with the at least one processor; wherein,

[0173] The memory 530 stores instructions 520 executable by the at least one processor 510. The instructions are executed by the at least one processor 510 to enable the at least one processor 510 to:

[0174] Get the interactive design draft of the target mini program;

[0175] Determine an information acquisition page for acquiring user information from the interaction design draft;

[0176] Determine each first user information reference term in the information acquisition page; the first user information reference term is used to represent the user information that the target mini program needs to obtain;

[0177] Determine the program type to which the target applet belongs;

[0178] According to each of the first user information pronouns, determining whether the user information that the target mini-program needs to obtain complies with a user information acquisition rule that a mini-program of the program type needs to comply with, and obtaining a first determination result;

[0179] If the first judgment result indicates that the user information that the target mini-program needs to obtain complies with the user information acquisition rules that the mini-program of the program type needs to comply with, an identifier is generated to indicate that the mini-program corresponding to the interactive design draft complies with the user information acquisition rules.

[0180] Based on the same idea, the embodiment of this specification also provides a computer-readable medium corresponding to the above method. The computer-readable medium stores computer-readable instructions, which can be executed by a processor to implement a method for reviewing a mini-program:

[0181] Each embodiment in this specification is described in a progressive manner. The same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. Figure 5 As for the device shown, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0182] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0183] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC625D, AtmelAT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0184] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0185] For the convenience of description, the above device is described in terms of functions and is described separately in various units. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0186] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0187] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0188] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0189] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0190] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0191] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0192] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0193] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0194] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0195] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0196] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for reviewing a mini program. include: Get the interactive design draft of the target mini program; Determine an information acquisition page for acquiring user information from the interaction design draft; Determining each first user information pronoun in the information acquisition page; The first user information pronoun is used to represent the user information that the target mini program needs to obtain; Determine the program type to which the target applet belongs; According to each of the first user information pronouns, determining whether the user information that the target mini-program needs to obtain complies with a user information acquisition rule that a mini-program of the program type needs to comply with, and obtaining a first determination result; If the first judgment result indicates that the user information that the target mini-program needs to obtain complies with the user information acquisition rules that the mini-program of the program type needs to comply with, an identifier is generated to indicate that the mini-program corresponding to the interactive design draft complies with the user information acquisition rules.

2. According to the method of claim 1, before generating an identifier indicating that the mini program corresponding to the interactive design draft complies with the user information acquisition rule, include: Determining that the page display mode of the information acquisition page complies with a preset page display mode; The preset page display is a way to enable the user of the target applet to clearly understand the content of the information acquisition page.

3. According to the method of claim 2, the preset page display mode is specifically include: The information obtains the preset font size of the text in the page.

4. The method according to claim 2, wherein the preset page display mode is specifically include: The information acquires a preset color contrast ratio between text in the page and the background page.

5. According to the method of claim 2, the preset page display mode is specifically include: The control for user selection in the information acquisition page is in an unselected state.

6. The method according to claim 2, wherein the preset page display mode is specifically include: The information acquisition page does not contain preset prohibited words.

7. According to the method of claim 1, before generating an identifier for indicating that the mini-program corresponding to the interactive design draft complies with the user information acquisition rule, include: Acquire a user information display page corresponding to the information acquisition page; The user information display page includes a second user information pronoun; The second user information pronoun is used to indicate the user information that has been acquired by the target mini program; It is determined that the second user information pronoun is included in each of the first user information pronouns.

8. The method according to claim 7, before generating an identifier for indicating that the mini-program corresponding to the interactive design draft complies with the user information acquisition rule, include: Determine a third user information pronoun corresponding to the user information that needs to be desensitized in the second user information pronoun; It is determined that the user information corresponding to the third user information pronoun has been displayed in an anonymized manner.

9. According to the method of claim 8, determining that the user information corresponding to the third user information pronoun has been displayed in an anonymized manner, specifically include: Based on the association identifier, determining a user information details page corresponding to the user information display page; Obtaining user information corresponding to the third user information pronoun in the user information details page; Determine that the user information corresponding to the third user information pronoun in the user information details page has been displayed in an anonymized manner.

10. The method according to claim 1, before generating an identifier for indicating that the mini-program corresponding to the interactive design draft complies with the user information acquisition rule, include: Obtain a rejection control in the information acquisition page for indicating that the user refuses the target applet to obtain the user information; Obtaining annotation information corresponding to the rejection control in the interaction design draft; It is determined that the annotation information corresponding to the reject control includes description information indicating that the information acquisition page is terminated from being displayed again.

11. According to the method of claim 1, before generating an identifier for indicating that the mini program corresponding to the interactive design draft complies with the user information acquisition rule, include: Obtaining a close control in the information acquisition page for indicating closing the information acquisition page; Obtaining annotation information corresponding to the close control in the interaction design draft; It is determined that the annotation information corresponding to the close control contains description information indicating that the information acquisition page is terminated from being displayed again.

12. According to the method according to claim 1, the first user information pronoun includes at least one of name, mobile phone number, account information, avatar, nickname, ID number, date of birth, geographic location, step information, address book, and message notification.

13. A device for reviewing a mini program. include: The manuscript acquisition module is used to obtain the interactive design manuscript of the target applet; A page acquisition module, used to determine an information acquisition page for acquiring user information from the interaction design draft; A pronoun determination module, used to determine each first user information pronoun in the information acquisition page; the first user information pronoun is used to represent the user information that the target mini program needs to obtain; A type determination module, used to determine the program type to which the target applet belongs; A judgment module, configured to judge, based on each of the first user information pronouns, whether the user information required to be obtained by the target mini-program complies with a user information acquisition rule required to be complied with by a mini-program of the program type, and obtain a first judgment result; A result processing module is used to generate an identifier indicating that the mini program corresponding to the interactive design draft complies with the user information acquisition rules if the first judgment result indicates that the user information that the target mini program needs to obtain complies with the user information acquisition rules that the mini program of the program type needs to comply with.

14. A device for reviewing mini programs. include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Get the interactive design draft of the target mini program; Determine an information acquisition page for acquiring user information from the interaction design draft; Determine each first user information reference term in the information acquisition page; the first user information reference term is used to represent the user information that the target mini program needs to obtain; Determine the program type to which the target applet belongs; According to each of the first user information pronouns, determining whether the user information that the target mini-program needs to obtain complies with a user information acquisition rule that a mini-program of the program type needs to comply with, and obtaining a first determination result; If the first judgment result indicates that the user information that the target mini-program needs to obtain complies with the user information acquisition rules that the mini-program of the program type needs to comply with, an identifier is generated to indicate that the mini-program corresponding to the interactive design draft complies with the user information acquisition rules.

15. A computer-readable medium having computer-readable instructions stored thereon, wherein the computer-readable instructions can be executed by a processor to implement a method for auditing a mini-program as described in any one of claims 1 to 12.

Citation Information

Patent Citations

  • Contract auditing method and device, computer device and storage medium

    CN109766430A

  • Control test method and device, client equipment and computer readable storage medium

    CN109783343A

  • Automatic testing method and system for application software

    CN110058991A

  • Verification method and device of applet, equipment and storage medium

    CN111597113A

  • Page interaction method and device and electronic equipment

    CN111611468A