CN107592338B - Dynamic library updating system, method and related equipment - Google Patents

Dynamic library updating system, method and related equipment Download PDF

Info

Publication number
CN107592338B
CN107592338B CN201710672614.8A CN201710672614A CN107592338B CN 107592338 B CN107592338 B CN 107592338B CN 201710672614 A CN201710672614 A CN 201710672614A CN 107592338 B CN107592338 B CN 107592338B
Authority
CN
China
Prior art keywords
dynamic library
document server
file
latest
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710672614.8A
Other languages
Chinese (zh)
Other versions
CN107592338A (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.)
Xinzhi Cloud Data Service Co ltd
Original Assignee
Xinzhi Cloud Data Service 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 Xinzhi Cloud Data Service Co ltd filed Critical Xinzhi Cloud Data Service Co ltd
Priority to CN201710672614.8A priority Critical patent/CN107592338B/en
Publication of CN107592338A publication Critical patent/CN107592338A/en
Application granted granted Critical
Publication of CN107592338B publication Critical patent/CN107592338B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a system, a method and related equipment for updating a dynamic library, wherein the method comprises the following steps: after receiving a login request of a user for logging in an operation system, forwarding the login request to a management server; receiving a response message of successful login fed back by the management server; receiving address information of a latest dynamic library file corresponding to a latest dynamic library file packet number sent by a document server, wherein the address information is determined according to the received latest dynamic library file packet number after the document server is connected with a management server; downloading the latest dynamic library file from the document server according to the address information; and updating the dynamic library of the operation system by using the latest dynamic library file. The method provided by the invention can realize the automatic updating of the dynamic library, and avoids the situation that the security is threatened due to the manual updating of the dynamic library in the prior art.

Description

