URL address-based service processing method, device and equipment, and storage medium

By setting unique URLs for business components and mapping them in groups, the problem of low efficiency in page resource and business interaction in software development is solved, thus improving software development efficiency.

CN116684395BActive Publication Date: 2026-05-19SHENZHEN GREEN CONNECTION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN GREEN CONNECTION TECH CO LTD
Filing Date
2023-05-17
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

During software development, as business demands increase, the efficiency of interaction between page resources and business logic decreases, leading to a decline in software development efficiency.

Method used

By setting unique URL addresses for business components and grouping them according to business parameters and grouping conditions, a second type of URL address mapping relationship is established, reducing the use of logic code.

Benefits of technology

This improves the interaction efficiency between page resources and business components, thereby enhancing software development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116684395B_ABST
    Figure CN116684395B_ABST
Patent Text Reader

Abstract

The application discloses a service processing method and device based on a URL address, equipment and a storage medium, and the method comprises the following steps: obtaining initial service information determined in advance; grouping all services according to service parameters of all services and at least one service grouping condition determined in advance, to obtain all service components; setting a second type URL address with a unique second mapping relationship for each service component as the second type URL address corresponding to the service component, and the second type URL address corresponding to each service component is used for enabling all services in each service component to interact with page resources corresponding to the unique second type URL address based on the logic code corresponding to the second type URL address. It can be seen that the application can set a unique URL address for all service components, reduce the logic code required when the service components interact with the page resources corresponding to the URL address, and is beneficial to improving the interaction efficiency of the page resources and the service components.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of software development technology, and in particular to a business processing method, apparatus, device, and storage medium based on a URL address. Background Technology

[0002] With the rapid development of software development technology, the amount of program code and business logic required for various page calls and redirects in many client-side software projects is increasing.

[0003] Currently, an increasing number of pages use Uniform Resource Locators (URLs) to treat each page as a corresponding page resource. Logic code then transmits the mapping between the URL address of each page resource and the business logic, enabling interaction between page resources and business processes. However, in practice, as the number of business logic requirements increases during software development, more logic code is needed to transmit the mapping between business logic and URL addresses. This reduces the efficiency of interaction between page resources and business logic, potentially leading to decreased software development efficiency. Therefore, proposing a technical solution to improve the interaction efficiency between page resources and business logic is particularly important. Summary of the Invention

[0004] This invention provides a business processing method, apparatus, device, and storage medium based on URL addresses, which can set a unique URL address for all business components, reduce the logic code required when business components interact with page resources corresponding to the URL address, and thus help improve the interaction efficiency between page resources and business components.

[0005] To address the aforementioned technical problems, the first aspect of this invention discloses a business processing method based on a URL address, the method comprising:

[0006] Obtain predetermined initial business information; the initial business information includes multiple first-type URL addresses, and each first-type URL address has a business with a unique first mapping relationship;

[0007] Based on the determined service parameters of all the services and at least one pre-determined service grouping condition, all the services are grouped to obtain all service components; each service component includes one or more of the services.

[0008] A second type of URL address with a unique second mapping relationship is set for each business component as the second type of URL address corresponding to the business component. Each first mapping relationship and each second mapping relationship are transmitted by the corresponding logic code. The second type of URL address corresponding to each business component is used for all the businesses in each business component to interact with the page resources corresponding to the unique second type of URL address based on the logic code corresponding to the second type of URL address.

[0009] As an optional implementation, in the first aspect of the present invention, after grouping all the services according to the determined service parameters of all the services and at least one predetermined service grouping condition to obtain all service components, and before setting a second type of URL address with a unique second mapping relationship for each service component as the second type of URL address corresponding to that service component, the method further includes:

[0010] For each of the aforementioned business components, determine whether the current conditions of the business component meet the preset encapsulation conditions;

[0011] If it is determined that the current condition of the business component does not meet the preset encapsulation condition, then the operation of setting a second type of URL address with a unique second mapping relationship for each business component is triggered as the second type of URL address corresponding to the business component.

[0012] If it is determined that the current condition of the business component meets the preset encapsulation condition, the business component is encapsulated to obtain the encapsulated business component, and the operation of setting a second type of URL address with a unique second mapping relationship for each business component is triggered as the second type of URL address corresponding to the business component. Here, all the business components include all the encapsulated business components and all the business components that do not need to be encapsulated.

[0013] As an optional implementation, in the first aspect of the present invention, the service parameters of each service include the service type of each service and the target parameters of each service, wherein the target parameters of each service include the target object to which each service is directed and / or the processing method of each service, and the processing method of each service is determined by the reflection mechanism during the runtime of the running code of each service.

[0014] The step of grouping all the services according to their service parameters and at least one pre-determined service grouping condition to obtain all service components includes:

[0015] For any two services of the same type, the similarity between the first service and the second service is calculated based on the target parameters of the first service and the target parameters of the second service; the first service and the second service are both one of any two services of the same type.

[0016] Determine whether the similarity between the first service and the second service is greater than or equal to a preset similarity.

[0017] If it is determined that the similarity between the first service and the second service is greater than or equal to the preset similarity, then the first service and the second service are assigned to the same first service component.

[0018] If it is determined that the similarity between the first service and the second service is less than the preset similarity, then the first service and the second service are divided into different first service components.

[0019] As an optional implementation, in the first aspect of the present invention, for two services with the same service type within any of the service parameters, calculating a first similarity between the first service and the second service based on the target parameters of the first service and the target parameters of the second service includes:

[0020] For any two services of the same type, calculate the initial similarity between each sub-parameter of the target parameters of the first service and the corresponding sub-parameter of the second service to obtain the initial similarity corresponding to the sub-parameter.

[0021] Based on the parameter content contained in each sub-parameter, determine the weight coefficient of each sub-parameter;

[0022] The similarity between the first service and the second service is calculated based on the initial similarity corresponding to each sub-parameter and the weight coefficient of each sub-parameter.

[0023] As an optional implementation, in the first aspect of the present invention, setting a second type of URL address with a unique second mapping relationship for each of the business components, as the second type of URL address corresponding to the business component, includes:

[0024] For each of the aforementioned business components, one URL is selected from all URL addresses in a pre-determined URL address library as the unique second-type URL address corresponding to that business component; each second-type URL address corresponds to a unique business component;

[0025] Establish a second mapping relationship between each of the business components and the second type of URL address of that business component;

