Method and device for automatically obtaining page help guidance based on page and medium
By extracting the application code of the target page and identifying error codes, the page help document and error help document are built, and merged into help map online documents, the problem of inefficient page help guide in the existing technology is solved, and fast and accurate help positioning is achieved.
Patent Information
- Application Number
- CN202411724874.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-03-21
AI Technical Summary
The existing page help guide technology is inefficient, and users need to manually search to solve the problem, and the help guide does not directly correlate to the user's current operation content.
By extracting the application code of the target page, determining the subpage, and identifying the error code, building the page help document and error help document, combining it into the help map online document, adding anchor parameters, and realizing the help positioning and mapping online document.
It enables users to quickly jump to relevant help guide content when they encounter difficulties on any page, improving the efficiency and accuracy of page help guides.
Smart Images

Figure CN119668746A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method, device and medium for automatically obtaining page help guidance based on the page where the page is located. Background Art
[0002] With the development of page design and functions, when users access a specific page of a system to perform operations, they may not be clear about how to operate or use the specific functions on the page. Therefore, they need guidance and help for the problems they encounter. It is necessary to configure a help address for the page to provide page help guidance.
[0003] Most of the existing page help guidance technologies are based on help guidance portals, and users search for problems according to the help guidance portals. In actual applications, after users open the help guidance portal, a complete instruction document is displayed, which is not directly related to the user's current operation content. It is necessary to search and solve the problem manually, which is inefficient when providing page help guidance. Summary of the invention
[0004] The present invention provides a method, device and medium for automatically obtaining page help guidance based on the page where the user is located, and the main purpose of the method is to solve the problem of low accuracy when making product recommendations.
[0005] To achieve the above object, the present invention provides a method for automatically obtaining page help guidance based on the page being located, comprising:
[0006] Extracting the application code of the target page acquired in advance, determining the subpage corresponding to the target page according to the application code, and identifying the error code corresponding to the application code;
[0007] Constructing a page help document according to the page address of the subpage and the help document guidance address corresponding to the subpage, and constructing a page error help document according to the application code and the error guidance address corresponding to the error code;
[0008] Merging the page help document and the page error help document into a help mapping online document, adding an anchor parameter to the help document address in the help mapping online document, and obtaining a help location mapping online document;
[0009] When receiving a page help request from a user, the help location mapping online document is called according to the page help request, and the page help guide address corresponding to the page help request is jumped to through the called help location mapping online document.
[0010] Optionally, determining the subpage corresponding to the target page according to the application code includes:
[0011] Querying a page link according to the application code and verifying the jump logic of the page link;
[0012] When the verified jump logic meets the preset sub-page jump condition, the sub-page jump address corresponding to the target page is determined according to the page link;
[0013] The subpage corresponding to the target page is determined through the subpage jump address.
[0014] Optionally, constructing a page help document according to the page address of the subpage and the help document guide address corresponding to the subpage includes:
[0015] Adding the page addresses of the sub-pages one by one to the pre-built first page help list;
[0016] Generate a document page mapping relationship according to the page address of the subpage and the help document index corresponding to the subpage;
[0017] Adding the help document guide address corresponding to the sub-page to the pre-constructed second page help list according to the document page mapping relationship;
[0018] The first page help list and the second page help list are merged into a page help document according to a column dimension.
[0019] Optionally, constructing a page error help document according to the application code and the error guidance address corresponding to the error code includes:
[0020] Extracting the error main code and the error detail code corresponding to the application code according to the error code;
[0021] Generate an error code page mapping relationship by using the application code, the main error code, the error detail code and the error guidance address;
[0022] According to the error code-page mapping relationship, the application code is added to a pre-built first error list, and the error main code is added to a pre-built second error list;
[0023] Adding the error detail code to a pre-constructed third error list, and adding the error guidance address to a pre-constructed fourth error list;
[0024] The first error list, the second error list, the third error list, and the fourth error list are merged into a page error help document according to a column dimension.
[0025] Optionally, merging the page help document and the page error help document into a help mapping online document includes:
[0026] Adding the page help document to the pre-built first work form page;
[0027] Adding the page error help document to the pre-built second worksheet page;
[0028] A help mapping online document is generated according to the first work table page and the second work table page.
[0029] Optionally, the adding an anchor parameter to the help document address in the help mapping online document to obtain the help positioning mapping online document includes:
[0030] Extracting help document data corresponding to the help document address in the help mapping online document;
[0031] Dividing the document paragraphs in the help document data, and determining the anchor point position corresponding to the help document data according to the divided document paragraphs;
[0032] Adding an anchor mark to the help document data according to the anchor position;
[0033] Adding the anchor parameter to the help document address through the anchor tag;
[0034] The help document address is updated to the help document address after adding the anchor parameter, and the help document addresses after adding the anchor are collected to help locate the mapping online document.
[0035] Optionally, calling the help location mapping online document according to the page help request includes:
[0036] When the page help request is a page problem request, extracting the application code and sub-page path of the page corresponding to the page help request;
[0037] Transmitting the application code and the sub-page path to a preset service interface, and calling the page help document in the help location mapping online document through the service interface;
[0038] When the page help request is a page error request, extracting error code information of the page corresponding to the page help request;
[0039] The error code information is transmitted to a preset service interface, and the page error help document in the help location mapping online document is called through the service interface.
[0040] Optionally, the calling of the help location mapping online document to jump to the page help guide address corresponding to the page help request includes:
[0041] Extracting a request list corresponding to the page help request by mapping the online document with the help location after calling;
[0042] Searching the request list for a request address corresponding to the page help request;
[0043] A page help guidance address corresponding to the page help request is determined according to the request address.
[0044] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0045] at least one processor; and,
[0046] a memory communicatively connected to the at least one processor; wherein,
[0047] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the above-mentioned method for automatically obtaining page help guidance based on the page being located.
[0048] In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the above-mentioned method for automatically obtaining page help guidance based on the page being located.
[0049] The embodiment of the present invention can uniquely identify and recognize a specific page or application through application coding, and determine the subpage of the target page to accurately locate the specific information that the user may need. When the user encounters difficulties on any page, he can directly click the floating icon to quickly jump to the help guidance content related to the page where the user is located, maintain the help guidance address mapping document, introduce jssdk to implement help guidance, and use the Graphite Online Document Anchor Point function to achieve direct jump to the specific paragraph position of the help document. Therefore, the method, device and medium for automatically obtaining page help guidance based on the page where the user is located proposed by the present invention can solve the problem of low efficiency when performing page help guidance. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A schematic diagram of a flow chart of a method for automatically obtaining page help guidance based on a page provided by an embodiment of the present invention;
[0051] Figure 2 A schematic diagram of a process for constructing a page help document provided by an embodiment of the present invention;
[0052] Figure 3 A schematic diagram of a process of merging documents provided in one embodiment of the present invention;
[0053] Figure 4 A schematic diagram of the structure of an electronic device for implementing the method for automatically obtaining page help guidance based on the page being located, provided in one embodiment of the present invention.
[0054] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0055] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0056] The embodiment of the present application provides a method for automatically obtaining page help guidance based on the page. The execution subject of the method for automatically obtaining page help guidance based on the page includes but is not limited to at least one of the electronic devices that can be configured to execute the method provided by the embodiment of the present application, such as a server, a terminal, etc. In other words, the method for automatically obtaining page help guidance based on the page can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
[0057] Reference Figure 1 FIG. 1 is a flow chart of a method for automatically obtaining page help guidance based on the page in which the user is located, provided in an embodiment of the present invention. In this embodiment, the method for automatically obtaining page help guidance based on the page in which the user is located includes:
[0058] S1. Extracting a pre-acquired application code of a target page, determining a subpage corresponding to the target page according to the application code, and identifying an error code corresponding to the application code.
[0059] In an embodiment of the present invention, the application code refers to the unique identifiers of different modules or functions in the target page obtained in advance, and each module or function has a unique identifier, that is, by browsing the HTML structure of the target page, the HTML tags and nested relationships of each element in the target page can be obtained. In the HTML structure, the key parts containing the main functions or interactions of the target page are queried, including the JavaScript file link of the entire page, a specific JavaScript function definition, or a JavaScript code block embedded in the HTML.
[0060] Furthermore, the pre-acquired target page is equivalent to the home page, which has many modules. Each module has a unique identifier, namely, an application code. Therefore, the various pages in the target page can be divided according to the application code, thereby analyzing the sub-pages in the target page.
[0061] In the embodiment of the present invention, the sub-page refers to a lower-level page of the main page. The user may access the sub-page through a link, navigation menu or other interactive elements of the main page. The sub-page usually contains more specific or in-depth content and has a specific association or dependency relationship with the main page. For example, the main page may be the homepage, from which the user can enter various product category pages or special recommendation pages, and the sub-page may be a product list page of a specific category, or a detailed information page of a certain product. The user enters these sub-pages to view detailed information or perform purchase operations by clicking on the link or search result of the main page.
[0062] In the embodiment of the present invention, determining the subpage corresponding to the target page according to the application code includes:
[0063] Querying a page link according to the application code and verifying the jump logic of the page link;
[0064] When the verified jump logic meets the preset sub-page jump condition, the sub-page jump address corresponding to the target page is determined according to the page link;
[0065] The subpage corresponding to the target page is determined through the subpage jump address.
[0066] In detail, the page link corresponding to each application code in the target page is identified through the URL (Uniform Locator) of the front-end page, and the page link corresponding to each application code is checked to see whether it can jump to the specified page. The jump logic is to check whether the page link corresponding to the application code can jump to the specified page, and no error prompt appears. Then, when the checked jump logic meets the sub-page jump condition, the jump address of the sub-page, that is, the URL of the sub-page, is extracted according to the condition or identifier defined in the jump logic, and the sub-page content can be accessed according to the jump address of the sub-page, that is, the sub-page contained in the target page can be determined according to the sub-page jump address.
[0067] For example, suppose an e-commerce website, a user clicks on a product on the product list page to enter the product details page, then the user clicks from the product list page to enter the product details page, the URL is / products / {product_id}, in the front-end router or back-end controller, confirm that the operation of clicking on a product in the product list should lead to the product details page, confirm that the URL of the product details page is / products / {product_id}, then confirm that the URL does lead to the detailed information of the product clicked by the user.
[0068] Furthermore, when the user browses the page, an error code prompt may pop up abnormally. In this case, it is necessary to identify the error code corresponding to the application code. The error code is used to identify a specific error or abnormal situation. It is usually a set of integer or string constants. Each different application code corresponds to an error code. The error codes corresponding to the application codes are pre-configured. When the application encounters an error, it will return the corresponding error code to the caller. For example, error code 401 means unauthorized, and the user needs to provide valid authentication information; error code 404 means resource not found, which usually occurs when requesting a specific resource.
[0069] Furthermore, in order to help users how to browse and use the main page and its sub-pages, the help document can explain in detail the functions and features of each sub-page. Therefore, associating the page address of the sub-page with the help document can help users use the application more efficiently and reduce the possibility of misunderstanding or operational errors.
[0070] S2. Construct a page help document according to the page address of the subpage and the help document guidance address corresponding to the subpage, and construct a page error help document according to the application code and the error guidance address corresponding to the error code.
[0071] In the embodiment of the present invention, the page help document refers to the correspondence between PageHelp and application code, and the page help document maintains the help document address corresponding to each sub-page path of the system, including the address of the page and the guidance address of the page in the system user manual.
[0072] In the embodiment of the present invention, refer to Figure 2 As shown, the page help document is constructed according to the page address of the sub-page and the help document guide address corresponding to the sub-page, including:
[0073] S21, adding the page addresses of the sub-pages one by one to a pre-built first page help list;
[0074] S22, generating a document page mapping relationship according to the page address of the subpage and the help document index corresponding to the subpage;
[0075] S23, adding the help document guide address corresponding to the sub-page to the pre-constructed second page help list according to the document page mapping relationship;
[0076] S24. Merge the first page help list and the second page help list into a page help document according to a column dimension.
[0077] In detail, the pre-built first page help list refers to the first column table in a sheet page, the first column table is marked as column A, and the page address corresponding to each sub-page is added to the column A table one by one, then column A records PagePath, default, / page1, / page2, and establishes a document page mapping relationship based on the page address of the sub-page and its corresponding help document index, then the document page mapping relationship will ensure that users can easily find and access relevant help documents, such as the help document index corresponding to the sub-page address page1 is https: / / xxx / docs / 1xxx , the help document index corresponding to the subpage page2 is https: / / xxx / docs / 2xxx , then add the help document guidance address corresponding to the subpage to the second page help list according to the document page mapping relationship, where the second page help list refers to the second column table in the same sheet page as the first page help list, then mark the second column table as column B, and add the help document guidance address corresponding to each subpage to column B one by one, then column B records HelpURL, https: / / xxx / docs / 0xxx , https: / / xxx / docs / 1xxx , http: / / xxx / docs / 2xxx , and merge the first page help list and the second page help list in the same sheet page according to the column dimension, ensuring that the address of each sub-page and the corresponding help document link become part of the page help document.
[0078] Furthermore, when a user enters a page, an abnormal error prompt may sometimes appear. In this case, it is necessary not only to provide guidance and help for the user's problem, but also to provide guidance and help for the abnormal error. Therefore, it is necessary to build a help document for page errors to solve the problem of error prompts.
[0079] In an embodiment of the present invention, the page error help document refers to the correspondence between ErrorCode-application code, and the page error help document is the help document address corresponding to the error code of the maintenance system, including the system module ID, the system error main code, the error detail code and the guidance address of the error code.
[0080] In an embodiment of the present invention, the step of constructing a page error help document according to the application code and the error guidance address corresponding to the error code includes:
[0081] Extracting the error main code and the error detail code corresponding to the application code according to the error code;
[0082] Generate an error code page mapping relationship by using the application code, the main error code, the error detail code and the error guidance address;
[0083] According to the error code-page mapping relationship, the application code is added to a pre-built first error list, and the error main code is added to a pre-built second error list;
[0084] Adding the error detail code to a pre-constructed third error list, and adding the error guidance address to a pre-constructed fourth error list;
[0085] The first error list, the second error list, the third error list, and the fourth error list are merged into a page error help document according to a column dimension.
[0086] In detail, the error code includes a main error code and an error detail code. The main error code is usually an integer or a sequence of letters, which is used to indicate the main type of a class of errors or problems. The error detail code is a supplement to the main code, providing more detailed information to further describe the details or variations of a specific error situation. Each application code has a corresponding main error code and error detail code, and the application code, main error code, error detail code and error guidance address are matched to generate an error code page mapping relationship. The error code page mapping relationship refers to the main error code, error detail code and error guidance address corresponding to an application code.
[0087] Specifically, the pre-built first error list refers to the first column table in a sheet page, then the first column table is marked as column A, and the application code is added to the A column table, then the A column table records Moduleld, default, module1, module2, and the error major code is added to the second error list according to the error code page mapping relationship, then the second error list refers to the second column table in a sheet page, then the second column table is marked as column B, and the error major code is added to the B column table, then the B column table records ErrorMajorCode, -1, 101, 101, and then the error detail code is added to the third error list, then the third error list refers to the third column table in a sheet page, then the third column table is marked as Column C, and add the error detail code to the C column table, then the C column table records ErrorDetailedCode, -1, 10001, 10002, and finally add the error guidance address to the fourth error list, then the fourth error list refers to the fourth column table in a sheet page, then mark the fourth column table as column D, and add the error guidance address to the D column table, then the D column table records the URL, http: / / xxx / docs / 0xxx, http: / / xxx / docs / 1xxx, http: / / xxx / docs / 2xxx, and according to the contents of the above table, merge the application code, error main code, error detail code and error guidance address according to the column dimension in the same sheet page as a page error help document.
[0088] Furthermore, the page help document and the page error help document can cover various situations of application coding, including normal operation and error handling. Therefore, it is necessary to merge the two help documents into the same document to obtain comprehensive information without jumping between different documents.
[0089] S3: merge the page help document and the page error help document into a help mapping online document, add an anchor parameter to the help document address in the help mapping online document, and obtain a help location mapping online document.
[0090] In the embodiment of the present invention, the help mapping online document includes a page help document and a page error help document, and the help mapping online document maintains two sheet pages in the document.
[0091] In the embodiment of the present invention, refer to Figure 3 As shown, the merging of the page help document and the page error help document into a help mapping online document includes:
[0092] S31, adding the page help document to the pre-constructed first work form page;
[0093] S32, adding the page error help document to the pre-constructed second work table page;
[0094] S33: Generate a help mapping online document according to the first work table page and the second work table page.
[0095] In detail, the page help document is used as a sheet page, namely the first working sheet page, and the page help error document is used as another sheet page, namely the second working sheet page, and the first working sheet page and the second working sheet page are merged into the same document, namely the help mapping online document. Then, users can quickly locate the required information through a unified structure and index, whether it is looking for instructions on application coding or looking for solutions and guidance addresses for specific error codes.
[0096] Furthermore, in order to enable different sub-pages or error codes to directly jump to the specific location of the help document, it is necessary to use the Graphite Online Document Anchor function to add anchor parameters to the help document address to jump to the specific location of the help document.
[0097] In an embodiment of the present invention, the help location mapping online document refers to an online document that can jump to a specified location, including a collection of help document links and their corresponding anchor points. The help document links have specific anchor point parameters, allowing users to directly jump to a specific location or paragraph in the document without having to manually browse the entire document.
[0098] In the embodiment of the present invention, the adding of anchor parameters to the help document address in the help mapping online document to obtain the help positioning mapping online document includes:
[0099] Extracting help document data corresponding to the help document address in the help mapping online document;
[0100] Dividing the document paragraphs in the help document data, and determining the anchor point position corresponding to the help document data according to the divided document paragraphs;
[0101] Adding an anchor mark to the help document data according to the anchor position;
[0102] Adding the anchor parameter to the help document address through the anchor tag;
[0103] The help document address is updated to the help document address after adding the anchor parameter, and the help document addresses after adding the anchor are collected to help locate the mapping online document.
[0104] In detail, the help document data corresponding to the help document address is obtained in the help mapping online document, and the help document data provides users with detailed instructions and explanations on how to use the software, application or service. In order to allow users to directly access specific parts, including but not limited to chapter titles, a specific paragraph, or an important step or example, the document paragraphs are divided so as to configure anchor positions for the divided document paragraphs, and an anchor tag is added to the help document data according to the anchor position. If the user wants to jump directly to a certain title in the document, a tag like id="anchor" can be added in front of the title, where id="anchor" is the identifier of the anchor, and the anchor parameter in the help document address is added to the end of the URL. Usually, the anchor parameter starts with a # symbol, followed by the anchor identifier. After completing the update, make sure that the test link works properly, that is, clicking the link should be able to directly navigate the user to the specified part in the help document.
[0105] For example, the help document index corresponding to the subpage address page1 in the help location mapping online document is https: / / xxx / docs / 1xxx#anchor-xxx1 , that is, jump directly to the paragraph position corresponding to xxx1; the corresponding help document index of subpage page2 in the help location mapping online document is https: / / xxx / docs / 1xxx#anchor- xxx2, That is, jump directly to the paragraph position corresponding to xxx2.
[0106] Furthermore, when a user encounters a problem while browsing a page, the user can directly jump to a designated help guide page through the help location mapping online document to answer the user's question.
[0107] S4. When receiving a page help request from a user, calling the help location mapping online document according to the page help request, and jumping to the page help guidance address corresponding to the page help request through the called help location mapping online document.
[0108] In an embodiment of the present invention, a standard js-sdk is provided on the front-end interface to realize help document jump. After the sdk is introduced into the system front-end, a question mark floating icon is generated in the upper right corner of the system page. Clicking the question mark floating icon indicates that the user has a need for page help request. The user's page help request will be received, and guidance and help will be provided for the user's problem.
[0109] In the embodiment of the present invention, calling the help location mapping online document according to the page help request includes:
[0110] When the page help request is a page problem request, extracting the application code and sub-page path of the page corresponding to the page help request;
[0111] Transmitting the application code and the sub-page path to a preset service interface, and calling the page help document in the help location mapping online document through the service interface;
[0112] When the page help request is a page error request, extracting error code information of the page corresponding to the page help request;
[0113] The error code information is transmitted to a preset service interface, and the page error help document in the help location mapping online document is called through the service interface.
[0114] In detail, when a user initiates a help request, it will determine whether the request is about a specific problem on the page. If it is a page problem request, the system will extract the application code and sub-page path of the page, that is, identify the application environment (such as software, website, etc.) where the current user is located and the path of the specific page or sub-page where the user is located, and the extracted application code and sub-page path will be transmitted to the preset service interface. The service interface is that when the icon is clicked, jssdk calls the background service interface to transmit the application code and the current sub-page path. Through the preset service interface, the system will send a request to the help location mapping online document. The background service finds the help document address corresponding to the system and page path in the help guidance address mapping document according to the corresponding information, and returns the document address to the front end to open.
[0115] Specifically, when an abnormality occurs when a user uses the system and an error code prompt pops up, if the user's help request is about the error information on the page or the explanation of the error code, he or she can click Get Help to jump to the help guidance document corresponding to the error code, extract the error code information of the page, and transmit this information to the preset service interface. Through the preset service interface, the system will send a request to the help location mapping online document. The background service finds the help error document address corresponding to the error code information in the help guidance address mapping document according to the corresponding information, and returns it to the front-end to open the document address. That is, when an error occurs in the system, jssdk obtains the error code of the error, and pops up an error code get help prompt box. The pop-up box displays the error code and error details of the current error code. Click the [Get Help] button to jump to the address of the error code in the system operation manual, and the user can obtain the cause of the error code, solution and other information.
[0116] Furthermore, when the user clicks the icon, the help guide document of the current page is automatically obtained from the background according to the current page. When logging into the system interface, if the operation steps and functions of the interface are unclear, the user can click the [?] button in the upper right corner of the interface to jump to the operation manual address of the corresponding interface, and the user can browse the operation manual to get help.
[0117] In the embodiment of the present invention, the page help guide address refers to a specific web link, and the user can directly access the relevant help document or guide page by clicking the link.
[0118] In the embodiment of the present invention, the calling of the help location mapping online document to jump to the page help guide address corresponding to the page help request includes:
[0119] Extracting a request list corresponding to the page help request by mapping the online document with the help location after calling;
[0120] Searching the request list for a request address corresponding to the page help request;
[0121] A page help guidance address corresponding to the page help request is determined according to the request address.
[0122] In detail, after calling the help location mapping online document, a request list will be obtained. In the obtained request list, the system will query to find the specific request address that matches the user's current page help request to ensure that the help information required by the user can be accurately located. Once the specific request address that matches the user's request is found, this address will be used to determine the page help guidance address, and the page help guidance address is usually a link to a help document or guide. These documents can provide the detailed instructions or solutions required by the user, so that the latest and accurate help information related to the user's current page can be dynamically obtained and provided through the help location mapping online document, thereby effectively supporting users to solve problems or obtain the required guidance.
[0123] The embodiment of the present invention can uniquely identify and recognize a specific page or application through application coding, and determine the subpage of the target page to accurately locate the specific information that the user may need. When the user encounters difficulties on any page, he can directly click the floating icon to quickly jump to the help guidance content related to the page where the user is located, maintain the help guidance address mapping document, introduce jssdk to implement help guidance, and use the Graphite Online Document Anchor Point function to achieve direct jump to the specific paragraph position of the help document. Therefore, the method, device and medium for automatically obtaining page help guidance based on the page where the user is located proposed by the present invention can solve the problem of low efficiency when performing page help guidance.
[0124] like Figure 4 FIG. 1 is a schematic diagram of the structure of an electronic device for implementing a method for automatically obtaining page help guidance based on the page being located, provided by an embodiment of the present invention.
[0125] The electronic device may include a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a program for automatically obtaining page help guidance based on the page being located.
[0126] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (for example, automatically obtains page help guidance programs based on the page in which the page is located, etc.), and calls data stored in the memory 11 to execute various functions of the electronic device and process data.
[0127] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 may also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 may also include both an internal storage unit of the electronic device and an external storage device. The memory 11 may not only be used to store application software and various types of data installed in the electronic device, such as the code of the page help guide program automatically obtained based on the page in which it is located, but also be used to temporarily store data that has been output or is to be output.
[0128] The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0129] The communication interface 13 is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.
[0130] The figure only shows an electronic device with components. Those skilled in the art will understand that the structure shown in the figure does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0131] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0132] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0133] The program for automatically obtaining page help guidance based on the page stored in the memory 11 of the electronic device is a combination of multiple instructions. When running in the processor 10, it can achieve:
[0134] Extracting the application code of the target page acquired in advance, determining the subpage corresponding to the target page according to the application code, and identifying the error code corresponding to the application code;
[0135] Constructing a page help document according to the page address of the subpage and the help document guidance address corresponding to the subpage, and constructing a page error help document according to the application code and the error guidance address corresponding to the error code;
[0136] Merging the page help document and the page error help document into a help mapping online document, adding an anchor parameter to the help document address in the help mapping online document, and obtaining a help location mapping online document;
[0137] When receiving a page help request from a user, the help location mapping online document is called according to the page help request, and the page help guide address corresponding to the page help request is jumped to through the called help location mapping online document.
[0138] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.
[0139] Furthermore, if the module / unit integrated in the electronic device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0140] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0141] Extracting the application code of the target page acquired in advance, determining the subpage corresponding to the target page according to the application code, and identifying the error code corresponding to the application code;
[0142] Constructing a page help document according to the page address of the subpage and the help document guidance address corresponding to the subpage, and constructing a page error help document according to the application code and the error guidance address corresponding to the error code;
[0143] Merging the page help document and the page error help document into a help mapping online document, adding an anchor parameter to the help document address in the help mapping online document, and obtaining a help location mapping online document;
[0144] When receiving a page help request from a user, the help location mapping online document is called according to the page help request, and the page help guide address corresponding to the page help request is jumped to through the called help location mapping online document.
[0145] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, media and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0146] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0147] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0148] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0149] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is not limited only according to the above description, and it is intended that all changes within the meaning and scope of equivalent elements within the scope of protection are included in the present invention.
[0150] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0151] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0152] If software tools or components not owned by the patent applicant appear in the embodiments of the present application, they are merely used to illustrate that a wide range of software tools or components can be selected during the actual implementation of the technical solution disclosed in the present application, and do not mean that the patent applicant actually used these example software tools or components; Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, ordinary technicians in this field should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A method for automatically obtaining page help guidance based on the page in which the user is located, characterized in that: The method comprises: Extracting the application code of the target page acquired in advance, determining the subpage corresponding to the target page according to the application code, and identifying the error code corresponding to the application code; Constructing a page help document according to the page address of the subpage and the help document guidance address corresponding to the subpage, and constructing a page error help document according to the application code and the error guidance address corresponding to the error code; Merging the page help document and the page error help document into a help mapping online document, adding an anchor parameter to the help document address in the help mapping online document, and obtaining a help location mapping online document; When receiving a page help request from a user, the help location mapping online document is called according to the page help request, and the page help guide address corresponding to the page help request is jumped to through the called help location mapping online document.
2. The method for automatically obtaining page help guidance based on the page according to claim 1, characterized in that: The determining the subpage corresponding to the target page according to the application code includes: Querying a page link according to the application code and verifying the jump logic of the page link; When the verified jump logic meets the preset sub-page jump condition, the sub-page jump address corresponding to the target page is determined according to the page link; The subpage corresponding to the target page is determined through the subpage jump address.
3. The method for automatically obtaining page help guidance based on the page according to claim 1, characterized in that: The step of constructing a page help document according to the page address of the subpage and the help document guide address corresponding to the subpage includes: Adding the page addresses of the sub-pages one by one to the pre-built first page help list; Generate a document page mapping relationship according to the page address of the subpage and the help document index corresponding to the subpage; Adding the help document guide address corresponding to the sub-page to the pre-constructed second page help list according to the document page mapping relationship; The first page help list and the second page help list are merged into a page help document according to a column dimension.
4. The method for automatically obtaining page help guidance based on the page according to claim 1, characterized in that: The constructing a page error help document according to the application code and the error guidance address corresponding to the error code includes: Extracting the error main code and the error detail code corresponding to the application code according to the error code; Generate an error code page mapping relationship by using the application code, the main error code, the error detail code and the error guidance address; According to the error code-page mapping relationship, the application code is added to a pre-built first error list, and the error main code is added to a pre-built second error list; Adding the error detail code to a pre-constructed third error list, and adding the error guidance address to a pre-constructed fourth error list; The first error list, the second error list, the third error list, and the fourth error list are merged into a page error help document according to a column dimension.
5. The method for automatically obtaining page help guidance based on the page in which the user is located according to claim 1, characterized in that: The step of merging the page help document and the page error help document into a help mapping online document includes: Adding the page help document to the pre-built first work form page; Adding the page error help document to the pre-built second worksheet page; A help mapping online document is generated according to the first work table page and the second work table page.
6. The method for automatically obtaining page help guidance based on the page according to claim 1, characterized in that: The adding an anchor parameter to the help document address in the help mapping online document to obtain the help positioning mapping online document includes: Extracting help document data corresponding to the help document address in the help mapping online document; Dividing the document paragraphs in the help document data, and determining the anchor point position corresponding to the help document data according to the divided document paragraphs; Adding an anchor mark to the help document data according to the anchor position; Adding the anchor parameter to the help document address through the anchor tag; The help document address is updated to the help document address after adding the anchor parameter, and the help document addresses after adding the anchor are collected to help locate the mapping online document.
7. The method for automatically obtaining page help guidance based on the page according to claim 1, characterized in that: The calling the help location mapping online document according to the page help request includes: When the page help request is a page problem request, extracting the application code and sub-page path of the page corresponding to the page help request; Transmitting the application code and the sub-page path to a preset service interface, and calling the page help document in the help location mapping online document through the service interface; When the page help request is a page error request, extracting error code information of the page corresponding to the page help request; The error code information is transmitted to a preset service interface, and the page error help document in the help location mapping online document is called through the service interface.
8. The method for automatically obtaining page help guidance based on the page according to claim 1, characterized in that: The calling of the help location mapping online document to jump to the page help guide address corresponding to the page help request includes: Extracting a request list corresponding to the page help request by mapping the online document with the help location after calling; Searching the request list for a request address corresponding to the page help request; A page help guidance address corresponding to the page help request is determined according to the request address.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for automatically obtaining page help guidance based on the page as described in any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for automatically obtaining page help guidance based on the page in which the user is located as described in any one of claims 1 to 8 is implemented.