CN112486559A - 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
CN112486559A
CN112486559A CN202011483045.0A CN202011483045A CN112486559A CN 112486559 A CN112486559 A CN 112486559A CN 202011483045 A CN202011483045 A CN 202011483045A CN 112486559 A CN112486559 A CN 112486559A
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.)
Granted
Application number
CN202011483045.0A
Other languages
Chinese (zh)
Other versions
CN112486559B (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 calling request triggered on a target client, wherein the first calling request carries a first label; responding to the first calling request, and calling a first sub application corresponding to the first label from the application manager; and loading the first sub-application to the target client so as to adjust the first product content in the target client. The invention solves the technical problem of low efficiency of product adjustment.

Description

Product adjusting method and device, storage medium and electronic device
Technical Field
The invention relates to the field of computers, in particular to a product adjusting method and device, a storage medium and an electronic device.
Background
Under a relevant scene, hundreds of pages are required to be correspondingly developed for product development, the project function is complete and huge, but in the development stage of the product, different frame technology stacks and various different code specifications are used due to different business requirements, and therefore the adjustment requirement cannot be quickly and accurately realized in the subsequent condition of adjusting the product. In other words, the prior art has a technical problem of low product adjustment efficiency due to insufficient flexibility of product development.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a product adjusting method and device, a storage medium and an electronic device, and at least solves the technical problem of low product adjusting efficiency.
According to an aspect of an embodiment of the present invention, there is provided a product adjustment method including: acquiring a first calling request triggered on a target client, wherein the first calling request carries a first label; responding to the first calling request, calling a first sub-application corresponding to the first label from an application manager, wherein the application manager comprises N sub-applications used 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 loading the first sub-application to the target client so as to adjust the first product content in the target client.
According to another aspect of the embodiments of the present invention, there is also provided a product adjustment apparatus, including: the system comprises a first obtaining unit, a second obtaining unit and a third obtaining unit, wherein the first obtaining unit is used for obtaining a first calling request triggered on a target client, and the first calling request carries a first label; a first response unit, configured to respond to a first call request, call a first sub-application corresponding to a first tag from an application manager, where the application manager includes N sub-applications used to adjust 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 include the first sub-application, the N product contents include the first product content corresponding to the first sub-application, and N is a positive integer greater than or equal to 2; 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 another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the above product adjustment method when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the product adjustment method through the computer program.
In the embodiment of the invention, a first calling request triggered on a target client is obtained, wherein the first calling request carries a first label; responding to the first calling request, calling a first sub-application corresponding to the first label from an application manager, wherein the application manager comprises N sub-applications used 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; the first sub-application is loaded to the target client to adjust the content of the first product in the target client, and the technical purpose of accurately adjusting the corresponding content of the product is achieved by using different sub-applications to respectively adjust the corresponding content of the product through a point-to-point product adjusting method, so that the technical effect of improving the adjusting accuracy of the content of the product is achieved, and the technical problem of low 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 embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of an application environment of an alternative product adjustment method according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a flow chart of an alternative product adjustment method according to an embodiment of the invention;
FIG. 3 is a schematic diagram of an alternative product adjustment method according to an embodiment of the invention;
FIG. 4 is a schematic diagram of an alternative product adjustment method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an alternative product adjustment method according to an embodiment of the invention;
FIG. 6 is a schematic view of an alternative product adjustment apparatus according to an embodiment of the present invention;
FIG. 7 is a schematic view of an alternative product adjustment apparatus according to an embodiment of the present invention;
FIG. 8 is a schematic view of an alternative product adjustment apparatus according to an embodiment of the present invention;
FIG. 9 is a schematic view of an alternative product adjustment apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or 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 an embodiment of the present invention, there is provided a product adjustment method, which may be applied, but not limited, to the environment shown in fig. 1 as an optional implementation manner. The system may include, but is not limited to, a user equipment 102, a network 110, and a server 112, wherein the user equipment 102 may include, but is not limited to, a display 108, a processor 106, and a memory 104. Optionally, the user device 102 may be installed with, but is not limited to, a target client as shown in fig. 1, wherein the target client may be, but is not limited to, adjusting the target product.
The specific process comprises the following steps:
step S102, the user equipment 102 acquires a first calling request triggered on a virtual button (such as a calling button) in a target client, wherein the first calling request carries a first label;
step S104-S106, the user equipment 102 sends a first call request to the server 112 through the network 110;
step S108, the server 112 searches for an address location corresponding to the first tag through the database 114, and invokes a first sub-application corresponding to the address location through the processing engine 116;
steps S110-S112, the server 112 sends the first sub-application to the user equipment 102 through the network 110;
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 store 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 performed by the user device 102 independently, that is, the user device 102 performs the steps of invoking the first sub-application, and the like, so as to relieve the processing pressure of the server. The user equipment 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, and the like, and the specific implementation manner of the user equipment 102 is not limited in the present invention.
Optionally, as an optional implementation manner, as shown in fig. 2, the product adjustment method includes:
s202, acquiring a first calling request triggered on a target client, wherein the first calling request carries a first label;
s204, responding to the first calling request, calling a first sub-application corresponding to the first label from an application manager, wherein the application manager comprises N sub-applications used 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;
s206, the first sub-application is loaded to the target client side so as to adjust the first product content in the target client side.
Optionally, in this embodiment, the product adjustment method may be but is not limited to be applied in an adjustment scenario of a page application, for example, multiple front-end frames are used on the same page without refreshing the page, for example: the virtual, real, and regular framework technologies deploy each single-page application independently, realize multiple applications, and multiple technologies coexist without rewriting codes, thereby solving the problem of difficulty in application maintenance caused by the fact that a single application is developed into a boulder application from a common application due to an increase in demand under a relatively long time span.
Optionally, in this embodiment, the application manager may store, but is not limited to, a plurality of sub-applications, and may find, but is not limited to, a name of a sub-application (i.e., a first sub-application) corresponding to the first tag in the routing manager through a reverse proxy function of the HTTP server by using a route distribution manner, and then find, in the application manager, the first sub-application, and load the first sub-application to the target client.
Optionally, in this embodiment, in a deployment and construction environment, a plurality of independent applications are combined into a single application in a software engineering manner, where an independent application may be, but is not limited to, a sub-application or a single application, and this is merely an example and is not limited thereto.
Optionally, in this embodiment, a new construction system is developed, and part of the service functions are constructed into an independent chunk code, and when the system is used, only remote loading is needed, for example, the corresponding sub-application is remotely loaded through the target client, so as to achieve the purpose of adjusting the product content anytime and anywhere, thereby improving the effect of adjusting flexibility of the product content.
Optionally, in this embodiment, the iFrame serves as a container to accommodate other front-end applications, where the iFrame may be, but is not limited to, an HTML tag, serves as a document in the document, or a floating frame, and the iFrame tag may be, but is not limited to, directly nested in the page to specify src.
It should be noted that a first invocation request triggered on a target client is obtained, where the first invocation request carries a first tag; responding to the first calling request, calling a first sub-application corresponding to the first label from an application manager, wherein the application manager comprises N sub-applications used 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 loading the first sub-application to the target client so as to adjust the first product content in the target client.
For further example, as shown in fig. 3, an execution scenario of the optional product adjustment method is that a target client 302 receives a first call request, obtains a sub-application name (i.e., a first self-application) corresponding to a first tag carried in the first call request through a routing manager, inputs the sub-application name into an application manager 304, calls the first self-application corresponding to the sub-application name by using the application manager 304, and calls the sub-application to an application loader of the target client 302, where the application loader is configured to display an adjustment interface of the sub-application on the target client 302.
Optionally, in this embodiment, the target client may be, but is not limited to, a main engineering-base application, where the main engineering-base application executes the product adjustment method based on a main engineering logic, for example, as shown in fig. 4, the specific steps are as follows:
s402, the main project-base application 402 acquires a registry provided by an application registry 404, 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 corresponding application mapping;
s404, initializing the data in the application manager based on the main engineering logic;
S406-S408, the request is monitored in real time, and the monitored request is input into the routing manager under the condition that the request is monitored, the request is routed to the corresponding application through the reverse proxy function of the HTTP server, the name of the sub-application corresponding to the first sub-application is found through the routing manager, and then the sub-application is found in the application manager and loaded to the main project-base application 402.
According to the embodiment provided by the application, a first calling request triggered on a target client is obtained, wherein the first calling request carries a first label; responding to the first calling request, calling a first sub-application corresponding to the first label from an application manager, wherein the application manager comprises N sub-applications used 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; the first sub-application is loaded to the target client to adjust the content of the first product in the target client, and the technical purpose of accurately adjusting the corresponding content of the product is achieved by using different sub-applications to respectively adjust the corresponding content of the product through a point-to-point product adjusting method, so that the technical effect of improving the accuracy of adjusting the content of the product is achieved.
As an optional scheme, before acquiring the first invocation 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 owns each application and the corresponding entry. In the front-end domain, the direct representation of an entry 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 label in the N labels has a first mapping relationship with a routing entry of the corresponding sub-application.
For further example, optionally based on the scenario shown in fig. 3, for example, as shown in fig. 5, the application registry 502 is established in advance, and N tags corresponding to N sub-applications recorded in the application registry 502 are connected to the target client 302, so that the sub-application name corresponding to the first tag can be quickly obtained when the target client 302 receives the first tag carried in the first invocation request.
Through the embodiment provided by the application, the application registry is established, wherein the application registry records N labels corresponding to N sub-applications, and each label in the N labels has a first mapping relation with the routing entry of the corresponding sub-application, so that the purpose of quickly calling the corresponding sub-application by means of the second application registry is achieved, and the effect of improving the calling efficiency of the sub-application is realized.
As an optional scheme, invoking a first sub-application corresponding to the first tag from the application manager includes:
s1, acquiring a first label carried in the first calling request;
s2, acquiring a first route entry having a first mapping relation with the first label;
s3, calling the 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 invocation request is obtained; acquiring a first routing entry having a first mapping relation with a first label; and calling a first sub-application corresponding to the first routing inlet from the application manager.
According to the embodiment provided by the application, a first label carried in a first calling request is obtained; acquiring a first routing entry having a first mapping relation with a first label; the first sub-application corresponding to the first routing entry is called from the application manager, the purpose of quickly calling the corresponding sub-application based on the routing entry is achieved, and the effect of improving the calling efficiency of the sub-application is achieved.
As an optional scheme, before obtaining the first invocation request, the method includes:
s1, obtaining N product contents corresponding to the target product;
s2, establishing a second mapping relation between each product content of the N product contents and the sub-application, wherein the first product content having the second mapping relation with the first sub-application is adjusted through the first sub-application.
Optionally, in this embodiment, the same page uses multiple front-end frames, and the sub-applications corresponding to the product contents are respectively deployed based on the second mapping relationship, so as to solve the technical problem that the multiple front-end frames used by the same page cannot coexist, and achieve the effects of reusability and easy maintenance of the multifunctional application.
It should be noted that 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 having 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 having the second mapping relation with the first sub-application is adjusted through the first sub-application, so that the aim that the same page can coexist by using a plurality of front-end frames is fulfilled, and the effects of reusability and easiness in maintenance of the multifunctional application are realized.
As an optional scheme, after establishing the second mapping relationship between each of the N product contents and the sub-application, the method includes:
s1, 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 S2, responding to the target service request, and sending a target development instruction to the first sub-application having a second mapping relation with the first product content, wherein the target development instruction is used for instructing the first sub-application to use the first framework technology stack to develop the first product content.
Optionally, in this embodiment, multiple teams of parallel development are achieved among the sub-applications, each team can be independently developed in its own project, independent update of each module (i.e., each product content) is achieved, the corresponding sub-application is independently updated without updating the whole complete application, the sub-application is independently deployed as a service, and multiple frameworks such as Angular, Vue and fact can be used simultaneously.
It should be noted that, a target service request of the first product content is obtained, 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 a first sub-application which has a 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.
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 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, so that the aim that the same page can coexist by using a plurality of front-end frames is fulfilled, and the effects of reusability and easy maintenance of multifunctional application are realized.
As an optional solution, after loading the first sub-application to the target client to adjust the first product content through the first sub-application, the method includes:
s1, acquiring a second call request triggered on the target client;
s2, responding to the second call request, calling a second sub-application corresponding to the second label from the application manager, 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 uses a second framework technology stack to develop the second product contents;
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, the product has hundreds of pages, and the project is complete and huge in function, which may cause: 1. the code is more and more, the packaging is more and more slow, the deployment and the upgrade are troublesome, and the upgrade of some plug-ins and the modification of public components need to be considered more, so that the whole body is easily dragged and moved; 2. the large project, the more people involved, the more difficult the code specification is to manage, and the more frequent the code conflicts. Also in order to enable coexistence between different technology stacks, multiple applications, for example: a large project (namely N product contents of a target product) is split into small projects (namely product contents) one by one, the small projects are independently developed and deployed, a frame can be freely selected, own development specifications are designated, rapid packaging and independent deployment are realized, the independent deployment are not influenced, the upgrading is simple, the existing functional modules are conveniently reused, and repeated development is avoided.
Optionally, in this embodiment, a second invocation request triggered on the target client is obtained; responding to a second calling request, calling a second sub-application corresponding to a second label from the application manager, 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 uses a second framework technology stack to develop the second product contents; and loading the second sub-application to the target client to adjust the second product content through the second sub-application, so that the sub-applications 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 calling request triggered on a target client is obtained; responding to a second calling request, calling a second sub-application corresponding to a second label from the application manager, 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 uses a second framework technology stack to develop the second product contents; and loading the second sub-application to the target client to adjust the second product content through the second sub-application, so that the technical purpose of accurately adjusting the corresponding product content is achieved, and the technical effect of improving the adjustment accuracy of the product content is achieved.
As an optional scheme, before obtaining the first invocation request, the method includes:
and packaging the product components of the sub-application based on the target componentization standard, wherein the packaged product components are allowed to be called in the target client.
Optionally, in this embodiment, a cross-framework front-end application is constructed by means of a Web Components technology, wherein the Web Components technology can be mostly not limited to introducing Components with custom tags to implement front-end componentization, and referencing an HTML file and an HTML template on a page is used to support writing of component views and component resource management, and also can isolate conflicts and influences of inter-component code.
It should be noted that the product components of the sub-application are packaged based on the target componentization standard, wherein the packaged product components are allowed to be called in the target client.
According to the method and the device for packaging the product component, 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 side, 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 above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the 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 invocation request triggered on a target client, where the first invocation request carries a first tag;
a first response unit 604, configured to respond to the first call request, and call, from the application manager, a first sub-application corresponding to the first tag, where the application manager includes N sub-applications used to adjust 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-application, the N product contents include the first product content corresponding to the first sub-application, and N is a positive integer greater than or equal to 2;
a first loading unit 606, configured to load the first sub-application to the target client, so as to adjust the first product content in the target client.
Optionally, in this embodiment, the product adjustment apparatus may be but is not limited to be applied in an adjustment scenario of a page application, for example, multiple front-end frames are used on the same page without refreshing the page, for example: the virtual, real, and regular framework technologies deploy each single-page application independently, realize multiple applications, and multiple technologies coexist without rewriting codes, thereby solving the problem of difficulty in application maintenance caused by the fact that a single application is developed into a boulder application from a common application due to an increase in demand under a relatively long time span.
Optionally, in this embodiment, the application manager may store, but is not limited to, a plurality of sub-applications, and may find, but is not limited to, a name of a sub-application (i.e., a first sub-application) corresponding to the first tag in the routing manager through a reverse proxy function of the HTTP server by using a route distribution manner, and then find, in the application manager, the first sub-application, and load the first sub-application to the target client.
Optionally, in this embodiment, in a deployment and construction environment, a plurality of independent applications are combined into a single application in a software engineering manner, where an independent application may be, but is not limited to, a sub-application or a single application, and this is merely an example and is not limited thereto.
Optionally, in this embodiment, a new construction system is developed, and part of the service functions are constructed into an independent chunk code, and when the system is used, only remote loading is needed, for example, the corresponding sub-application is remotely loaded through the target client, so as to achieve the purpose of adjusting the product content anytime and anywhere, thereby improving the effect of adjusting flexibility of the product content.
Optionally, in this embodiment, the iFrame serves as a container to accommodate other front-end applications, where the iFrame may be, but is not limited to, an HTML tag, serves as a document in the document, or a floating frame, and the iFrame tag may be, but is not limited to, directly nested in the page to specify src.
It should be noted that a first invocation request triggered on a target client is obtained, where the first invocation request carries a first tag; responding to the first calling request, calling a first sub-application corresponding to the first label from an application manager, wherein the application manager comprises N sub-applications used 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 loading the first sub-application to the target client so as to adjust the first product content in the target client.
For a specific embodiment, reference may be made to the example shown in the product adjustment method, and details are not described herein in this example.
According to the embodiment provided by the application, a first calling request triggered on a target client is obtained, wherein the first calling request carries a first label; responding to the first calling request, calling a first sub-application corresponding to the first label from an application manager, wherein the application manager comprises N sub-applications used 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; the first sub-application is loaded to the target client to adjust the content of the first product in the target client, and the technical purpose of accurately adjusting the corresponding content of the product is achieved through the point-to-point product adjusting device by utilizing the mode that the corresponding content of the product is respectively adjusted by different sub-applications, so that the technical effect of improving the accuracy of adjusting the content of the product is achieved.
As an alternative, as shown in fig. 7, the method includes:
a first establishing unit 702, configured to establish an application registry before obtaining a first invocation request triggered on a target client, where the application registry records N labels corresponding to N sub-applications, and each label in the N labels has a first mapping relationship with a routing entry of the corresponding sub-application.
For a specific embodiment, reference may be made to the example shown in the product adjustment method, and details are not described herein in this example.
As an alternative, the first response unit 604 includes:
the first obtaining module is used for obtaining a first label carried in the first calling request;
the second obtaining module is used for obtaining a first routing entrance 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 inlet from the application manager.
For a specific embodiment, reference may be made to the example shown in the product adjustment method, and details are not described herein in this example.
As an alternative, as shown in fig. 8, the method includes:
a second obtaining unit 802, configured to obtain N product contents corresponding to the target product before obtaining the first invocation request;
a second establishing unit 804, configured to establish a second mapping relationship between each product content of the N product contents and the sub-application before the first invocation request is obtained, where a first product content having the second mapping relationship with the first sub-application is adjusted by the first sub-application.
For a specific embodiment, reference may be made to the example shown in the product adjustment method, and details are not described herein in this example.
As an alternative, the method comprises the following steps:
a third obtaining unit, configured to obtain a target service request of the first product content after establishing a second mapping relationship between each of the N product contents and the sub-application, where 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 a 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 having 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 framework technology stack to develop the first product content.
For a specific embodiment, reference may be made to the example shown in the product adjustment method, and details are not described herein in this example.
As an alternative, the method comprises the following steps:
the fourth obtaining unit is used for obtaining a second calling request triggered on the target client after the first sub-application is loaded to the target client so as to adjust the first product content through the first sub-application;
a second response unit, configured to, after the first sub-application is loaded to the target client to adjust the first product content through the first sub-application, respond to a second call request, and call a second sub-application corresponding to the second tag from the application manager, where the N sub-applications include the second sub-application, the N product contents include second product contents corresponding to the second sub-application, and the second sub-application develops the second product content using a second framework technology stack;
and the second loading unit is used for loading the second sub-application to the target client to adjust the second product content through the second sub-application after the first sub-application is loaded to the target client to adjust the first product content through the first sub-application.
For a specific embodiment, reference may be made to the example shown in the product adjustment method, and details are not described herein in this example.
As an alternative, as shown in fig. 9, the method includes:
an encapsulating unit 902, configured to encapsulate the product component of the sub-application based on the target componentization standard before obtaining the first invocation request, where the encapsulated product component is allowed to be invoked in the target client.
For a specific embodiment, reference may be made to the example shown in the product adjustment method, and details are not described herein in this example.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the product adjustment method, as shown in fig. 10, the electronic device includes a memory 1002 and a processor 1004, the memory 1002 stores a computer program, and the processor 1004 is configured to execute the steps in any one of the method embodiments by the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring a first calling request triggered on a target client, wherein the first calling request carries a first label;
s2, responding to the first calling request, calling a first sub-application corresponding to the first label from an application manager, wherein the application manager comprises N sub-applications used 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-application, the N product contents comprise the first product contents corresponding to the first sub-application, 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 can be understood by those skilled in the art that the structure shown in fig. 10 is only an illustration, 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, a Mobile Internet Device (MID), a PAD, and the like. Fig. 10 is a diagram illustrating a 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 used to store software programs and modules, such as program instructions/modules corresponding to the product adjustment method and apparatus in the embodiments of the present invention, and the processor 1004 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002, that is, implementing 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 over 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 not limited to, specifically configured to store information such as a first tag, a first sub-application, and 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 apparatus. In addition, other module units in the product adjustment apparatus may also be included, but are not limited to these, and are not described in detail in this example.
Optionally, the above-mentioned transmission device 1006 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1006 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices so as to communicate with the internet or a local area Network. In one example, the transmission device 1006 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: a display 1008 for displaying information such as the first tag, 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 apparatus.
According to a further aspect of an embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring a first calling request triggered on a target client, wherein the first calling request carries a first label;
s2, responding to the first calling request, calling a first sub-application corresponding to the first label from an application manager, wherein the application manager comprises N sub-applications used 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-application, the N product contents comprise the first product contents corresponding to the first sub-application, 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, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be substantially or partially implemented in the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, or network devices) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the 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 illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, 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 executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
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 network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method of product adjustment, comprising:
acquiring a first calling request triggered on a target client, wherein the first calling request carries a first label;
responding to the first calling request, calling a first sub-application corresponding to the first label from an application manager, wherein the application manager comprises N sub-applications used 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 the first product contents corresponding to the first sub-application, and N is a positive integer greater than or equal to 2;
and loading the first sub-application to the target client to adjust the first product content in the target client.
2. The method of claim 1, wherein prior to said obtaining the first call request triggered on the target client, comprising:
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 inlet of the corresponding sub-application.
3. The method of claim 2, wherein the invoking the first sub-application corresponding to the first tag from the application manager comprises:
acquiring the first label carried in the first calling request;
acquiring a first routing entry having the first mapping relation with the first label;
and calling the first sub-application corresponding to the first routing inlet from the application manager.
4. The method of claim 1, prior to said obtaining the first invocation request, comprising:
acquiring N product contents corresponding to the target product;
establishing a second mapping relation between each product content of the N product contents and the sub-application, wherein the first product content having the second mapping relation with the first sub-application is adjusted through the first sub-application.
5. The method of claim 4, after the establishing the second mapping relationship between each of the N product contents and the sub-application, comprising:
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 having 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.
6. The method of claim 1, after the loading the first sub-application to the target client to adjust the first product content by the first sub-application, comprising:
acquiring a second calling request triggered on the target client;
responding to the second call request, calling a second sub-application corresponding to a second label from the application manager, 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 framework technology stack;
and loading the second sub-application to the target client to adjust the second product content through the second sub-application.
7. The method according to any one of claims 1 to 6, comprising, prior to said obtaining a first invocation request:
and packaging the product components of the sub-application based on a target componentization standard, wherein the packaged product components are allowed to be called in the target client.
8. A product adjustment device, comprising:
the system comprises a first obtaining unit, a second obtaining unit and a third obtaining unit, wherein the first obtaining unit is used for obtaining a first calling request triggered on a target client, and the first calling request carries a first label;
a first response unit, configured to respond to the first call request, and call, from an application manager, a first sub-application corresponding to the first tag, where the application manager includes N sub-applications used to adjust 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 include the first sub-application, the N product contents include the first product content 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.
9. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any one of claims 1 to 7.
10. 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 of any of claims 1 to 7 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 true CN112486559A (en) 2021-03-12
CN112486559B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113031964A (en) * 2021-03-25 2021-06-25 恒安嘉新(北京)科技股份公司 Management method, device, equipment and storage medium for big data application