[0026] Wherein, for each of the business components, selecting one URL address from all URL addresses in a pre-determined URL address library as the unique second-type URL address corresponding to that business component includes:

[0027] For each of the business components, determine whether there is at least one candidate URL address among all URL addresses in the pre-determined URL address library that has not established a unique mapping relationship; if it is determined that there is at least one candidate URL address that has not established a unique mapping relationship, then select one of the candidate URL addresses as the second type URL address uniquely corresponding to the business component.

[0028] As an optional implementation, in the first aspect of the present invention, each of the business components has corresponding business content;

[0029] After setting a second type of URL address with a unique second mapping relationship for each of the business components as the second type of URL address corresponding to that business component, the method further includes:

[0030] When a page display instruction is detected, the target page of the page display instruction is determined based on the instruction information contained in the page display instruction; the target page needs to be displayed in the current page view;

[0031] Obtain the target URL address of the target page;

[0032] Based on the target URL address of the target page and all the second mapping relationships, filter out the target business components that match the target URL address from all the business components;

[0033] The business content corresponding to the target business component is determined and used as the page content of the target page; the page content of the target page is then displayed through the current page view.

[0034] As an optional implementation, in the first aspect of the present invention, the step of filtering out the target business component that matches the target URL address from all the business components based on the target URL address of the target page and all the second mapping relationships includes:

[0035] Determine whether the target URL address of the target page exists among all the second type of URL addresses corresponding to the second mapping relationship;

[0036] If it is determined that the target URL address of the target page exists in the second type of URL address corresponding to all the mapping relationships, then the business component corresponding to the target URL address is determined as the target business component that matches the target URL address according to the second mapping relationship corresponding to the target URL address;

[0037] If it is determined that the target URL address of the target page does not exist in the second type of URL address corresponding to all the mapping relationships, then according to all the first mapping relationships, the target business that matches the target URL address is selected from all the businesses and used as the target business component that matches the URL address.

[0038] A second aspect of the present invention discloses a service processing apparatus based on a URL address, the apparatus comprising:

[0039] The acquisition module is used to acquire pre-determined initial business information; the initial business information includes multiple first-type URL addresses, and each first-type URL address has a business with a unique first mapping relationship;

[0040] The grouping module is used to group all the services according to the determined service parameters of all the services and at least one pre-determined service grouping condition to obtain all service components; each service component includes one or more of the services.

[0041] The configuration module is used to set a second type of URL address with a unique second mapping relationship for each of the business components, which serves as the second type of URL address corresponding to the business component. Each first mapping relationship and each second mapping relationship are passed by the corresponding logic code, and the second type of URL address corresponding to each business component is used for all the businesses in each business component to interact with the page resources corresponding to the unique second type of URL address based on the logic code corresponding to the second type of URL address.

[0042] As an optional implementation, in a second aspect of the invention, the apparatus further includes:

[0043] The judgment module is used to determine whether the current condition of each business component meets the preset encapsulation condition for each business component after the grouping module groups all the businesses according to the determined business parameters of all the businesses and at least one predetermined business grouping condition to obtain all business components, and before the setting module sets a second type URL address with a unique second mapping relationship for each business component as the second type URL address corresponding to that business component; if the judgment module determines that the current condition of the business component does not meet the preset encapsulation condition, then the setting module is triggered to perform the operation of setting a second type URL address with a unique second mapping relationship for each business component as the second type URL address corresponding to that business component;

[0044] The encapsulation module is used to encapsulate the business component if the judgment module determines that the current condition of the business component meets the preset encapsulation condition, thereby obtaining the encapsulated business component, and triggering the setting module to perform the operation of setting a second type of URL address with a unique second mapping relationship for each business component as the second type of URL address corresponding to the business component.

[0045] As an optional implementation, in the second aspect of the present invention, the service parameters of each service include the service type of each service and the target parameters of each service, wherein the target parameters of each service include the target object to which each service is directed and / or the processing method of each service, and the processing method of each service is determined by the reflection mechanism of the runtime of the running code of each service;

[0046] The grouping module groups all the services according to the service parameters of all the services and at least one pre-determined service grouping condition, and obtains all service components in the following specific ways:

[0047] For any two services of the same type, the similarity between the first service and the second service is calculated based on the target parameters of the first service and the target parameters of the second service; the first service and the second service are both one of any two services of the same type.

[0048] Determine whether the similarity between the first service and the second service is greater than or equal to a preset similarity.

[0049] If it is determined that the similarity between the first service and the second service is greater than or equal to the preset similarity, then the first service and the second service are assigned to the same first service component.

[0050] If it is determined that the similarity between the first service and the second service is less than the preset similarity, then the first service and the second service are divided into different first service components.

[0051] As an optional implementation, in a second aspect of the present invention, the grouping module calculates a first similarity between the first service and the second service based on the target parameters of the first service and the target parameters of the second service for two services with the same service type within any of the service parameters, specifically including:

[0052] For any two services of the same type, calculate the initial similarity between each sub-parameter of the target parameters of the first service and the corresponding sub-parameter of the second service to obtain the initial similarity corresponding to the sub-parameter.

[0053] Based on the parameter content contained in each sub-parameter, determine the weight coefficient of each sub-parameter;

[0054] The similarity between the first service and the second service is calculated based on the initial similarity corresponding to each sub-parameter and the weight coefficient of each sub-parameter.

[0055] As an optional implementation, in a second aspect of the present invention, the setting module sets a second type of URL address with a unique second mapping relationship for each of the business components. The specific methods for using the second type of URL address corresponding to the business component include:

[0056] For each of the aforementioned business components, one URL is selected from all URL addresses in a pre-determined URL address library as the unique second-type URL address corresponding to that business component; each second-type URL address corresponds to a unique business component;

[0057] Establish a second mapping relationship between each of the business components and the second type of URL address of that business component;

[0058] Specifically, the setting module selects one URL from a pre-determined URL address library as the unique second-type URL address for each business component, including the following methods:

[0059] For each of the business components, determine whether there is at least one candidate URL address among all URL addresses in the pre-determined URL address library that does not have a unique mapping relationship; if it is determined that there is at least one candidate URL address that does not have a unique mapping relationship, then select one of the candidate URL addresses as the second type URL address that is uniquely corresponding to the business component.

[0060] As an optional implementation, in the second aspect of the present invention, each of the business components has corresponding business content;

[0061] The device further includes:

