CN113190565A - Data updating method and device, storage medium and electronic device - Google Patents

Data updating method and device, storage medium and electronic device Download PDF

Info

Publication number
CN113190565A
CN113190565A CN202110369318.7A CN202110369318A CN113190565A CN 113190565 A CN113190565 A CN 113190565A CN 202110369318 A CN202110369318 A CN 202110369318A CN 113190565 A CN113190565 A CN 113190565A
Authority
CN
China
Prior art keywords
language
data
language list
list
updating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110369318.7A
Other languages
Chinese (zh)
Other versions
CN113190565B (en
Inventor
赵凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110369318.7A priority Critical patent/CN113190565B/en
Publication of CN113190565A publication Critical patent/CN113190565A/en
Application granted granted Critical
Publication of CN113190565B publication Critical patent/CN113190565B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/263Language identification
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a data updating method and device, a storage medium and an electronic device, wherein the method comprises the following steps: acquiring a first language list corresponding to a target website and a second language list corresponding to a target database, wherein the first language list is used for indicating multiple languages allowed to be adopted by the target website, and the second language list is used for indicating multiple languages allowed to be adopted by application software corresponding to the target database; and updating the second language list according to the first language list under the condition that the first language list and the second language list are detected to be inconsistent. By adopting the technical scheme, the problems of high complexity and the like in the process of adapting the application software to different languages are solved.

Description

Data updating method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a data updating method and apparatus, a storage medium, and an electronic apparatus.
Background
With the coming of economic globalization, the market also ranges from a single country to multiple countries, but with the market expansion of more and more countries and regions, the multi-language adaptation becomes an essential function, but the application software terminal lacks the capability of adapting to different regions and languages, and is a great challenge for the popularization and the use of the current application software.
In the past, aiming at the problem that the application software does not support national and regional languages in the using process, measures such as text editing, configuration file loading and the like are often adopted to ensure the adaptive capacity to different languages. However, in the process of adapting application software to different languages, the problems of complex configuration, frequent modification and the like obviously occur, and further the manual input amount is increased.
Aiming at the problems of high complexity and the like in the process of adapting application software to different languages in the related technology, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a data updating method and device, a storage medium and an electronic device, and at least solves the problems of high complexity and the like in the process of adapting application software to different languages.
According to an embodiment of the present invention, there is provided a data updating method including: acquiring a first language list corresponding to a target website and a second language list corresponding to a target database, wherein the first language list is used for indicating multiple languages allowed to be adopted by the target website, and the second language list is used for indicating multiple languages allowed to be adopted by application software corresponding to the target database; and updating the second language list according to the first language list under the condition that the first language list and the second language list are detected to be inconsistent.
In one exemplary embodiment, updating the second language list according to the first language list includes: acquiring differential language data of the first language list and the second language list from the first language list, wherein the differential language data is used for indicating language data which is not contained in the second language list and is contained in the first language list; updating the second language list according to the differential language data.
In an exemplary embodiment, updating the second language list based on the differential language data includes at least one of: adding the differential language data to the second language list by an auto-sync program; adding the differential language data to the second language list by a synchronization operation of a target object.
In one exemplary embodiment, updating the second language list based on the differential language data includes: determining a first interface of a server side of application software, wherein the first interface is used for adding the differential language data into the target database; adding the differential language data to the second language list through the first interface to update the second language list.
In an exemplary embodiment, after updating the second language list according to the first language list, the method further includes: receiving a data request sent by a target object through a second interface, wherein the identifier of the second interface and the data request have a one-to-one correspondence relationship; and responding to the data request, acquiring target data corresponding to the data request from the target database, and displaying the target data on an interface of the application software.
In an exemplary embodiment, obtaining target data corresponding to the data request from the target database in response to the data request includes: parsing the data request into a plurality of parameters; and under the condition that the parameters meet the conditions, acquiring target data corresponding to the data request from the target database according to the parameters.
According to still another embodiment of the present invention, there is also provided a data update apparatus including: the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a first language list corresponding to a target website and a second language list corresponding to a target database, the first language list is used for indicating multiple languages allowed to be adopted by the target website, and the second language list is used for indicating multiple languages allowed to be adopted by application software corresponding to the target database; and the updating module is used for updating the second language list according to the first language list under the condition that the first language list is not consistent with the second language list.
In an exemplary embodiment, the updating module is further configured to obtain, from the first language list, differential language data of the first language list and the second language list, where the differential language data is used to indicate language data that is not included in the second language list and is included in the first language list; updating the second language list according to the differential language data.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the above data updating method when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the data updating method through the computer program.
According to the invention, a data updating method is introduced, the multiple language data allowed to be adopted by the target website and the multiple language data allowed to be adopted by the application software corresponding to the target database are obtained, and the multiple language data allowed to be adopted by the application software corresponding to the target database is updated according to the multiple language data allowed to be adopted by the target website under the condition that the multiple language data allowed to be adopted by the target website and the multiple language data allowed to be adopted by the application software corresponding to the target database are not consistent. By adopting the technical scheme, the problems of high complexity and the like in the process of adapting the application software to different languages are solved. And when the difference between the language data of the target website and the language data of the target database is found, updating the multiple language data allowed to be adopted by the application software corresponding to the target database by using the multiple language data allowed to be adopted by the target website, thereby completing the adaptation of the application software to different languages.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a computer terminal of a data updating method of an embodiment of the present invention;
FIG. 2 is a flow chart of a data update method according to an embodiment of the present invention;
FIG. 3 is a timing diagram between different modules of the application software of the data update method according to an embodiment of the present invention;
fig. 4 is a block diagram of a data update apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method embodiments provided in the embodiments of the present application may be executed in a computer terminal or a similar computing device. Taking the example of being operated on a computer terminal, fig. 1 is a hardware structure block diagram of the computer terminal of the data updating method according to the embodiment of the present invention. As shown in fig. 1, the computer terminal may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and in an exemplary embodiment, may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the computer terminal. For example, the computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 may be used for storing computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the data updating method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to a computer terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In the related art, most of the existing language adaptation focuses on adaptation of a single language, a language configuration processing is usually performed in a configuration file mode, almost no automatic adaptation is performed on multiple languages, or multiple language package files are configured, so that a project needs to be changed greatly when being adapted to different languages, a large amount of time and labor cost are consumed, a hidden trouble of data accuracy exists, the project cannot update required adaptation language configuration information timely, and the current multi-language processing mainly adopts the configuration file and the multiple project mode for processing, is not flexible enough and inconvenient to modify, so that the multi-language adaptation is particularly important.
In order to solve the above problem, in this embodiment, a data updating method is provided, and fig. 2 is a flowchart of a data updating method according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202, a first language list corresponding to a target website and a second language list corresponding to a target database are obtained, wherein the first language list is used for indicating multiple languages allowed to be adopted by the target website, and the second language list is used for indicating multiple languages allowed to be adopted by application software corresponding to the target database;
step S204, when the first language list and the second language list are not consistent, updating the second language list according to the first language list.
According to the invention, a data updating method is introduced, the multiple language data allowed to be adopted by the target website and the multiple language data allowed to be adopted by the application software corresponding to the target database are obtained, and the multiple language data allowed to be adopted by the application software corresponding to the target database is updated according to the multiple language data allowed to be adopted by the target website under the condition that the multiple language data allowed to be adopted by the target website and the multiple language data allowed to be adopted by the application software corresponding to the target database are not consistent. By adopting the technical scheme, the problems of high complexity and the like in the process of adapting the application software to different languages are solved. And when the difference between the language data of the target website and the language data of the target database is found, updating the multiple language data allowed to be adopted by the application software corresponding to the target database by using the multiple language data allowed to be adopted by the target website, thereby completing the adaptation of the application software to different languages.
It is to be understood that, optionally, in the execution process of step S202, a first language list corresponding to the target website and a second language list corresponding to the target database are obtained, where the first language list is used to indicate multiple languages allowed to be adopted by the target website, and the second language list is used to indicate multiple languages allowed to be adopted by the application software corresponding to the target database. In this embodiment, for example, if the multiple languages allowed to be used in the target website are chinese, english, korean, japanese, and german, the first language list corresponding to the target website is (chinese, english, korean, japanese, and german), the multiple languages allowed to be used in the application software corresponding to the target database are chinese, english, and german, and the second language list corresponding to the target database is (chinese, english, and german).
In the execution process of step S204, there are multiple execution manners, and in an optional embodiment, updating the second language list according to the first language list includes: acquiring differential language data of the first language list and the second language list from the first language list, wherein the differential language data is used for indicating language data which is not contained in the second language list and is contained in the first language list; updating the second language list according to the differential language data.
In this embodiment, it is necessary to acquire the difference language data of the first language list and the second language list and update the second language list by using the difference language data, where the difference data is the language data included in the first language list, and the language data not included in the second language list, for example, if the first language list is (chinese, english, korean, japanese, german), and the second language list is (chinese, english, german), the difference language data is (korean, japanese), and the second language list is updated by using the difference language data (korean, japanese).
It should be noted that, the second language list is updated by using the differential language data, and optionally, the following technical solution may be implemented: adding the differential language data to the second language list by an auto-sync program; adding the differential language data to the second language list by a synchronization operation of a target object.
In this embodiment, the difference language data may be added to the second language list by an automatic synchronization program, or may be added to the second language list by a synchronization operation of the target object. For example: the automatic synchronization program synchronizes the existing language information of the target website and finds out that different language information is automatically synchronized, thereby ensuring the accuracy and real-time performance of data, automatically generating the language information needing to be adapted by background configuration aiming at different languages, and increasing the convenience and the accuracy for multi-language adaptation.
It should be noted that, the second language list is updated by using the differential language data, and optionally, the following technical solution may be implemented: determining a first interface of a server side of application software, wherein the first interface is used for adding the differential language data into the target database; adding the differential language data to the second language list through the first interface to update the second language list.
In this embodiment, when the addition of the differential language data to the second language list by the automatic synchronization program fails, a manual synchronization update operation needs to be performed, an administrator performs maintenance through the server, determines the first interface of the server of the application software, calls the first interface to which the information of the corresponding language is added, and adds the differential language data to the second language list through the first interface at the server.
Optionally, after the step S204 updates the second language list according to the first language list, the method further includes: receiving a data request sent by a target object through a second interface, wherein the identifier of the second interface and the data request have a one-to-one correspondence relationship; and responding to the data request, acquiring target data corresponding to the data request from the target database, and displaying the target data on an interface of the application software.
In this implementation, the user may send a data request to the server through the second interface of the application software front-end h5 module, and the server responds to the data request sent by the front-end module, obtains target data corresponding to the data request from the target database, and displays the target data on the interface of the application software. It should be noted that, the calling modes of the second interface under different language environments are consistent, that is, for the data request corresponding to different languages, only the identifier on the second interface is different, and the data requests in different languages are distinguished by different identifiers on the second interface.
For convenience of understanding, in an optional embodiment, in response to the data request, obtaining target data corresponding to the data request from the target database includes: parsing the data request into a plurality of parameters; and under the condition that the parameters meet the conditions, acquiring target data corresponding to the data request from the target database according to the parameters.
In this embodiment, for a data request from the front-end h5 module, the server analyzes the data request into a plurality of parameters, determines and verifies the request parameters, and initiates a request to the database when the plurality of parameters meet the conditions, so as to obtain target data corresponding to the data request from the target database, and then displays the target data on the interface of the application software.
It is to be understood that the above-described embodiments are only a few, but not all, embodiments of the present invention. In order to better understand the above data updating method, the following describes the above process with reference to an embodiment, but the method is not limited to the technical solution of the embodiment of the present invention, and specifically:
in an alternative embodiment, fig. 3 is a timing chart between different modules of application software of the data updating method according to the embodiment of the present invention, and the specific steps are as follows:
step 1: the common user requests data from the front-end h5 module, that is, the user module initiates request information to the front-end h5 module according to the user operation;
step 2: the h5 module carries parameters to initiate a request to the service end, namely the front end h5 module carries required language information to initiate a request to the service module;
and step 3: the server receives the request and accesses the database, namely after the service module receives the request from the front end and analyzes the corresponding parameters, the service module firstly obtains the corresponding information from the cache, and if not, the service module inquires the corresponding language information in the database;
and 4, step 4: if the database does not have the data required by the user, sending feedback information to the user;
and 5: the administrator maintains data at the server, namely, the administrator calls an interface for adding information of a corresponding language through a server maintenance request;
step 6: the administrator writes the database into the database through the server, namely the server receives the request and adds the corresponding language information to the database;
and 7: the ordinary user requests data from the front-end h5 module, namely, the ordinary user operates again and initiates a request to the front-end h5 module;
and 8: the h5 module carries parameters to initiate a request to a service end, namely the front end h5 module assembly parameters carry required language information to initiate a request to the service module;
and step 9: the server accesses the database resources, namely the service module receives a request from the front end to analyze corresponding parameters, judges and verifies the request parameters, and initiates a request to the database if the request parameters meet the conditions;
step 10: the database responds to the request resource of the server, namely the database responds to the request initiated by the server, and screens corresponding data and returns the data to the server;
step 11: the server processes the data and returns the processed data to the h5 module, namely, the server processes the data returned by the database and assembles the data into a format required by the page;
step 12: the h5 module renders the data back to the page, i.e., the front end h5 module loads the returned data for presentation to the user.
It should be noted that the present invention implements multilingual functions through dynamic database maintenance, processes data returned from different languages within application software, and the same user request interface is called in a consistent manner in different language environments. The processing of the requirement of the multi-purpose language format can be realized on the application software through the same interface, and the returned data formats can be consistent under different language environments.
The invention processes the request information of different languages through the same interface, and maintains the language information in the request data and the adaptation of the administrator to the multi-language function, thereby ensuring the adaptibility and convenience of the data, reducing the adjustment of the interface and the code, realizing the configuration function of multiple languages by using the same set of function, improving the development efficiency and the correctness to a great extent, and increasing the convenience.
In addition, according to the technical scheme of the embodiment of the invention, the support information of multiple languages is maintained in the data background, the processing of the mode of automatic adaptation and high availability of the multiple languages is provided, frequent changes to the system in the later period are reduced, the multiple language information is maintained in the background, the languages needing adaptation are automatically synchronized, the updated data are processed in a timing mode, the accuracy and the real-time performance of the information are ensured, meanwhile, the information is responded to h5 in time, the development of operation during adaptation of different languages is facilitated, the code modification amount is reduced, the manual development amount is reduced, and the data accuracy is improved.
The invention adapts multi-language through automatic synchronization information, automatically synchronizes the existing language information of the target website based on a synchronization program, and finds that different language information is automatically synchronized, thereby ensuring the accuracy and real-time performance of data.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a data updating apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and the description already made is omitted for brevity. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware or a combination of software and hardware are also possible and contemplated.
Fig. 4 is a block diagram of a data update apparatus according to an embodiment of the present invention, the apparatus including:
an obtaining module 42, configured to obtain a first language list corresponding to a target website and a second language list corresponding to a target database, where the first language list is used to indicate multiple languages that are allowed to be adopted by the target website, and the second language list is used to indicate multiple languages that are allowed to be adopted by application software corresponding to the target database;
an updating module 44, configured to update the second language list according to the first language list when it is detected that the first language list and the second language list are inconsistent.
According to the invention, a data updating device is introduced, the data of multiple languages allowed to be adopted by the target website and the data of multiple languages allowed to be adopted by the application software corresponding to the target database are obtained, and the data of multiple languages allowed to be adopted by the application software corresponding to the target database is updated according to the data of multiple languages allowed to be adopted by the target database under the condition that the data of multiple languages allowed to be adopted by the target website and the data of multiple languages allowed to be adopted by the application software corresponding to the target database are not consistent. By adopting the technical scheme, the problems of high complexity and the like in the process of adapting the application software to different languages are solved. And when the difference between the language data of the target website and the language data of the target database is found, updating the multiple language data allowed to be adopted by the application software corresponding to the target database by using the multiple language data allowed to be adopted by the target website, thereby completing the adaptation of the application software to different languages.
Optionally, the obtaining module 42 is configured to obtain a first language list corresponding to the target website and a second language list corresponding to the target database, where the first language list is used to indicate multiple languages allowed to be adopted by the target website, and the second language list is used to indicate multiple languages allowed to be adopted by application software corresponding to the target database. In this embodiment, for example, if the multiple languages allowed to be used in the target website are chinese, english, korean, japanese, and german, the first language list corresponding to the target website is (chinese, english, korean, japanese, and german), the multiple languages allowed to be used in the application software corresponding to the target database are chinese, english, and german, and the second language list corresponding to the target database is (chinese, english, and german).
In an optional embodiment, the updating module 44 is configured to obtain, from the first language list, the difference language data of the first language list and the second language list, where the difference language data is used to indicate the language data that is not included in the second language list and is included in the first language list; updating the second language list according to the differential language data.
In this embodiment, it is necessary to acquire the difference language data of the first language list and the second language list and update the second language list by using the difference language data, where the difference data is the language data included in the first language list, and the language data not included in the second language list, for example, if the first language list is (chinese, english, korean, japanese, german), and the second language list is (chinese, english, german), the difference language data is (korean, japanese), and the second language list is updated by using the difference language data (korean, japanese).
Optionally, the updating module 44 is further configured to add the difference language data to the second language list through an automatic synchronization program; adding the differential language data to the second language list by a synchronization operation of a target object.
In this embodiment, the difference language data may be added to the second language list by an automatic synchronization program, or may be added to the second language list by a synchronization operation of the target object. For example: the automatic synchronization program synchronizes the existing language information of the target website and finds out that different language information is automatically synchronized, thereby ensuring the accuracy and real-time performance of data, automatically generating the language information needing to be adapted by background configuration aiming at different languages, and increasing the convenience and the accuracy for multi-language adaptation.
Optionally, the updating module 44 is further configured to determine a first interface of a server of the application software, where the first interface is used to add the differential language data to the target database; adding the differential language data to the second language list through the first interface to update the second language list.
In this embodiment, when the addition of the differential language data to the second language list by the automatic synchronization program fails, a manual synchronization update operation needs to be performed, an administrator performs maintenance through the server, determines the first interface of the server of the application software, calls the first interface to which the information of the corresponding language is added, and adds the differential language data to the second language list through the first interface at the server.
Optionally, the updating module 44 is further configured to receive a data request sent by a target object through a second interface, where an identifier of the second interface and the data request have a one-to-one correspondence relationship; and responding to the data request, acquiring target data corresponding to the data request from the target database, and displaying the target data on an interface of the application software.
In this implementation, the user may send a data request to the server through the second interface of the application software front-end h5 module, and the server responds to the data request sent by the front-end module, obtains target data corresponding to the data request from the target database, and displays the target data on the interface of the application software. It should be noted that, the calling modes of the second interface under different language environments are consistent, that is, for the data request corresponding to different languages, only the identifier on the second interface is different, and the data requests in different languages are distinguished by different identifiers on the second interface.
In an alternative embodiment, update module 44 is further configured to parse the data request into a plurality of parameters; and under the condition that the parameters meet the conditions, acquiring target data corresponding to the data request from the target database according to the parameters.
In this embodiment, for a data request from the front-end h5 module, the server analyzes the data request into a plurality of parameters, determines and verifies the request parameters, and initiates a request to the database when the plurality of parameters meet the conditions, so as to obtain target data corresponding to the data request from the target database, and then displays the target data on the interface of the application software.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring a first language list corresponding to a target website and a second language list corresponding to a target database, wherein the first language list is used for indicating multiple languages allowed to be adopted by the target website, and the second language list is used for indicating multiple languages allowed to be adopted by application software corresponding to the target database;
and S2, updating the second language list according to the first language list when the first language list and the second language list are not consistent.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring a first language list corresponding to a target website and a second language list corresponding to a target database, wherein the first language list is used for indicating multiple languages allowed to be adopted by the target website, and the second language list is used for indicating multiple languages allowed to be adopted by application software corresponding to the target database;
and S2, updating the second language list according to the first language list when the first language list and the second language list are not consistent.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for updating data, comprising:
acquiring a first language list corresponding to a target website and a second language list corresponding to a target database, wherein the first language list is used for indicating multiple languages allowed to be adopted by the target website, and the second language list is used for indicating multiple languages allowed to be adopted by application software corresponding to the target database;
and updating the second language list according to the first language list under the condition that the first language list and the second language list are detected to be inconsistent.
2. The data updating method of claim 1, wherein updating the second language list according to the first language list comprises:
acquiring differential language data of the first language list and the second language list from the first language list, wherein the differential language data is used for indicating language data which is not contained in the second language list and is contained in the first language list;
updating the second language list according to the differential language data.
3. The data updating method of claim 2, wherein updating the second language list based on the differential language data comprises at least one of:
adding the differential language data to the second language list by an auto-sync program;
adding the differential language data to the second language list by a synchronization operation of a target object.
4. The data updating method of claim 2, wherein updating the second language list based on the differential language data comprises:
determining a first interface of a server side of application software, wherein the first interface is used for adding the differential language data into the target database;
adding the differential language data to the second language list through the first interface to update the second language list.
5. The data updating method of claim 1, further comprising, after updating the second language list according to the first language list:
receiving a data request sent by a target object through a second interface, wherein the identifier of the second interface and the data request have a one-to-one correspondence relationship;
and responding to the data request, acquiring target data corresponding to the data request from the target database, and displaying the target data on an interface of the application software.
6. The data updating method of claim 5, wherein obtaining target data corresponding to the data request from the target database in response to the data request comprises:
parsing the data request into a plurality of parameters;
and under the condition that the parameters meet the conditions, acquiring target data corresponding to the data request from the target database according to the parameters.
7. A data update apparatus, comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a first language list corresponding to a target website and a second language list corresponding to a target database, the first language list is used for indicating multiple languages allowed to be adopted by the target website, and the second language list is used for indicating multiple languages allowed to be adopted by application software corresponding to the target database;
and the updating module is used for updating the second language list according to the first language list under the condition that the first language list is not consistent with the second language list.
8. The data updating apparatus according to claim 7, wherein the updating module is further configured to obtain, from the first language list, the difference language data between the first language list and the second language list, wherein the difference language data is used to indicate the language data that is not included in the second language list and is included in the first language list; updating the second language list according to the differential language data.
9. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any one of claims 1 to 6.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 6 by means of the computer program.
CN202110369318.7A 2021-04-06 2021-04-06 Data updating method and device, storage medium and electronic device Active CN113190565B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110369318.7A CN113190565B (en) 2021-04-06 2021-04-06 Data updating method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110369318.7A CN113190565B (en) 2021-04-06 2021-04-06 Data updating method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113190565A true CN113190565A (en) 2021-07-30
CN113190565B CN113190565B (en) 2023-05-09

Family

ID=76975181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110369318.7A Active CN113190565B (en) 2021-04-06 2021-04-06 Data updating method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113190565B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113704280A (en) * 2021-08-26 2021-11-26 上海哔哩哔哩科技有限公司 Data list updating method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101076189A (en) * 2007-06-13 2007-11-21 华为技术有限公司 Method, terminal and system for updating terminal language
US20140280295A1 (en) * 2013-03-14 2014-09-18 Microsoft Corporation Multi-language information retrieval and advertising
CN108984170A (en) * 2017-06-02 2018-12-11 阿里巴巴集团控股有限公司 The multilingual rendering method of the H5 page and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101076189A (en) * 2007-06-13 2007-11-21 华为技术有限公司 Method, terminal and system for updating terminal language
US20140280295A1 (en) * 2013-03-14 2014-09-18 Microsoft Corporation Multi-language information retrieval and advertising
CN108984170A (en) * 2017-06-02 2018-12-11 阿里巴巴集团控股有限公司 The multilingual rendering method of the H5 page and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
卢鹏: "基于Struts和MVC模式的动态多语言技术在电子商务网站中的应用", 《中国管理信息化》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113704280A (en) * 2021-08-26 2021-11-26 上海哔哩哔哩科技有限公司 Data list updating method and device

Also Published As

Publication number Publication date
CN113190565B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
US10958524B2 (en) Method for generating network slice template and for applying network slice template, and apparatus
CN107317830B (en) Service discovery processing method and device
CN107741844B (en) Method and device for generating application installation package
CN104954394A (en) Software differential packet production and update method, server, terminal and update system
CN110222288B (en) Page display method, device and storage medium
US10224972B2 (en) Systems, methods, and computer-readable media for tracking updates and loading data
CN112363845A (en) Data synchronization method of system integration middling station and integration middling station system
CN104159262A (en) Method of accessing long term evolution (LTE) network again, and device of accessing LTE network again
CN101115180B (en) Electronic program menu system and functional module dynamic load operating method
CN113064685A (en) H5 page loading method and device
CN110868339A (en) Node distribution method and device, electronic equipment and readable storage medium
CN111274325B (en) Platform automatic test method and system
CN113467832A (en) Equipment control processing method, device, storage medium and electronic device
CN109617950B (en) Data updating method, device, equipment and readable storage medium
CN113190565B (en) Data updating method and device, storage medium and electronic device
CN104902432A (en) Method and device for generating application operation log of terminal mobile
CN107844310B (en) Configuration information updating method and system
CN107888772B (en) Method, device and storage medium for determining configuration information
US11144312B2 (en) Management method for preset third-party applications, intelligent terminal and storage medium
CN112738823B (en) Interface data interaction method, distributed unit and central unit
US20180300122A1 (en) Data processing method and system, and server
CN113434525B (en) Cache data updating method and device, storage medium and electronic device
CN113783826B (en) Micro-service exception handling method and device
CN108536482B (en) Application shielding method, device, server and storage medium
CN114189400A (en) Control method, device, system, storage medium and program product for household electrical appliance

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