CN116431940A - Link configuration method, system, equipment and storage medium - Google Patents

Link configuration method, system, equipment and storage medium Download PDF

Info

Publication number
CN116431940A
CN116431940A CN202310484913.4A CN202310484913A CN116431940A CN 116431940 A CN116431940 A CN 116431940A CN 202310484913 A CN202310484913 A CN 202310484913A CN 116431940 A CN116431940 A CN 116431940A
Authority
CN
China
Prior art keywords
configuration
link
application configuration
environment
latest version
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310484913.4A
Other languages
Chinese (zh)
Inventor
柯诗雄
胡航
柯诗豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ctrip Travel Network Technology Shanghai Co Ltd
Original Assignee
Ctrip Travel Network Technology Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ctrip Travel Network Technology Shanghai Co Ltd filed Critical Ctrip Travel Network Technology Shanghai Co Ltd
Priority to CN202310484913.4A priority Critical patent/CN116431940A/en
Publication of CN116431940A publication Critical patent/CN116431940A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a link configuration method, a system, equipment and a storage medium, wherein the configuration method comprises the following steps: acquiring a scene identifier from a target application configuration; acquiring a corresponding environment configuration set according to the scene identifier; judging whether the link corresponding to the environment configuration set contains a placeholder, and if so, replacing the acquired parameter value of the link to the position of the placeholder. According to the method and the device for obtaining the environment configuration set, the corresponding environment configuration set is obtained according to the scene identification, the number of scenes is reduced, and when the links corresponding to the environment configuration set contain the placeholders, the obtained parameter values of the links are replaced to the positions of the placeholders, so that the link configuration of different types of front ends, different versions of front ends and internationalized scenes can be simply, flexibly and efficiently realized, and the link configuration efficiency is improved.

Description