[0062] The determining module is configured to, after the setting module sets a second type of URL address with a unique second mapping relationship for each of the business components as the second type of URL address corresponding to the business component, determine the target page of the page display instruction based on the instruction information contained in the page display instruction when a page display instruction is detected; the target page needs to be displayed in the current page view;

[0063] The acquisition module is also used to acquire the target URL address of the target page;

[0064] The filtering module is used to filter out the target business components that match the target URL address from all the business components based on the target URL address of the target page and all the second mapping relationships;

[0065] The determining module is further configured to determine the business content corresponding to the target business component, as the page content of the target page;

[0066] The display module is used to display the page content of the target page through the current page view.

[0067] As an optional implementation, in a second aspect of the present invention, the filtering module filters out target business components that match the target URL address from all the business components based on the target URL address of the target page and all the second mapping relationships, specifically including:

[0068] Determine whether the target URL address of the target page exists among all the second type of URL addresses corresponding to the second mapping relationship;

[0069] If it is determined that the target URL address of the target page exists in the second type of URL address corresponding to all the mapping relationships, then the business component corresponding to the target URL address is determined as the target business component that matches the target URL address according to the second mapping relationship corresponding to the target URL address;

[0070] If it is determined that the target URL address of the target page does not exist in the second type of URL address corresponding to all the mapping relationships, then according to all the first mapping relationships, the target business that matches the target URL address is selected from all the businesses and used as the target business component that matches the URL address.

[0071] A third aspect of the present invention discloses another service processing apparatus based on a URL address, the apparatus comprising:

[0072] Memory containing executable program code;

[0073] A processor coupled to the memory;

[0074] The processor calls the executable program code stored in the memory to execute the URL address-based business processing method disclosed in the first aspect of the present invention.

[0075] The fourth aspect of the present invention discloses a service processing device for executing the URL address-based service processing method disclosed in the first aspect of the present invention.

[0076] The fifth aspect of the present invention discloses a computer storage medium storing computer instructions, which, when invoked, are used to execute the business processing method based on a URL address disclosed in the first aspect of the present invention.

[0077] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0078] In this embodiment of the invention, all services are grouped according to the determined service parameters and at least one service grouping condition to accurately obtain all service components. A unique URL address is set for each service component so that all services in the component can interact with the page resource corresponding to the URL address through the unique URL address. This reduces the logic code required when services interact with the page resource corresponding to the URL address, thereby improving the interaction efficiency between page resources and services, and further improving the efficiency of software development. Attached Figure Description

[0079] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0080] Figure 1 This is a flowchart illustrating a business processing method based on a URL address disclosed in an embodiment of the present invention;

[0081] Figure 2 This is a flowchart illustrating another business processing method based on a URL address disclosed in an embodiment of the present invention;

[0082] Figure 3This is a schematic diagram of the structure of a service processing device based on a URL address disclosed in an embodiment of the present invention;

[0083] Figure 4 This is a schematic diagram of another URL-based service processing device disclosed in an embodiment of the present invention;

[0084] Figure 5 This is a schematic diagram of the structure of another service processing device based on a URL address disclosed in an embodiment of the present invention. Detailed Implementation

[0085] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0086] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or end that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or ends.

[0087] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0088] This invention discloses a service processing method, apparatus, device, and storage medium based on URL addresses. It can group all services according to determined service parameters and at least one service grouping condition, accurately obtaining all service components, and assigning a unique URL address to each service component. This allows all services within a service component to interact with the page resource corresponding to that URL address through that unique URL address. This reduces the logic code required for interaction between services and the page resource, thereby improving the efficiency of page resource-service interaction and ultimately enhancing software development efficiency. Detailed descriptions follow.

[0089] Example 1

[0090] Please see Figure 1 , Figure 1 This is a flowchart illustrating a business processing method based on a URL address disclosed in an embodiment of the present invention. Figure 1 The described URL-based service processing method can be applied to a URL-based service processing device, which may include a service processing equipment or a service processing server. The service processing server may include a cloud server or a local server; this embodiment of the invention does not impose any limitations. Figure 1 As shown, this URL-based business processing method may include the following operations:

[0091] 101. Obtain the predetermined initial business information.

[0092] In this embodiment of the invention, the initial business information includes multiple first-class URL addresses and a business that has a unique first mapping relationship with each first-class URL address.

[0093] It should be noted that URL stands for Uniform Resource Locator. It treats each page as a resource and uses the standard URL protocol to locate each corresponding page resource.

[0094] 102. Based on the business parameters of all determined services and at least one pre-determined business grouping condition, group all services to obtain all business components.

[0095] In this embodiment of the invention, each service component includes one or more services.

[0096] In this embodiment of the invention, optionally, at least one predetermined service grouping condition may include grouping conditions corresponding to the parameter similarity of the service parameters of all services, or grouping conditions corresponding to the parameter difference of the service parameters of all services, or grouping conditions corresponding to the fusion result obtained by fusing the parameter similarity and parameter difference of the service parameters of all services. This embodiment of the invention does not impose any limitations.

[0097] 103. Set a second type of URL address with a unique second mapping relationship for each business component, and use it as the second type of URL address corresponding to that business component.

[0098] Each first mapping relationship and each second mapping relationship are transmitted by the corresponding logic code, and the second type of URL address corresponding to each business component is used for all businesses in each business component to interact with the page resources corresponding to the second type of URL address based on the logic code corresponding to the unique second type of URL address.

[0099] In this embodiment of the invention, optionally, the corresponding logic code can be Javascript logic code, Java logic code, or logic code in any other programming language required for interaction between business and page resources. This embodiment of the invention does not impose any limitations.

[0100] As can be seen, the URL-based business processing method described in this embodiment of the invention can group all businesses according to the determined business parameters of all businesses and at least one business grouping condition, accurately obtain all business components, and set a unique URL address for each business component, so that all businesses in the business component can interact with the page resources corresponding to the URL address through the unique URL address. This can reduce the logic code required when businesses interact with the page resources corresponding to the URL address, thereby improving the interaction efficiency between page resources and businesses, and further improving the efficiency of software development.

[0101] In an optional embodiment, before step 102, which involves grouping all services based on the determined service parameters and at least one pre-determined service grouping condition, to obtain all service components, the method may further include:

[0102] Obtain the user's business processing requirements and obtain all historical call records of all business processes;

[0103] Based on the business parameters of all determined services, the user's business processing requirements, and the historical call records of all services, a baseline service is selected from all services. The baseline service is placed in each of the subsequently determined business components, and the baseline service is used to instruct each business component in all business components to implement the basic functions of that business component. Optionally, the functions that the baseline service can implement may include at least one of the following: user login function, user logout function, page settings function, and content partitioning function. The content partitioning function is used to instruct each business component to partition according to the content of all services of that business component.

