CN112486559B - Product adjusting method and device, storage medium and electronic device - Google Patents

Product adjusting method and device, storage medium and electronic device Download PDF

Info

Publication number
CN112486559B
CN112486559B CN202011483045.0A CN202011483045A CN112486559B CN 112486559 B CN112486559 B CN 112486559B CN 202011483045 A CN202011483045 A CN 202011483045A CN 112486559 B CN112486559 B CN 112486559B
Authority
CN
China
Prior art keywords
sub
application
product
target
applications
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
CN202011483045.0A
Other languages
Chinese (zh)
Other versions
CN112486559A (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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202011483045.0A priority Critical patent/CN112486559B/en
Publication of CN112486559A publication Critical patent/CN112486559A/en
Application granted granted Critical
Publication of CN112486559B publication Critical patent/CN112486559B/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/70Software maintenance or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computing Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a product adjusting method and device, a storage medium and an electronic device. Wherein the method comprises the following steps: acquiring a first call request triggered on a target client, wherein the first call request carries a first tag; responding to a first calling request, and calling a first sub-application corresponding to a first label from an application manager; the first sub-application is loaded to the target client to adjust the first product content in the target client. The invention solves the technical problem of lower efficiency of product adjustment.

Description

Product adjusting method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of computers, and in particular, to a method and apparatus for adjusting a product, a storage medium, and an electronic apparatus.
Background
Under the relevant scene, the development of the product often needs to correspondingly develop hundreds of pages, the project is complete and huge in function, but in the development stage of the product, different frame technical stacks and a plurality of different code specifications are often used due to different business requirements, so that the subsequent adjustment requirement cannot be rapidly and accurately realized under the condition of adjusting the product. In other words, the product adjustment efficiency is low due to inflexibility of product development in the prior art.
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 adjusting products, a storage medium and an electronic device, which are used for at least solving the technical problem of low efficiency of product adjustment.
According to an aspect of an embodiment of the present invention, there is provided a product adjustment method including: acquiring a first call request triggered on a target client, wherein the first call request carries a first tag; the method comprises the steps of responding to a first calling request, calling a first sub-application corresponding to a first label from an application manager, wherein the application manager comprises N sub-applications for adjusting N product contents of a target product, the N sub-applications are in one-to-one correspondence with the N product contents, the N sub-applications comprise first sub-applications, the N product contents comprise first product contents corresponding to the first sub-applications, and N is a positive integer greater than or equal to 2; the first sub-application is loaded to the target client to adjust the first product content in the target client.
According to another aspect of the embodiment of the present invention, there is also provided a product adjusting apparatus, including: the first acquisition unit is used for acquiring a first call request triggered on the target client, wherein the first call request carries a first tag; the first response unit is used for responding to the first calling request and calling a first sub-application corresponding to the first tag from the application manager, wherein the application manager comprises N sub-applications for adjusting N product contents of the target product, the N sub-applications are in one-to-one correspondence with the N product contents, the N sub-applications comprise the first sub-applications, the N product contents comprise the first product contents corresponding to the first sub-applications, and N is a positive integer greater than or equal to 2; and the first loading unit is used for loading the first sub-application to the target client so as to adjust the first product content in the target client.
According to a further aspect of embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the above-described product adjustment method when run.
According to still another aspect of the embodiments of the present invention, there is further provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the product adjustment method described above through the computer program.
In the embodiment of the invention, a first call request triggered on a target client is acquired, wherein the first call request carries a first tag; the method comprises the steps of responding to a first calling request, calling a first sub-application corresponding to a first label from an application manager, wherein the application manager comprises N sub-applications for adjusting N product contents of a target product, the N sub-applications are in one-to-one correspondence with the N product contents, the N sub-applications comprise first sub-applications, the N product contents comprise first product contents corresponding to the first sub-applications, and N is a positive integer greater than or equal to 2; the first sub-application is loaded to the target client to adjust the first product content in the target client, and the corresponding product content is adjusted by utilizing different sub-applications, so that the technical purpose of accurately adjusting the corresponding product content is achieved by a point-to-point product adjusting method, the technical effect of improving the adjusting accuracy of the product content is achieved, and the technical problem of lower product adjusting efficiency is 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 schematic illustration of an application environment for an alternative product adjustment method according to an embodiment of the invention;
FIG. 2 is a schematic illustration of a flow chart of an alternative product adjustment method according to an embodiment of the invention;
FIG. 3 is a schematic illustration of an alternative product adjustment method according to an embodiment of the invention;
FIG. 4 is a schematic illustration of another alternative product adjustment method according to an embodiment of the invention;
FIG. 5 is a schematic illustration of another alternative product adjustment method according to an embodiment of the invention;
FIG. 6 is a schematic view of an alternative product adjustment device according to an embodiment of the invention;
FIG. 7 is a schematic view of another alternative product adjustment device according to an embodiment of the invention;
FIG. 8 is a schematic view of another alternative product adjustment device according to an embodiment of the invention;
FIG. 9 is a schematic view of another alternative product adjustment device according to an embodiment of the invention;
Fig. 10 is a schematic structural view of an alternative electronic device 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.
According to an aspect of the embodiment of the present invention, there is provided a product adjustment method, optionally, as an alternative implementation, the product adjustment method may be applied, but not limited to, in the environment shown in fig. 1. Including but not limited to a user device 102, a network 110, and a server 112, where the user device 102 may include but is not limited to a display 108, a processor 106, and a memory 104. Alternatively, the user device 102 may be, but is not limited to being, equipped with a target client as shown in fig. 1, wherein the target client may be, but is not limited to being, used to adjust the target product.
The specific process comprises the following steps:
step S102, the user equipment 102 obtains a first call request triggered on a virtual button (such as a call button) in a target client, wherein the first call request carries a first label;
steps S104-S106, the user equipment 102 sends the first call request to the server 112 through the network 110;
step S108, the server 112 searches the address position corresponding to the first label through the database 114, and calls the first sub-application corresponding to the address position through the processing engine 116;
steps S110-S112, the server 112 sending the first sub-application to the user equipment 102 via the network 110;
In step S114, the processor 106 in the user equipment 102 displays the adjustment interface corresponding to the first sub-application on the display 108, and further detects an adjustment instruction triggered on the virtual button of the adjustment interface, so as to adjust the first product content corresponding to the first sub-application, and stores the adjusted first product content in the memory 104.
It should be noted that, in addition to the example shown in fig. 1, the above steps may be independently performed by the user equipment 102, that is, the user equipment 102 performs the steps of calling the first sub-application, so as to reduce the processing pressure of the server. The user device 102 includes, but is not limited to, a handheld device (e.g., a mobile phone), a notebook computer, a desktop computer, a vehicle-mounted device, etc., and the invention is not limited to a particular implementation of the user device 102.
Optionally, as an alternative embodiment, as shown in fig. 2, the product adjustment method includes:
s202, acquiring a first call request triggered on a target client, wherein the first call request carries a first tag;
s204, responding to a first calling request, and calling a first sub-application corresponding to the first tag from an application manager, wherein the application manager comprises N sub-applications for adjusting N product contents of a target product, the N sub-applications are in one-to-one correspondence with the N product contents, the N sub-applications comprise the first sub-applications, the N product contents comprise first product contents corresponding to the first sub-applications, and N is a positive integer greater than or equal to 2;
S206, loading the first sub-application to the target client to adjust the first product content in the target client.
Alternatively, in this embodiment, the product adjustment method may be, but not limited to, applied in the adjustment scenario of the page application, for example, using multiple front end frames on the same page without refreshing the page, for example: vue, react, angular, and the like, and solves the problem that the single application is difficult to maintain after being changed from a common application into a huge stone application due to the increased demand under a relatively long time span.
Optionally, in this embodiment, the application manager may, but not limited to, store a plurality of sub-applications, and may, but not limited to, find, by using a route distribution manner, a sub-application name (i.e., a first sub-application) corresponding to the first tag in the route manager through a reverse proxy function of the HTTP server, find the first sub-application in the application manager, and load the first sub-application to the target client.
Alternatively, in this embodiment, by way of software engineering, in the deployment and construction environment, multiple independent applications are combined into one single application, where the independent applications may be, but are not limited to, sub-applications, or sub-applications are single applications, which are merely illustrative and not limiting.
Optionally, in this embodiment, a new construction system is developed, and part of service functions are constructed into an independent chunk code, so that only remote loading is needed during use, for example, a corresponding sub-application is loaded remotely through a target client, so that the purpose of adjusting product content at any time and any place is achieved, and the effect of improving the flexibility of adjusting product content is improved.
Alternatively, in this embodiment, other front-end applications are accommodated by taking the iFrame as a container, where the iFrame may be, but is not limited to, an HTML tag, acting as a document in a document, or a floating frame, and may be, but is not limited to, using an iFrame to directly nest an iFrame tag to specify src on a page.
The method includes the steps that a first call request triggered on a target client is obtained, wherein the first call request carries a first tag; the method comprises the steps of responding to a first calling request, calling a first sub-application corresponding to a first label from an application manager, wherein the application manager comprises N sub-applications for adjusting N product contents of a target product, the N sub-applications are in one-to-one correspondence with the N product contents, the N sub-applications comprise first sub-applications, the N product contents comprise first product contents corresponding to the first sub-applications, and N is a positive integer greater than or equal to 2; the first sub-application is loaded to the target client to adjust the first product content in the target client.
Further to illustrate, as shown in fig. 3, an optional execution scenario of the above product adjustment method, the target client 302 receives a first call request, obtains, through a routing manager, a sub-application name (i.e., a first self-application) corresponding to a first tag carried in the first call request, inputs the sub-application name into the application manager 304, invokes, by using the application manager 304, a first self-application corresponding to the sub-application name, and invokes an application loader of the sub-application to the target client 302, where the application loader is configured to display an adjustment interface of the sub-application on the target client 302.
Alternatively, in this embodiment, the target client may be, but not limited to, a main engineering-base application, where the main engineering-base application performs the above product adjustment method based on main engineering logic, for example, as shown in fig. 4, and the specific steps are as follows:
s402, the main engineering-base application 402 acquires a registry provided by an application registry 404, wherein the registry records sub-applications corresponding to each product content and corresponding entries, and in the front-end field, the direct expression form of the entries can be a route or a corresponding application mapping;
S404, initializing data in an application manager based on the main engineering logic;
S406-S408, monitoring the request in real time, inputting the monitored request into a routing manager, routing the request to a corresponding application through a reverse proxy function of the HTTP server, finding a sub-application name corresponding to the first sub-application through the routing manager, finding the sub-application in the application manager, and loading the sub-application into the main engineering-base application 402.
According to the embodiment provided by the application, a first call request triggered on a target client is obtained, wherein the first call request carries a first tag; the method comprises the steps of responding to a first calling request, calling a first sub-application corresponding to a first label from an application manager, wherein the application manager comprises N sub-applications for adjusting N product contents of a target product, the N sub-applications are in one-to-one correspondence with the N product contents, the N sub-applications comprise first sub-applications, the N product contents comprise first product contents corresponding to the first sub-applications, and N is a positive integer greater than or equal to 2; the first sub-application is loaded to the target client to adjust the first product content in the target client, and the corresponding product content is adjusted by utilizing different sub-applications, so that the technical purpose of accurately adjusting the corresponding product content is achieved by a point-to-point product adjusting method, and the technical effect of improving the adjusting accuracy of the product content is achieved.
As an alternative, before acquiring the first call request triggered on the target client, the method includes:
and establishing an application registry, wherein the application registry records N labels corresponding to the N sub-applications, and each label in the N labels has a first mapping relation with a routing entry of the corresponding sub-application.
Optionally, in this embodiment, the application registry has each application and a corresponding portal. In the front-end domain, the direct representation of the portal may be a route, or a corresponding application map.
It should be noted that, an application registry is established, where the application registry records N labels corresponding to N sub-applications, and each of the N labels has a first mapping relationship with a routing entry of the corresponding sub-application.
Further to illustrate, based on the scenario shown in fig. 3, optionally, continuing to build the application registry 502 in advance, and connecting N labels corresponding to N sub-applications recorded in the application registry 502 to the target client 302, so that, when the target client 302 receives the first label carried in the first call request, the sub-application name corresponding to the first label can be quickly obtained.
By the embodiment provided by the application registry, the application registry is established, N labels corresponding to N sub-applications are recorded in the application registry, and each label in the N labels has a first mapping relation with the routing entry of the corresponding sub-application respectively, so that the purpose of quickly calling the corresponding sub-application by means of the first application registry is achieved, and the effect of improving the calling efficiency of the sub-application is achieved.
As an alternative, the calling, from the application manager, the first sub-application corresponding to the first tag includes:
s1, acquiring a first tag carried in a first call request;
s2, acquiring a first route entry with a first mapping relation with a first label;
s3, calling a first sub-application corresponding to the first routing entry from the application manager.
It should be noted that, the first tag carried in the first call request is obtained; acquiring a first route entry having a first mapping relation with a first label; and calling a first sub-application corresponding to the first routing entry from the application manager.
According to the embodiment provided by the application, a first tag carried in a first call request is obtained; acquiring a first route entry having a first mapping relation with a first label; the first sub-application corresponding to the first route entry is called from the application manager, the purpose of quickly calling the corresponding sub-application based on the route entry is achieved, and the effect of improving the calling efficiency of the sub-application is achieved.
As an alternative, before the first call request is acquired, the method includes:
s1, acquiring N product contents corresponding to a target product;
s2, establishing a second mapping relation between each product content in the N product contents and the sub-application, wherein the first product content with the second mapping relation with the first sub-application is adjusted through the first sub-application.
Optionally, in this embodiment, the same page uses a plurality of front end frames, and sub applications corresponding to product content are deployed respectively based on the second mapping relationship, so as to solve the technical problem that the same page cannot coexist when using the plurality of front end frames, and achieve the effects of multiplexing and easy maintenance of the multifunctional application.
The method includes the steps that N product contents corresponding to a target product are obtained; and establishing a second mapping relation between each product content in the N product contents and the sub-application, wherein the first product content with the second mapping relation with the first sub-application is adjusted through the first sub-application.
According to the embodiment provided by the application, N product contents corresponding to the target product are obtained; and establishing a second mapping relation between each product content in the N product contents and the sub-application, wherein the first product content with the second mapping relation with the first sub-application is adjusted by the first sub-application, so that the aim that a plurality of front end frames can coexist in the same page is fulfilled, and the effects of multiplexing and easy maintenance of the multifunctional application are realized.
As an alternative, after establishing the second mapping relationship between each product content of the N product contents and the sub-application, the method includes:
s1, acquiring a target service request of first product content, wherein the target service request carries a service requirement for developing the first product content;
s2, responding to the target service request, and sending a target development instruction to a first sub-application with a second mapping relation with the first product content, wherein the target development instruction is used for indicating the first sub-application to use a first frame technology stack to develop the first product content.
Optionally, in this embodiment, multiple teams develop in parallel between each sub-application, each team may develop in its own project independently, so that each module (i.e. each product content) may be updated independently, and the corresponding sub-application may be updated independently, without updating the whole complete application, which is deployed independently as a service, and multiple frameworks, such as Angular, vue, and practice, may be used simultaneously.
It should be noted that, acquiring a target service request of the first product content, where the target service request carries a service requirement for developing the first product content; and responding to the target service request, and sending a target development instruction to the first sub-application which has a second mapping relation with the first product content, wherein the target development instruction is used for indicating the first sub-application to use the first frame technology stack to develop the first product content.
According to the embodiment provided by the application, the target service request of the first product content is obtained, wherein the target service request carries the service requirement for developing the first product content; and responding to the target service request, and sending a target development instruction to a first sub-application with a second mapping relation with the first product content, wherein the target development instruction is used for indicating the first sub-application to use a first frame technology stack to develop the first product content, so that the aim that a plurality of front end frames can coexist in the same page is fulfilled, and the effects of multiplexing and easy maintenance of the multifunctional application are realized.
As an alternative, after loading the first sub-application to the target client to adjust the first product content by the first sub-application, the method includes:
s1, acquiring a second call request triggered on a target client;
s2, responding to a second calling request, and calling a second sub-application corresponding to a second label from an application manager, wherein N sub-applications comprise the second sub-application, N product contents comprise second product contents corresponding to the second sub-application, and the second sub-application develops the second product contents by using a second frame technology stack;
and S3, loading the second sub-application to the target client so as to adjust the second product content through the second sub-application.
It should be noted that, there are hundreds of pages in the product, the project is complete and huge, and it can cause: 1. the codes are more and more, the packaging is slower and slower, the deployment and the upgrading are troublesome, the upgrading of some plug-ins and the modification of public components need to be considered more, and the whole body is easy to stretch; 2. the larger the project, the more participants, the more difficult the code specification is to manage, and the more frequent the code conflicts. Also to enable coexistence between different technology stacks, multiple applications, for example: the large project (namely N product contents of the target product) is split into small projects (namely product contents), the small projects are independently developed and deployed, a framework can be freely selected, and development specifications of the small projects can be assigned, so that the large project is packaged quickly, is independently deployed, does not affect each other, is simple to upgrade, is convenient to reuse the existing functional modules, and avoids repeated development.
Optionally, in this embodiment, a second call request triggered on the target client is obtained; responding to a second calling request, and calling a second sub-application corresponding to a second label from an application manager, wherein N sub-applications comprise the second sub-application, N product contents comprise second product contents corresponding to the second sub-application, and the second sub-application develops the second product contents by using a second frame technology stack; and loading the second sub-application to the target client to adjust the second product content through the second sub-application, so that sub-applications for developing the product content by utilizing different framework technology stacks can coexist and be used.
According to the embodiment provided by the application, a second call request triggered on the target client is acquired; responding to a second calling request, and calling a second sub-application corresponding to a second label from an application manager, wherein N sub-applications comprise the second sub-application, N product contents comprise second product contents corresponding to the second sub-application, and the second sub-application develops the second product contents by using a second frame technology stack; and loading the second sub-application to the target client so as to adjust the second product content through the second sub-application, thereby achieving the technical purpose of accurately adjusting the corresponding product content and further achieving the technical effect of improving the adjustment accuracy of the product content.
As an alternative, before the first call request is acquired, the method includes:
product components of the sub-applications are packaged based on the target componentization criteria, wherein the packaged product components are allowed to be invoked in the target client.
Alternatively, in this embodiment, the cross-frame front-end application is built by means of Web Components technology, which can introduce Components to achieve front-end componentization without being limited to using custom tags, and reference HTML files and HTML templates on pages to support writing component views and component resource management, and can also isolate conflicts and effects of code between Components.
It should be noted that, the product components of the sub-applications are packaged based on the target componentization standard, wherein the packaged product components are allowed to be invoked in the target client.
According to the embodiment provided by the application, the product component of the sub-application is packaged based on the target componentization standard, wherein the packaged product component is allowed to be called in the target client, the purpose of flexibly calling the product component is achieved, and the effect of improving the calling compatibility of the product component is achieved.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
According to another aspect of the embodiment of the invention, a product adjusting device for implementing the product adjusting method is also provided. As shown in fig. 6, the apparatus includes:
A first obtaining unit 602, configured to obtain a first call request triggered on the target client, where the first call request carries a first tag;
a first response unit 604, configured to respond to the first call request, and call a first sub-application corresponding to the first tag from an application manager, where the application manager includes N sub-applications for adjusting N product contents of the target product, the N sub-applications are in one-to-one correspondence with the N product contents, the N sub-applications include the first sub-applications, the N product contents include first product contents corresponding to the first sub-applications, and N is a positive integer greater than or equal to 2;
the first loading unit 606 is configured to load the first sub-application to the target client, so as to adjust the first product content in the target client.
Alternatively, in this embodiment, the product adjustment device may be, but not limited to, applied in the adjustment scenario of the page application, for example, using multiple front end frames on the same page without refreshing the page, for example: vue, react, angular, and the like, and solves the problem that the single application is difficult to maintain after being changed from a common application into a huge stone application due to the increased demand under a relatively long time span.
Optionally, in this embodiment, the application manager may, but not limited to, store a plurality of sub-applications, and may, but not limited to, find, by using a route distribution manner, a sub-application name (i.e., a first sub-application) corresponding to the first tag in the route manager through a reverse proxy function of the HTTP server, find the first sub-application in the application manager, and load the first sub-application to the target client.
Alternatively, in this embodiment, by way of software engineering, in the deployment and construction environment, multiple independent applications are combined into one single application, where the independent applications may be, but are not limited to, sub-applications, or sub-applications are single applications, which are merely illustrative and not limiting.
Optionally, in this embodiment, a new construction system is developed, and part of service functions are constructed into an independent chunk code, so that only remote loading is needed during use, for example, a corresponding sub-application is loaded remotely through a target client, so that the purpose of adjusting product content at any time and any place is achieved, and the effect of improving the flexibility of adjusting product content is improved.
Alternatively, in this embodiment, other front-end applications are accommodated by taking the iFrame as a container, where the iFrame may be, but is not limited to, an HTML tag, acting as a document in a document, or a floating frame, and may be, but is not limited to, using an iFrame to directly nest an iFrame tag to specify src on a page.
The method includes the steps that a first call request triggered on a target client is obtained, wherein the first call request carries a first tag; the method comprises the steps of responding to a first calling request, calling a first sub-application corresponding to a first label from an application manager, wherein the application manager comprises N sub-applications for adjusting N product contents of a target product, the N sub-applications are in one-to-one correspondence with the N product contents, the N sub-applications comprise first sub-applications, the N product contents comprise first product contents corresponding to the first sub-applications, and N is a positive integer greater than or equal to 2; the first sub-application is loaded to the target client to adjust the first product content in the target client.
Specific embodiments may refer to examples shown in the above product adjustment method, and this example is not described herein.
According to the embodiment provided by the application, a first call request triggered on a target client is obtained, wherein the first call request carries a first tag; the method comprises the steps of responding to a first calling request, calling a first sub-application corresponding to a first label from an application manager, wherein the application manager comprises N sub-applications for adjusting N product contents of a target product, the N sub-applications are in one-to-one correspondence with the N product contents, the N sub-applications comprise first sub-applications, the N product contents comprise first product contents corresponding to the first sub-applications, and N is a positive integer greater than or equal to 2; the first sub-application is loaded to the target client to adjust the first product content in the target client, and the corresponding product content is adjusted by utilizing different sub-applications, so that the technical purpose of accurately adjusting the corresponding product content is achieved through the point-to-point product adjusting device, and the technical effect of improving the adjusting accuracy of the product content is achieved.
As an alternative, as shown in fig. 7, it includes:
the first establishing unit 702 is configured to establish an application registry before acquiring a first call request triggered on the target client, where the application registry records N labels corresponding to N sub-applications, and each of the N labels has a first mapping relationship with a routing entry of the corresponding sub-application.
Specific embodiments may refer to examples shown in the above product adjustment method, and this example is not described herein.
As an alternative, the first response unit 604 includes:
the first acquisition module is used for acquiring a first tag carried in the first call request;
the second acquisition module is used for acquiring a first route entry with a first mapping relation with the first label;
and the calling module is used for calling the first sub-application corresponding to the first routing entry from the application manager.
Specific embodiments may refer to examples shown in the above product adjustment method, and this example is not described herein.
As an alternative, as shown in fig. 8, it includes:
a second obtaining unit 802, configured to obtain N product contents corresponding to the target product before obtaining the first call request;
The second establishing unit 804 is configured to establish a second mapping relationship between each product content in the N product contents and the sub-application before the first call request is acquired, where the first product content having the second mapping relationship with the first sub-application is adjusted by the first sub-application.
Specific embodiments may refer to examples shown in the above product adjustment method, and this example is not described herein.
As an alternative, it includes:
the third obtaining unit is used for obtaining a target service request of the first product content after establishing a second mapping relation between each product content and the sub-application in the N product contents, wherein the target service request carries a service requirement for developing the first product content;
and the sending unit is used for responding to the target service request after establishing the second mapping relation between each product content in the N product contents and the sub-application, and sending a target development instruction to the first sub-application which has the second mapping relation with the first product content, wherein the target development instruction is used for indicating the first sub-application to use the first frame technology stack to develop the first product content.
Specific embodiments may refer to examples shown in the above product adjustment method, and this example is not described herein.
As an alternative, it includes:
a fourth obtaining unit, configured to obtain a second call request triggered on the target client after loading the first sub-application to the target client to adjust the first product content through the first sub-application;
the second response unit is used for responding to the second calling request after the first sub-application is loaded to the target client to adjust the first product content through the first sub-application, and calling a second sub-application corresponding to the second label from the application manager, wherein N sub-applications comprise the second sub-application, N product contents comprise second product content corresponding to the second sub-application, and the second sub-application uses a second frame technology stack to develop the second product content;
and the second loading unit is used for loading the second sub-application to the target client after loading the first sub-application to the target client so as to adjust the first product content through the first sub-application, and then loading the second sub-application to the target client so as to adjust the second product content through the second sub-application.
Specific embodiments may refer to examples shown in the above product adjustment method, and this example is not described herein.
As an alternative, as shown in fig. 9, it includes:
and an encapsulation unit 902, configured to encapsulate a product component of the sub-application based on the target componentization criterion before the first call request is acquired, where the encapsulated product component is allowed to be invoked in the target client.
Specific embodiments may refer to examples shown in the above product adjustment method, and this example is not described herein.
According to a further aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the above-mentioned product adjustment method, as shown in fig. 10, the electronic device comprising a memory 1002 and a processor 1004, the memory 1002 having stored therein a computer program, the processor 1004 being arranged to perform the steps of any of the method embodiments described above by means of the computer program.
Alternatively, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, acquiring a first call request triggered on a target client, wherein the first call request carries a first tag;
s2, responding to a first calling request, and calling a first sub-application corresponding to the first tag from an application manager, wherein the application manager comprises N sub-applications for adjusting N product contents of a target product, the N sub-applications are in one-to-one correspondence with the N product contents, the N sub-applications comprise the first sub-applications, the N product contents comprise first product contents corresponding to the first sub-applications, and N is a positive integer greater than or equal to 2;
And S3, loading the first sub-application to the target client so as to adjust the first product content in the target client.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 10 is only schematic, and the electronic device may also be a terminal device such as a smart phone (e.g. an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 10 is not limited to the structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 10, or have a different configuration than shown in FIG. 10.
The memory 1002 may be configured to store software programs and modules, such as program instructions/modules corresponding to the product adjustment method and apparatus in the embodiment of the present invention, and the processor 1004 executes the software programs and modules stored in the memory 1002 to perform various functional applications and data processing, that is, implement the product adjustment method described above. The memory 1002 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory 1002 may further include memory located remotely from the processor 1004, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1002 may be, but is not limited to, storing information such as the first tag, the first sub-application, and the first product content. As an example, as shown in fig. 10, the memory 1002 may include, but is not limited to, the first obtaining unit 602, the first responding unit 604, and the first loading unit 606 in the product adjusting device. In addition, other module units in the above product adjustment device may be included, but are not limited to, and are not described in detail in this example.
Optionally, the transmission device 1006 is configured to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission means 1006 includes a network adapter (Network Interface Controller, NIC) that can be connected to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 1006 is a Radio Frequency (RF) module for communicating with the internet wirelessly.
In addition, the electronic device further includes: a display 1008 for displaying information such as the first label, the first sub-application, and the first product content; and a connection bus 1010 for connecting the respective module parts in the above-described electronic device.
According to a further aspect of embodiments of the present invention, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for executing the steps of:
S1, acquiring a first call request triggered on a target client, wherein the first call request carries a first tag;
s2, responding to a first calling request, and calling a first sub-application corresponding to the first tag from an application manager, wherein the application manager comprises N sub-applications for adjusting N product contents of a target product, the N sub-applications are in one-to-one correspondence with the N product contents, the N sub-applications comprise the first sub-applications, the N product contents comprise first product contents corresponding to the first sub-applications, and N is a positive integer greater than or equal to 2;
and S3, loading the first sub-application to the target client so as to adjust the first product content in the target client.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
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.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method of the various embodiments of the present invention.
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 several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple 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 units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network 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 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 (6)

1. A method of product adjustment, comprising:
acquiring a first call request triggered on a target client, wherein the first call request carries a first tag;
Responding to the first calling request, and calling a first sub-application corresponding to the first tag from an application manager, wherein the application manager comprises N sub-applications for adjusting N product contents of a target product, the N sub-applications are in one-to-one correspondence with the N product contents, the N sub-applications comprise the first sub-applications, the N product contents comprise first product contents corresponding to the first sub-applications, and N is a positive integer greater than or equal to 2;
loading the first sub-application to the target client to adjust the first product content in the target client;
before the first call request triggered on the target client is acquired, the method comprises the following steps:
an application registry is established, wherein N labels corresponding to the N sub-applications are recorded in the application registry, and each label in the N labels has a first mapping relation with a corresponding routing entry of the sub-application respectively;
the calling the first sub-application corresponding to the first label from the application manager comprises the following steps:
acquiring the first tag carried in the first call request;
acquiring a first route entry having the first mapping relation with the first label;
Invoking the first sub-application corresponding to the first routing entry from the application manager;
before the first call request is acquired, the method comprises the following steps:
acquiring N product contents corresponding to the target product;
establishing a second mapping relation between each product content in the N product contents and the sub-application, wherein the first product content with the second mapping relation with the first sub-application is adjusted through the first sub-application;
after the second mapping relation between each product content in the N product contents and the sub-application is established, the method includes:
acquiring a target service request of the first product content, wherein the target service request carries a service requirement for developing the first product content;
and responding to the target service request, and sending a target development instruction to the first sub-application with the second mapping relation with the first product content, wherein the target development instruction is used for instructing the first sub-application to use a first framework technology stack to develop the first product content.
2. The method of claim 1, after said loading the first sub-application to the target client to adjust the first product content by the first sub-application, comprising:
Acquiring a second call request triggered on the target client;
calling a second sub-application corresponding to a second label from the application manager in response to the second call request, wherein the N sub-applications comprise the second sub-application, the N product contents comprise second product contents corresponding to the second sub-application, and the second sub-application develops the second product contents by using a second frame technology stack;
and loading the second sub-application to the target client to adjust the second product content through the second sub-application.
3. The method according to any one of claims 1 to 2, comprising, prior to said obtaining the first call request:
and encapsulating the product components of the sub-application based on a target componentization standard, wherein the encapsulated product components are allowed to be invoked in the target client.
4. A product adjustment device, comprising:
the first acquisition unit is used for acquiring a first call request triggered on the target client, wherein the first call request carries a first tag;
the first response unit is used for responding to the first calling request and calling a first sub-application corresponding to the first tag from an application manager, wherein the application manager comprises N sub-applications for adjusting N product contents of a target product, the N sub-applications are in one-to-one correspondence with the N product contents, the N sub-applications comprise the first sub-application, the N product contents comprise first product contents corresponding to the first sub-application, and N is a positive integer greater than or equal to 2;
A first loading unit, configured to load the first sub-application to the target client, so as to adjust the first product content in the target client;
the second establishing unit is used for establishing an application registry before the first call request triggered on the target client is acquired, wherein the application registry records N labels corresponding to the N sub-applications, and each label in the N labels has a first mapping relation with a corresponding routing entry of the sub-application;
a first response unit comprising:
the first acquisition module is used for acquiring the first tag carried in the first call request;
the second acquisition module is used for acquiring a first route entry which has the first mapping relation with the first label;
a calling module, configured to call, from the application manager, the first sub-application corresponding to the first routing entry;
the second acquisition unit is used for acquiring N product contents corresponding to the target product before acquiring the first call request;
a second establishing unit, configured to establish a second mapping relationship between each product content in the N product contents and the sub-application before the first call request is acquired, where the first product content having the second mapping relationship with the first sub-application is adjusted by the first sub-application;
And the sending unit is used for responding to the target service request after the second mapping relation between each product content in the N product contents and the sub-application is established, and sending a target development instruction to the first sub-application which has the second mapping relation with the first product content, wherein the target development instruction is used for indicating the first sub-application to use the first frame technology stack to develop the first product content.
5. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run performs the method of any of the preceding claims 1 to 3.
6. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 3 by means of the computer program.
CN202011483045.0A 2020-12-15 2020-12-15 Product adjusting method and device, storage medium and electronic device Active CN112486559B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011483045.0A CN112486559B (en) 2020-12-15 2020-12-15 Product adjusting method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011483045.0A CN112486559B (en) 2020-12-15 2020-12-15 Product adjusting method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN112486559A CN112486559A (en) 2021-03-12
CN112486559B true CN112486559B (en) 2023-06-20

Family

ID=74916415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011483045.0A Active CN112486559B (en) 2020-12-15 2020-12-15 Product adjusting method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112486559B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113031964B (en) * 2021-03-25 2023-12-26 恒安嘉新(北京)科技股份公司 Big data application management method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1510579A (en) * 2002-10-04 2004-07-07 Front camera memory managing method and mechanism
CN1599901A (en) * 2001-10-02 2005-03-23 茨特里克斯系统公司 Methods for distributed program execution with file-type association in a client-server network
CN106446049A (en) * 2016-08-31 2017-02-22 腾讯科技(深圳)有限公司 Page data interaction apparatus and method
CN111399860A (en) * 2020-03-06 2020-07-10 金蝶蝶金云计算有限公司 Light application deployment method and device, computer equipment and storage medium
CN111447133A (en) * 2019-01-16 2020-07-24 腾讯科技(深圳)有限公司 Message transmission method and device, storage medium and electronic device
CN111737032A (en) * 2020-07-27 2020-10-02 腾讯科技(深圳)有限公司 Subprogram running method and device based on microkernel system and electronic equipment
CN111831269A (en) * 2020-07-21 2020-10-27 腾讯科技(深圳)有限公司 Application development system, operation method, equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8154769B2 (en) * 2005-02-15 2012-04-10 Ricoh Co. Ltd Systems and methods for generating and processing evolutionary documents
US10540063B2 (en) * 2014-01-27 2020-01-21 Microsoft Technology Licensing, Llc Processing actionable notifications

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1599901A (en) * 2001-10-02 2005-03-23 茨特里克斯系统公司 Methods for distributed program execution with file-type association in a client-server network
CN1510579A (en) * 2002-10-04 2004-07-07 Front camera memory managing method and mechanism
CN106446049A (en) * 2016-08-31 2017-02-22 腾讯科技(深圳)有限公司 Page data interaction apparatus and method
CN111447133A (en) * 2019-01-16 2020-07-24 腾讯科技(深圳)有限公司 Message transmission method and device, storage medium and electronic device
CN111399860A (en) * 2020-03-06 2020-07-10 金蝶蝶金云计算有限公司 Light application deployment method and device, computer equipment and storage medium
CN111831269A (en) * 2020-07-21 2020-10-27 腾讯科技(深圳)有限公司 Application development system, operation method, equipment and storage medium
CN111737032A (en) * 2020-07-27 2020-10-02 腾讯科技(深圳)有限公司 Subprogram running method and device based on microkernel system and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A survey of naming and routing in information-centric networks;M. F. Bari 等;《IEEE Communications Magazine》;第20卷(第12期);44-53 *
路由映射之策略路由应用实例;王海彬;《网管员世界》(第17期);54-56 *

Also Published As

Publication number Publication date
CN112486559A (en) 2021-03-12

Similar Documents

Publication Publication Date Title
CN110535831B (en) Kubernetes and network domain-based cluster security management method and device and storage medium
CN112632566B (en) Vulnerability scanning method and device, storage medium and electronic equipment
CA2539460A1 (en) System and method for dynamic version management of applications
CN108574709B (en) Method and device for realizing cross-domain operation
US9378034B2 (en) Dynamic bytecode modification of classes and class hierarchies
CN112416458A (en) Preloading method and device based on ReactNative, computer equipment and storage medium
CN109213533B (en) Advertisement SDK dynamic loading method, device and terminal
WO2019085290A1 (en) Test preparation method and apparatus, terminal device, and storage medium
CN110531984B (en) Code compiling method, device, system, computer equipment and storage medium
CN109815384B (en) Crawler implementation method, system, equipment and storage medium
CN113157339B (en) Application service extension method, system, storage medium and device based on OSB
CN104516885A (en) Implementation method and device of browse program double-kernel assembly
CN109104368B (en) Connection request method, device, server and computer readable storage medium
CN102811230B (en) Resource call method based on application integration and system thereof
CN111294235A (en) Data processing method, device, gateway and readable storage medium
CN103716400A (en) Method and system for achieving mobile working based on virtual machine
CN112486559B (en) Product adjusting method and device, storage medium and electronic device
CN111858101A (en) Cloud architecture system-oriented adaptation method, device, equipment and storage medium
CN114327710B (en) Function management method, management device, terminal equipment and readable storage medium
CN112698930B (en) Method, device, equipment and medium for obtaining server identification
EP3091435A1 (en) Resource management method and device for terminal system
CN111752820A (en) Pressure testing method of gPC interface, computer equipment and storage medium
CN113434146A (en) Code compiling method, device, storage medium and electronic device
CN108712298B (en) Network equipment upgrading method and device, network equipment and storage medium
CN102523271A (en) Terminal and communication method and system thereof

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