Link configuration method, system, equipment and storage medium
Technical Field
The present invention relates to the field of link processing technologies, and in particular, to a method, a system, an apparatus, and a storage medium for configuring a link.
Background
In current internet applications, user interaction flows typically involve jumps between pages, and pages that need to be jumped may also differ in different situations. To cope with such dynamic scenarios, a server interface is generally used to issue jump links, for example: judging that the scene 1 issues the link 1 in the code, otherwise judging that the scene 2 issues the link 2, and the like. The following situations exist in the manner of issuing the jump link by the server interface: (1) Different types of front ends, for example, the links of https protocol need to be issued when the Web (global wide area network) end pages, and url schema of the App needs to be issued when the App (mobile phone software) end pages; (2) Different versions of the front end, e.g., a new version App is different from the url schema of an old version App; (3) Links in internationalization scenarios exist that are different under different language sites, e.g., different links need to be issued at korean sites and japanese sites.
In addition, the server interface is adopted to issue jump links, so that the problems of insufficient convenience and poor performance exist in two modes of local configuration and centralized configuration, for example, when a configuration mode of local configuration is used, the operation of updating configuration is difficult in distributed service deployment. When the configuration mode of centralized configuration is used, configuration needs to be acquired from a configuration center through network IO when configuration is acquired, and extra performance consumption is caused.
Disclosure of Invention
The invention aims to overcome the defects of complex judgment, inflexibility and low efficiency in the prior art that a server interface is adopted to issue a jump link, and provides a link configuration method, a system, equipment and a storage medium.
The invention solves the technical problems by the following technical scheme:
the first aspect of the present invention provides a method for configuring a link, where the method includes:
acquiring a scene identifier from a target application configuration;
acquiring a corresponding environment configuration set according to the scene identifier;
judging whether the link corresponding to the environment configuration set contains a placeholder, and if so, replacing the acquired parameter value of the link to the position of the placeholder.
Preferably, before the step of obtaining the scene identifier from the target application configuration, the configuration method further includes:
and acquiring the target application configuration.
Preferably, after the step of obtaining the corresponding environment configuration set according to the scene identifier, the configuration method further includes:
judging whether links corresponding to the environment configuration set exist in the cache or not, and if yes, judging whether the links corresponding to the environment configuration set contain placeholders or not; if not, a null value is returned.
Preferably, the configuration method further comprises:
and if the link corresponding to the environment configuration set is judged not to contain the placeholder, returning the link.
Preferably, the configuration method further comprises:
judging whether the configuration center has the latest version of application configuration according to the long polling request, if so, analyzing the latest version of application configuration, and storing the analyzed latest version of application configuration into a cache.
Preferably, the configuration method further comprises:
if the fact that the configuration center does not have the latest version of application configuration is judged, judging whether the configuration center has the latest version of application configuration within preset waiting time, and if the fact that the configuration center does not have the latest version of application configuration within the preset waiting time is exceeded, returning overtime prompt information; if the configuration center has the latest version of application configuration within the preset waiting time, analyzing the latest version of application configuration, and storing the analyzed latest version of application configuration into a cache.
Preferably, the set of environment configurations includes at least one of a client type, a client version, and a multilingual site.
The second aspect of the invention provides a linked configuration system, which comprises a scene identification acquisition module, an environment configuration set acquisition module, a placeholder judgment module and a replacement module;
the scene identification acquisition module is used for acquiring scene identification from target application configuration;
the environment configuration set acquisition module is used for acquiring a corresponding environment configuration set according to the scene identifier;
the placeholder judging module is used for judging whether the link corresponding to the environment configuration set contains a placeholder or not, and if so, the replacing module is called;
the replacing module is used for replacing the obtained parameter value of the link to the position of the placeholder.
Preferably, the configuration system further comprises a target application configuration acquisition module;
the target application configuration acquisition module is used for acquiring target application configuration.
Preferably, the configuration system further comprises a link judging module and a first returning module;
the link judging module is used for judging whether links corresponding to the environment configuration set exist in the cache or not, and if yes, the placeholder judging module is called;
the placeholder judging module is used for judging whether the links corresponding to the environment configuration set contain placeholders or not; if not, calling the first return module;
the first return module is used for returning a null value.
Preferably, the configuration system further comprises a second return module;
and the second return module is used for returning the link corresponding to the environment configuration set if the link is judged not to contain the placeholder.
Preferably, the configuration system further comprises a first application configuration judging module and a parsing module;
the first application configuration judging module is used for judging whether the configuration center has the application configuration of the latest version according to the long polling request, and if so, the analyzing module is called;
the analysis module is used for analyzing the latest version of application configuration and storing the analyzed latest version of application configuration into a cache.
Preferably, the configuration system further comprises a second application configuration judging module and a third returning module;
the second application configuration judging module is used for judging whether the configuration center has the application configuration of the latest version within the preset waiting time if the configuration center does not have the application configuration of the latest version, and calling the third returning module if the configuration center does not have the application configuration of the latest version beyond the preset waiting time; if the configuration center has the latest version of application configuration within the preset waiting time, calling the analysis module;
the third return module is used for returning overtime prompt information;
the analysis module is used for analyzing the latest version of application configuration and storing the analyzed latest version of application configuration into a cache.
Preferably, the set of environment configurations includes at least one of a client type, a client version, and a multilingual site.
A third aspect of the invention provides an electronic device comprising a memory, a processor and a computer program stored on the memory for running on the processor, the processor implementing the method of configuring links as described in the first aspect when executing the computer program.
A fourth aspect of the invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of configuring a link as described in the first aspect.
On the basis of conforming to the common knowledge in the field, the above preferred conditions can be arbitrarily combined to obtain the preferred examples of the invention.
The invention has the positive progress effects that:
according to the method and the device for obtaining the environment configuration set, the corresponding environment configuration set is obtained according to the scene identification, the number of scenes is reduced, and when the links corresponding to the environment configuration set contain the placeholders, the obtained parameter values of the links are replaced to the positions of the placeholders, so that the link configuration of different types of front ends, different versions of front ends and internationalized scenes can be simply, flexibly and efficiently realized, and the link configuration efficiency is improved.
Drawings
Fig. 1 is a first flowchart of a link configuration method in embodiment 1 of the present invention.
Fig. 2 is a second flowchart of the link configuration method of embodiment 1 of the present invention.
Fig. 3 is a schematic block diagram of a linked configuration system according to embodiment 2 of the present invention.
Fig. 4 is a schematic structural diagram of an electronic device according to embodiment 3 of the present invention.
Detailed Description
The invention is further illustrated by means of the following examples, which are not intended to limit the scope of the invention.
Example 1
The configuration method of the link provided in this embodiment, as shown in fig. 1, includes:
step 101, acquiring a scene identifier from target application configuration;
in this embodiment, the target application configuration is first obtained from the cache, and then the scene identifier is obtained from the target application configuration.
102, acquiring a corresponding environment configuration set according to a scene identifier;
in this embodiment, the dimensions belonging to the environments in different scenes may be extracted to reduce the number of scenes, and for the situations of different environments in the same scene, the links may be obtained through a matching configuration mode, and the application configuration is distributed and obtained by using a centralized configuration in combination with a local cache.
As an alternative embodiment, the set of environment configurations includes at least one of a client type, a client version, and a multi-lingual site. For example, the original App commodity detail page of the Japanese site version 1.0, the App commodity detail page of the Korean site version 2.0 and the Web commodity detail page of the Thailand site become only one commodity detail page after the environment dimension is extracted, so that the number of scenes is reduced.
Step 103, judging whether the link corresponding to the environment configuration set contains a placeholder, if so, executing step 104; if not, go to step 105;
step 104, replacing the obtained linked parameter value to the position of the placeholder;
in this embodiment, the scene identifier and the linked parameter value are directly transmitted to the server according to the service logic. The environment configuration set has two incoming modes, (1) the environment configuration set is analyzed by a pre-filter and stored into thread local variables, and the environment configuration set is directly obtained from the thread local variables; (2) The service logic automatically analyzes the environment configuration set and directly transmits the environment configuration set into the service logic.
In the implementation process, if the parameter value of the input link is non-null, analyzing the placeholder in the link;
it should be noted that, there are two forms of placeholders: one is: parameter names, i.e., general placeholders; the other is: the parameter name is equal to the default value, i.e. the placeholder containing the default value.
In this embodiment, the placeholder name, the placeholder default value and the placeholder position in the link are matched by the regular expression, the placeholder name is used as a key (key) to obtain a corresponding value from the parameter value of the incoming link, if the obtained value is not null, the value is replaced to the placeholder position, otherwise, the placeholder default value is replaced to the placeholder position.
Step 105, return link.
As an optional embodiment, before step 101, the configuration method further includes:
step 100, obtaining target application configuration.
As an alternative embodiment, as shown in fig. 2, after step 102, the configuration method further includes:
102-1, judging whether a link corresponding to the environment configuration set exists in the cache, and if so, executing 103; if not, executing step 102-2;
step 102-2, return a null value.
In a specific implementation process, a target application configuration is obtained from a cache, a scene identifier is obtained from the target application configuration, an environment configuration set under the scene is obtained according to the scene identifier, and corresponding links in a matching configuration set of a client type, a client version and a multi-language site are required at present, for example, the matching client version is the largest version configuration of finding the client version which is less than or equal to the requirement, and the client type and the multi-language site are the client type and the multi-language site which are required in a matching way.
In addition, the configuration format supports key-value and array set type, the configured key is scene identification, value is array set, and each element in array set represents an environment of the scene and a link corresponding to the environment.
As an optional implementation manner, the configuration method further includes:
step 201, judging whether the configuration center has the latest version of application configuration according to the long polling request, and if so, executing step 202; if not, go to step 203;
in this embodiment, the long polling request includes, but is not limited to, a scene identifier, an environment configuration set, and a linked parameter value required by the user.
Step 202, analyzing the latest version of application configuration, and storing the analyzed latest version of application configuration into a cache.
In this embodiment, a Map is a result of resolving the latest version of application configuration, and in the resolving process, three values of the scene identifier, the client type and the multilingual site of the latest version of application configuration are spliced into a character string, the character string is used as a key of the Map, a value of the Map is an array set, and each element in the array set includes the client version and a corresponding link. When the application configuration is matched, three values of the scene identifier, the client type and the multi-language site are spliced into a character string, when the character string is used as a key to acquire a value from a Map of the application configuration, and the value is not empty, the largest client version is inquired in the array set according to the client version of the input, and the client version is smaller than or equal to the application configuration of the client version (namely, the client version required by a user), if the corresponding application configuration cannot be found, the blank value is returned.
Step 203, judging whether the configuration center has the latest version of application configuration within the preset waiting time, and executing step 204 if the configuration center has no latest version of application configuration within the preset waiting time; if the configuration center has the latest version of application configuration within the preset waiting time, executing step 202;
and 204, returning a timeout prompt message, and continuously initiating a long polling request to circularly acquire the latest version of application configuration.
In the specific implementation process, a server initiates a long polling request to a configuration center, the version number of the application configuration which is acquired currently is transmitted in the long polling request, and when the application configuration is not acquired currently, the version number is transmitted in 0; and if the version of the latest version of the application configuration in the configuration center is not greater than the version of the latest version of the application configuration in the configuration center, waiting for not returning. If the configuration center has the latest version of application configuration within the preset waiting time and the version of the latest version of application configuration is larger than the input version of the current long polling request, the application configuration is returned, if the preset waiting time is exceeded and the new version of application configuration still does not exist, timeout prompt information is returned, and the long polling request is continuously initiated to circularly acquire the latest version of application configuration. After the returned latest version of the application configuration is analyzed, the analyzed latest version of the application configuration is covered in a cache in the memory, and a long polling request is continuously initiated to circularly acquire the latest version of the application configuration.
In the embodiment, the latest version of application configuration is acquired from the configuration center in a long polling mode, the latest version of application configuration is analyzed and then stored in the cache, and the analyzed application configuration is directly acquired from the cache when the application configuration is used.
According to the method and the device, the corresponding environment configuration set is obtained according to the scene identifier, the number of scenes is reduced, and when the links corresponding to the environment configuration set contain placeholders, the obtained parameter values of the links are replaced to the positions of the placeholders, so that the link configuration of different types of front ends, different versions of front ends and internationalized scenes can be realized simply, flexibly and efficiently, and the link configuration efficiency is improved; in addition, the problems of insufficient convenience and poor performance of a local configuration mode and a centralized configuration mode are solved.
Example 2
As shown in fig. 3, the linked configuration system provided in this embodiment includes a scene identifier obtaining module 21, an environment configuration set obtaining module 22, a placeholder judging module 23 and a replacing module 24;
the scene identifier obtaining module 21 is configured to obtain a scene identifier from the target application configuration;
in this embodiment, the target application configuration is first obtained from the cache, and then the scene identifier is obtained from the target application configuration.
The environment configuration set acquisition module 22 is configured to acquire a corresponding environment configuration set according to the scene identifier;
in this embodiment, the dimensions belonging to the environments in different scenes may be extracted to reduce the number of scenes, and for the situations of different environments in the same scene, the links may be obtained through a matching configuration mode, and the application configuration is distributed and obtained by using a centralized configuration in combination with a local cache.
As an alternative embodiment, the set of environment configurations includes at least one of a client type, a client version, and a multi-lingual site. For example, the original App commodity detail page of the Japanese site version 1.0, the App commodity detail page of the Korean site version 2.0 and the Web commodity detail page of the Thailand site become only one commodity detail page after the environment dimension is extracted, so that the number of scenes is reduced.
The placeholder judging module 23 is configured to judge whether the link corresponding to the environment configuration set contains a placeholder, and if so, call the replacing module 24;
the replacement module 24 is configured to replace the obtained linked parameter value to the placeholder location.
In this embodiment, the scene identifier and the linked parameter value are directly transmitted to the server according to the service logic. The environment configuration set has two incoming modes, (1) the environment configuration set is analyzed by a pre-filter and stored into thread local variables, and the environment configuration set is directly obtained from the thread local variables; (2) The service logic automatically analyzes the environment configuration set and directly transmits the environment configuration set into the service logic.
In the implementation process, if the parameter value of the input link is non-null, analyzing the placeholder in the link;
it should be noted that, there are two forms of placeholders: one is: parameter names, i.e., general placeholders; the other is: the parameter name is equal to the default value, i.e. the placeholder containing the default value.
In this embodiment, the placeholder name, the placeholder default value and the placeholder position in the link are matched by the regular expression, the placeholder name is used as a key to obtain a corresponding value from the parameter value of the incoming link, if the obtained value is not null, the value is replaced to the placeholder position, otherwise, the placeholder default value is replaced to the placeholder position.
As an alternative embodiment, as shown in fig. 3, the configuration system further includes a target application configuration acquiring module 25;
the target application configuration acquisition module 25 is configured to acquire a target application configuration.
As an alternative embodiment, as shown in fig. 3, the configuration system further includes a link judgment module 26 and a first return module 27;
the link judging module 26 is configured to judge whether a link corresponding to the environment configuration set exists in the cache, and if so, call the placeholder judging module 23;
the placeholder judging module 23 is used for judging whether the links corresponding to the environment configuration set contain placeholders or not; if not, the first return module 27 is invoked;
the first return module 27 is for returning a null value.
In a specific implementation process, a target application configuration is obtained from a cache, a scene identifier is obtained from the target application configuration, an environment configuration set under the scene is obtained according to the scene identifier, and corresponding links in a matching configuration set of a client type, a client version and a multi-language site are required at present, for example, the matching client version is the largest version configuration of finding the client version which is less than or equal to the requirement, and the client type and the multi-language site are the client type and the multi-language site which are required in a matching way.
In addition, the configuration format supports key-value and array set types, the configured key is a scene identifier, the value is an array set, and each element in the array set represents an environment of the scene and a link corresponding to the environment.
As an alternative embodiment, as shown in fig. 3, the configuration system further includes a second return module 28;
the second return module 28 is configured to return the link if it is determined that the link corresponding to the environment configuration set does not include a placeholder.
As an alternative embodiment, as shown in fig. 3, the configuration system further includes a first application configuration determining module 29 and a parsing module 301;
the first application configuration determining module 29 is configured to determine whether the configuration center has the latest version of application configuration according to the long polling request, and if so, invoke the parsing module 301;
in this embodiment, the long polling request includes, but is not limited to, a scene identifier, an environment configuration set, and a linked parameter value required by the user.
The parsing module 301 is configured to parse the latest version of application configuration, and store the parsed latest version of application configuration in the cache.
In this embodiment, a Map is a result of resolving the latest version of application configuration, and in the resolving process, three values of the scene identifier, the client type and the multilingual site of the latest version of application configuration are spliced into a character string, the character string is used as a key of the Map, a value of the Map is an array set, and each element in the array set includes the client version and a corresponding link. When the application configuration is matched, three values of the scene identifier, the client type and the multi-language site are spliced into a character string, when the character string is used as a key to acquire a value from a Map of the application configuration, and the value is not empty, the largest client version is inquired in the array set according to the client version of the input, and the client version is smaller than or equal to the application configuration of the client version (namely, the client version required by a user), if the corresponding application configuration cannot be found, the blank value is returned.
As an alternative embodiment, as shown in fig. 3, the configuration system further includes a second application configuration determining module 302 and a third returning module 303;
the second application configuration judging module 302 is configured to judge whether the configuration center has the latest version of application configuration within a preset waiting time if it is judged that the configuration center does not have the latest version of application configuration, and call a third return module if the configuration center does not have the latest version of application configuration beyond the preset waiting time; if the configuration center has the latest version of application configuration within the preset waiting time, calling an analysis module 301;
the third returning module 303 is configured to return a timeout prompt message, and continue to initiate a long polling request, so as to circularly obtain the latest version of application configuration;
the parsing module 301 is configured to parse the latest version of application configuration, and store the parsed latest version of application configuration in the cache.
In the specific implementation process, a server initiates a long polling request to a configuration center, the version number of the application configuration which is acquired currently is transmitted in the long polling request, and when the application configuration is not acquired currently, the version number is transmitted in 0; and if the version of the latest version of the application configuration in the configuration center is not greater than the version of the latest version of the application configuration in the configuration center, waiting for not returning. If the configuration center has the latest version of application configuration within the preset waiting time and the version of the latest version of application configuration is larger than the input version of the current long polling request, the application configuration is returned, if the preset waiting time is exceeded and the new version of application configuration still does not exist, timeout prompt information is returned, and the long polling request is continuously initiated to circularly acquire the latest version of application configuration. After the returned latest version of the application configuration is analyzed, the analyzed latest version of the application configuration is covered in a cache in the memory, and a long polling request is continuously initiated to circularly acquire the latest version of the application configuration.
In the embodiment, the latest version of application configuration is acquired from the configuration center in a long polling mode, the latest version of application configuration is analyzed and then stored in the cache, and the analyzed application configuration is directly acquired from the cache when the application configuration is used.
According to the method and the device, the corresponding environment configuration set is obtained according to the scene identifier, the number of scenes is reduced, and when the links corresponding to the environment configuration set contain placeholders, the obtained parameter values of the links are replaced to the positions of the placeholders, so that the link configuration of different types of front ends, different versions of front ends and internationalized scenes can be realized simply, flexibly and efficiently, and the link configuration efficiency is improved; in addition, the problems of insufficient convenience and poor performance of a local configuration mode and a centralized configuration mode are solved.
Example 3
Fig. 4 is a schematic structural diagram of an electronic device according to embodiment 3 of the present invention. The electronic device includes a memory, a processor, and a computer program stored on the memory for execution on the processor, which when executing the program implements the linked configuration method of embodiment 1. The electronic device 30 shown in fig. 4 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 4, the electronic device 30 may be embodied in the form of a general purpose computing device, which may be a server device, for example. Components of electronic device 30 may include, but are not limited to: the at least one processor 31, the at least one memory 32, a bus 33 connecting the different system components, including the memory 32 and the processor 31.
The bus 33 includes a data bus, an address bus, and a control bus.
Memory 32 may include volatile memory such as Random Access Memory (RAM) 321 and/or cache memory 322, and may further include Read Only Memory (ROM) 323.
Memory 32 may also include a program/utility 325 having a set (at least one) of program modules 324, such program modules 324 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The processor 31 executes various functional applications and data processing, such as the linked configuration method of embodiment 1 of the present invention, by running a computer program stored in the memory 32.
The electronic device 30 may also communicate with one or more external devices 34 (e.g., keyboard, pointing device, etc.). Such communication may be through an input/output (I/O) interface 35. Also, model-generating device 30 may also communicate with one or more networks, such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet, via network adapter 36. As shown in fig. 4, network adapter 36 communicates with the other modules of model-generating device 30 via bus 33. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in connection with the model-generating device 30, including, but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, data backup storage systems, and the like.
It should be noted that although several units/modules or sub-units/modules of an electronic device are mentioned in the above detailed description, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more units/modules described above may be embodied in one unit/module in accordance with embodiments of the present invention. Conversely, the features and functions of one unit/module described above may be further divided into ones that are embodied by a plurality of units/modules.
Example 4
The present embodiment provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of configuring links provided by embodiment 1.
More specifically, among others, readable storage media may be employed including, but not limited to: portable disk, hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In a possible embodiment, the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the configuration method for implementing the link as described in embodiment 1, when the program product is run on the terminal device.
Wherein the program code for carrying out the invention may be written in any combination of one or more programming languages, the program code may execute entirely on the user device, partly on the user device, as a stand-alone software package, partly on the user device, partly on a remote device or entirely on the remote device.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the principles and spirit of the invention, but such changes and modifications fall within the scope of the invention.