[0104] The process of selecting a baseline business from all businesses based on the determined business parameters of all businesses, the user's business processing requirements, and the historical call records of all businesses can include:

[0105] Based on the user's business processing requirements and the business parameters of all identified services, calculate the matching degree between all services and the user's business processing requirements;

[0106] The importance of each service is determined based on the degree of matching between all services and the user's business processing needs, as well as the historical call records of all services.

[0107] Based on the importance of all business operations, the business with the highest importance is selected as the benchmark business.

[0108] Optionally, the historical call record for each service includes one or more combinations of the following: the number of historical calls for each service, the historical call frequency for each service, the historical call result for each service, and the historical call process for each service.

[0109] As can be seen, this optional embodiment can accurately select the benchmark service from all services based on the service parameters of all services, the user's service processing requirements, and the historical call records of all services. This can improve the accuracy and reliability of the benchmark service selection, so that each service component subsequently determined can realize the basic function of each service component through the benchmark service, thereby helping to ensure the normal operation of each service component subsequently determined.

[0110] Example 2

[0111] Please see Figure 2 , Figure 2 This is a flowchart illustrating a business processing method based on a URL address disclosed in an embodiment of the present invention. Figure 2The described URL-based service processing method can be applied to a URL-based service processing device, which may include a service processing equipment or a service processing server. The service processing server may include a cloud server or a local server; this embodiment of the invention does not impose any limitations. Figure 2 As shown, this URL-based business processing method may include the following operations:

[0112] 201. Obtain the predetermined initial business information.

[0113] 202. Based on the business parameters of all determined services and at least one pre-determined business grouping condition, group all services to obtain all business components.

[0114] 203. Set a second type of URL address with a unique second mapping relationship for each business component, and use it as the second type of URL address corresponding to that business component.

[0115] In this embodiment of the invention, the specific technical details and explanations of technical terms for steps 201-203 can be found in the description of steps 101-103 in Embodiment 1, and will not be repeated here.

[0116] 204. When a page display instruction is detected, determine the target page of the page display instruction based on the instruction information contained in the page display instruction.

[0117] In this embodiment of the invention, the target page needs to be displayed in the current page view. Here, the target page refers to the front-end framework of the page in the programming language.

[0118] In this embodiment of the invention, optionally, the page display instruction may include a page invocation instruction and / or a page jump instruction. Optionally, the page display instruction may be determined based on the HTTP request header information received by the client's current page view and related information of the aforementioned request header information. The instruction information included in the page display instruction may include the aforementioned request header information, and may also include related information of the aforementioned request header information; this embodiment of the invention does not impose limitations on this.

[0119] 205. Obtain the target URL address of the target page.

[0120] In this embodiment of the invention, the target URL address of the target page is obtained in the following way:

[0121] In the pre-defined public framework query file, find the target URL address corresponding to the front-end framework to which the target page belongs.

[0122] The pre-defined public framework query file contains the correspondence between the URLs of each page and the front-end frameworks of each page.

[0123] 206. Based on the target URL address of the target page and all second mapping relationships, filter out the target business components that match the target URL address from all business components.

[0124] In this embodiment of the invention, specifically, filtering out the target business component that matches the target URL address from all business components based on the target URL address of the target page and all second mapping relationships may include:

[0125] Based on the target URL address of the target page and all second mapping relationships, filter out the target mapping relationships that contain the target URL address from all the second mapping relationships, and determine the business component corresponding to the target mapping relationship as the target business component that matches the target URL address.

[0126] 207. Determine the business content corresponding to the target business component, and use it as the page content of the target page.

[0127] In this embodiment of the invention, optionally, the business content corresponding to the target business component may include the content obtained by integrating the sub-business content corresponding to all target businesses contained in the target business component. The sub-business content of each target business can be compiled from the business code of each target business.

[0128] 208. Display the page content of the target page through the current page view.

[0129] It should be noted that the current page view can display the corresponding page content in the following ways: create a WebView object in the application, attach the WebView object to the client window, and send a load message to its main frame to embed content into the WebView object. This embedding of content into the WebView object can be done through a JS bridge, injecting a JS bridge file into the WebView object.

[0130] As can be seen, the URL-based business processing method described in this embodiment of the invention can group all businesses according to the determined business parameters and at least one business grouping condition, accurately obtain all business components, and set a unique URL address for each business component. This allows all businesses within a business component to interact with the page resource corresponding to that URL address through that unique URL address. This reduces the logic code required for interaction between business components and the page resource corresponding to the URL address, thereby improving the interaction efficiency between page resources and business components, and ultimately improving software development efficiency. Furthermore, when a page display instruction is detected, it can be analyzed to accurately select the target business component from all business components and display the business content of the selected target business component as the page content of the target page. This ensures that the page and page content to be displayed are accurately presented in the current page view.

[0131] In an optional embodiment, after step 202, which groups all services according to the determined service parameters of all services and at least one pre-determined service grouping condition to obtain all service components, and before step 203, which sets a second type of URL address with a unique second mapping relationship for each service component as the second type of URL address corresponding to that service component, the URL address-based service processing method may further include:

[0132] For each business component, determine whether the current conditions of the business component meet the preset encapsulation conditions;

[0133] If it is determined that the current condition of the business component does not meet the preset encapsulation condition, the operation of setting a second type of URL address with a unique second mapping relationship for each business component in step 203 above is triggered, which is used as the second type of URL address corresponding to the business component.

[0134] If it is determined that the current conditions of the business component meet the preset encapsulation conditions, the business component is encapsulated to obtain the encapsulated business component, and the operation in step 203 above, which sets a second type of URL address with a unique second mapping relationship for each business component, is triggered as the second type of URL address corresponding to the business component. Here, all business components include all encapsulated business components and all business components that do not need to be encapsulated.

[0135] The preset encapsulation conditions may include encapsulation conditions corresponding to the historical call count of each service, or encapsulation conditions corresponding to the historical call frequency of each service. This embodiment of the invention does not impose any limitations.

[0136] As can be seen, this optional embodiment can determine whether the current conditions of each business component meet the preset encapsulation conditions, obtain the judgment result, and encapsulate the corresponding business component when the judgment result is yes; and directly execute the subsequent step of setting the URL address for the corresponding business component when the judgment result is no, which can improve the accuracy of the judgment of business components that need to be encapsulated.