Dynamic library updating system, method and related equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a system and a method for updating a dynamic library, and a related device.
Background
A Dynamic Library, also known as a Dynamic Link Library (DLL), is a Library that contains code and data that can be used by multiple programs simultaneously.
At present, the update process of the dynamic library file version of the magnetic card gas selling system in the business hall is roughly as follows: and the gas company tests and verifies the latest dynamic library version, transfers the verification result to leadership examination and approval, sends the latest dynamic library version to each business hall terminal by mails or other modes after the leadership examination and approval is passed, and then is manually deployed by business hall workers to update the dynamic library on the terminal to the latest version. On one hand, the version of the dynamic library is updated by manual update of staff in a business hall, and unified installation management of the dynamic library cannot be realized; on the other hand, because the manual intervention degree is large, events such as installation errors and the like are easy to occur, and the security of the gas selling of the magnetic card in the business hall is threatened.
Therefore, how to avoid manual intervention and realize automatic update of the dynamic library is one of the technical problems to be solved urgently.
Disclosure of Invention
The embodiment of the invention provides a system and a method for updating a dynamic library and related equipment, which are used for avoiding manual intervention and realizing automatic updating of a dynamic library version.
In a first aspect, an embodiment of the present invention provides an update system for a dynamic library, including: operation terminal, management server and document server, wherein:
the operation terminal is used for forwarding a login request to the management server after receiving the login request of a user for logging in an operation system, wherein the login request carries a user name and a password; receiving a response message of successful login fed back by the management server; receiving address information of the latest dynamic library file corresponding to the latest dynamic library file package number sent by the document server, and downloading the latest dynamic library file from the document server according to the address information; updating the dynamic library of the operation system by using the latest dynamic library file;
the management server is used for feeding back a response message of successful login to the operation terminal after the login success is determined according to the user name and the password after the login request is received, and determining the identification information of the application component corresponding to the operation system which is logged in by the current user; determining document server information corresponding to the identification information of the application component corresponding to the operating system logged in by the current user according to the corresponding relation between the stored identification information of the application component and the document server information; connecting to a corresponding document server according to the document server information, and sending the stored latest dynamic library version information to the document server, wherein the latest dynamic library version information comprises the latest dynamic library file packet number;
the document server is used for receiving the latest dynamic library version information sent by the management server after establishing connection with the management server, and determining the address information of the latest dynamic library file corresponding to the latest dynamic library file packet number according to the latest dynamic library file packet number; and sending the determined address information to the operation terminal.
In a possible implementation manner, in the above system for updating a dynamic library provided in an embodiment of the present invention, the document server information includes at least one of the following items: address information of the document server, a user name and a password of the document server; and
the management server is specifically configured to find a corresponding document server according to the address information of the document server, and send a communication connection establishment request to the document server, where the communication connection establishment request carries a user name and a password of the document server;
the document server is specifically configured to, after receiving the communication connection establishment request, establish a communication connection with the management server if it is determined that the user name and the password of the document server are consistent with the stored user name and password.
In a possible implementation manner, in the update system of the dynamic library provided in an embodiment of the present invention, the latest version information of the dynamic library further includes at least one of the following information: the latest version number of the dynamic library file package, the latest version number of the OCX file of the embedded object control and the company code.
In a possible implementation manner, in the update system of the dynamic library provided in the embodiment of the present invention, the document server stores therein a folder named by a dynamic library package number, and a first subfolder and a second subfolder are disposed below the folder, where the first subfolder is used to store an initial version of the dynamic library file, and the second subfolder is used to store an updated version of the dynamic library file.
In a possible implementation manner, in the system for updating a dynamic library provided in the embodiment of the present invention, the operation terminal is further configured to determine that a configuration file storing current dynamic library version information does not exist locally after receiving the response message indicating that the login is successful, or determine that the current dynamic library version information is inconsistent with the latest dynamic library version information after determining that a configuration file storing current dynamic library version information exists locally.
In a possible implementation manner, in the update system of the dynamic library provided in the embodiment of the present invention, the operation terminal is specifically configured to, if it is determined that a configuration file storing version information of a current dynamic library does not exist locally, search, according to the address information, a file with a file name of the latest dynamic library file package number from the document server, and download the latest dynamic library file from a first subfolder under the searched file; or after determining that the configuration file stored with the current dynamic library version information exists locally and determining that the current dynamic library version information is inconsistent with the latest dynamic library version information, searching the file with the file name of the latest dynamic library file package number from the document server according to the address information, and downloading the latest dynamic library file from a second subfolder under the searched file.
In a possible implementation manner, in the update system of the dynamic library provided in the embodiment of the present invention, the operation terminal is further configured to write the latest version information of the dynamic library into the configuration file after updating the dynamic library of the operation system by using the latest dynamic library file.
In a second aspect, an embodiment of the present invention provides an update method for a dynamic library on an operation terminal side, including:
after receiving a login request of a user for logging in an operation system, forwarding the login request to a management server, wherein the login request carries a user name and a password; and
receiving a response message of successful login fed back by the management server, wherein the response message of successful login is determined by the management server according to the user name and the password;
receiving address information of a latest dynamic library file corresponding to a latest dynamic library file packet number sent by a document server, wherein the address information is determined according to the received latest dynamic library file packet number after the document server is connected with the management server; and are
Downloading the latest dynamic library file from the document server according to the address information; and are
And updating the dynamic library of the operation system by using the latest dynamic library file.
In a third aspect, an embodiment of the present invention provides a method for updating a dynamic library on a management server side, including:
receiving a login request sent by an operation terminal, wherein the login request carries a user name and a password;
after the login success is determined, feeding back a response message of the login success to the operation terminal, and determining the identification information of the application component corresponding to the operation system which is logged in by the current user; and
determining document server information corresponding to the identification information of the application component corresponding to the operating system logged in by the current user according to the corresponding relation between the stored identification information of the application component and the document server information;
connecting to a corresponding document server according to the document server information, and sending the stored latest dynamic library version information to the document server, wherein the latest dynamic library version information comprises a latest dynamic library file package number, triggering the document server to establish connection with the management server, determining address information of the latest dynamic library file corresponding to the latest dynamic library file package number according to the received latest dynamic library file package number, and sending the address information to an operation terminal, so that the operation terminal downloads the latest dynamic library file from the document server according to the address information; and updating the dynamic library of the operation system by using the latest dynamic library file.
In a fourth aspect, an embodiment of the present invention provides an operating terminal, including:
the system comprises a sending unit, a management server and a processing unit, wherein the sending unit is used for forwarding a login request to the management server after receiving the login request of a user for logging in an operation system, and the login request carries a user name and a password;
a first receiving unit, configured to receive a response message of successful login, where the response message of successful login is determined by the management server according to the user name and the password;
the second receiving unit is used for receiving address information of the latest dynamic library file corresponding to the latest dynamic library file packet number sent by the document server, wherein the address information is determined according to the received latest dynamic library file packet number after the document server is connected with the management server;
the downloading unit is used for downloading the latest dynamic library file from the document server according to the address information; and are
And the updating unit is used for updating the dynamic library of the operation system by using the latest dynamic library file.
In a fifth aspect, an embodiment of the present invention provides a management server, including:
the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a login request sent by an operation terminal, and the login request carries a user name and a password;
the feedback unit is used for feeding back a response message of successful login to the operation terminal after the successful login is determined, and determining the identification information of the application component corresponding to the operation system which is logged in by the current user; and
the determining unit is used for determining the document server information corresponding to the identification information of the application component corresponding to the operating system logged in by the current user according to the corresponding relation between the stored identification information of the application component and the document server information;
the connection unit is used for connecting to a corresponding document server according to the document server information and sending the stored latest dynamic library version information to the document server, wherein the latest dynamic library version information comprises a latest dynamic library file package number, after the document server is triggered to establish connection with the management server, the address information of the latest dynamic library file corresponding to the latest dynamic library file package number is determined according to the received latest dynamic library file package number and is sent to an operation terminal, so that the operation terminal downloads the latest dynamic library file from the document server according to the address information; and updating the dynamic library of the operation system by using the latest dynamic library file.
In a sixth aspect, an embodiment of the present invention provides a non-volatile computer storage medium, which stores computer-executable instructions for performing the method for updating a dynamic library on an operator terminal side provided in the present application, or performing the method for updating a dynamic library on a management server side provided in the present application.
In a seventh aspect, an embodiment of the present invention provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform a method for updating a dynamic library on an operator terminal side provided herein or a method for updating a dynamic library on a management server side provided herein.
In an eighth aspect, an embodiment of the present invention provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, wherein when the program instructions are executed by a computer, the computer is caused to execute the method for updating a dynamic library on an operation terminal side provided by the present application, or execute the method for updating a dynamic library on a management server side provided by the present application.
The invention has the beneficial effects that:
according to the system, the method and the related equipment for updating the dynamic library, provided by the embodiment of the invention, after a login request of a user for logging in an operation system is received, the login request is forwarded to a management server, wherein the login request carries a user name and a password; receiving a response message of successful login fed back by the management server, wherein the response message of successful login is determined by the management server according to the user name and the password; receiving address information of a latest dynamic library file corresponding to a latest dynamic library file packet number sent by a document server, wherein the address information is determined according to the received latest dynamic library file packet number after the document server is connected with the management server; downloading the latest dynamic library file from the document server according to the address information; and updating the dynamic library of the operation system by using the latest dynamic library file. The method provided by the invention can realize the automatic updating of the dynamic library version, and avoids the situation that the security is threatened due to the manual updating of the dynamic library version in the prior art.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
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 specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic structural diagram of an update system of a dynamic library according to an embodiment of the present invention;
fig. 2a is a schematic structural diagram of a dynamic library update system according to an embodiment of the present invention;
fig. 2b is a schematic flow chart of the management server 2 connecting to the document server 3 according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for updating a dynamic library at an operator terminal according to a second embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for updating a dynamic library on a management server side according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an operation terminal according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a management server according to a fifth embodiment of the present invention;
fig. 7 is a schematic hardware structure diagram of an operation terminal implementing an update method of a dynamic library at an operation terminal side according to a seventh embodiment of the present invention;
fig. 8 is a schematic hardware configuration diagram of a management server implementing an update method of a dynamic library on the management server side according to a ninth embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method and a device for updating a dynamic library and electronic equipment, which are used for avoiding manual intervention and realizing automatic updating of a dynamic library version.
The updating method of the dynamic library provided by the embodiment of the invention can be applied to updating the version of the dynamic library of the magnetic card gas selling system, namely, the operation system can be the magnetic card gas selling system, the client of the operation system is arranged on the operation terminal of a gas company business hall, such as a counter computer, the operation terminal is a WINDOWS-based operation system, and a configuration file of the current version information of the dynamic library is stored on the operation terminal; the management server may be an SAP (System, Application, and Products in data processing) server, and when the magnetic card gas selling System is on the SAP, that is, when a client corresponding to the magnetic card gas selling System is logged in a counter computer, it is equivalent to accessing the magnetic card gas selling System on the SAP, wherein a dynamic library version configuration table is stored in the SAP server, and the table stores the latest dynamic library version information; and the document server in the invention can be a File Transfer Protocol (FTP) server, etc., the FTP server is used to store the latest dynamic library files, i.e. realize the classified storage of the dynamic library files, as shown in fig. 1, it is to be noted that the automatic deployment of the dynamic libraries in the operation terminal, SAP server and FTP server in fig. 1 represents the program involved in completing the update of the dynamic libraries, for example, the automatic deployment of the dynamic libraries in the operation terminal is the program for acquiring and downloading the latest dynamic library files when receiving the address information of the latest dynamic library files fed back by the FTP, and the program for executing the update of the dynamic libraries, etc., by adopting the method provided by the invention, the automatic update and installation of the version of the dynamic library of the magnetic card gas selling system can be realized, the risk of loose deployment caused by the manual installation of the staff in the gas selling business hall can be avoided, the safety of the magnetic card gas selling system is improved.
Taking the operation system as a magnetic card gas selling system as an example for explanation, the process of updating the dynamic library of the magnetic card gas selling system is as follows: when a manufacturer develops a latest dynamic library, on one hand, the latest dynamic library version information is written into a dynamic library version configuration table configured by an SAP server bearing a magnetic card gas selling system, namely the dynamic library version configuration table is used for storing the latest dynamic library version information, and on the other hand, the latest dynamic library file is stored into an FTP server preset by the manufacturer, namely the FTP server is used for storing the latest dynamic library file. In addition, in order to enable the operation terminal to successfully acquire the latest dynamic library file, the manufacturer is further required to store the FTP server information in which the latest dynamic library file is stored in a document server configuration table configured in the SAP server, so that the SAP server establishes a communication connection with the FTP server by using the FTP server information, so that the SAP server can feed back the latest dynamic library information stored in the SAP server to the FTP server, the FTP server finds the address information in which the latest dynamic library file is stored based on the address information, and sends the found address information to the operation terminal, so that the operation terminal can find and download the latest dynamic library file according to the address information, and update of the dynamic library of the operation system is completed.
After the configuration and storage work is finished, when a counter staff of a gas sales business hall starts a computer to start work, logging in a magnetic card gas sales system, namely in the initial loading process, after receiving a login request of the counter staff of the gas sales business hall logging in the magnetic card gas sales system, an operation terminal forwards the login request to an SAP (service access point) server, wherein the login request carries a user name and a password, and after receiving the login request, the SAP server feeds back a response message of successful login to the operation terminal according to the user name and the password after determining successful login and determines identification information of an application component corresponding to the magnetic card gas sales system logged in by the counter staff of the gas sales hall; determining document server information corresponding to the identification information of the application component corresponding to the magnetic card gas selling system logged in by the current gas business hall counter staff according to the corresponding relation between the stored identification information of the application component and the document server information; connecting to a corresponding FTP server according to the document server information, and sending the stored latest dynamic library version information to the FTP server, wherein the latest dynamic library version information comprises the latest dynamic library file packet number; after establishing connection with the SAP server, the FTP server receives the latest dynamic library version information sent by the SAP, and determines the address information of the latest dynamic library file corresponding to the latest dynamic library file packet number according to the latest dynamic library file packet number; and sending the determined address information to the operation terminal. After receiving the address information sent by the FTP server, the operation terminal downloads the latest dynamic library file from the document server according to the address information; and updating the dynamic library of the operation system by using the latest dynamic library file. Therefore, the automatic updating of the dynamic library of the magnetic card gas selling system can be completed, the manual updating operation of counter staff is avoided, and the unified deployment and management effects of the dynamic library are achieved.
In addition, the document server stores a folder named by a dynamic library file package number, and a first subfolder and a second subfolder are arranged below the folder, wherein the first subfolder is used for storing an initial version of a dynamic library file, and the second subfolder is used for storing an updated version of the dynamic library file. Therefore, before the operator terminal acquires the latest dynamic library file according to the address information, the operator terminal can make the following judgment: after receiving the response message of successful login, the operation terminal judges whether a configuration file stored with the current dynamic library version information exists locally, if so, judges whether the current dynamic library version information stored in the configuration file is consistent with the latest dynamic library version information, if not, searches a file with the file name of the latest dynamic library file package number from the document server according to the address information, downloads the latest dynamic library file from a second subfolder under the searched file, and updates the dynamic library of the magnetic card gas selling system according to the acquired latest dynamic library file.
In addition, if the configuration file stored with the current dynamic library version information does not exist in the local terminal, searching the file with the file name of the latest dynamic library file package number from the document server according to the address information, downloading the latest dynamic library file from the first subfolder under the searched file, and updating the dynamic library of the magnetic card gas selling system according to the acquired latest dynamic library file.
Therefore, the method provided by the invention can automatically acquire the latest dynamic library file, then download the latest dynamic library file, and complete the automatic installation and update of the dynamic library, thereby effectively avoiding the counter personnel of the gas sales business hall from manually updating the dynamic library.
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings of the specification, it being understood that the preferred embodiments described herein are merely for illustrating and explaining the present invention, and are not intended to limit the present invention, and that the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
Example one
As shown in fig. 2a, a schematic structural diagram of an update system of a dynamic library provided in an embodiment of the present invention includes an operation terminal 1, a management server 2, and a document server 3, where an interaction process of the operation terminal 1, the management server 2, and the document server 3 is as follows:
s11, after receiving the login request from the user to login to the operating system, the operating terminal 1 forwards the login request to the management server 2.
The login request carries a user name and a password.
In specific implementation, before a counter staff works, the counter staff needs to log in a client on a counter computer, such as a magnetic card gas selling client, and usually needs to input a user name and a password to log in a magnetic card gas selling system, namely initial loading is carried out. It should be noted that, when the terminal receives the user name and the password input by the detected worker, the login request is forwarded to the management server, so that the management server verifies the login request initiated by the worker.
S12, after receiving the login request, the management server 2 verifies the login request according to the user name and the password.
The specific verification process is roughly as follows: the management server 2 is pre-stored with a login table of user names and passwords for each worker to log in the operation system, when the management server 2 receives the user names and the passwords, the user names are firstly found from the login table by using the user names, then whether the received passwords are consistent with the passwords of the user names stored in the login table is determined, if so, the login request is verified, that is, the login is determined to be successful.
S13, after determining that the login is successful, the management server 2 feeds back a response message of successful login to the operator terminal 1.
In specific implementation, the operation terminal 1 receives the response message of successful login, which is fed back by the management server 2.
S14, the management server 2 determines the identification information of the application component corresponding to the operating system in which the current user logs.
In specific implementation, the management server 2 may be an ERP (Enterprise Resource Planning) system, such as an SAP server, and for convenience of description, the embodiment of the present invention is described by taking the management server as the SAP server.
In specific implementation, the operation system related in the embodiment of the present invention is arranged on the SAP server, and in order to implement load balancing, the SAP server is provided with a plurality of operation systems, which have the same function, specifically: the plurality of application components are arranged, each application component corresponds to one operation system, so that the operating personnel of the operation system can not serve the same application component when logging in the operation system, load balance can be realized, the condition that the system is broken down due to too much load of the operation system due to the fact that the operating personnel logs in the same operation system at the same time is effectively avoided.
In addition, by adopting the load balancing method, when a worker of the operation system logs in the operation system, the operation system which is possibly logged in at random is different from the operation systems logged in by other workers, and in order to facilitate distinguishing, the application component corresponding to each operation system is provided with one piece of identification information, so that after the worker logs in the operation system, the SAP server can acquire the identification information of the application component which is depended by the logged-in operation system based on the bottom global variable.
It should be noted that the identification information may be understood as a global visible variable of the SAP application component corresponding to the operating system that the current user logs in, and the global variable is visible to all application components, that is, the global variables of the SAP application components corresponding to the operating systems that different users log in may be different.
S15, the management server 2 determines the document server information corresponding to the identification information of the application component corresponding to the operating system that the current user logs in, according to the correspondence between the stored identification information of the application component and the document server information.
In specific implementation, the management server 2 stores two configuration tables, which are a dynamic library version configuration table and a document server configuration table, respectively, and the document server configuration table stores the corresponding relationship between the identification information of the application components and the document server information, and
the management server 2 may determine, according to the correspondence between the identification information of the application component and the document server information stored in the document server configuration table, the document server information corresponding to the identification information of the application component corresponding to the operating system in which the current user logs in.
In specific implementation, the management server is configured with two tables in advance, wherein the dynamic library configuration table stores the latest dynamic library version information, and the latest dynamic library version information can be written into the dynamic library configuration table by maintenance personnel in advance; the document server configuration table stores the corresponding relationship between the identification information of each application component and the document server information, and it should be noted that the dynamic library configuration table and the document server configuration table are stored in a database preset by the management server, for example, a database corresponding to the SAP server stores the two configuration tables, and also stores the basic information of the user and the gas consumption information of the user, which are required in the magnetic card gas system.
Specifically, based on the magnetic card gas selling system and based on the document server configuration table provided by the SAP server, after the identification information of the application component that the currently logged-in magnetic card gas selling system depends on in the SAP server is determined, the document server information corresponding to the identification information of the application component that the magnetic card gas selling system depends on may be determined according to the correspondence between the identification information of the application component in the document server configuration table and the document server configuration information.
S16, the management server 2 connects to the corresponding document server 3 according to the document server information, and sends the stored latest dynamic library version information to the document server 3.
In specific implementation, the document server information at least includes one of the following items: address information of the document server, a user name and a password of the document server; and
after the management server 2 determines the document server information corresponding to the identification information of the application component corresponding to the operating system in which the current user logs in, when the management server 2 is connected to the document server 3, the specific process is as shown in fig. 2 b:
s161, the management server 2 finds the corresponding document server 3 according to the address information of the document server.
S162, the management server 2 sends a communication connection establishment request to the document server 3.
Wherein, the communication connection establishment request carries the user name and the password of the document server 3;
s163, after receiving the communication connection establishment request, if it is determined that the user name and the password of the document server 3 are both consistent with the stored user name and password, the document server 3 establishes a communication connection with the management server 2.
In specific implementation, the management server 2 establishes a connection with a gateway by using a local Function, and sends the document server information to the gateway, and then the gateway executes the processes of steps S161 to S162 to send the document server information to the document server, so as to implement communication connection.
After establishing the communication connection, the management server 2 sends the latest dynamic library version information to the document server 3, and preferably, the latest dynamic library version information includes the latest dynamic library file package number.
Preferably, the latest dynamic library version information further includes at least one of the following information: the latest dynamic library file package version number, the latest embedded Object Control OCX (OLE) Control Extension file version number, and the company code.
In specific implementation, when a dynamic library (DLL) is updated, the version of the OCX needs to be updated at the same time, the OCX is used for establishing a direct connection relationship between the local terminal and the SAP and the manufacturer, and the company code is used for representing the code of the operating company currently operating the system service.
Specifically, the management server 2 may obtain the latest dynamic library version information from a dynamic library version configuration table stored by the management server 2.
S17, the document server 3 receives the latest dynamic library version information sent by the management server 2, and determines the address information of the latest dynamic library file corresponding to the latest dynamic library file package number according to the latest dynamic library file package number.
In specific implementation, the document server 3 is configured to receive the latest dynamic library version information sent by the management server 2 after establishing a connection with the management server 2, and then determine, according to the latest dynamic library file package number, address information of the latest dynamic library file corresponding to the latest dynamic library file package number.
S18, the document server 3 sends the determined address information to the operator terminal 1.
S19, the operation terminal 1 downloads the latest dynamic library file from the document server 3 according to the address information.
In specific implementation, the operation terminal 1 receives the address information of the latest dynamic library file corresponding to the latest dynamic library file package number sent by the document server 3.
Preferably, the document server 3 stores therein a folder named by a dynamic library file package number, and a first subfolder and a second subfolder are disposed below the folder, wherein the first subfolder is used for storing an initial version of a dynamic library file, and the second subfolder is used for storing an updated version of the dynamic library file.
Specifically, the dynamic library file of the initial version is an installation package of the dynamic library, that is, for a counter machine which does not have a configuration file storing the version information of the current dynamic library, the dynamic library file of the updated version is an update package of the dynamic library, and for a counter machine which has a configuration file storing the version information of the current dynamic library.
Preferably, after receiving the response message indicating that the login is successful, and before receiving address information of the latest dynamic library file corresponding to the latest dynamic library file package number sent by the document server, and downloading the latest dynamic library file from the document server according to the address information, the method further includes:
determining that the configuration file storing the current dynamic library version information does not exist locally, or determining that the current dynamic library version information is inconsistent with the latest dynamic library version information after determining that the configuration file storing the current dynamic library version information exists locally.
In specific implementation, if a configuration file storing the version information of the current dynamic library locally exists, indicating that the current terminal has a dynamic library installed in advance, the version information of the current dynamic library is obtained from the configuration file, such as the OCX file version number of the current dynamic library, the company code of the company executing the current dynamic library, the file package number of the current dynamic library and the file package version number of the current dynamic library.
In specific implementation, when the latest dynamic library version information includes the latest dynamic library file package number, the latest dynamic library file package version number, the latest OCX file version number and the company code, if it is determined that the configuration file locally exists in the operation terminal, whether the current dynamic library version information in the configuration file is consistent with the latest dynamic library version information is judged, and if so, the current dynamic library is the latest dynamic library and does not need to be updated. Otherwise, the current dynamic library is not the latest dynamic library and needs to be updated.
If not, it may indicate that the current terminal has not installed the dynamic library in advance, i.e., the terminal may be handling the gas related task for the first time.
Specifically, the configuration file may be, but is not limited to, an icconfig.
Figure BDA0001373495000000151
For example, the OCX file version number may be: OCXVER ═ V1; the company code may be: BUKRS 0011; the dynamic library file package number may be: DLLNO 1079; the dynamic library package version number may be: DLLVER 1605121, and the like.
Preferably, on this basis, when downloading the latest dynamic library file from the document server 3 according to the address information, the method specifically includes:
if the configuration file storing the version information of the current dynamic library does not exist locally, searching the file with the file name of the latest dynamic library file packet number from the document server according to the address information, and downloading the latest dynamic library file from a first subfolder under the searched file; or
And after determining that the configuration file stored with the current dynamic library version information exists locally and when determining that the current dynamic library version information is inconsistent with the latest dynamic library version information, searching the file with the file name of the latest dynamic library file package number from the document server according to the address information, and downloading the latest dynamic library file from a second subfolder under the searched file.
In specific implementation, when the latest dynamic library file is stored in the FTP server, different folder directories are established on the FTP server according to different file package numbers, such as folders named by the dynamic library file package numbers, and in addition, a subfolder is also arranged under the folder corresponding to each dynamic library file package number, for example, the first subfolder can be an installl subfolder, and the second subfolder can be an UPDATE subfolder. Therefore, each time the latest dynamic library file is developed, a folder named by the current dynamic library file package number is established, and the latest dynamic library file is stored under the folder. It should be noted that the latest dynamic library installation package is stored under the INSTALL subfolder, and the latest UPDATE package of the dynamic library is stored under the UPDATE subfolder. For the host computer with the installed dynamic library, only the UPDATE package needs to be found, namely the UPDATE package is downloaded from the UPDATE subfolder and installed; for a host not installed with a dynamic library, an installation package of the latest dynamic library file needs to be found, that is, the installation package is downloaded from the INSTALL subfolder and installed.
Specifically, the folder named by the number may be found according to the address information, and the latest dynamic library file may be obtained from the first folder or the second folder included in the folder named by the number.
Preferably, the dynamic library file may be a dynamic library file corresponding to an installation package of a latest dynamic library, or may also be a dynamic library file corresponding to an update package of the latest dynamic library, and for a platform machine which does not have a configuration file storing version information of a current dynamic library, the dynamic library file corresponding to the installation package needs to be acquired from an INSTALL folder; and for the counter machine with the configuration file stored with the current dynamic library version information, acquiring the dynamic library file corresponding to the UPDATE package from the UPDATE folder.
S110, the operation terminal 1 updates the dynamic library of the operation system by using the latest dynamic library file.
Specifically, the dynamic library file comprises an iccard.bat file, an OCX file and the like, and after the latest dynamic library file is obtained, the latest dynamic library file is downloaded to the operation terminal, and a command in the iccard.bat file is automatically executed to complete installation or update of the latest dynamic library, so that the effect of automatic installation and deployment is achieved.
Preferably, the operation terminal 1 further includes, after updating the dynamic library of the operation system by using the latest dynamic library file:
and writing the latest dynamic library version information into the configuration file.
In specific implementation, if the operation terminal 1 does not locally have a configuration file storing the version information of the current dynamic library, after updating the dynamic library of the operation system, a configuration file is established in advance, and then the latest version information of the dynamic library is written into the established configuration file. When the operator terminal 1 has a configuration file with current dynamic library version information locally stored, only the latest dynamic library version information needs to be used to update the configuration file.
In the system for updating a dynamic library provided in the first embodiment of the present invention, after receiving a login request from a user to log in an operating system, an operating terminal 1 forwards the login request to a management server 2; after receiving the login request, the management server 2 verifies the login request according to the user name and the password; after determining that the login is successful, the management server 2 feeds back a response message of successful login to the operation terminal 1, determines identification information of an application component corresponding to an operation system which is logged in by a current user, determines document server information corresponding to the identification information of the application component corresponding to the operation system which is logged in by the current user according to a corresponding relation between the stored identification information of the application component and the document server information, connects to a corresponding document server 3 according to the document server information, and sends the stored latest dynamic library version information to the document server 3; the document server 3 receives the latest dynamic library version information sent by the management server 2, determines the address information of the latest dynamic library file corresponding to the latest dynamic library file package number according to the latest dynamic library file package number, and sends the determined address information to the operation terminal 1, so that the operation terminal 1 downloads the latest dynamic library file from the document server 3 according to the address information, and then updates the dynamic library of the operation system by using the latest dynamic library file. The system provided by the invention can realize automatic updating of the dynamic library version, and avoids the situation that the security is threatened due to manual updating of the dynamic library version in the prior art.
Example two
As shown in fig. 3, a schematic flow chart of the method for updating a dynamic library at an operation terminal side provided by the present invention may include the following steps:
and S21, after receiving the login request of the user for logging in the operation system, forwarding the login request to the management server.
The login request carries a user name and a password.
And S22, receiving the response message of successful login fed back by the management server.
And the response message of successful login is determined by the management server according to the user name and the password.
And S23, receiving the address information of the latest dynamic library file corresponding to the latest dynamic library file package number sent by the document server.
And the address information is determined according to the received latest dynamic library file packet number after the document server is connected with the management server.
And S24, downloading the latest dynamic library file from the document server according to the address information.
Preferably, the document server stores therein a folder named by a dynamic library file package number, and a first subfolder and a second subfolder are disposed below the folder, wherein the first subfolder is used for storing an initial version of a dynamic library file, and the second subfolder is used for storing an updated version of the dynamic library file.
Preferably, after receiving the response message that the login is successful and fed back by the management server, the method further includes:
determining that the configuration file storing the current dynamic library version information does not exist locally, or determining that the current dynamic library version information is inconsistent with the latest dynamic library version information after determining that the configuration file storing the current dynamic library version information exists locally.
Specifically, the following procedure may be implemented when step S24 is executed:
if the configuration file storing the version information of the current dynamic library does not exist locally, searching the file with the file name of the latest dynamic library file packet number from the document server according to the address information, and downloading the latest dynamic library file from a first subfolder under the searched file; or
And after determining that the configuration file stored with the current dynamic library version information exists locally and when determining that the current dynamic library version information is inconsistent with the latest dynamic library version information, searching the file with the file name of the latest dynamic library file package number from the document server according to the address information, and downloading the latest dynamic library file from a second subfolder under the searched file.
And S25, updating the dynamic library of the operation system by using the latest dynamic library file.
Preferably, after updating the dynamic library of the operating system by using the latest dynamic library file, the method further includes:
and writing the latest dynamic library version information into the configuration file.
In specific implementation, the implementation of steps S21 to S25 in the second embodiment of the present invention may refer to the implementation process of the operation terminal in steps S11 to S110 in the first embodiment, and repeated steps are described in detail.
In the method for updating a dynamic library provided in the second embodiment of the present invention, after a login request for a user to log in an operating system is received, the login request is forwarded to a management server, where the login request carries a user name and a password; receiving a response message of successful login fed back by the management server, wherein the response message of successful login is determined by the management server according to the user name and the password; receiving address information of a latest dynamic library file corresponding to a latest dynamic library file packet number sent by a document server, wherein the address information is determined according to the received latest dynamic library file packet number after the document server is connected with the management server; downloading the latest dynamic library file from the document server according to the address information; and updating the dynamic library of the operation system by using the latest dynamic library file. Therefore, automatic installation or updating of the dynamic library is realized, and the situation that the security is threatened due to manual updating of the version of the dynamic library in the prior art is avoided. In addition, by adopting the method provided by the invention, a manufacturer can configure the latest version information of the dynamic library on the management server and configure the latest file of the dynamic library on the document server so as to achieve the automatic installation, updating and deployment of the dynamic library.
EXAMPLE III
As shown in fig. 4, a flowchart of a method for updating a dynamic library on a management server side provided by the third embodiment of the present invention may include the following steps:
and S31, receiving the login request sent by the operation terminal.
And S32, after the login success is determined, feeding back a response message of the login success to the operation terminal, and determining the identification information of the application component corresponding to the operation system which is logged in by the current user.
S33, determining the document server information corresponding to the identification information of the application component corresponding to the operating system logged in by the current user according to the corresponding relation between the stored identification information of the application component and the document server information.
And S34, connecting to the corresponding document server according to the document server information, and sending the stored latest dynamic library version information to the document server.
The latest dynamic library version information comprises a latest dynamic library file packet number, and after the document server is triggered to establish connection with the management server, the address information of the latest dynamic library file corresponding to the latest dynamic library file packet number is determined according to the received latest dynamic library file packet number and is sent to the operation terminal, so that the operation terminal downloads the latest dynamic library file from the document server according to the address information; and updating the dynamic library of the operation system by using the latest dynamic library file.
In specific implementation, the implementation of steps S31 to S34 in the third embodiment of the present invention may refer to the implementation process of the management server in steps S11 to S110 in the first embodiment, and repeated steps are described in detail.
The third embodiment of the present invention provides a method for updating a dynamic library on a management server side, where a login request sent by an operation terminal is received, after a successful login is determined, a response message of the successful login is fed back to the operation terminal, and identification information of an application component corresponding to an operation system that a current user logs in is determined; determining document server information corresponding to the identification information of the application component corresponding to the operating system logged in by the current user according to the corresponding relation between the stored identification information of the application component and the document server information; connecting to a corresponding document server according to the document server information, and sending the stored latest dynamic library version information to the document server, wherein the latest dynamic library version information comprises a latest dynamic library file package number, triggering the document server to establish connection with the management server, determining address information of the latest dynamic library file corresponding to the latest dynamic library file package number according to the received latest dynamic library file package number, and sending the address information to an operation terminal, so that the operation terminal downloads the latest dynamic library file from the document server according to the address information; and updating the dynamic library of the operation system by using the latest dynamic library file. The method provided by the invention can realize the automatic updating of the dynamic library version, and avoids the situation that the security is threatened due to the manual updating of the dynamic library version in the prior art.
Example four
Based on the same inventive concept, the embodiment of the present invention further provides an operation terminal, and since the principle of the device for solving the problem is similar to the method for updating the dynamic library at the operation terminal side, the implementation of the device may refer to the implementation of the method, and repeated details are not described again.
As shown in fig. 5, a schematic structural diagram of an operating terminal according to a fourth embodiment of the present invention includes a sending unit 41, a first receiving unit 42, a second receiving unit 43, a downloading unit 44, and an updating unit 45, where:
a sending unit 41, configured to forward, after receiving a login request for a user to log in an operating system, the login request to a management server, where the login request carries a user name and a password;
a first receiving unit 42, configured to receive a response message of successful login, which is fed back by the management server, where the response message of successful login is determined by the management server according to the user name and the password;
a second receiving unit 43, configured to receive address information of a latest dynamic library file corresponding to a latest dynamic library file package number sent by a document server, where the address information is determined according to the received latest dynamic library file package number after the document server establishes a connection with the management server;
a downloading unit 44, configured to download the latest dynamic library file from the document server according to the address information; and are
An updating unit 45, configured to update the dynamic library of the operating system by using the latest dynamic library file.
Preferably, the document server stores therein a folder named by a dynamic library file package number, and a first subfolder and a second subfolder are disposed below the folder, wherein the first subfolder is used for storing an initial version of a dynamic library file, and the second subfolder is used for storing an updated version of the dynamic library file.
Preferably, the operation terminal further includes:
a determining unit, configured to determine that a configuration file storing current dynamic library version information does not exist locally after the first receiving unit receives the response message that the login is successful and is fed back by the management server, or determine that the current dynamic library version information is inconsistent with the latest dynamic library version information after determining that a configuration file storing current dynamic library version information exists locally.
In specific implementation, the downloading unit 44 is specifically configured to, if it is determined that there is no configuration file in which the current dynamic library version information is stored locally, find, according to the address information, a file with a file name of the latest dynamic library file package number from the document server, and download the latest dynamic library file from a first subfolder under the found file; or after determining that the configuration file stored with the current dynamic library version information exists locally and determining that the current dynamic library version information is inconsistent with the latest dynamic library version information, searching the file with the file name of the latest dynamic library file package number from the document server according to the address information, and downloading the latest dynamic library file from a second subfolder under the searched file.
Preferably, the operation terminal further includes:
a writing unit, configured to write the latest dynamic library version information into the configuration file after the updating unit updates the dynamic library of the operating system with the latest dynamic library file.
For convenience of description, the above parts are separately described as modules (or units) according to functional division. Of course, the functionality of the various modules (or units) may be implemented in the same or in multiple pieces of software or hardware in practicing the invention. For example, the operation terminal provided by the fourth embodiment of the present invention may be configured with a magnetic card gas selling system, and the operation terminal acquires the latest dynamic library file, thereby updating the dynamic library of the operation system.
EXAMPLE five
As shown in fig. 6, a schematic structural diagram of a management server provided in the fifth embodiment of the present invention includes: a receiving unit 51, a feedback unit 52, a determining unit 53 and a connecting unit 54, wherein:
a receiving unit 51, configured to receive a login request sent by an operation terminal, where the login request carries a user name and a password;
a feedback unit 52, configured to, after determining that the login is successful, feed back a response message of successful login to the operation terminal, and determine identifier information of an application component corresponding to an operation system that a current user logs in; and
a determining unit 53, configured to determine, according to a correspondence between stored identification information of an application component and document server information, document server information corresponding to identification information of an application component corresponding to an operating system in which the current user logs in;
a connection unit 54, configured to connect to a corresponding document server according to the document server information, and send the stored latest dynamic library version information to the document server, where the latest dynamic library version information includes a latest dynamic library file package number, and after triggering the document server to establish a connection with the management server, determine, according to the received latest dynamic library file package number, address information of a latest dynamic library file corresponding to the latest dynamic library file package number, and send the address information to an operation terminal, so that the operation terminal downloads the latest dynamic library file from the document server according to the address information; and updating the dynamic library of the operation system by using the latest dynamic library file.
Preferably, the document server information includes at least one of: document server address information, a document server user name and a password; and
the connection unit 54 is specifically configured to find a corresponding document server according to the address information of the document server; and sending a communication connection establishment request to the document server, wherein the communication connection establishment request carries the user name and the password of the document server, and triggering the document server to establish communication connection with the management server after receiving the communication connection establishment request if the user name and the password of the document server are consistent with the stored user name and the stored password.
EXAMPLE six
An embodiment of the present application provides a nonvolatile computer storage medium, where the computer storage medium stores computer-executable instructions, and the computer-executable instructions may execute the method for updating a dynamic library in any of the second method embodiment or the third method embodiment.
EXAMPLE seven
Fig. 7 is a schematic diagram of a hardware structure of an operator terminal implementing an update method of a dynamic library at an operator terminal according to a seventh embodiment of the present invention, and as shown in fig. 7, the operator terminal includes:
one or more processors 610 and a memory 620, with one processor 610 being an example in fig. 7.
The operator terminal performing the method for updating a dynamic library on the operator terminal side may further include: an input device 630 and an output device 640.
The processor 610, the memory 620, the input device 630, and the output device 640 may be connected by a bus or other means, and fig. 7 illustrates an example of a connection by a bus.
The memory 620 is used as a non-volatile computer-readable storage medium, and can be used for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules/units (for example, the transmitting unit 41, the first receiving unit 42, the second receiving unit 43, the downloading unit 44, and the updating unit 45 shown in fig. 5) corresponding to the update method of the dynamic library on the operation terminal side in the embodiment of the present application. The processor 610 executes various functional applications and data processing of the server or the smart terminal by running the nonvolatile software program, instructions and modules/units stored in the memory 620, that is, implements the dynamic library updating method provided in the second embodiment of the method.
The memory 620 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created from use of an updating device of the dynamic library, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 620 optionally includes memory located remotely from the processor 610, which may be connected to the operator terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 630 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the operator terminal. The output device 640 may include a display device such as a display screen.
The one or more modules are stored in the memory 620 and, when executed by the one or more processors 610, perform a method for updating a dynamic library in any of the above-described method embodiments two.
The product can execute the method provided by the second embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided in the second embodiment of the present application.
The electronic device of the embodiments of the present application exists in various forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. Such devices include audio and video players (e.g., ipods), handheld game consoles, electronic books, as well as smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic devices with data interaction functions.
Example eight
An eighth embodiment of the present application provides a computer program product, wherein the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions, wherein when the program instructions are executed by a computer, the computer is caused to execute the method for updating a dynamic library according to any one of the second or third embodiment of the present application.
Example nine
Fig. 8 is a schematic hardware configuration diagram of a management server implementing an update method of a dynamic library on a management server side according to a ninth embodiment of the present invention, and as shown in fig. 8, the management server includes:
one or more processors 710 and a memory 720, one processor 710 being illustrated in fig. 8.
The operator terminal performing the update method of the dynamic library on the management server side may further include: an input device 730 and an output device 740.
The processor 710, the memory 720, the input device 730, and the output device 740 may be connected by a bus or other means, such as the bus connection in fig. 8.
The memory 720, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules/units (e.g., the receiving unit 51, the feedback unit 52, the determining unit 53, and the connecting unit 54 shown in fig. 6) corresponding to the update method of the dynamic library on the management server side in the embodiment of the present application. The processor 710 executes various functional applications and data processing of the server or the smart terminal by running the nonvolatile software program, instructions and modules/units stored in the memory 720, that is, implements the dynamic library updating method provided by the third embodiment of the method.
The memory 720 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created from use of an updating device of the dynamic library, and the like. Further, the memory 720 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 720 may optionally include memory located remotely from processor 710, which may be connected to a management server via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 730 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the management server. The output device 740 may include a display device such as a display screen.
The one or more modules are stored in the memory 720 and when executed by the one or more processors 610, perform a method for updating a dynamic library in any of the above-described method embodiments.
The product can execute the method provided by the third embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided in the third embodiment of the present application.
The electronic device of the embodiments of the present application exists in various forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. Such devices include audio and video players (e.g., ipods), handheld game consoles, electronic books, as well as smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic devices with data interaction functions.
The dynamic library updating device provided by the embodiment of the application can be realized by a computer program. It should be understood by those skilled in the art that the above-mentioned module division is only one of many module division, and if the module division is divided into other modules or not, it should be within the scope of the present application as long as the updating apparatus of the dynamic library has the above-mentioned functions.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (24)