Claims (10)

1. A method for configuring a link, the method comprising:
acquiring a scene identifier from a target application configuration;
acquiring a corresponding environment configuration set according to the scene identifier;
judging whether the link corresponding to the environment configuration set contains a placeholder, and if so, replacing the acquired parameter value of the link to the position of the placeholder.
2. The method for configuring links according to claim 1, wherein before the step of acquiring the scene identifier from the target application configuration, the method for configuring further comprises:
and acquiring the target application configuration.
3. The method for configuring links according to claim 1, wherein after the step of acquiring the corresponding environment configuration set according to the scene identifier, the method for configuring further comprises:
judging whether links corresponding to the environment configuration set exist in the cache or not, and if yes, judging whether the links corresponding to the environment configuration set contain placeholders or not; if not, a null value is returned.
4. The method of configuring a link of claim 1, wherein the method of configuring further comprises:
and if the link corresponding to the environment configuration set is judged not to contain the placeholder, returning the link.
5. The method of configuring a link of claim 1, wherein the method of configuring further comprises:
judging whether the configuration center has the latest version of application configuration according to the long polling request, if so, analyzing the latest version of application configuration, and storing the analyzed latest version of application configuration into a cache.
6. The method for configuring a link according to claim 5, wherein the method for configuring further comprises:
if the fact that the configuration center does not have the latest version of application configuration is judged, judging whether the configuration center has the latest version of application configuration within preset waiting time, and if the fact that the configuration center does not have the latest version of application configuration within the preset waiting time is exceeded, returning overtime prompt information; if the configuration center has the latest version of application configuration within the preset waiting time, analyzing the latest version of application configuration, and storing the analyzed latest version of application configuration into a cache.
7. The method of configuring links of claim 1 wherein the set of environment configurations includes at least one of a client type, a client version, a multilingual site.
8. The linked configuration system is characterized by comprising a scene identification acquisition module, an environment configuration set acquisition module, a placeholder judgment module and a replacement module;
the scene identification acquisition module is used for acquiring scene identification from target application configuration;
the environment configuration set acquisition module is used for acquiring a corresponding environment configuration set according to the scene identifier;
the placeholder judging module is used for judging whether the link corresponding to the environment configuration set contains a placeholder or not, and if so, the replacing module is called;
the replacing module is used for replacing the obtained parameter value of the link to the position of the placeholder.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory for execution on the processor, wherein the processor implements the linked configuration method of any of claims 1-7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method of configuring links as claimed in any one of claims 1-7.
CN202310484913.4A 2023-04-28 2023-04-28 Link configuration method, system, equipment and storage medium Pending CN116431940A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310484913.4A CN116431940A (en) 2023-04-28 2023-04-28 Link configuration method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310484913.4A CN116431940A (en) 2023-04-28 2023-04-28 Link configuration method, system, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116431940A true CN116431940A (en) 2023-07-14

