CN108241497B - Dynamic updating method, device, equipment and medium for vehicle-mounted client development interface - Google Patents
Dynamic updating method, device, equipment and medium for vehicle-mounted client development interface Download PDFInfo
- Publication number
- CN108241497B CN108241497B CN201710978350.9A CN201710978350A CN108241497B CN 108241497 B CN108241497 B CN 108241497B CN 201710978350 A CN201710978350 A CN 201710978350A CN 108241497 B CN108241497 B CN 108241497B
- Authority
- CN
- China
- Prior art keywords
- vehicle
- development
- development interface
- mounted client
- interface
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a dynamic updating method, a device, equipment and a medium for a vehicle-mounted client development interface, wherein the dynamic updating method for the vehicle-mounted client development interface comprises the following steps: acquiring development environment information of a vehicle-mounted client; determining a corresponding development interface domain name in a pre-stored development interface domain name database according to the development environment information of the vehicle-mounted client; and updating the vehicle-mounted client development interface according to the development interface domain name. By the technical scheme, the clear orderliness of the development interface of the vehicle-mounted client is improved, one-key switching and one-key changing are facilitated, the development interface of the vehicle-mounted client can be dynamically increased, development and test cost is reduced, and development and test efficiency is improved.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a dynamic updating method of a vehicle-mounted client development interface, a dynamic updating device of the vehicle-mounted client development interface, computer equipment and a computer readable storage medium.
Background
In the related art, when the vehicle-mounted client acquires data, data exchange between the application and the server is generally performed through the API interface, while in the development process of the vehicle-mounted client, an internal interface of an internet company is required to perform simulation data, and developers need to adjust development interfaces for different services, which has the following technical defects:
(1) because different services of the server end need different interface domain names, development needs to adjust a development interface for each service, and the interface can not be changed when the application is online.
(2) Interface management is disordered, so that development and test efficiency is low, and development cost is increased.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art or the related art.
Therefore, the invention aims to provide a dynamic updating method for a vehicle-mounted client development interface.
The invention further aims to provide a dynamic updating device for the vehicle-mounted client development interface.
It is a further object of this invention to provide such a computer apparatus.
It is yet another object of the present invention to provide a computer-readable storage medium.
In order to achieve the above object, a technical solution of a first aspect of the present invention provides a method for dynamically updating a vehicle-mounted client development interface, including: acquiring development environment information of a vehicle-mounted client; determining a corresponding development interface domain name in a pre-stored development interface domain name database according to the development environment information of the vehicle-mounted client; and updating the vehicle-mounted client development interface according to the development interface domain name.
In the technical scheme, the realization of dynamic updating of the development interface of the vehicle-mounted client is facilitated by acquiring the development environment information of the vehicle-mounted client, the corresponding development interface domain name is determined in the pre-stored development interface domain name database according to the development environment information of the vehicle-mounted client, so that the determination of the development interface domain name is realized, the realization of dynamic updating of the development interface of the vehicle-mounted client is facilitated, the tedious operation of manually changing codes to realize the updating of the development interface is reduced, the automation degree of the updating of the development interface of the vehicle-mounted client is improved, the updating of the development interface of the vehicle-mounted client can be realized under the condition of not changing the codes, the efficiency of interface testing is improved, the efficiency of the development of the vehicle-mounted client is also improved, and further the efficiency of overall development and testing is improved.
It should be noted that, the domain name of the development interface can also be manually input by a developer according to the development environment information of the vehicle-mounted client, so that the applicability is improved, and the efficiency of the overall development and test is further improved.
In the foregoing technical solution, preferably, updating the vehicle-mounted client development interface according to the development interface domain name includes: and according to the domain name of the development interface, changing the configuration data of the development interface of the vehicle-mounted client so as to update the development interface of the vehicle-mounted client.
In the technical scheme, the development interface configuration data of the vehicle-mounted client is changed according to the development interface domain name to update the development interface of the vehicle-mounted client, so that the dynamic update of the development interface of the vehicle-mounted client is realized, the tedious operation of manually changing codes to realize the update of the development interface is reduced, the automation degree of the update of the development interface of the vehicle-mounted client is improved, the development interface configuration data of the vehicle-mounted client is determined by the configuration data which is locally stored by the vehicle-mounted client and corresponds to the development interface domain name, the update accuracy and stability of the development interface of the vehicle-mounted client are further improved, and the overall development and test efficiency is further improved.
It should be noted that the development interface configuration data of the vehicle-mounted client corresponding to the development interface domain name is stored locally at the vehicle-mounted client, which is beneficial to performing dynamic update of the development interface during development, but during formal release, the entry is hidden and the locally stored data is removed, so as to reduce potential safety hazards such as leakage of the development interface configuration data.
It should be further noted that the interface configuration data is developed to include the type of the interface data, the rule returned by the interface data, the address of the interface request, and the like.
In any one of the above technical solutions, preferably, updating the vehicle-mounted client development interface according to the development interface domain name includes: and acquiring a corresponding development interface configuration file from the server according to the development interface domain name so as to update the development interface of the vehicle-mounted client.
In the technical scheme, the corresponding development interface configuration file from the server is obtained through the development interface domain name to update the development interface of the vehicle-mounted client, so that the dynamic update of the development interface of the vehicle-mounted client is realized, the tedious operation of manually changing codes to realize the update of the development interface is reduced, meanwhile, the occupation of the local storage space of the vehicle-mounted client is reduced, the development interface of the vehicle-mounted client can be dynamically increased, the clearness and the orderliness of the development interface of the vehicle-mounted client are improved, and the efficiency of the overall development and the test is further improved.
The development interface configuration file is a file having contents such as an interface request address, a type of interface data, and a rule for returning interface data.
In any one of the above technical solutions, preferably, the vehicle-mounted client development environment information includes environment type information, service type information, and page type information.
In the technical scheme, the vehicle-mounted client development environment information comprises environment type information, service type information and page type information, the vehicle-mounted client development environment is refined, a vehicle-mounted client development interface can be updated according to different environment types, different service types and different page types, codes do not need to be changed, and the overall development and test efficiency is further improved.
It should be noted that the environment type information includes a test environment, a development environment, and an online environment, and these development environments are separated in advance and do not interfere with each other, so that the clear and organized nature of the development interface debugging is further improved.
It should be further noted that the service type information includes sales service, service, promotion service, etc., and the service type information may also be divided according to the content of the specific service line when in application; the page type information includes an aggregation class, a list class, a content class, a function class and the like.
In any one of the above technical solutions, preferably, before acquiring the vehicle-mounted client development environment information, the method further includes: and pre-storing a development interface domain name corresponding to development environment information of each vehicle-mounted client into a development interface domain name database, wherein the development interface domain name is correspondingly associated with the development environment information of the vehicle-mounted client.
In the technical scheme, the development interface domain name corresponding to the development environment information of each vehicle-mounted client is stored in the development interface domain name database in advance, and the development interface domain name is correspondingly associated with the development environment information of the vehicle-mounted client, so that the development interface domain name can be determined according to the development environment information of the vehicle-mounted client, and the dynamic update of the development interface of the vehicle-mounted client is realized.
The technical solution of the second aspect of the present invention provides a dynamic update apparatus for a vehicle-mounted client development interface, including: the acquisition unit is used for acquiring development environment information of the vehicle-mounted client; the determining unit is used for determining a corresponding development interface domain name in a pre-stored development interface domain name database according to the development environment information of the vehicle-mounted client; and the updating unit is used for updating the vehicle-mounted client development interface according to the development interface domain name.
In the technical scheme, the realization of dynamic updating of the development interface of the vehicle-mounted client is facilitated by acquiring the development environment information of the vehicle-mounted client, the corresponding development interface domain name is determined in the pre-stored development interface domain name database according to the development environment information of the vehicle-mounted client, so that the determination of the development interface domain name is realized, the realization of dynamic updating of the development interface of the vehicle-mounted client is facilitated, the tedious operation of manually changing codes to realize the updating of the development interface is reduced, the automation degree of the updating of the development interface of the vehicle-mounted client is improved, the updating of the development interface of the vehicle-mounted client can be realized under the condition of not changing the codes, the efficiency of interface testing is improved, the efficiency of the development of the vehicle-mounted client is also improved, and further the efficiency of overall development and testing is improved.
It should be noted that, the domain name of the development interface can also be manually input by a developer according to the development environment information of the vehicle-mounted client, so that the applicability is improved, and the efficiency of the overall development and test is further improved.
In the foregoing technical solution, preferably, the updating unit is further configured to: and according to the domain name of the development interface, changing the configuration data of the development interface of the vehicle-mounted client so as to update the development interface of the vehicle-mounted client.
In the technical scheme, the development interface configuration data of the vehicle-mounted client is changed according to the development interface domain name to update the development interface of the vehicle-mounted client, so that the dynamic update of the development interface of the vehicle-mounted client is realized, the tedious operation of manually changing codes to realize the update of the development interface is reduced, the automation degree of the update of the development interface of the vehicle-mounted client is improved, the development interface configuration data of the vehicle-mounted client is determined by the configuration data which is locally stored by the vehicle-mounted client and corresponds to the development interface domain name, the update accuracy and stability of the development interface of the vehicle-mounted client are further improved, and the overall development and test efficiency is further improved.
It should be noted that the development interface configuration data of the vehicle-mounted client corresponding to the development interface domain name is stored locally at the vehicle-mounted client, which is beneficial to performing dynamic update of the development interface during development, but during formal release, the entry is hidden and the locally stored data is removed, so as to reduce potential safety hazards such as leakage of the development interface configuration data.
In any one of the above technical solutions, preferably, the updating unit is further configured to: and acquiring a corresponding development interface configuration file from the server according to the development interface domain name so as to update the development interface of the vehicle-mounted client.
In the technical scheme, the corresponding development interface configuration file from the server is obtained through the development interface domain name to update the development interface of the vehicle-mounted client, so that the dynamic update of the development interface of the vehicle-mounted client is realized, the tedious operation of manually changing codes to realize the update of the development interface is reduced, meanwhile, the occupation of the local storage space of the vehicle-mounted client is reduced, the development interface of the vehicle-mounted client can be dynamically increased, the clearness and the orderliness of the development interface of the vehicle-mounted client are improved, and the efficiency of the overall development and the test is further improved.
In any one of the above technical solutions, preferably, the vehicle-mounted client development environment information includes environment type information, service type information, and page type information.
In the technical scheme, the vehicle-mounted client development environment information comprises environment type information, service type information and page type information, the vehicle-mounted client development environment is refined, a vehicle-mounted client development interface can be updated according to different environment types, different service types and different page types, codes do not need to be changed, and the overall development and test efficiency is further improved.
It should be noted that the environment type information includes a test environment, a development environment, and an online environment, and these development environments are separated in advance and do not interfere with each other, so that the clear and organized nature of the development interface debugging is further improved.
In any one of the above technical solutions, preferably, the method further includes: and the storage unit is used for pre-storing a development interface domain name corresponding to the development environment information of each vehicle-mounted client into a development interface domain name database, and the development interface domain name is correspondingly associated with the development environment information of the vehicle-mounted client.
In the technical scheme, the development interface domain name corresponding to the development environment information of each vehicle-mounted client is stored in the development interface domain name database in advance, and the development interface domain name is correspondingly associated with the development environment information of the vehicle-mounted client, so that the development interface domain name can be determined according to the development environment information of the vehicle-mounted client, and the dynamic update of the development interface of the vehicle-mounted client is realized.
An aspect of the third aspect of the present invention provides a computer device, where the computer device includes a processor, and the processor is configured to implement, when executing a computer program stored in a memory, the steps of the in-vehicle client development interface dynamic update method according to any one of the aspects of the first aspect of the present invention.
In this technical solution, the computer device includes a processor, and the processor is configured to implement the steps of the dynamic update method for the vehicle-mounted client development interface according to any one of the foregoing technical solutions of the first aspect of the present invention when executing the computer program stored in the memory, so that all beneficial effects of the dynamic update method for the vehicle-mounted client development interface according to any one of the foregoing technical solutions of the first aspect of the present invention are achieved, and details are not repeated herein.
An aspect of the fourth aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the vehicle-mounted client development interface dynamic updating method according to any one of the aspects of the first aspect of the present invention.
In this technical solution, a computer-readable storage medium stores thereon a computer program, and when executed by a processor, the computer program implements the steps of the dynamic update method for the vehicle-mounted client development interface according to any one of the technical solutions of the first aspect of the present invention, so that all the beneficial effects of the dynamic update method for the vehicle-mounted client development interface according to any one of the technical solutions of the first aspect of the present invention are achieved, and details are not repeated herein.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 shows a schematic flow diagram of an in-vehicle client development interface dynamic update method according to one embodiment of the invention;
FIG. 2 shows a schematic block diagram of an in-vehicle client development interface dynamic update apparatus according to one embodiment of the present invention;
FIG. 3 shows a schematic flow diagram of an in-vehicle client development interface dynamic update method according to another embodiment of the invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described herein, and therefore the scope of the present invention is not limited by the specific embodiments disclosed below.
Example 1
FIG. 1 shows a schematic flow diagram of an in-vehicle client development interface dynamic update method according to one embodiment of the invention.
As shown in fig. 1, a method for dynamically updating a development interface of an in-vehicle client according to an embodiment of the present invention includes:
step S102, acquiring vehicle-mounted client development environment information;
step S104, determining a corresponding development interface domain name in a pre-stored development interface domain name database according to the development environment information of the vehicle-mounted client;
and step S106, updating the vehicle-mounted client development interface according to the development interface domain name.
In the embodiment, the realization of the development interface of the vehicle-mounted client is favorably dynamically updated by acquiring the development environment information of the vehicle-mounted client, the corresponding development interface domain name is determined in the pre-stored development interface domain name database according to the development environment information of the vehicle-mounted client, so that the determination of the development interface domain name is realized, the realization of the development interface of the vehicle-mounted client is favorably and dynamically updated, the complicated operation of manually changing codes to realize the updating of the development interface is reduced, the automation degree of the updating of the development interface of the vehicle-mounted client is improved, the updating of the development interface of the vehicle-mounted client can be realized under the condition of not changing the codes, the efficiency of interface testing is improved, the efficiency of the development of the vehicle-mounted client is also improved, and further the efficiency of the overall development and testing is improved.
It should be noted that, the domain name of the development interface can also be manually input by a developer according to the development environment information of the vehicle-mounted client, so that the applicability is improved, and the efficiency of the overall development and test is further improved. In the foregoing embodiment, preferably, updating the in-vehicle client development interface according to the development interface domain name includes: and according to the domain name of the development interface, changing the configuration data of the development interface of the vehicle-mounted client so as to update the development interface of the vehicle-mounted client.
In the embodiment, the development interface configuration data of the vehicle-mounted client is changed according to the development interface domain name to update the development interface of the vehicle-mounted client, so that the dynamic update of the development interface of the vehicle-mounted client is realized, the tedious operation of manually changing codes to realize the update of the development interface is reduced, the automation degree of the update of the development interface of the vehicle-mounted client is improved, the development interface configuration data of the vehicle-mounted client is determined by the configuration data which is locally stored by the vehicle-mounted client and corresponds to the development interface domain name, the update accuracy and stability of the development interface of the vehicle-mounted client are further improved, and the overall development and test efficiency is further improved.
It should be noted that the development interface configuration data of the vehicle-mounted client corresponding to the development interface domain name is stored locally at the vehicle-mounted client, which is beneficial to performing dynamic update of the development interface during development, but during formal release, the entry is hidden and the locally stored data is removed, so as to reduce potential safety hazards such as leakage of the development interface configuration data.
It should be further noted that the interface configuration data is developed to include the type of the interface data, the rule returned by the interface data, the address of the interface request, and the like.
Specifically, the development interface configuration data and the development interface domain name are stored in the vehicle-mounted client locally in advance, after the development environment information of the vehicle-mounted client is changed, the corresponding development interface domain name can be determined, the development interface configuration data such as the type of the interface data corresponding to the development interface domain name, the rule returned by the interface data, the interface request address and the like are called, the original development interface configuration data are replaced, the update of the development interface of the vehicle-mounted client is realized, and the development interface of the vehicle-mounted client is suitable for the current development environment of the vehicle-mounted client.
In any one of the above embodiments, preferably, updating the in-vehicle client development interface according to the development interface domain name includes: and acquiring a corresponding development interface configuration file from the server according to the development interface domain name so as to update the development interface of the vehicle-mounted client.
In the embodiment, the corresponding development interface configuration file from the server is acquired through the development interface domain name to update the development interface of the vehicle-mounted client, so that the dynamic update of the development interface of the vehicle-mounted client is realized, the tedious operation of manually changing codes to realize the update of the development interface is reduced, meanwhile, the occupation of the local storage space of the vehicle-mounted client is also reduced, the development interface of the vehicle-mounted client can be dynamically increased, the clearness and the orderliness of the development interface of the vehicle-mounted client are improved, and the efficiency of the overall development and the test is further improved.
The development interface configuration file is a file having contents such as an interface request address, a type of interface data, and a rule for returning interface data.
Specifically, the development interface configuration file and the development interface domain name are stored in the server side in advance correspondingly or the server side generates the development interface configuration file according to the development interface domain name, when the development environment information of the vehicle-mounted client side is changed, the corresponding development interface domain name can be determined, the development interface domain name is sent to the server side, the development interface configuration file corresponding to the server side can be obtained, the original development interface configuration file is replaced, the development interface of the vehicle-mounted client side is updated, and the vehicle-mounted client side development interface is suitable for the current development environment of the vehicle-mounted client side.
In any one of the above embodiments, preferably, the in-vehicle client development environment information includes environment type information, service type information, and page type information.
In the embodiment, the vehicle-mounted client development environment information comprises environment type information, service type information and page type information, the vehicle-mounted client development environment is refined, a vehicle-mounted client development interface can be updated according to different environment types, different service types and different page types, codes do not need to be changed, and the overall development and test efficiency is further improved.
It should be noted that the environment type information includes a test environment, a development environment, and an online environment, and these development environments are separated in advance and do not interfere with each other, so that the clear and organized nature of the development interface debugging is further improved.
It should be further noted that the service type information includes sales service, service, promotion service, etc., and the service type information may also be divided according to the content of the specific service line when in application; the page type information includes an aggregation class, a list class, a content class, a function class and the like.
For example, when the vehicle-mounted client development environment information includes environment type information, all vehicle-mounted client development interfaces with environment type information being a test environment correspond to one development interface domain name a, all vehicle-mounted client development interfaces with environment type information being a development environment correspond to another development interface domain name B, all vehicle-mounted client development interfaces with environment type information being an online environment correspond to another development interface domain name C, when the vehicle-mounted client development environment information is switched from the test environment to the development environment, the development interface domain name is switched from a to B, all vehicle-mounted client development interfaces are updated to be the vehicle-mounted client development interfaces corresponding to the development interface domain names B, and then different services and different pages can call the corresponding development interfaces from the vehicle-mounted client development interfaces to perform related operations.
For another example, when the vehicle-mounted client development environment information includes environment type information, service type information and page type information, all vehicle-mounted client development interfaces with environment type information being a test environment, service type information being a sales service and page type information being a aggregation correspond to one development interface domain name a, all vehicle-mounted client development interfaces with environment type information being an online environment, service type information being a service and page type information being a list correspond to another development interface domain name b, when the vehicle-mounted client development environment information is switched from the test environment, the sales service and the aggregation page to the online environment, the service and the list page, the development interface domain name is switched from a to b, all mobile development interfaces are updated to the vehicle-mounted client development interface corresponding to the development interface domain name b, then different services and different pages can call corresponding development interfaces from the development interfaces of the vehicle-mounted client to perform related operations.
In any one of the above embodiments, preferably, before acquiring the in-vehicle client development environment information, the method further includes: and pre-storing a development interface domain name corresponding to development environment information of each vehicle-mounted client into a development interface domain name database, wherein the development interface domain name is correspondingly associated with the development environment information of the vehicle-mounted client.
In the embodiment, the development interface domain name corresponding to the development environment information of each vehicle-mounted client is stored in the development interface domain name database in advance, and the development interface domain name is correspondingly associated with the development environment information of the vehicle-mounted client, so that the development interface domain name can be determined according to the development environment information of the vehicle-mounted client, and the dynamic update of the development interface of the vehicle-mounted client is realized.
Example 2
Fig. 2 shows a schematic block diagram of an in-vehicle client development interface dynamic update apparatus 200 according to an embodiment of the present invention.
As shown in fig. 2, an in-vehicle client development interface dynamic update apparatus 200 according to an embodiment of the present invention includes: an obtaining unit 202, configured to obtain vehicle-mounted client development environment information; the determining unit 204 is configured to determine, according to the vehicle-mounted client development environment information, a corresponding development interface domain name in a pre-stored development interface domain name database; and the updating unit 206 is configured to update the vehicle-mounted client development interface according to the development interface domain name.
In the embodiment, the realization of the development interface of the vehicle-mounted client is favorably dynamically updated by acquiring the development environment information of the vehicle-mounted client, the corresponding development interface domain name is determined in the pre-stored development interface domain name database according to the development environment information of the vehicle-mounted client, so that the determination of the development interface domain name is realized, the realization of the development interface of the vehicle-mounted client is favorably and dynamically updated, the complicated operation of manually changing codes to realize the updating of the development interface is reduced, the automation degree of the updating of the development interface of the vehicle-mounted client is improved, the updating of the development interface of the vehicle-mounted client can be realized under the condition of not changing the codes, the efficiency of interface testing is improved, the efficiency of the development of the vehicle-mounted client is also improved, and further the efficiency of the overall development and testing is improved.
It should be noted that, the domain name of the development interface can also be manually input by a developer according to the development environment information of the vehicle-mounted client, so that the applicability is improved, and the efficiency of the overall development and test is further improved.
In the above embodiment, preferably, the updating unit 206 is further configured to: and according to the domain name of the development interface, changing the configuration data of the development interface of the vehicle-mounted client so as to update the development interface of the vehicle-mounted client.
In the embodiment, the development interface configuration data of the vehicle-mounted client is changed according to the development interface domain name to update the development interface of the vehicle-mounted client, so that the dynamic update of the development interface of the vehicle-mounted client is realized, the tedious operation of manually changing codes to realize the update of the development interface is reduced, the automation degree of the update of the development interface of the vehicle-mounted client is improved, the development interface configuration data of the vehicle-mounted client is determined by the configuration data which is locally stored by the vehicle-mounted client and corresponds to the development interface domain name, the update accuracy and stability of the development interface of the vehicle-mounted client are further improved, and the overall development and test efficiency is further improved.
It should be noted that the development interface configuration data of the vehicle-mounted client corresponding to the development interface domain name is stored locally at the vehicle-mounted client, which is beneficial to performing dynamic update of the development interface during development, but during formal release, the entry is hidden and the locally stored data is removed, so as to reduce potential safety hazards such as leakage of the development interface configuration data.
It should be further noted that the interface configuration data is developed to include the type of the interface data, the rule returned by the interface data, the address of the interface request, and the like.
In any of the above embodiments, preferably, the updating unit 206 is further configured to: and acquiring a corresponding development interface configuration file from the server according to the development interface domain name so as to update the development interface of the vehicle-mounted client.
In the embodiment, the corresponding development interface configuration file from the server is acquired through the development interface domain name to update the development interface of the vehicle-mounted client, so that the dynamic update of the development interface of the vehicle-mounted client is realized, the tedious operation of manually changing codes to realize the update of the development interface is reduced, meanwhile, the occupation of the local storage space of the vehicle-mounted client is also reduced, the development interface of the vehicle-mounted client can be dynamically increased, the clearness and the orderliness of the development interface of the vehicle-mounted client are improved, and the efficiency of the overall development and the test is further improved.
The development interface configuration file is a file having contents such as an interface request address, a type of interface data, and a rule for returning interface data.
In any one of the above embodiments, preferably, the in-vehicle client development environment information includes environment type information, service type information, and page type information.
In the embodiment, the vehicle-mounted client development environment information comprises environment type information, service type information and page type information, the vehicle-mounted client development environment is refined, a vehicle-mounted client development interface can be updated according to different environment types, different service types and different page types, codes do not need to be changed, and the overall development and test efficiency is further improved.
It should be noted that the environment type information includes a test environment, a development environment, and an online environment, and these development environments are separated in advance and do not interfere with each other, so that the clear and organized nature of the development interface debugging is further improved.
It should be further noted that the service type information includes sales service, service, promotion service, etc., and the service type information may also be divided according to the content of the specific service line when in application; the page type information includes an aggregation class, a list class, a content class, a function class and the like.
In any one of the above embodiments, preferably, the method further includes: the storage unit 208 is configured to pre-store a development interface domain name corresponding to each piece of vehicle-mounted client development environment information into a development interface domain name database, where the development interface domain name is associated with the vehicle-mounted client development environment information.
In the embodiment, the development interface domain name corresponding to the development environment information of each vehicle-mounted client is stored in the development interface domain name database in advance, and the development interface domain name is correspondingly associated with the development environment information of the vehicle-mounted client, so that the development interface domain name can be determined according to the development environment information of the vehicle-mounted client, and the dynamic update of the development interface of the vehicle-mounted client is realized.
Example 3
According to the computer device of the embodiment of the invention, the computer device comprises a processor, and the processor is used for realizing the steps of the vehicle-mounted client development interface dynamic updating method provided by any one of the embodiments of the invention when executing the computer program stored in the memory.
In this embodiment, the computer device includes a processor, and the processor is configured to implement the steps of the dynamic update method for the vehicle-mounted client development interface according to any one of the embodiments of the present invention when executing the computer program stored in the memory, so that all the beneficial effects of the dynamic update method for the vehicle-mounted client development interface according to any one of the embodiments of the present invention are achieved, and details are not described herein again.
Example 4
According to the computer readable storage medium of the embodiment of the invention, a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the vehicle-mounted client development interface dynamic updating method provided by any one of the above embodiments of the invention are realized.
In this embodiment, a computer readable storage medium stores thereon a computer program, and when the computer program is executed by a processor, the steps of the method for dynamically updating the vehicle-mounted client development interface according to any one of the embodiments of the present invention are implemented, so that all the beneficial effects of the method for dynamically updating the vehicle-mounted client development interface according to any one of the embodiments of the present invention are achieved, and details are not repeated herein.
Example 5
FIG. 3 shows a schematic flow diagram of an in-vehicle client development interface dynamic update method according to another embodiment of the invention.
As shown in fig. 3, according to another embodiment of the present invention, in a dynamic update method of an in-vehicle client development interface, a developer turns on an environment switching function, an environment switcher switches a development environment, and acquires development environment information from the local storage data of the vehicle-mounted client, returns the development environment information to the environment switcher, displays the current development environment to the developer, determines the corresponding development interface domain name according to the development environment information, when the server side obtains the domain name of the development interface, the domain name of the development interface is returned to the server side, the server side returns the configuration file of the development interface according to the domain name of the development interface to dynamically update the development interface of the vehicle-mounted client side, the dynamic updating order of the development interface is clear, the development interface can be dynamically increased, and the overall efficiency of development and testing is further improved.
The technical scheme of the invention is described in detail with reference to the accompanying drawings, and the invention provides a dynamic updating method of a vehicle-mounted client development interface, a dynamic updating device of the vehicle-mounted client development interface, computer equipment and a computer readable storage medium.
The steps in the method of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device of the invention can be merged, divided and deleted according to actual needs.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by hardware instructions of a program, and the program may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM), or other Memory, such as a magnetic disk, or a combination thereof, A tape memory, or any other medium readable by a computer that can be used to carry or store data.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (8)
1. A dynamic updating method for a vehicle-mounted client development interface is characterized by comprising the following steps:
acquiring development environment information of a vehicle-mounted client;
determining a corresponding development interface domain name in a pre-stored development interface domain name database according to the vehicle-mounted client development environment information;
updating the vehicle-mounted client development interface according to the development interface domain name;
the updating the vehicle-mounted client development interface according to the development interface domain name comprises the following steps:
according to the development interface domain name, changing development interface configuration data of the vehicle-mounted client so as to update the development interface of the vehicle-mounted client; or
Acquiring a corresponding development interface configuration file from a server according to the development interface domain name so as to update the vehicle-mounted client development interface;
the development interface configuration file is a file with interface request addresses, types of interface data and rules of interface data return.
2. The in-vehicle client development interface dynamic update method according to claim 1,
the vehicle-mounted client development environment information comprises at least one of environment type information, service type information and page type information.
3. The dynamic updating method for the vehicle-mounted client development interface according to claim 1, before the obtaining of the vehicle-mounted client development environment information, further comprising:
and pre-storing a development interface domain name corresponding to development environment information of each vehicle-mounted client into a development interface domain name database, wherein the development interface domain name is correspondingly associated with the development environment information of the vehicle-mounted client.
4. The utility model provides a vehicle-mounted client development interface dynamic update device which characterized in that includes:
the acquisition unit is used for acquiring development environment information of the vehicle-mounted client;
the determining unit is used for determining a corresponding development interface domain name in a pre-stored development interface domain name database according to the vehicle-mounted client development environment information;
the updating unit is used for updating the vehicle-mounted client development interface according to the development interface domain name;
the update unit is further configured to: according to the development interface domain name, changing development interface configuration data of the vehicle-mounted client so as to update the development interface of the vehicle-mounted client; or
Acquiring a corresponding development interface configuration file from a server according to the development interface domain name so as to update the vehicle-mounted client development interface;
the development interface configuration file is a file with interface request addresses, types of interface data and rules of interface data return.
5. The in-vehicle client development interface dynamic update apparatus according to claim 4,
the vehicle-mounted client development environment information comprises at least one of environment type information, service type information and page type information.
6. The in-vehicle client development interface dynamic updating device according to claim 4, further comprising:
the storage unit is used for pre-storing a development interface domain name corresponding to development environment information of each vehicle-mounted client into the development interface domain name database, and the development interface domain name is correspondingly associated with the development environment information of the vehicle-mounted client.
7. A computer device, characterized in that it comprises a processor for implementing the steps of the in-vehicle client development interface dynamic update method according to any one of claims 1 to 3 when executing a computer program stored in a memory.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the in-vehicle client development interface dynamic updating method according to any one of claims 1 to 3.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710978350.9A CN108241497B (en) | 2017-10-18 | 2017-10-18 | Dynamic updating method, device, equipment and medium for vehicle-mounted client development interface |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710978350.9A CN108241497B (en) | 2017-10-18 | 2017-10-18 | Dynamic updating method, device, equipment and medium for vehicle-mounted client development interface |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108241497A CN108241497A (en) | 2018-07-03 |
| CN108241497B true CN108241497B (en) | 2021-09-07 |
Family
ID=62700361
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710978350.9A Active CN108241497B (en) | 2017-10-18 | 2017-10-18 | Dynamic updating method, device, equipment and medium for vehicle-mounted client development interface |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108241497B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110334103B (en) * | 2019-05-09 | 2021-11-02 | 北京顺丰同城科技有限公司 | Recommendation service updating method, providing device, access device and recommendation system |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103930873A (en) * | 2011-11-10 | 2014-07-16 | 思科技术公司 | Dynamic policy based interface configuration for virtualized environments |
| CN107179984A (en) * | 2016-03-10 | 2017-09-19 | 北京京东尚科信息技术有限公司 | A kind of interface mock methods and interface test method |
| CN107205015A (en) * | 2017-04-14 | 2017-09-26 | 阿里巴巴集团控股有限公司 | The implementation method and device of open interface |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20120031722A (en) * | 2010-09-27 | 2012-04-04 | 삼성전자주식회사 | Apparatus and method for generating dynamic response |
-
2017
- 2017-10-18 CN CN201710978350.9A patent/CN108241497B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103930873A (en) * | 2011-11-10 | 2014-07-16 | 思科技术公司 | Dynamic policy based interface configuration for virtualized environments |
| CN107179984A (en) * | 2016-03-10 | 2017-09-19 | 北京京东尚科信息技术有限公司 | A kind of interface mock methods and interface test method |
| CN107205015A (en) * | 2017-04-14 | 2017-09-26 | 阿里巴巴集团控股有限公司 | The implementation method and device of open interface |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108241497A (en) | 2018-07-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111596965B (en) | Project engineering initialization method, device, computer equipment and storage medium | |
| CN107920112B (en) | Configuration file pushing method supporting gray mode, central server and storage medium | |
| CN111858296B (en) | Interface testing method, device, equipment and storage medium | |
| CN109558320B (en) | System testing method, device, system, equipment and computer readable storage medium | |
| CN103902696B (en) | A kind of method and device for loading resource file | |
| WO2018223717A1 (en) | Webpage front-end testing method, device, system, apparatus and readable storage medium | |
| CN109726108B (en) | Front-end code testing method, device, system and medium based on analog data | |
| CN111597110B (en) | Page test method and device, electronic equipment and storage medium | |
| CN105260299A (en) | Method, device, and system for software test | |
| CN113704110A (en) | Automatic testing method and device for user interface | |
| CN110309461B (en) | Page display method and device | |
| CN112579928A (en) | Page jump method, page jump device, computer equipment and computer readable storage medium | |
| CN107479868B (en) | Interface loading method, device and device | |
| CN111447299A (en) | DNS analysis method and system based on test environment standing book | |
| CN105653448A (en) | Application debugging method, application debugging device and terminal | |
| CN112650689A (en) | Test method, test device, electronic equipment and storage medium | |
| CN113515436A (en) | Interface testing method and device | |
| CN114063990A (en) | A method, system and related equipment for configuring and displaying function introduction language | |
| CN111641690B (en) | Session message processing method and device and electronic equipment | |
| CN108241497B (en) | Dynamic updating method, device, equipment and medium for vehicle-mounted client development interface | |
| CN110704041A (en) | Software development method and device | |
| CN111061468B (en) | Mapping method and device | |
| CN110955449A (en) | Method and device for releasing gray scale of client | |
| CN105760396B (en) | A kind of webpage loading method and device | |
| CN114035792A (en) | Page generation method and device, electronic equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20211122 Address after: Room 103, building 1, yard 4, Hengxing Road, Gaoliying Town, Shunyi District, Beijing Patentee after: Beijing Rockwell Technology Co.,Ltd. Address before: Room 801, 8 / F, building 3, No.10 courtyard, Wangjing street, Chaoyang District, Beijing 100102 Patentee before: BEIJING CHJ AUTOMOTIVE TECHNOLOGY Co.,Ltd. |
|
| TR01 | Transfer of patent right |