1. A system for updating a dynamic library, comprising: the system comprises an operation terminal, a management server and a document server, wherein the management server is provided with a plurality of application components, each application component corresponds to an operation system, and the method comprises the following steps:
the operation terminal is used for forwarding a login request to the management server after receiving the login request of a user for logging in an operation system, wherein the login request carries a user name and a password; receiving a response message of successful login fed back by the management server; receiving address information of the latest dynamic library file corresponding to the latest dynamic library file package number sent by the document server, and downloading the latest dynamic library file from the document server according to the address information; updating the dynamic library of the operation system by using the latest dynamic library file;
the management server is used for feeding back a response message of successful login to the operation terminal after the login success is determined according to the user name and the password after the login request is received, and determining the identification information of the application component corresponding to the operation system which is logged in by the current user; determining document server information corresponding to the identification information of the application component corresponding to the operating system logged in by the current user according to the corresponding relation between the stored identification information of the application component and the document server information; connecting to a corresponding document server according to the document server information, and sending the stored latest dynamic library version information to the document server, wherein the latest dynamic library version information comprises the latest dynamic library file packet number;
the document server is used for receiving the latest dynamic library version information sent by the management server after establishing connection with the management server, and determining the address information of the latest dynamic library file corresponding to the latest dynamic library file packet number according to the latest dynamic library file packet number; and sending the determined address information to the operation terminal.
2. The system of claim 1, wherein the document server information includes at least one of: address information of the document server, a user name and a password of the document server; and
the management server is specifically configured to find a corresponding document server according to the address information of the document server, and send a communication connection establishment request to the document server, where the communication connection establishment request carries a user name and a password of the document server;
the document server is specifically configured to, after receiving the communication connection establishment request, establish a communication connection with the management server if it is determined that the user name and the password of the document server are consistent with the stored user name and password.
3. The system of claim 1, wherein the up-to-date dynamic library version information further comprises at least one of: the latest version number of the dynamic library file package, the latest version number of the OCX file of the embedded object control and the company code.
4. The system according to any one of claims 1 to 3, wherein the document server stores therein folders named by dynamic library file package numbers, and a first subfolder and a second subfolder are disposed below the folders, wherein the first subfolder is used for storing an initial version of a dynamic library file, and the second subfolder is used for storing an updated version of the dynamic library file.
5. The system of claim 4,
the operation terminal is further configured to determine that a configuration file storing the current dynamic library version information does not exist locally after receiving the response message indicating that the login is successful, or determine that the current dynamic library version information is inconsistent with the latest dynamic library version information after determining that the configuration file storing the current dynamic library version information exists locally.
6. The system of claim 5,
the operation terminal is specifically configured to, if it is determined that there is no configuration file in which the current dynamic library version information is stored locally, search, according to the address information, a file with a file name of the latest dynamic library file package number from the document server, and download the latest dynamic library file from a first subfolder under the searched file; or after determining that the configuration file stored with the current dynamic library version information exists locally and determining that the current dynamic library version information is inconsistent with the latest dynamic library version information, searching the file with the file name of the latest dynamic library file package number from the document server according to the address information, and downloading the latest dynamic library file from a second subfolder under the searched file.
7. The system of claim 6,
the operation terminal is further configured to write the latest dynamic library version information into the configuration file after updating the dynamic library of the operation system using the latest dynamic library file.
8. A method for updating a dynamic library is applied to an updating system of the dynamic library, and is characterized in that the updating system comprises an operation terminal, a management server and a document server, a plurality of application components are arranged in the management server, and each application component corresponds to one operation system, and the method comprises the following steps:
the method comprises the steps that after receiving a login request of a user for logging in an operation system, the operation terminal forwards the login request to a management server, wherein the login request carries a user name and a password; and
receiving a response message of successful login fed back by the management server, wherein the response message of successful login is determined by the management server according to the user name and the password;
receiving address information of a latest dynamic library file corresponding to a latest dynamic library file package number sent by a document server, wherein the address information is determined according to the latest dynamic library file package number in the latest dynamic library version information sent by a management server after the document server is connected with the management server, the document server is connected with the management server according to document server information, and the document server information is determined by the management server according to identification information of an application component corresponding to an operating system logged in by a current user and a corresponding relation between stored identification information of the application component and the document server information; and are
Downloading the latest dynamic library file from the document server according to the address information; and are
And updating the dynamic library of the operation system by using the latest dynamic library file.
9. The method of claim 8, wherein the document server has stored therein a folder named by a dynamic library package number, and wherein a first subfolder and a second subfolder are disposed below the folder, wherein the first subfolder is used for storing an initial version of the dynamic library file, and wherein the second subfolder is used for storing an updated version of the dynamic library file.
10. The method of claim 9, further comprising, after receiving a response message that the login is successful, fed back by the management server:
determining that the configuration file storing the current dynamic library version information does not exist locally, or determining that the current dynamic library version information is inconsistent with the latest dynamic library version information after determining that the configuration file storing the current dynamic library version information exists locally.
11. The method according to claim 10, wherein downloading the latest dynamic library file from the document server according to the address information comprises:
if the configuration file storing the version information of the current dynamic library does not exist locally, searching the file with the file name of the latest dynamic library file packet number from the document server according to the address information, and downloading the latest dynamic library file from a first subfolder under the searched file; or
And after determining that the configuration file stored with the current dynamic library version information exists locally and when determining that the current dynamic library version information is inconsistent with the latest dynamic library version information, searching the file with the file name of the latest dynamic library file package number from the document server according to the address information, and downloading the latest dynamic library file from a second subfolder under the searched file.
12. The method of claim 11, after updating the dynamic library of the operating system with the up-to-date dynamic library file, further comprising:
and writing the latest dynamic library version information into the configuration file.
13. A method for updating a dynamic library is applied to an updating system of the dynamic library, and is characterized in that the updating system comprises an operation terminal, a management server and a document server, a plurality of application components are arranged in the management server, each application component corresponds to one operation system, and the method is applied to the management server and comprises the following steps:
receiving a login request sent by an operation terminal, wherein the login request carries a user name and a password;
after the login success is determined, feeding back a response message of the login success to the operation terminal, and determining the identification information of the application component corresponding to the operation system which is logged in by the current user; and
determining document server information corresponding to the identification information of the application component corresponding to the operating system logged in by the current user according to the corresponding relation between the stored identification information of the application component and the document server information;
connecting to a corresponding document server according to the document server information, and sending the stored latest dynamic library version information to the document server, wherein the latest dynamic library version information comprises a latest dynamic library file package number, triggering the document server to establish connection with the management server, determining address information of the latest dynamic library file corresponding to the latest dynamic library file package number according to the received latest dynamic library file package number, and sending the address information to an operation terminal, so that the operation terminal downloads the latest dynamic library file from the document server according to the address information; and updating the dynamic library of the operation system by using the latest dynamic library file.
14. The method of claim 13, wherein the document server information includes at least one of: document server address information, a document server user name and a password; and
connecting to a corresponding document server according to the document server information specifically includes:
searching a corresponding document server according to the address information of the document server; and are
Sending a communication connection establishment request to the document server, wherein the communication connection establishment request carries the user name and the password of the document server, and triggering the document server to establish communication connection with the management server if the user name and the password of the document server are consistent with the stored user name and the password after receiving the communication connection establishment request.
15. An operation terminal is applied to an updating system of a dynamic library, and is characterized in that the updating system comprises the operation terminal, a management server and a document server, wherein a plurality of application components are arranged in the management server, each application component corresponds to one operation system, and the operation terminal comprises:
the system comprises a sending unit, a management server and a plurality of operating systems, wherein the sending unit is used for forwarding a login request to the management server after receiving the login request of a user for logging in the operating systems, the login request carries a user name and a password, and each operating system corresponds to an application component;
the first receiving unit is used for receiving a response message of successful login fed back by the management server, wherein the response message of successful login is determined by the management server according to the user name and the password;
a second receiving unit, configured to receive address information of a latest dynamic library file corresponding to a latest dynamic library file package number sent by a document server, where the address information is determined according to a latest dynamic library file package number in latest dynamic library version information sent by a management server after the document server establishes a connection with the management server, the document server is connected by the management server according to document server information, and the document server information is determined by the management server according to identification information of an application component corresponding to an operating system that a current user logs in, and a correspondence between stored identification information of the application component and the document server information;
the downloading unit is used for downloading the latest dynamic library file from the document server according to the address information; and are
And the updating unit is used for updating the dynamic library of the operation system by using the latest dynamic library file.
16. The operator terminal of claim 15, wherein the document server stores therein a folder named by a dynamic library package number, and a first subfolder and a second subfolder are disposed below the folder, wherein the first subfolder is used for storing an initial version of the dynamic library file, and the second subfolder is used for storing an updated version of the dynamic library file.
17. The operator terminal of claim 16, further comprising:
a determining unit, configured to determine that a configuration file storing current dynamic library version information does not exist locally after the first receiving unit receives the response message that the login is successful and is fed back by the management server, or determine that the current dynamic library version information is inconsistent with the latest dynamic library version information after determining that a configuration file storing current dynamic library version information exists locally.
18. The operator terminal of claim 17,
the downloading unit is specifically configured to, if it is determined that a configuration file storing the current dynamic library version information does not exist locally, find a file with a file name of the latest dynamic library file package number from the document server according to the address information, and download the latest dynamic library file from a first subfolder under the found file; or after determining that the configuration file stored with the current dynamic library version information exists locally and determining that the current dynamic library version information is inconsistent with the latest dynamic library version information, searching the file with the file name of the latest dynamic library file package number from the document server according to the address information, and downloading the latest dynamic library file from a second subfolder under the searched file.
19. The operator terminal of claim 18, further comprising:
a writing unit, configured to write the latest dynamic library version information into the configuration file after the updating unit updates the dynamic library of the operating system with the latest dynamic library file.
20. A management server is applied to an updating system of a dynamic library, and is characterized in that the updating system comprises an operation terminal, a management server and a document server, a plurality of application components are arranged in the management server, each application component corresponds to one operation system, and the management server comprises:
the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a login request sent by an operation terminal, and the login request carries a user name and a password;
the feedback unit is used for feeding back a response message of successful login to the operation terminal after the successful login is determined, and determining the identification information of the application component corresponding to the operation system which is logged in by the current user; and
the determining unit is used for determining document server information corresponding to the identification information of the application component corresponding to the operating system logged in by the current user according to the corresponding relation between the stored identification information of the application component and the document server information, wherein each operating system corresponds to one application component;
the connection unit is used for connecting to a corresponding document server according to the document server information and sending the stored latest dynamic library version information to the document server, wherein the latest dynamic library version information comprises a latest dynamic library file package number, after the document server is triggered to establish connection with the management server, the address information of the latest dynamic library file corresponding to the latest dynamic library file package number is determined according to the received latest dynamic library file package number and is sent to an operation terminal, so that the operation terminal downloads the latest dynamic library file from the document server according to the address information; and updating the dynamic library of the operation system by using the latest dynamic library file.
21. The management server according to claim 20, wherein the document server information includes at least one of: document server address information, a document server user name and a password; and
the connection unit is specifically configured to find a corresponding document server according to the address information of the document server; and sending a communication connection establishment request to the document server, wherein the communication connection establishment request carries the user name and the password of the document server, and triggering the document server to establish communication connection with the management server after receiving the communication connection establishment request if the user name and the password of the document server are consistent with the stored user name and the stored password.
22. A non-transitory computer storage medium storing computer-executable instructions for performing the method of any of claims 8 to 12 or performing the method of any of claims 13 to 14.
23. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 8 to 12 or to perform the method of any one of claims 13 to 14.
24. A computer program product, characterized in that the computer program product comprises a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, wherein the program instructions, when executed by a computer, cause the computer to perform the method of any of claims 8 to 12 or to perform the method of any of claims 13 to 14.
CN201710672614.8A 2017-08-08 2017-08-08 Dynamic library updating system, method and related equipment Active CN107592338B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710672614.8A CN107592338B (en) 2017-08-08 2017-08-08 Dynamic library updating system, method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710672614.8A CN107592338B (en) 2017-08-08 2017-08-08 Dynamic library updating system, method and related equipment

