CN113411219B - Front-end service publishing method, device and equipment - Google Patents

Front-end service publishing method, device and equipment Download PDF

Info

Publication number
CN113411219B
CN113411219B CN202110729950.8A CN202110729950A CN113411219B CN 113411219 B CN113411219 B CN 113411219B CN 202110729950 A CN202110729950 A CN 202110729950A CN 113411219 B CN113411219 B CN 113411219B
Authority
CN
China
Prior art keywords
environment variable
client
environment
information
end service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110729950.8A
Other languages
Chinese (zh)
Other versions
CN113411219A (en
Inventor
王越
姚远
刘岩
许建桐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Paimeng Network Technology Co ltd
Original Assignee
Shandong Paimeng Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Paimeng Network Technology Co ltd filed Critical Shandong Paimeng Network Technology Co ltd
Priority to CN202110729950.8A priority Critical patent/CN113411219B/en
Publication of CN113411219A publication Critical patent/CN113411219A/en
Application granted granted Critical
Publication of CN113411219B publication Critical patent/CN113411219B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the specification discloses a front-end service publishing method, device and equipment. The method comprises the following steps: receiving resource request information sent by a client; analyzing the resource request information to obtain environment variable information; based on the environment variable information, the environment variable of the client is judged, and the front-end service is released, so that the front-end service can be released more conveniently and rapidly, and the release efficiency of the front-end service is improved.

Description

Front-end service publishing method, device and equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, and a device for publishing a front-end service.
Background
When the internet product is released, the front end often adopts a manual configuration method to set the front end environment when the product is packaged and released, and the manual configuration method usually needs to modify the environment variable value at least twice when the environment is tested and generated, needs to be packaged twice, has higher labor cost and is easy to make mistakes when the front end service is released.
Based on this, a new publishing method is needed, which can more conveniently and rapidly realize the publishing of the front-end service and improve the publishing efficiency of the front-end service.
Disclosure of Invention
The embodiment of the specification provides a front-end service publishing method, device and equipment, which are used for solving the following technical problems: in the prior art, the automatic test method based on the robot framework is not flexible enough in design, the discovery of the defects of the codes is not timely enough, and the coverage rate of the codes is low.
In order to solve the above technical problems, the embodiments of the present specification are implemented as follows:
the method for publishing the front-end service provided by the embodiment of the specification comprises the following steps:
receiving resource request information sent by a client;
analyzing the resource request information to obtain environment variable information;
and judging the environment variable of the client based on the environment variable information, and releasing the front-end service.
Further, the resource request information comprises an http request header and an http request body.
Further, the analyzing the resource request information to obtain environment variable information specifically includes:
analyzing the resource request information by a JSON.parameter method, and a cookie of the client;
and obtaining the environment variable information based on the cookie of the client.
Further, the values of the environment variable information include pro and dev, and the environment variable where the client is located is judged based on the values of the environment variable information, wherein pro represents a production environment, and dev represents a test environment.
Further, the determining, based on the environment variable information, the environment variable in which the client is located, and publishing the front-end service specifically includes:
and judging the environment variable of the client based on the environment variable information, and automatically releasing the front-end service through a dock.
Further, the determining, based on the environment variable information, the environment variable in which the client is located, and publishing the front-end service specifically includes:
judging the environment variable of the client based on the environment variable information;
and acquiring environment variables from a server system through a process.env.NODE_ENV command to match the environment variables of the service end, and issuing the front-end service.
The embodiment of the specification also provides a device for issuing the front-end service, which comprises:
the receiving module is used for receiving the resource request information sent by the client;
the analysis module is used for analyzing the resource request information to obtain environment variable information;
and the publishing module is used for judging the environment variable of the client based on the environment variable information and publishing the front-end service.
Further, the resource request information comprises an http request header and an http request body.
Further, the analyzing the resource request information to obtain environment variable information specifically includes:
analyzing the resource request information by a JSON.parameter method, and a cookie of the client;
and obtaining the environment variable information based on the cookie of the client.
Further, the values of the environment variable information include pro and dev, and the environment variable where the client is located is judged based on the values of the environment variable information, wherein pro represents a production environment, and dev represents a test environment.
Further, the determining, based on the environment variable information, the environment variable in which the client is located, and publishing the front-end service specifically includes:
and judging the environment variable of the client based on the environment variable information, and automatically releasing the front-end service through a dock.
Further, the determining, based on the environment variable information, the environment variable in which the client is located, and publishing the front-end service specifically includes:
judging the environment variable of the client based on the environment variable information;
and acquiring environment variables from a server system through a process.env.NODE_ENV command to match the environment variables of the service end, and issuing the front-end service.
The embodiment of the specification also provides an electronic device, including:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
receiving resource request information sent by a client;
analyzing the resource request information to obtain environment variable information;
and judging the environment variable of the client based on the environment variable information, and releasing the front-end service.
Further, the resource request information comprises an http request header and an http request body.
Further, the analyzing the resource request information to obtain environment variable information specifically includes:
analyzing the resource request information by a JSON.parameter method, and a cookie of the client;
and obtaining the environment variable information based on the cookie of the client.
Further, the values of the environment variable information include pro and dev, and the environment variable where the client is located is judged based on the values of the environment variable information, wherein pro represents a production environment, and dev represents a test environment.
Further, the determining, based on the environment variable information, the environment variable in which the client is located, and publishing the front-end service specifically includes:
and judging the environment variable of the client based on the environment variable information, and automatically releasing the front-end service through a dock.
Further, the determining, based on the environment variable information, the environment variable in which the client is located, and publishing the front-end service specifically includes:
judging the environment variable of the client based on the environment variable information;
and acquiring environment variables from a server system through a process.env.NODE_ENV command to match the environment variables of the service end, and issuing the front-end service.
The embodiment of the specification receives resource request information sent by a client; analyzing the resource request information to obtain environment variable information; based on the environment variable information, the environment variable of the client is judged, and the front-end service is released, so that the front-end service can be released more conveniently and rapidly, and the release efficiency of the front-end service is improved.
Drawings
In order to more clearly illustrate the embodiments of the present description or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some of the embodiments described in the present description, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a method for publishing a front-end service according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a front-end service publishing device according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions in the present specification better understood by those skilled in the art, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
Fig. 1 is a schematic diagram of a method for publishing a front-end service according to an embodiment of the present disclosure, where the method includes:
step S101: and receiving the resource request information sent by the client.
In this embodiment of the present disclosure, the execution body of front-end service publishing is a server or a server, and the resource request information is page resource request information. The client sends resource request information to the server by an http method, and the server receives the resource request information sent by the client. The client is a medium which needs to be displayed on a page, or a mode which needs to be displayed on a page, and the client can be a browser, an H5 page or an applet, and the specific type of the client is not limited in the application.
In a specific embodiment, the resource request information includes an http request header and an http request body.
The HTTP method, the hypertext transfer protocol (Hypertext Transfer Protocol, HTTP), is a simple request-response protocol that typically runs on top of TCP. It specifies what messages the client might send to the server and what responses it gets. The header of the request and response messages are given in ASCII form; whereas the message content has a MIME-like format.
In the embodiment of the specification, the http request header has a plurality of attributes in the form of key: val, and the server side obtains the client information according to the attributes.
In the embodiment of the present specification, the http request body encodes the component values in a page form into a formatted string through the key value pair of param1=val1 & par=2, and the formatted string carries data of a plurality of request parameters, so that not only the header can transmit the request parameters, but also the URL can transmit the values in the manner of/chapter 15/user.htmlparam1=value1 & param2=value2'
Step S103: and analyzing the resource request information to obtain environment variable information.
In this embodiment of the present disclosure, the analyzing the resource request information to obtain environment variable information specifically includes:
analyzing the resource request information by a JSON.parameter method, and a cookie of the client;
and obtaining the environment variable information based on the cookie of the client.
In the present description embodiment, the cookie (data stored on the user's local terminal) is a small text file of the type, which is generally composed of: a Name, a Value and several other optional attributes for controlling Cookie expiration, security, and scope of use. Wherein: name/Value: and setting the name and the corresponding Value of the Cookie, wherein the Value comprises an access token provided by the Web server for authenticating the Cookie.
And analyzing the resource request information by a JSON.parameter method, wherein the cookie of the client contains a plurality of key value pairs, so that the destination key value pair or the key value pair of interest needs to be further selected.
The method can convert the character string of the JSON rule into the JSONOObject through the JSON.side method, and the javascript analyzes the resource request information through js-cookie middleware to obtain the cookie of the client.
In this embodiment of the present disclosure, the values of the environment variable information include pro and dev, and the environment variable where the client is located is determined based on the values of the environment variable information, where pro represents a production environment and dev represents a test environment. Specifically, if the value of the environment variable information is pro, it represents that the environment where the client is located is a production environment, and if the value of the environment variable information is dev, it represents that the environment where the client is located is a test environment.
In one embodiment of the present specification, a cookie with a node-env key value of environment variable information is obtained from a cookie of a client, and the node-env values are pro and dev. And determining an environment variable where the client is located based on the return value of the node-env, wherein if the return value of the node-env is pro, the environment is represented where the client is located, and if the return value of the node-env is dev, the environment is represented where the client is located.
Step S105: and judging the environment variable of the client based on the environment variable information, and releasing the front-end service.
In this embodiment of the present disclosure, the determining, based on the environment variable information, an environment variable where the client is located, and publishing a front-end service specifically includes:
and judging the environment variable of the client based on the environment variable information, and automatically releasing the front-end service through a dock.
In this embodiment of the present disclosure, the determining, based on the environment variable information, an environment variable where the client is located, and publishing a front-end service specifically includes:
judging the environment variable of the client based on the environment variable information;
and acquiring environment variables from a server system through a process.env.NODE_ENV command to match the environment variables of the service end, and issuing the front-end service.
In the embodiment of the present disclosure, after determining the environment variable in which the client is located based on the environment variable information, it is further required to perform configuration of the environment variable in the client or perform matching of the environment variable in the client from the server. In the present description embodiment, the process.env.NODE_ENV command is employed. And after the server side realizes the matching of the client environment variables through the process.
By adopting the method provided by the embodiment of the specification, the front-end service can be released more conveniently and rapidly, and the efficiency of releasing the front-end service is improved.
The foregoing details a method for distributing a front-end service, and accordingly, the present disclosure also provides a device for distributing a front-end service, as shown in fig. 2. Fig. 2 is a schematic diagram of a front-end service publishing device according to an embodiment of the present disclosure, where the front-end service publishing device according to an embodiment of the present disclosure includes:
a receiving module 201, configured to receive resource request information sent by a client;
the analysis module 203 analyzes the resource request information to obtain environment variable information;
and the publishing module 205 judges the environment variable where the client is located based on the environment variable information and publishes the front-end service.
Further, the resource request information comprises an http request header and an http request body.
Further, the analyzing the resource request information to obtain environment variable information specifically includes:
analyzing the resource request information by a JSON.parameter method, and a cookie of the client;
and obtaining the environment variable information based on the cookie of the client.
Further, the values of the environment variable information include pro and dev, and the environment variable where the client is located is judged based on the values of the environment variable information, wherein pro represents a production environment, and dev represents a test environment.
Further, the determining, based on the environment variable information, the environment variable in which the client is located, and publishing the front-end service specifically includes:
and judging the environment variable of the client based on the environment variable information, and automatically releasing the front-end service through a dock.
Further, the determining, based on the environment variable information, the environment variable in which the client is located, and publishing the front-end service specifically includes:
judging the environment variable of the client based on the environment variable information;
and acquiring environment variables from a server system through a process.env.NODE_ENV command to match the environment variables of the service end, and issuing the front-end service.
The embodiment of the specification also provides an electronic device, including:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
receiving resource request information sent by a client;
analyzing the resource request information to obtain environment variable information;
and judging the environment variable of the client based on the environment variable information, and releasing the front-end service.
Further, the resource request information comprises an http request header and an http request body.
Further, the analyzing the resource request information to obtain environment variable information specifically includes:
analyzing the resource request information by a JSON.parameter method, and a cookie of the client;
and obtaining the environment variable information based on the cookie of the client.
Further, the values of the environment variable information include pro and dev, and the environment variable where the client is located is judged based on the values of the environment variable information, wherein pro represents a production environment, and dev represents a test environment.
Further, the determining, based on the environment variable information, the environment variable in which the client is located, and publishing the front-end service specifically includes:
and judging the environment variable of the client based on the environment variable information, and automatically releasing the front-end service through a dock.
Further, the determining, based on the environment variable information, the environment variable in which the client is located, and publishing the front-end service specifically includes:
judging the environment variable of the client based on the environment variable information;
and acquiring environment variables from a server system through a process.env.NODE_ENV command to match the environment variables of the service end, and issuing the front-end service.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for apparatus, electronic devices, non-volatile computer storage medium embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to the description of the method embodiments.
The apparatus, the electronic device, the nonvolatile computer storage medium and the method provided in the embodiments of the present disclosure correspond to each other, and therefore, the apparatus, the electronic device, the nonvolatile computer storage medium also have similar beneficial technical effects as those of the corresponding method, and since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the corresponding apparatus, the electronic device, the nonvolatile computer storage medium are not described here again.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), lava, lola, myHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing one or more embodiments of the present description.
It will be appreciated by those skilled in the art that the present description may be provided as a method, system, or computer program product. Accordingly, the present specification embodiments may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description embodiments may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present description is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data optimization device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data optimization device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data optimization device to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data-optimizing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary embodiments of the present disclosure and is not intended to limit the present disclosure. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (5)

1. A method for publishing a front-end service, the method comprising:
receiving resource request information sent by a client;
analyzing the resource request information to obtain environment variable information, including: analyzing the resource request information through a JSON.parameter method to obtain a cookie of the client, and obtaining environment variable information based on the cookie of the client, wherein the values of the environment variable information comprise pro and dev, wherein pro represents a production environment, and dev represents a test environment;
judging the environment variable of the client based on the environment variable information, and releasing front-end service, wherein the method comprises the following steps: and judging the environment variable of the client based on the environment variable information, acquiring the environment variable from a server system through a process.
2. The method of claim 1, wherein the resource request information comprises an http request header and an http request body.
3. The method of claim 1, wherein the determining, based on the environment variable information, the environment variable in which the client is located, and publishing the front-end service specifically includes:
and judging the environment variable of the client based on the environment variable information, and automatically releasing the front-end service through a dock.
4. A front-end service distribution apparatus, the apparatus comprising:
the receiving module is used for receiving the resource request information sent by the client;
the analysis module is used for analyzing the resource request information to obtain environment variable information, and comprises the following steps: analyzing the resource request information through a JSON.parameter method to obtain a cookie of the client, and obtaining environment variable information based on the cookie of the client, wherein the values of the environment variable information comprise pro and dev, wherein pro represents a production environment, and dev represents a test environment;
the publishing module judges the environment variable of the client based on the environment variable information and publishes the front-end service, and the publishing module comprises: and judging the environment variable of the client based on the environment variable information, acquiring the environment variable from a server system through a process.
5. An electronic device, comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
receiving resource request information sent by a client;
analyzing the resource request information to obtain environment variable information, including: analyzing the resource request information through a JSON.parameter method to obtain a cookie of the client, and obtaining environment variable information based on the cookie of the client, wherein the values of the environment variable information comprise pro and dev, wherein pro represents a production environment, and dev represents a test environment;
judging the environment variable of the client based on the environment variable information, and releasing front-end service, wherein the method comprises the following steps: and judging the environment variable of the client based on the environment variable information, acquiring the environment variable from a server system through a process.
CN202110729950.8A 2021-06-29 2021-06-29 Front-end service publishing method, device and equipment Active CN113411219B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110729950.8A CN113411219B (en) 2021-06-29 2021-06-29 Front-end service publishing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110729950.8A CN113411219B (en) 2021-06-29 2021-06-29 Front-end service publishing method, device and equipment

Publications (2)

Publication Number Publication Date
CN113411219A CN113411219A (en) 2021-09-17
CN113411219B true CN113411219B (en) 2023-04-21

Family

ID=77680176

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110729950.8A Active CN113411219B (en) 2021-06-29 2021-06-29 Front-end service publishing method, device and equipment

Country Status (1)

Country Link
CN (1) CN113411219B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491886A (en) * 2018-09-26 2019-03-19 深圳壹账通智能科技有限公司 Compatibility test method, device, electronic equipment and storage medium
CN111221572A (en) * 2020-01-13 2020-06-02 北京字节跳动网络技术有限公司 Method, device, medium and equipment for automatically adapting to operating environment

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7873706B2 (en) * 2003-03-19 2011-01-18 Cgi Communications, Inc. System and method for seamlessly providing video content to client systems over a network
US9503271B2 (en) * 2007-03-20 2016-11-22 Oracle Otc Subsidiary Llc System and method for custom chat invitations
CN103942225B (en) * 2013-01-23 2018-06-08 阿里巴巴集团控股有限公司 A kind of resource transfer method, client and the system of mixed type applications client
US9916133B2 (en) * 2013-03-14 2018-03-13 Microsoft Technology Licensing, Llc Software release workflow management
CN106331149A (en) * 2016-09-14 2017-01-11 北京知道未来信息技术有限公司 Webpage code adapting method applicable to client environment
CN108319468B (en) * 2017-01-16 2021-10-15 北京京东尚科信息技术有限公司 Gray scale publishing method, device and system and electronic equipment
CN109688202B (en) * 2018-12-04 2021-07-02 北京腾云天下科技有限公司 Interface data processing method and device, computing equipment and storage medium
CN111726374B (en) * 2019-03-18 2024-01-16 北京京东尚科信息技术有限公司 Web request processing method, system, device and computer readable storage medium
CN110311989B (en) * 2019-08-02 2022-01-28 中国工商银行股份有限公司 Gray scale publishing method, device, storage medium, equipment and system
CN112988572B (en) * 2021-02-09 2024-02-09 中国工商银行股份有限公司 Multi-environment multi-channel multi-version simulation test method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491886A (en) * 2018-09-26 2019-03-19 深圳壹账通智能科技有限公司 Compatibility test method, device, electronic equipment and storage medium
CN111221572A (en) * 2020-01-13 2020-06-02 北京字节跳动网络技术有限公司 Method, device, medium and equipment for automatically adapting to operating environment

Also Published As

Publication number Publication date
CN113411219A (en) 2021-09-17

Similar Documents

Publication Publication Date Title
CN110750437B (en) Equipment debugging method, device, equipment and system
CN107479868B (en) Interface loading method, device and equipment
CN103595770A (en) Method and device for achieving file downloading through SDK
CN116167670A (en) Model, service processing method, device and equipment
CN114547024A (en) SQL statement risk detection method, device, equipment and medium
CN103595769A (en) Method and device for achieving file uploading through SDK
US20170223144A1 (en) Method and apparatus for accessing data or functions of a programmable controller via a network protocol
CN113411219B (en) Front-end service publishing method, device and equipment
CN116842715B (en) Simulation data structuring processing system
CN117828360A (en) Model training method, model training device, model code generating device, storage medium and storage medium
CN110874322B (en) Test method and test server for application program
CN109582776B (en) Model generation method and device, electronic device and storage medium
CN109597695B (en) Data processing method, device and equipment
CN111338655A (en) Installation package distribution method and system
CN110022351A (en) A kind for the treatment of method and apparatus of service request
TW201909077A (en) Method and device for transmitting electronic ticket
CN110704742B (en) Feature extraction method and device
CN113271259B (en) Flow control system, method, device and equipment
CN111880922A (en) Processing method, device and equipment for concurrent tasks
CN112162915B (en) Test data generation method, device, equipment and storage medium
CN116382877B (en) Task execution method and device, storage medium and electronic equipment
CN117455015B (en) Model optimization method and device, storage medium and electronic equipment
CN113011165B (en) Method, device, equipment and medium for identifying blocked keywords
CN117118523B (en) Information transmission system, method and device, storage medium and electronic equipment
CN114124838B (en) Data transmission method and device for big data platform and big data platform management system

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
GR01 Patent grant
GR01 Patent grant