Citations (9)

* 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
US20060184522A1 (en) * 2005-02-15 2006-08-17 Mcfarland Max E Systems and methods for generating and processing evolutionary documents
US20150212675A1 (en) * 2014-01-27 2015-07-30 Microsoft Corporation Processing actionable notifications
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

Patent Citations (9)

* 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
US20060184522A1 (en) * 2005-02-15 2006-08-17 Mcfarland Max E Systems and methods for generating and processing evolutionary documents
US20150212675A1 (en) * 2014-01-27 2015-07-30 Microsoft Corporation Processing actionable notifications
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
M. F. BARI 等: "A survey of naming and routing in information-centric networks", 《IEEE COMMUNICATIONS MAGAZINE》 *
王海彬: "路由映射之策略路由应用实例", 《网管员世界》 *

Cited By (2)

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

Also Published As

Publication number Publication date
CN112486559B (en) 2023-06-20

Similar Documents

Publication Publication Date Title
CN110535831B (en) Kubernetes and network domain-based cluster security management method and device and storage medium
CN109547570B (en) Service registration method, device, registration center management equipment and storage medium
US7900214B2 (en) System and method for adaptable provisioning of generic application content
CA2539460A1 (en) System and method for dynamic version management of applications
CN112114784A (en) Single-Spa-based front-end micro-service system
CN109815384B (en) Crawler implementation method, system, equipment and storage medium
CN105022832A (en) Method for safely downloading APP (application), mobile terminal and download server
CN112416458A (en) Preloading method and device based on ReactNative, computer equipment and storage medium
CN108733370B (en) Stylized display method, device, terminal and storage medium of native APP
CN109213533B (en) Advertisement SDK dynamic loading method, device and terminal
CN112631649A (en) Intelligent contract management method, device, terminal equipment and medium
CN112860236A (en) Single-spa-based micro front-end technology
US10078532B2 (en) Resource management method and device for terminal system among multiple operating systems
CN111800774A (en) Control method and device of Bluetooth equipment and storage medium
CN112486559B (en) Product adjusting method and device, storage medium and electronic device
CN109343970B (en) Application program-based operation method and device, electronic equipment and computer medium
CN112307402B (en) Webpage component creation method and device, electronic equipment and readable storage medium
CN112698930B (en) Method, device, equipment and medium for obtaining server identification
CN103761126A (en) Method and device for upgrading application program
US20100031256A1 (en) Method for establishing virtual operating system
CN106951288B (en) Development and application method and device of hot upgrade resource
CN115729604A (en) Micro application integration method, system, electronic device and storage medium
CN112732277B (en) Java multi-service application automatic installation and deployment integration method and system
CN115016862A (en) Kubernetes cluster-based software starting method, device, server and storage medium
CN108804236B (en) AIDL file sharing method and system

Legal Events

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