Publications (2)

Publication Number Publication Date
CN107592338A CN107592338A (en) 2018-01-16
CN107592338B true CN107592338B (en) 2021-07-06

Family

ID=61042050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710672614.8A Active CN107592338B (en) 2017-08-08 2017-08-08 Dynamic library updating system, method and related equipment

Country Status (1)

Country Link
CN (1) CN107592338B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108897270A (en) * 2018-06-12 2018-11-27 苏州赛腾精密电子股份有限公司 Method for uploading, device, PLC, storage medium and the system of product data
CN109189496B (en) * 2018-08-03 2021-04-23 平安科技(深圳)有限公司 Dynamic library information acquisition method and device for application program
CN109960511B (en) * 2019-03-22 2022-09-09 北京智游网安科技有限公司 Dynamic library issuing method based on virtualization technology, storage medium and intelligent terminal
CN109933410B (en) * 2019-03-22 2021-06-01 北京智游网安科技有限公司 Virtual instruction issuing method and system based on virtualization technology
CN111340460A (en) * 2020-03-25 2020-06-26 江苏安泰信息科技发展有限公司 Management system and operation method for safety and occupational health technology service organization
CN113986827A (en) * 2021-10-21 2022-01-28 富士胶片(中国)投资有限公司 File multi-version management method and corresponding server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005034547A1 (en) * 2003-09-19 2005-04-14 Pctel, Inc. Apparatus and method for automated updating system for wireless networks
CN104657177A (en) * 2015-02-12 2015-05-27 北京深思数盾科技有限公司 Program automatic update method
CN105487889A (en) * 2015-11-26 2016-04-13 小米科技有限责任公司 Application interface updating method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005034547A1 (en) * 2003-09-19 2005-04-14 Pctel, Inc. Apparatus and method for automated updating system for wireless networks
CN104657177A (en) * 2015-02-12 2015-05-27 北京深思数盾科技有限公司 Program automatic update method
CN105487889A (en) * 2015-11-26 2016-04-13 小米科技有限责任公司 Application interface updating method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
天然气销售系统统一读卡器的设计和实现;王爱玲等;《上海煤气》;20140630(第3期);第44-46页 *
智能电表检验装置设计;张林;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》;20140115;正文第4章,第4.1节,第4.3节 *