[0137] In this optional embodiment, as an optional implementation method, for each business component, determining whether the current conditions of the business component meet the preset encapsulation conditions may include:

[0138] For each business component, obtain the number of historical calls contained in the historical call records of all businesses within that business component, and calculate the total number of historical calls for that business component based on the number of historical calls of all businesses within that business component;

[0139] For each business component, obtain the interference information for each business component; the interference information for each business component is used to represent the information of interference from the remaining business components other than the business component itself.

[0140] The total historical call count and interference information of each business component are fused to obtain the encapsulation value of the business component; the encapsulation value of each business component is used to determine whether the business component needs to be encapsulated.

[0141] For each business component, determine whether the encapsulation value of the business component is greater than or equal to the preset encapsulation value;

[0142] If it is determined that the encapsulation value within the business component is greater than or equal to the preset encapsulation value, then it is determined that the current condition of the business component meets the preset encapsulation condition.

[0143] If it is determined that the encapsulation value within the business component is less than the preset encapsulation value, then it is determined that the current condition of the business component does not meet the preset encapsulation condition.

[0144] Optionally, the interference information for each business component can be obtained by inputting the business parameters of all businesses within each business component into an interference model. This interference model can be a model trained on a large number of sample business parameters across multiple HTML5 page application scenarios (e.g., product display, corporate promotion, registration and appointment). Optionally, the preset encapsulation value can be determined based on user needs, or it can be the average encapsulation value obtained by weighted averaging of the encapsulation values ​​of all businesses; this embodiment of the invention does not impose any limitations.

[0145] As can be seen, this optional embodiment can determine whether the encapsulation value of each business component is greater than or equal to a preset encapsulation value, obtain a judgment result, and intelligently filter out business components that need to be encapsulated and / or business components that do not need to be encapsulated based on the judgment result, thereby improving the accuracy and reliability of the judgment on encapsulation processing of business components.

[0146] In this optional embodiment, as another optional implementation, the business parameters of each service include the business type of each service and the target parameters of each service, wherein the target parameters of each service include the target object that each service is directed to and / or the processing method of each service, and the processing method of each service is determined by the reflection mechanism of the runtime of the running code of each service.

[0147] Based on the business parameters of all services and at least one pre-determined business grouping condition, all services are grouped to obtain all business components, which may include:

[0148] For any two services of the same type, calculate the similarity between the first service and the second service based on the target parameters of the first service and the second service; the first service and the second service are both any two services of the same type.

[0149] Determine whether the similarity between the first business and the second business is greater than or equal to a preset similarity.

[0150] If the similarity between the first service and the second service is determined to be greater than or equal to the preset similarity, then the first service and the second service will be assigned to the same first service component.

[0151] If the similarity between the first service and the second service is determined to be less than the preset similarity, then the first service and the second service will be divided into different first service components.

[0152] Specifically, when each business's code runs, its own reflection mechanism determines the code execution parameters. These parameters include one or more combinations of the following: the class of the code, the object of the code, and the method to be called.

[0153] For example, based on the class of each business code, the business type of each running code can be determined; based on the object of each business code, the target object that the business corresponding to each running code is facing can be determined; based on the calling method of each business code, the processing method of the business corresponding to each running code can be determined.

[0154] As can be seen, this optional implementation can accurately calculate the similarity between any two services of the same type based on their target parameters, and accurately group the two services based on the accurately calculated similarity, thereby improving the accuracy and reliability of grouping all services.

[0155] In this optional implementation, optionally, for two services with the same service type within any service parameters, calculating a first similarity between the first service and the second service based on the target parameters of the first service and the target parameters of the second service may include:

[0156] For any two services of the same type, calculate the initial similarity between each sub-parameter of the target parameters of the first service and the corresponding sub-parameter of the second service to obtain the initial similarity of that sub-parameter.

[0157] Determine the weight coefficient of each sub-parameter based on the parameter content contained in each sub-parameter;

[0158] The similarity between the first business and the second business is calculated based on the initial similarity corresponding to each sub-parameter and the weight coefficient of each sub-parameter.

[0159] Specifically, the initial similarity between each sub-parameter of the target parameters of the first service and the corresponding sub-parameter of the second service is calculated to obtain the initial similarity corresponding to that sub-parameter. This can include:

[0160] Calculate the initial similarity between the target objects contained in the target parameters of the first service and the target objects contained in the target parameters of the second service to obtain the initial similarity corresponding to the target objects;

[0161] And / or,

[0162] Calculate the initial similarity between the processing methods included in the target parameters of the first service and the processing methods included in the target parameters of the second service, and obtain the initial similarity corresponding to the processing methods.

[0163] For example, when the sub-parameter is a target object, the weight coefficient of the target object is determined based on the object content of the target object in the first business and the object content of the target object in the second business; when the sub-parameter is a processing method, the weight coefficient of the processing method is determined based on the method content of the processing method in the first business and the method content of the processing method in the second business.

[0164] As can be seen, this optional implementation can also calculate the initial similarity of each sub-parameter in all sub-parameters of the target parameters of any two services with the same service type, and determine the weight coefficient of each sub-parameter according to the parameter content of each sub-parameter. Based on the initial similarity and weight coefficient of all sub-parameters, the similarity between the two services can be accurately calculated, which can improve the accuracy and reliability of similarity calculation between any two services with the same service type.

[0165] In another optional embodiment, step 203 above, setting a second type of URL address with a unique second mapping relationship for each business component as the second type of URL address corresponding to that business component, may include:

[0166] For each business component, select one URL address from all URL addresses in the pre-determined URL address library as the unique second-type URL address corresponding to that business component;

[0167] Establish a second mapping relationship between each business component and the second type of URL address of that business component;

[0168] Specifically, for each business component, one URL is selected from all URLs in a pre-determined URL address library as the unique second-type URL address corresponding to that business component, which may include:

[0169] For each business component, determine whether there is at least one alternative URL address among all URL addresses in the pre-determined URL address library that does not have a unique mapping relationship;

[0170] If it is determined that there is at least one alternative URL address for which no unique mapping relationship has been established, then one of the alternative URL addresses is selected as the second type URL address that uniquely corresponds to the business component.

[0171] In this optional embodiment, for each business component, if the current conditions of the business component meet the above-mentioned preset encapsulation conditions, the business component is first encapsulated, and then the above-mentioned operation of selecting one of the URL addresses in the pre-determined URL address library as the second type URL address uniquely corresponding to the encapsulated business component is performed.

[0172] Each second-type URL address corresponds to a unique business component. Each alternative URL address corresponds one-to-one with each business component. A pre-determined URL address database stores multiple URL addresses. All URL addresses in this database include at least several URL addresses without established unique mappings, and may also include several URL addresses with established unique mappings; this embodiment of the invention does not impose limitations.

[0173] Optionally, when the number of alternative URLs is less than the number of business components, new URLs are rewritten so that all business components can match the corresponding URL.

[0174] As can be seen, this optional embodiment can filter out multiple candidate URL addresses that have not established a unique mapping relationship from a predetermined URL address library, which can improve the accuracy and reliability of URL address filtering. Furthermore, it can filter out a second type of URL address that corresponds one-to-one with each business component in all business components from all candidate URL addresses, thereby improving the accuracy and reliability of matching between business components and candidate URL addresses.

[0175] In another optional embodiment, step 206 above, filtering out the target business component that matches the target URL address from all business components based on the target URL address of the target page and all second mapping relationships, may include:

[0176] Determine if the target URL of the target page exists among all the second-type URLs corresponding to the second mapping relationships;

[0177] If it is determined that the target URL address of the target page exists in the second type of URL address corresponding to all mapping relationships, then the business component corresponding to the target URL address is determined as the target business component that matches the target URL address according to the second mapping relationship corresponding to the target URL address.

[0178] If it is determined that there is no target URL address for the target page among the second type of URL addresses corresponding to all mapping relationships, then based on all first mapping relationships, the target business that matches the target URL address is selected from all businesses and used as the target business component that matches the URL address.

[0179] It should be noted that the first type of URL address corresponding to all services and all first mapping relationships in the embodiments of the present invention was determined by model training under multiple typical application scenarios. Therefore, when the target URL address cannot be found in either the second type of URL address or the first type of URL address, the anomaly judgment of the target URL address can be given priority.

[0180] As can be seen, this optional embodiment can filter out the target business component that matches the target URL address from all business components based on all second mapping relationships when the target URL address exists in all second mapping relationships; and can filter out the target business that matches the target URL address from all businesses based on all first mapping relationships when the target URL address does not exist in all second mapping relationships, thus improving the accuracy and intelligence of determining the target business component.

[0181] Example 3

[0182] Please see Figure 3 , Figure 3 This is a schematic diagram of the structure of a service processing device based on a URL address disclosed in an embodiment of the present invention. Figure 3 The described URL-based service processing apparatus may include service processing equipment or service processing server, wherein the service processing server may include a cloud server or a local server, and this embodiment of the invention does not limit the scope. Figure 3 As shown, the URL-based service processing device may include:

[0183] The acquisition module 301 is used to acquire pre-determined initial business information; the initial business information includes multiple first-class URL addresses and a business that has a unique first mapping relationship with each first-class URL address.

[0184] Grouping module 302 is used to group all services according to the determined service parameters of all services and at least one pre-determined service grouping condition to obtain all service components; each service component includes one or more services.

[0185] The configuration module 303 is used to set a second type of URL address with a unique second mapping relationship for each business component, which serves as the second type of URL address corresponding to the business component. Each first mapping relationship and each second mapping relationship are passed by the corresponding logic code, and the second type of URL address corresponding to each business component is used for all businesses in each business component to interact with the page resources corresponding to the second type of URL address based on the logic code corresponding to the unique second type of URL address.

[0186] As can be seen, the URL-based service processing device described in this embodiment of the invention can group all services according to the determined service parameters of all services and at least one service grouping condition, accurately obtain all service components, and set a unique URL address for each service component, so that all services in the service component can interact with the page resource corresponding to the URL address through the unique URL address. This can reduce the logic code required when the service component interacts with the page resource corresponding to the URL address, thereby improving the interaction efficiency between the page resource and the service component, and thus improving the efficiency of software development.

[0187] In an optional embodiment, such as Figure 4 As shown, the URL-based service processing device may further include:

[0188] The judgment module 304 is used to determine whether the current conditions of each business component meet the preset encapsulation conditions after the grouping module 302 groups all businesses according to the determined business parameters of all businesses and at least one predetermined business grouping condition to obtain all business components, and before the setting module 303 sets a second type URL address with a unique second mapping relationship for each business component as the second type URL address corresponding to that business component. If the judgment module 304 determines that the current conditions of the business component do not meet the preset encapsulation conditions, then the setting module 303 is triggered to perform the above-mentioned operation of setting a second type URL address with a unique second mapping relationship for each business component as the second type URL address corresponding to that business component.

[0189] The encapsulation module 305 is used to encapsulate the business component if the judgment module 304 determines that the current condition of the business component meets the preset encapsulation condition, thereby obtaining the encapsulated business component, and triggering the setting module 303 to perform the above-mentioned operation of setting a second type of URL address with a unique second mapping relationship for each business component as the second type of URL address corresponding to the business component. Here, all business components include all encapsulated business components and all business components that do not need to be encapsulated.

[0190] As can be seen, this optional embodiment can determine whether the current conditions of each business component meet the preset encapsulation conditions, obtain the judgment result, and encapsulate the corresponding business component when the judgment result is yes; and directly execute the subsequent step of setting the URL address for the corresponding business component when the judgment result is no, which can improve the accuracy of the judgment of business components that need to be encapsulated.

[0191] In this optional embodiment, as an optional implementation method, the business parameters of each service include the business type of each service and the target parameters of each service, wherein the target parameters of each service include the target object that each service is directed to and / or the processing method of each service, and the processing method of each service is determined by the reflection mechanism of the runtime of the running code of each service.

[0192] The grouping module 302 groups all services according to the service parameters of all services and at least one pre-determined service grouping condition, and the specific methods for obtaining all service components may include:

[0193] For any two services of the same type, calculate the similarity between the first service and the second service based on the target parameters of the first service and the second service; the first service and the second service are both any two services of the same type.

[0194] Determine whether the similarity between the first business and the second business is greater than or equal to a preset similarity.

[0195] If the similarity between the first service and the second service is determined to be greater than or equal to the preset similarity, then the first service and the second service will be assigned to the same first service component.

[0196] If the similarity between the first service and the second service is determined to be less than the preset similarity, then the first service and the second service will be divided into different first service components.