Family

ID=87083267

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310484913.4A Pending CN116431940A (en) 2023-04-28 2023-04-28 Link configuration method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116431940A (en)

Similar Documents

Publication Publication Date Title
EP3876116B1 (en) Method and apparatus for running mini program, electronic device, and storage medium
US8458666B2 (en) Methods and systems for implementing a test automation framework for testing software applications on UNIX/LINUX based machines
US20100049842A1 (en) Computing Environment Arranged to Support Predetermined URL Patterns
CN113360519B (en) Data processing method, device, equipment and storage medium
CN110673923A (en) XWIKI system configuration method, system and computer equipment
CN111552895B (en) Page route analysis method, system, equipment and medium in applet application
CN113419729A (en) Front-end page building method, device, equipment and storage medium based on modularization
CN115329170A (en) Webpage crawling method, device, equipment and storage medium
CN111240772A (en) Data processing method and device based on block chain and storage medium
CN110716804A (en) Method and device for automatically deleting useless resources, storage medium and electronic equipment
US20180032329A1 (en) Customized runtime environment
CN112632425B (en) Method, device, equipment and storage medium for generating offline resource file
CN117608845A (en) Task batch processing method, device, terminal equipment and storage medium
CN113179269A (en) Internet of things-based protocol data analysis method, system, medium, and program product
CN116431940A (en) Link configuration method, system, equipment and storage medium
CA3180833A1 (en) Flink sql statement verification method and device, computer equipment and storage medium
CN115080114A (en) Application program transplanting processing method, device and medium
CN114047999A (en) Page configuration method, system, electronic equipment and storage medium
CN113791819A (en) Interface document generation method and device, storage medium and electronic equipment
CN110727457A (en) Component management method, device, storage medium and electronic equipment
US11960560B1 (en) Methods for analyzing recurring accessibility issues with dynamic web site behavior and devices thereof
CN115421785B (en) Method, device and medium for transplanting application program
CN116737513B (en) Computer hardware information acquisition method, system and computer equipment
CN116662031A (en) Method and device for determining target script, electronic equipment and storage medium
CN113849170A (en) Code sharing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination