CN111124426B - Data information acquisition method and device - Google Patents

Data information acquisition method and device Download PDF

Info

Publication number
CN111124426B
CN111124426B CN201811290148.8A CN201811290148A CN111124426B CN 111124426 B CN111124426 B CN 111124426B CN 201811290148 A CN201811290148 A CN 201811290148A CN 111124426 B CN111124426 B CN 111124426B
Authority
CN
China
Prior art keywords
team
website
network environment
page
data information
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
CN201811290148.8A
Other languages
Chinese (zh)
Other versions
CN111124426A (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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201811290148.8A priority Critical patent/CN111124426B/en
Publication of CN111124426A publication Critical patent/CN111124426A/en
Application granted granted Critical
Publication of CN111124426B publication Critical patent/CN111124426B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a device for acquiring data information. Wherein the method comprises the following steps: acquiring a first data request of a page of a target team, wherein the first data request carries a network environment identifier; inquiring a website environment service address matched with the network environment identifier according to the network environment identifier; executing a callback request by using the website environment service address, wherein the callback request is used for acquiring data information corresponding to the first data request; and returning the data information to the page of the target team. The invention solves the technical problems that in the related technology, when the website environment is deployed, uniform website service deployment among teams is required, the cost of website deployment is increased, and the working efficiency of website deployment is reduced.

Description

Data information acquisition method and device
Technical Field
The invention relates to the technical field of Internet, in particular to a method and a device for acquiring data information.
Background
At present, in the daily development process of a software company, the situation that the internal teams of the company assist each other and interfaces depend on each other is often encountered, when the website deployment is carried out through team interaction, the website services which are depended on the interfaces called among teams are required to correspond one by one, for example, team A, and only two website services, namely, the test environment website service and the production environment website service, are required; and team B has four services, namely an integration environment website service, a test environment website service, a demonstration environment website service and a production environment website service. If A, B teams have interface dependence, the current processing mode is that team A needs to add and deploy integrated environment website services and demonstration environment website services, so that the website services of the environments of team B correspond one by one. If team B needs to add the web services of the relevant development environment due to business needs, team A has to passively add the web services of the deployment development environment, thus increasing the web deployment and maintenance costs of team A.
By the adoption of the mode of deploying the website environment, all teams are in the same company, but the website environment is required to be deployed in an additional unified mode, the website deployment and maintenance cost is increased, and the efficiency of assisting work among teams is reduced.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for acquiring data information, which are used for solving the technical problems that in the related art, when a website environment is deployed, uniform website service deployed among teams is required, the cost of website deployment is increased, and the working efficiency of website deployment is reduced.
According to an aspect of an embodiment of the present invention, there is provided a method for acquiring data information, including: acquiring a first data request of a page of a target team, wherein the first data request carries a network environment identifier; inquiring a website environment service address matched with the network environment identifier according to the network environment identifier; executing a callback request by using the website environment service address, wherein the callback request is used for acquiring data information corresponding to the first data request; and returning the data information to the page of the target team.
Further, according to the network environment identifier, querying the website environment service address matched with the network environment identifier comprises: writing the network environment identifier into a preset cache by a front-end page of the team, and initiating a second data request to a back-end page of the team; and when the back-end page of the team receives the second data request, reading the network environment identifier from the preset cache, and inquiring a website environment service address of the team matched with the network environment identifier from a parameter file corresponding to the target team according to the network environment identifier.
Further, before obtaining the first data request of the page of the target team, the method further includes: and acquiring a parameter transmission file corresponding to the target team.
Further, the parameter transmission file includes: and the various network environment identifiers of the target team correspond to the website environment service addresses of the target team.
Further, after obtaining the parameter file corresponding to the target team, the method further comprises: and embedding the front page of the team into a document frame of the page of the target team.
Further, the parameter transmission file is a json file.
According to another aspect of the embodiment of the present invention, there is also provided an apparatus for acquiring data information, including: the system comprises an acquisition unit, a first data acquisition unit and a second data acquisition unit, wherein the acquisition unit is used for acquiring a first data request of a page of a target team, and the first data request carries a network environment identifier; the query unit is used for querying a website environment service address matched with the network environment identifier according to the network environment identifier; the determining unit is used for determining a website environment service address corresponding to the request page of the target team according to the network environment identifier carried in the website page request; the execution unit is used for executing a callback request by utilizing the website environment service address, wherein the callback request is used for acquiring data information corresponding to the first data request; and returning the data information to the page of the target team.
Further, the query unit includes: the writing module is used for writing the network environment identifier into a preset cache by the front-end page of the team and initiating a second data request to the back-end page of the team; and the reading module is used for reading the network environment identifier from the preset cache when the back-end page of the team receives the second data request, and inquiring the website environment service address of the team matched with the network environment identifier from the parameter file corresponding to the target team according to the network environment identifier.
Further, the data information acquiring device further includes: the first acquisition module is used for acquiring a parameter transmission file corresponding to a target team before acquiring a first data request of a page of the target team.
Further, the parameter transmission file includes: and the various network environment identifiers of the target team correspond to the website environment service addresses of the target team.
Further, the data information acquiring device further includes: and the embedding module is used for embedding the front page of the team into the document frame of the page of the target team after acquiring the parameter file corresponding to the target team.
Further, the parameter transmission file is a json file.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium for storing a program, where the program, when executed by a processor, controls a device in which the storage medium is located to perform the method for acquiring data information according to any one of the above.
According to another aspect of the embodiment of the present invention, there is further provided a processor, where the processor is configured to execute a program, where the program executes the method for acquiring data information according to any one of the foregoing methods.
In the embodiment of the invention, a first data request of a page of a target team is acquired, wherein the first data request carries a network environment identifier, a website environment service address matched with the network environment identifier is queried according to the network environment identifier, and a callback request is executed by utilizing the website environment service address, wherein the callback request is used for acquiring data information corresponding to the first data request, and the data information is returned to the page of the target team. In this embodiment, the network environment service address may be determined by using the network environment identifier, so that the data information of the website corresponding to the request page is directly retrieved, and the data information is returned to the page of the target team, if a development team lacks the data information of the website, the corresponding data information of the website (such as the website deployment environment) may be directly obtained through the scheme, so that the cost of obtaining the data information of the website is saved, the efficiency of assisting in development between teams is also improved, and further, the technical problems that the website service deployed between teams is required to be uniform when the website environment is deployed in the related technology, the cost of website deployment is increased, and the working efficiency of website deployment is reduced are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
fig. 1 is a flowchart of a method of acquiring data information according to an embodiment of the present invention;
fig. 2 is a schematic diagram of another data information acquisition apparatus according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
To facilitate the understanding of the present invention, some terms or nouns referred to in the various embodiments of the invention are explained below:
the Cookie and the browser can temporarily cache files stored on the computer by the website so as to store corresponding identification information.
Json, collectively, javaScript Object Notat ion, a lightweight data exchange language, which is text-based and easy for a human to read, may be defined as a parametrization, i.e., a group of data can be converted into a string by the Json, which can then be passed easily between functions, or from a Web client to a server-side program in an asynchronous application.
Iframe, HTML tags, act as documents in documents, or floating frames, the properties of which can be accessed through the object model of the page in which the Iframe object is located.
HTTP, hyperTextTransferProtocol, hypertext transfer protocol, is a network transfer protocol widely used on the internet.
The embodiment of the invention can be applied to the work of deployment of various website environments, and when the website environments are deployed, if the website environments are lack frequently, the corresponding website environments can be obtained through the technical scheme introduced by the embodiment.
According to an embodiment of the present invention, there is provided an embodiment of a method for acquiring data information, it should be noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different from that herein.
Fig. 1 is a flowchart of a method for acquiring data information according to an embodiment of the present invention, as shown in fig. 1, the method includes the steps of:
step S102, a first data request of a page of a target team is obtained, wherein the first data request carries a network environment identifier;
step S104, inquiring a website environment service address matched with the network environment identifier according to the network environment identifier;
step S106, executing a callback request by using the website environment service address, wherein the callback request is used for acquiring data information corresponding to the first data request;
step S108, the data information is returned to the page of the target team.
Through the steps, the first data request of the page of the target team can be obtained, wherein the first data request carries the network environment identifier, the website environment service address matched with the network environment identifier is queried according to the network environment identifier, and the callback request is executed by utilizing the website environment service address, and is used for obtaining the data information corresponding to the first data request and returning the data information to the page of the target team. In this embodiment, the website environment service address of the present team corresponding to each website environment identifier of the target team may be stored in advance, after the first data request is obtained, the website environment service address is determined by the network environment identifier, so that the data information of the website corresponding to the request page is directly fetched, and the data information is returned to the page of the target team, if a development team lacks a website environment, the data of the corresponding website can be directly fetched through the scheme, thereby saving the cost of deployment of the website environment, improving the efficiency of assisting in development between teams, further solving the technical problems in the related art that the website service deployed between teams is required to be uniform when the website environment is deployed, resulting in the increase of the cost of the website deployment, and reducing the working efficiency of the website deployment.
The above steps of the present invention will be described in detail.
Step S102, a first data request of a page of a target team is obtained, wherein the first data request carries a network environment identifier.
Wherein the target team may be the team that owns the most web site environments.
Alternatively, the first data request may be an HTTP request, and the corresponding data information may be obtained by sending the first data request to the target team.
The network environment identifier is an identifier corresponding to the network environment requested by the terminal, and data (such as a website environment) of a corresponding website can be obtained through the network environment identifier. The network environment identifier may be a letter or a number, or may be a URL address of a website, etc.
Optionally, the network environment identification includes, but is not limited to: alpha, beta, demo, produce, etc.
In the embodiment of the invention, before the first data request of the page of the target team is acquired, the method further comprises the following steps: and acquiring a parameter transmission file corresponding to the target team.
Optionally, the parameter file is a json file.
In the embodiment of the invention, two teams are used for deploying the website environments and are respectively defined as team A and team B, wherein the number of the website environments currently deployed by team A is less, such as 2, and the number of the website environments currently deployed by team B is more, such as 4, than that of team A, when team A and team B cooperate, the team A also needs to acquire the website environments corresponding to team B, the existing mode is to view the lacking website environments and correspond to the website environments lacking in each deployment, and the website environments can be directly invoked through the network environment identification without special deployment.
Alternatively, team a may be defined as the subject team.
In the embodiment of the invention, team A can integrate two website services, namely, a test environment website service and a production environment website service; and team B has four services, namely an integration environment website service, a test environment website service, a demonstration environment website service and a production environment website service.
After the parameter transmission file corresponding to the target team is obtained, the parameter transmission file can be maintained, and the parameter transmission file can be a parameter transmission file of a team with the most website environments, for example, a json file for maintaining a website environment service address of the A team corresponding to each network environment of the B team in a team code, namely, the parameter transmission file with each website environment service address of the team can be maintained in advance.
Alternatively, the website environment service address may be a service address of a website of the team.
By using the corresponding relation between the various network environment identifiers of the target team and the website environment service addresses of the target team, the corresponding website environment service addresses can be obtained according to the network environment identifiers in the first data request.
Optionally, the parameter transferring file may include: the corresponding relation between various network environment identifiers of the target team and the website environment service address of the target team can be obtained through the callback requests, wherein the data information corresponding to the first data request of the page of the target team can be obtained through calling the website environment service address according to the network environment identifiers, so that corresponding website data can be obtained according to the website environment service address, such as obtaining the website environment.
For example, a transfer file is formatted as follows:
the format is as follows:
Figure BDA0001849882850000061
Figure BDA0001849882850000071
wherein, the url indicates the website environment service address of the team.
Optionally, the parameter file may further include description information of callback addresses of the website environment, such as "integrated environment callback address", "test environment callback address", "demonstration environment callback address" and "production environment callback address" as described above.
In the invention, after acquiring the parameter transmission file corresponding to the target team, the method further comprises the following steps: the front page of the team is embedded into the document frame of the page of the target team.
Alternatively, the document frame may be an iframe frame. E.g., the front page of team a is embedded into the iframe of team B page.
In an optional example, after receiving the first data request, the target team may transmit the network environment identifier corresponding to the website service to the front-end page of the target team. The current team may be team a, i.e. team with fewer web site environments, and may be defined herein as team B transmitting the network environment identifier corresponding to the web site service where the page is located to the front page of team a, for example, adding openplatformtype=demo in url parameters, which indicates that the current page corresponds to the presentation environment of team B.
Step S104, inquiring the service address of the website environment matched with the network environment identifier according to the network environment identifier.
In an alternative example of the present invention, querying, according to the network environment identifier, a website environment service address matching the network environment identifier includes: the front-end page of the team writes the network environment identifier into a preset cache, and initiates a second data request to the back-end page of the team; when the back-end page of the team receives the second data request, the network environment identifier is read from the preset cache, and the website environment service address matched with the network environment identifier is queried from the parameter file corresponding to the target team according to the network environment identifier.
Optionally, the preset cache may be a Cookie.
In the invention, the team can write the network environment identifier into the cache through the front-end page, then read the network environment identifier in the cache through the back-end page, and then inquire the website environment service address of the team matched with the network environment identifier from the parameter file corresponding to the target team according to the network environment identifier.
Alternatively, querying, according to the network environment identifier, a website environment service address matched with the network environment identifier includes: and matching the maintained parameter transmission files according to the network environment identification information, and if the matching is successful, reading a corresponding URL (uniform resource locator), namely a website environment service address, and further executing a callback request according to the website environment service address to acquire a corresponding website environment.
And S106, executing a callback request by using the website environment service address, wherein the callback request is used for acquiring data information corresponding to the first data request.
In an embodiment of the present invention, executing the callback request using the web site environment service address includes: acquiring a Uniform Resource Locator (URL) corresponding to a request page according to a website environment service address; and executing the callback request according to the URL.
Alternatively, the data information may include a website environment or a website environment service address, for which, for example, "integration environment", "test environment", "presentation environment", "production environment". The callback can obtain the corresponding website environment through the callback request, namely the team can directly callback to the corresponding website environment through the callback request.
Through the steps, when the interfaces between the team A and the team B depend, the team A does not need to deploy a plurality of corresponding website services because of the website services of the team B, and only the original website deployment is reserved, so that the workload of the website deployment is reduced.
Step S108, the data information is returned to the page of the target team.
The above steps indicate that the data information required by the target team can be returned to the page of the target team to complete one data request of the target team.
According to the embodiment of the invention, the website environment service addresses of the target team are configured for various network environment identifiers of the target team in advance, so that a plurality of network environments of the target team correspond to the same website environment service address of the target team, and the website environment service addresses of the target team are queried by utilizing the network environment identifiers, so that the data information corresponding to the first data request of the target team is retrieved by utilizing the website environment service addresses, and the data information is returned to the page of the target team, and if a certain development team lacks the data information of the website, the corresponding data information of the website (such as the website deployment environment) can be directly obtained through the scheme, the cost of acquiring the data information of the website is saved, and the efficiency of assisting development among the teams is improved. The invention is illustrated by the following alternative embodiments.
Fig. 2 is a schematic diagram of another apparatus for acquiring data information according to an embodiment of the present invention, as shown in fig. 2, the apparatus may include: an acquisition unit 21, a query unit 23, an execution unit 25, a return unit 27, wherein,
an obtaining unit 21, configured to obtain a first data request of a page of a target team, where the first data request carries a network environment identifier;
a query unit 23, configured to query, according to the network environment identifier, a website environment service address that matches the network environment identifier;
an execution unit 25, configured to execute a callback request by using the web site environment service address, where the callback request is used to obtain data information corresponding to the first data request;
the return unit 27 returns the data information to the page of the target team.
The above data information acquiring device acquires, through the acquiring unit 21, a first data request of a page of a target team, where the first data request carries a network environment identifier, queries, through the querying unit 23, a website environment service address matching the network environment identifier according to the network environment identifier, and executes, through the executing unit 25, a callback request by using the website environment service address, where the callback request is used to acquire data information corresponding to the first data request, and returns, through the returning unit 27, the data information to the page of the target team. In this embodiment, the website environment service address corresponding to each website environment identifier may be stored in advance, after the first data request is obtained, the website environment service address is determined by the network environment identifier, so that the data information of the website corresponding to the request page is directly fetched, if a certain development team lacks a website environment, the data information of the corresponding website is directly fetched by the scheme, the website environment is not required to be specially added, and the data information is returned to the page of the target team, thereby saving the cost of deployment of the website environment, improving the efficiency of assisting in development among the teams, further solving the technical problems that in the related art, when the website environment is deployed, the web service deployment is required to be uniform among the teams, resulting in the increase of the cost of the website deployment, and the work efficiency of the website deployment is reduced.
As an alternative embodiment of the present invention, the querying unit includes: the writing module is used for writing the network environment identifier into a preset cache by the front-end page of the team and initiating a second data request to the back-end page of the team; and the reading module is used for reading the network environment identifier from the preset cache when the back-end page of the team receives the second data request, and inquiring the website environment service address of the team matched with the network environment identifier from the parameter file corresponding to the target team according to the network environment identifier.
The data information acquisition device further includes: the first acquisition module is used for acquiring the parameter transmission file corresponding to the target team before acquiring the first data request of the page of the target team.
Further, the parameter file includes: the various network environment identifications of the target team correspond to the web site environment service addresses of the target team.
Optionally, the data information acquiring device further includes: and the embedding module is used for embedding the front page of the team into the document frame of the page of the target team after acquiring the parameter file corresponding to the target team.
Optionally, the parameter file is a json file.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium storing a program, wherein the program when executed by a processor controls a device in which the storage medium is located to perform the method of acquiring data information of any one of the above items.
According to another aspect of the embodiment of the present invention, there is also provided a processor, configured to execute a program, where the program executes the method for acquiring data information of any one of the above items.
The data information acquiring apparatus may further include a processor and a memory, wherein the acquiring unit 21, the inquiring unit 23, the executing unit 25, the returning unit 27, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize the corresponding functions.
The processor includes a kernel, and the kernel fetches a corresponding program unit from the memory. The kernel can set one or more than one, and the data information of the website corresponding to the request page is obtained by adjusting the kernel parameters to utilize the website environment service address.
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), which includes at least one memory chip.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program stored in the memory and capable of running on the processor, wherein the processor realizes the following steps when executing the program: acquiring a first data request of a page of a target team, wherein the first data request carries a network environment identifier; inquiring a website environment service address matched with the network environment identifier according to the network environment identifier; executing a callback request by using the website environment service address, wherein the callback request is used for acquiring data information corresponding to the first data request; and returning the data information to the page of the target team.
Optionally, when the above processor executes the program, the following steps may be further implemented: the front-end page of the team writes the network environment identifier into a preset cache, and initiates a second data request to the back-end page of the team; when the back-end page of the team receives the second data request, the network environment identifier is read from the preset cache, and the website environment service address of the team matched with the network environment identifier is inquired from the parameter file corresponding to the target team according to the network environment identifier.
Optionally, when the above processor executes the program, the following steps may be further implemented: before a first data request of a page of a target team is acquired, a parameter file corresponding to the target team is acquired.
Further, the parameter file includes: the various network environment identifications of the target team correspond to the web site environment service addresses of the target team.
Optionally, when the above processor executes the program, the following steps may be further implemented: after the parameter file corresponding to the target team is acquired, the front page of the team is embedded into the document frame of the page of the target team.
Optionally, the parameter file is a json file.
The present application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of: acquiring a first data request of a page of a target team, wherein the first data request carries a network environment identifier; inquiring a website environment service address matched with the network environment identifier according to the network environment identifier; executing a callback request by using the website environment service address, wherein the callback request is used for acquiring data information corresponding to the first data request; and returning the data information to the page of the target team.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (7)

1. A method for acquiring data information, comprising:
acquiring a first data request of a page of a target team, wherein the first data request carries a network environment identifier;
inquiring a website environment service address matched with the network environment identifier according to the network environment identifier;
executing a callback request by using the website environment service address, wherein the callback request is used for acquiring data information corresponding to the first data request;
returning the data information to the page of the target team;
wherein, according to the network environment identifier, querying the website environment service address matched with the network environment identifier comprises:
writing the network environment identifier into a preset cache by a front-end page of the team, and initiating a second data request to a back-end page of the team;
when the back-end page of the team receives the second data request, the network environment identifier is read from the preset cache, and a website environment service address of the team matched with the network environment identifier is queried from a parameter file corresponding to the target team according to the network environment identifier, wherein the parameter file comprises: and the various network environment identifiers of the target team correspond to the website environment service addresses of the target team.
2. The method of claim 1, further comprising, prior to obtaining the first data request for the page of the target team:
and acquiring a parameter transmission file corresponding to the target team.
3. The method of claim 1, further comprising, after obtaining the reference file corresponding to the target team:
and embedding the front page of the team into a document frame of the page of the target team.
4. A method according to claim 3, wherein the parameter file is a json file.
5. A data information acquisition apparatus, comprising:
the system comprises an acquisition unit, a first data acquisition unit and a second data acquisition unit, wherein the acquisition unit is used for acquiring a first data request of a page of a target team, and the first data request carries a network environment identifier;
the query unit is used for querying a website environment service address matched with the network environment identifier according to the network environment identifier;
the execution unit is used for executing a callback request by utilizing the website environment service address, wherein the callback request is used for acquiring data information corresponding to the first data request;
the return unit is used for returning the data information to the page of the target team;
wherein the query unit includes:
the writing module is used for writing the network environment identifier into a preset cache by the front-end page of the team and initiating a second data request to the back-end page of the team;
the reading module is used for reading the network environment identifier from the preset cache when the back-end page of the team receives the second data request, and inquiring a website environment service address of the team matched with the network environment identifier from a parameter file corresponding to the target team according to the network environment identifier, wherein the parameter file comprises: and the various network environment identifiers of the target team correspond to the website environment service addresses of the target team.
6. A storage medium storing a program, wherein the program, when executed by a processor, controls a device in which the storage medium is located to perform the data information acquisition method according to any one of claims 1 to 4.
7. A processor, characterized in that the processor is configured to run a program, wherein the program runs to perform the method of acquiring data information according to any one of claims 1 to 4.
CN201811290148.8A 2018-10-31 2018-10-31 Data information acquisition method and device Active CN111124426B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811290148.8A CN111124426B (en) 2018-10-31 2018-10-31 Data information acquisition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811290148.8A CN111124426B (en) 2018-10-31 2018-10-31 Data information acquisition method and device

Publications (2)

Publication Number Publication Date
CN111124426A CN111124426A (en) 2020-05-08
CN111124426B true CN111124426B (en) 2023-07-04

Family

ID=70494309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811290148.8A Active CN111124426B (en) 2018-10-31 2018-10-31 Data information acquisition method and device

Country Status (1)

Country Link
CN (1) CN111124426B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112541143B (en) * 2020-12-17 2022-08-19 青岛以萨数据技术有限公司 Asynchronous picture acquisition method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6233600B1 (en) * 1997-07-15 2001-05-15 Eroom Technology, Inc. Method and system for providing a networked collaborative work environment
CN103338236A (en) * 2013-06-06 2013-10-02 合一网络技术(北京)有限公司 Concurrent data acquisition method and concurrent data acquisition system
CN105391811A (en) * 2014-08-29 2016-03-09 腾讯科技(深圳)有限公司 DNS (domain name resolution) method, access method for application server, and terminal
CN107438107A (en) * 2017-09-05 2017-12-05 深圳乐信软件技术有限公司 The call method and device of background service in a kind of micro services framework
CN108156210A (en) * 2016-12-06 2018-06-12 腾讯科技(深圳)有限公司 The acquisition methods and device of target resource

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6233600B1 (en) * 1997-07-15 2001-05-15 Eroom Technology, Inc. Method and system for providing a networked collaborative work environment
CN103338236A (en) * 2013-06-06 2013-10-02 合一网络技术(北京)有限公司 Concurrent data acquisition method and concurrent data acquisition system
CN105391811A (en) * 2014-08-29 2016-03-09 腾讯科技(深圳)有限公司 DNS (domain name resolution) method, access method for application server, and terminal
CN108156210A (en) * 2016-12-06 2018-06-12 腾讯科技(深圳)有限公司 The acquisition methods and device of target resource
CN107438107A (en) * 2017-09-05 2017-12-05 深圳乐信软件技术有限公司 The call method and device of background service in a kind of micro services framework