[0197] As can be seen, this optional implementation can accurately calculate the similarity between any two services of the same type based on their target parameters, and accurately group the two services based on the accurately calculated similarity, thereby improving the accuracy and reliability of grouping all services.

[0198] In this optional implementation, optionally, the grouping module 302 may calculate the first similarity between two services of the same service type within any service parameters, based on the target parameters of the first service and the target parameters of the second service, in a specific manner including:

[0199] For any two services of the same type, calculate the initial similarity between each sub-parameter of the target parameters of the first service and the corresponding sub-parameter of the second service to obtain the initial similarity of that sub-parameter.

[0200] Determine the weight coefficient of each sub-parameter based on the parameter content contained in each sub-parameter;

[0201] The similarity between the first business and the second business is calculated based on the initial similarity corresponding to each sub-parameter and the weight coefficient of each sub-parameter.

[0202] As can be seen, this optional implementation can also calculate the initial similarity of each sub-parameter in all sub-parameters of the target parameters of any two services with the same service type, and determine the weight coefficient of each sub-parameter according to the parameter content of each sub-parameter. Based on the initial similarity and weight coefficient of all sub-parameters, the similarity between the two services can be accurately calculated, which can improve the accuracy and reliability of similarity calculation between any two services with the same service type.

[0203] In another optional embodiment, the setting module 303 sets a second type of URL address with a unique second mapping relationship for each business component. Specifically, the method of using this second type of URL address corresponding to the business component may include:

[0204] For each business component, one URL is selected from all URLs in a pre-determined URL address library as the unique second-type URL address corresponding to that business component; each second-type URL address corresponds to a unique business component.

[0205] Establish a second mapping relationship between each business component and the second type of URL address of that business component;

[0206] Specifically, the setting module 303 selects one URL from a pre-determined URL address library as the unique second-type URL address for each business component, including the following methods:

[0207] For each business component, determine whether there is at least one candidate URL address among all URL addresses in the pre-determined URL address library that does not have a unique mapping relationship; if it is determined that there is at least one candidate URL address that does not have a unique mapping relationship, then select one of the candidate URL addresses as the second type URL address that is uniquely corresponding to the business component.

[0208] As can be seen, this optional embodiment can filter out multiple candidate URL addresses that have not established a unique mapping relationship from a predetermined URL address library, which can improve the accuracy and reliability of URL address filtering. Furthermore, it can filter out a second type of URL address that corresponds one-to-one with each business component in all business components from all candidate URL addresses, thereby improving the accuracy and reliability of matching between business components and candidate URL addresses.

[0209] In yet another optional embodiment, each business component has corresponding business content; and, as Figure 4 As shown, the URL-based service processing device may further include:

[0210] The determination module 306 is used to determine the target page of the page display instruction when a page display instruction is detected, after the setting module 303 sets a second type URL address with a unique second mapping relationship for each business component as the second type URL address corresponding to the business component, based on the instruction information contained in the page display instruction; the target page needs to be displayed in the current page view.

[0211] The acquisition module 301 is also used to acquire the target URL address of the target page;

[0212] The filtering module 307 is used to filter out the target business components that match the target URL address from all business components based on the target URL address of the target page and all second mapping relationships;

[0213] The determination module 306 is also used to determine the business content corresponding to the target business component, which is used as the page content of the target page;

[0214] Display module 308 is used to display the page content of the target page through the current page view.

[0215] As can be seen, this optional embodiment can analyze the page display instruction when it is detected, so as to accurately filter out the target business component from all business components, and display the business content of the filtered target business component as the page content of the target page, thus accurately displaying the page and page content to be displayed in the current page view.

[0216] In this optional embodiment, as an optional implementation, the filtering module 307 filters out the target business component that matches the target URL address from all business components based on the target URL address of the target page and all second mapping relationships. Specifically, this may include:

[0217] Determine if the target URL of the target page exists among all the second-type URLs corresponding to the second mapping relationships;

[0218] If it is determined that the target URL address of the target page exists in the second type of URL address corresponding to all mapping relationships, then the business component corresponding to the target URL address is determined as the target business component that matches the target URL address according to the second mapping relationship corresponding to the target URL address.

[0219] If it is determined that there is no target URL address for the target page among the second type of URL addresses corresponding to all mapping relationships, then based on all first mapping relationships, the target business that matches the target URL address is selected from all businesses and used as the target business component that matches the URL address.

[0220] As can be seen, this optional implementation can, when a target URL address exists in all second mapping relationships, filter out the target business component that matches the target URL address from all business components based on all second mapping relationships; when a target URL address does not exist in all second mapping relationships, filter out the target business that matches the target URL address from all businesses based on all first mapping relationships, and use it as the target business component, thereby improving the accuracy and intelligence of determining the target business component.

[0221] Example 4

[0222] Please see Figure 5 , Figure 5 This is a schematic diagram of another URL-based service processing device disclosed in an embodiment of the present invention. For example... Figure 5 As shown, the URL-based service processing device may include:

[0223] Memory 401 storing executable program code;

[0224] Processor 402 coupled to memory 401;

[0225] The processor 402 calls the executable program code stored in the memory 401 to execute the steps in the URL address-based business processing method described in Embodiment 1 or Embodiment 2 of the present invention.

[0226] Example 5

[0227] This invention discloses a service processing device for executing the steps of the URL-based service processing method described in Embodiment 1 or Embodiment 2 of this invention. Optionally, the service processing device refers to an internet device, such as a computer (desktop computer, PDA, tablet computer, portable computer, etc.), a smartphone (Android phone, iOS phone, etc.), a smartwatch, and mobile internet devices (MIDs) capable of switching internet pages; this is not limited to any particular device.

[0228] Example 6

[0229] This invention discloses a computer storage medium storing computer instructions. When these computer instructions are invoked, they are used to execute the steps in the URL-based business processing method described in Embodiment 1 or Embodiment 2 of this invention.

[0230] Example 7

[0231] This invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the steps in the URL address-based business processing method described in Embodiment 1 or Embodiment 2.