Also Published As

Publication number Publication date
CN107592338A (en) 2018-01-16

Similar Documents

Publication Publication Date Title
CN107592338B (en) Dynamic library updating system, method and related equipment
CN109068179B (en) Multi-platform live broadcast method, computer device and computer readable storage medium
US20210374810A1 (en) Smart broadcasting device
EP3876496B1 (en) Mobile terminal and computer program product for widget sharing
CN108235763B (en) Detection system, method and related device
US8978027B2 (en) Method of disseminating updated drivers to mobile computing devices and a dissemination system therefor
US20160162271A1 (en) Application Migration Method, Device and System for Mobile Terminal
CN104601685A (en) Music playing method and device of smart sound box
CN111314437B (en) Resource package downloading method and device, storage medium and electronic device
CN109669714A (en) Firmware upgrade method, device and computer readable storage medium
CN104767767A (en) Method, device and system for sharing Internet access data and network equipment
CN109284140B (en) Configuration method and related equipment
US20170317879A1 (en) Cart Mode Provisioning Of Shared Computing Devices
US20160241535A1 (en) Terminal authentication and registration system, method for authenticating and registering terminal, and storage medium
CN110753091A (en) Cloud platform management method and device
CN103685515A (en) Method and system for downloading application
CN110365692A (en) A kind of server log method and system
CN103678125A (en) Method and system for debugging codes
CN108833961B (en) Method, server and system for acquiring flight record data
CN117573553A (en) Method, device, equipment and storage medium for debugging automobile machine
CN112685203B (en) Operation acquisition method and device, storage medium and electronic equipment
CN106790343B (en) Resource downloading method and server
JP2015072621A (en) Automatic vending machine setting system
CN114610449A (en) Multi-cluster resource operation method and system based on unified request entry
CN111082984A (en) Method and device for simulating login of network equipment to carry out command line interaction

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