Also Published As

Publication number Publication date
CN111124426A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
US10250526B2 (en) Method and apparatus for increasing subresource loading speed
US10043199B2 (en) Method, device and system for publishing merchandise information
CN103685604B (en) A kind of domain name pre-parsed method and device
US8452925B2 (en) System, method and computer program product for automatically updating content in a cache
US9426200B2 (en) Updating dynamic content in cached resources
RU2648966C2 (en) Apparatus and method for processing multiple open api
US20030055979A1 (en) Internet domain name resolver
CN105095280A (en) Caching method and apparatus for browser
NZ566291A (en) Methods and devices for post processing rendered web pages and handling requests of post processed web pages
CN102663062A (en) Method and device for processing invalid links in search result
TW201800962A (en) Webpage file sending method, webpage rendering method and device and webpage rendering system
TW201437826A (en) Method and device for combining webpage style address
US20130305131A1 (en) Method, system and computer storage medium for pre-reading network data
US20150067037A1 (en) Communication apparatus and communication method
US10826802B2 (en) Managing network communication protocols
EP3968181A1 (en) Systems and methods for prefetching dynamic urls
US10574773B2 (en) Method, device, terminal, server and storage medium of processing network request and response
US10749926B2 (en) Proxy for modifying HTTP messages to comply with browser
CN111124426B (en) Data information acquisition method and device
CN114003835A (en) Page rendering method, device, equipment and storage medium
CN104615597A (en) Method, device and system for clearing cache file in browser
US10095791B2 (en) Information search method and apparatus
CN111273964B (en) Data loading method and device
CN116661652A (en) Navigation bar display method and device, storage medium and computer equipment
CN110969469B (en) Data acquisition method and device

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