[0232] The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0233] Through the detailed description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0234] Finally, it should be noted that the business processing method, apparatus, device, and storage medium based on URL address disclosed in the embodiments of the present invention are merely preferred embodiments of the present invention and are only used to illustrate the technical solutions of the present invention, not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A business processing method based on a URL address, characterized in that, The method includes: Obtain predetermined initial business information; the initial business information includes multiple first-type URL addresses and a business that has a unique first mapping relationship with each first-type URL address; Based on the determined service parameters of all the services and at least one pre-determined service grouping condition, all the services are grouped to obtain all service components; each service component includes one or more of the services. A URL address with a unique second mapping relationship is set for each business component as the second type of URL address corresponding to the business component. Each first mapping relationship and each second mapping relationship are passed by the corresponding logic code. The second type of URL address corresponding to each business component is used for all the businesses in each business component to interact with the page resources corresponding to the second type of URL address based on the logic code corresponding to the unique second mapping relationship of the second type of URL address. And, after grouping all the services according to the determined service parameters of all the services and at least one pre-determined service grouping condition to obtain all service components, and before setting a second type of URL address with a unique second mapping relationship for each service component as the second type of URL address corresponding to that service component, the method further includes: For each of the aforementioned business components, determine whether the current conditions of the business component meet the preset encapsulation conditions; If it is determined that the current condition of the business component does not meet the preset encapsulation condition, then the operation of setting a second type of URL address with a unique second mapping relationship for each business component is triggered as the second type of URL address corresponding to the business component. If it is determined that the current condition of the business component meets the preset encapsulation condition, the business component is encapsulated to obtain the encapsulated business component, and the operation of setting a second type of URL address with a unique second mapping relationship for each business component is triggered as the second type of URL address corresponding to the business component. Here, all the business components include all the encapsulated business components and all the business components that do not need to be encapsulated.

2. The service processing method based on URL address according to claim 1, characterized in that, The business parameters of each business include the business type of each business and the target parameters of each business, wherein the target parameters of each business include the target object to which each business is directed and / or the processing method of each business, and the processing method of each business is determined by the reflection mechanism during the runtime of the running code of each business; The step of grouping all the services according to the determined service parameters of all the services and at least one pre-determined service grouping condition to obtain all service components includes: For any two services of the same type, the similarity between the first service and the second service is calculated based on the target parameters of the first service and the target parameters of the second service; the first service and the second service are both one of any two services of the same type. Determine whether the similarity between the first service and the second service is greater than or equal to a preset similarity. If it is determined that the similarity between the first service and the second service is greater than or equal to the preset similarity, then the first service and the second service are assigned to the same first service component. If it is determined that the similarity between the first service and the second service is less than the preset similarity, then the first service and the second service are divided into different first service components.

3. The service processing method based on URL address according to claim 2, characterized in that, For any two services of the same service type, calculating the similarity between the first service and the second service based on the target parameters of the first service and the target parameters of the second service includes: For any two services of the same type, calculate the initial similarity between each sub-parameter of the target parameters of the first service and the corresponding sub-parameter of the second service to obtain the initial similarity corresponding to the sub-parameter. Based on the parameter content contained in each sub-parameter, determine the weight coefficient of each sub-parameter; The similarity between the first service and the second service is calculated based on the initial similarity corresponding to each sub-parameter and the weight coefficient of each sub-parameter.

4. The business processing method based on URL address according to claim 1, characterized in that, The step of setting a second type of URL address with a unique second mapping relationship for each of the business components, as the second type of URL address corresponding to that business component, includes: For each of the aforementioned business components, one URL is selected from all URL addresses in a pre-determined URL address library as the unique second-type URL address corresponding to that business component; each second-type URL address corresponds to a unique business component; Establish a second mapping relationship between each of the business components and the second type of URL address of that business component; Wherein, for each of the business components, selecting one URL address from all URL addresses in a pre-determined URL address library as the unique second-type URL address corresponding to that business component includes: For each of the business components, determine whether there is at least one candidate URL address among all URL addresses in the pre-determined URL address library that has not established a unique mapping relationship; if it is determined that there is at least one candidate URL address that has not established a unique mapping relationship, then select one of the candidate URL addresses as the second type URL address uniquely corresponding to the business component.

5. The business processing method based on a URL address according to any one of claims 1-4, characterized in that, Each of the aforementioned business components has corresponding business content; After setting a second type of URL address with a unique second mapping relationship for each of the business components as the second type of URL address corresponding to that business component, the method further includes: When a page display instruction is detected, the target page of the page display instruction is determined based on the instruction information contained in the page display instruction; the target page needs to be displayed in the current page view; Obtain the target URL address of the target page; Based on the target URL address of the target page and all the second mapping relationships, filter out the target business components that match the target URL address from all the business components; The business content corresponding to the target business component is determined and used as the page content of the target page; the page content of the target page is then displayed through the current page view.

6. The service processing method based on URL address according to claim 5, characterized in that, The step of filtering out the target business component that matches the target URL address from all the business components based on the target URL address of the target page and all the second mapping relationships includes: Determine whether the target URL address of the target page exists among all the second type of URL addresses corresponding to the second mapping relationship; If it is determined that the target URL address of the target page exists in the second type of URL address corresponding to all the mapping relationships, then the business component corresponding to the target URL address is determined as the target business component that matches the target URL address according to the second mapping relationship corresponding to the target URL address; If it is determined that the target URL address of the target page does not exist in the second type of URL address corresponding to all the mapping relationships, then according to all the first mapping relationships, the target business that matches the target URL address is selected from all the businesses and used as the target business component that matches the URL address.

7. A service processing device based on a URL address, characterized in that, The apparatus is configured to perform the URL-based business processing method as described in any one of claims 1-6; and the apparatus comprises: The acquisition module is used to acquire pre-determined initial business information; the initial business information includes multiple first-type URL addresses, and each first-type URL address has a business with a unique first mapping relationship. The grouping module is used to group all the services according to the determined service parameters of all the services and at least one pre-determined service grouping condition to obtain all service components; each service component includes one or more of the services. The configuration module is used to set a second type of URL address with a unique second mapping relationship for each of the business components, which serves as the second type of URL address corresponding to the business component. Each first mapping relationship and each second mapping relationship are passed by the corresponding logic code, and the second type of URL address corresponding to each business component is used for all the business components in each business component to interact with the page resources corresponding to the second type of URL address based on the logic code corresponding to the unique second mapping relationship of the second type of URL address.

8. A service processing device based on a URL address, characterized in that, The device includes: Memory containing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the service processing method based on the URL address as described in any one of claims 1-6.

9. A service processing device based on a URL address, characterized in that, The apparatus includes a service processing device for performing the URL-based service processing method as described in any one of claims 1-6.

10. A computer storage medium, characterized in that, The computer storage medium stores computer instructions, which, when invoked, are used to execute the business processing method based on a URL address as described in any one of claims 1-6.