An interface adaptation method and device, electronic equipment and storage medium

By querying target country information through a pre-set information database, the development difficulties of application software adaptation in different countries are solved, achieving efficient and accurate interface adaptation, reducing workload and development cycle, and improving user experience.

CN115756224BActive Publication Date: 2025-12-23GREAT WALL MOTOR CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211401933.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-09
Publication Date
2025-12-23
Estimated Expiration
2042-11-09

AI Technical Summary

Technical Problem

In existing technologies, adapting application software to different countries requires extensive manual modifications to the software code, resulting in a large workload, long development cycle, and a high risk of errors, which negatively impacts the user experience.

Method used

By using a pre-set information database, the target country is determined based on the country where the terminal is located, and the country information of the target country is queried to display the corresponding functional interface, reducing the workload of backend development and improving adaptation efficiency.

Benefits of technology

It enables fast and accurate interface adaptation, reduces the workload of administrators, shortens the development cycle, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115756224B_ABST
    Figure CN115756224B_ABST
Patent Text Reader

Abstract

The application provides a method and device for interface adaptation, electronic equipment and a storage medium. The method comprises the following steps: in response to an interface display request sent by a terminal, determining a target country where the terminal is located, the interface display request being used for requesting to display a target function interface matched with the target country; querying the target country in a preset information base to obtain country information of the target country, the country information being used for representing characteristics of the target country, the preset information base storing country information of M countries, M being an integer greater than or equal to 1; and sending the country information of the target country to the terminal, so that the terminal displays the target function interface based on the country information of the target country. The method can intelligently display different function interfaces on the display interface of the terminal according to different countries where the terminal is located based on the preset information base, thereby achieving the effect of efficiently developing function interfaces of different countries, greatly reducing the workload of management personnel and shortening the software development cycle.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of software development, and more particularly, to a method and device for interface adaptation in the field of software development, an electronic device and a storage medium. BACKGROUND

[0002] With the continuous development of Internet technology, realizing global resource sharing has become an imminent problem. There are hundreds of countries and regions in the world, and different countries may have differences in language, time, time zone, currency symbol, currency type, etc.

[0003] For example, for the same application software (App), in order to meet the use requirements of users in different countries, the App may need to display the country information of multiple countries at the same time for users in different countries to view.

[0004] In a possible scenario, when implementing the same App for different countries, the country information of each country may include country name, country code, province, city and district code of the country, language code, time zone, currency code and other country information. In the process of App development, it is mainly realized by writing software code. Therefore, when an App needs to meet the use requirements of users in different countries, the App administrator can change the corresponding software code of different countries in the backend to meet the use requirements of users in different countries.

[0005] In the above process, since the number of countries in the world is large, and the country information corresponding to each country may have multiple types, changing the software code to solve the adaptation problem of the App in different countries may make the workload of the App backend development very large and tedious, and may also cause repeated development problems. Changing the software code manually may also cause errors, not only lengthening the development cycle of the entire App, but also possibly causing poor user experience when using the App.

[0006] In summary, how to flexibly realize the adaptation of the same App in multiple countries and reduce the workload of the administrator has become a problem to be solved. SUMMARY

[0007] The present application provides a method and device for interface adaptation, an electronic device and a storage medium, which can intelligently display the function interface corresponding to different countries on the display interface of the terminal based on a preset information library according to the different countries where the terminal is located, achieving the effect of efficiently developing the function interface of different countries, greatly reducing the workload of the management personnel and shortening the software development cycle.

[0008] In a first aspect, a method for interface adaptation is provided. The method comprises: in response to an interface display request sent by a terminal, determining a target country in which the terminal is located, the interface display request being used to request display of a target function interface matched with the target country; querying the target country in a preset information base to obtain country information of the target country, the country information being used to represent characteristics of the target country, the preset information base storing country information of M countries, M being an integer greater than or equal to 1; and sending the country information of the target country to the terminal, so that the terminal displays the target function interface based on the country information of the target country.

[0009] In the above technical solution, the method for interface adaptation can determine the target country in which the terminal is located according to the interface display request sent by the terminal, further query the country information of the target country in the preset information base based on the target country, and finally send the country information of the target country to the terminal so that the terminal displays the target function interface according to the country information of the target country. The above manner of querying the country information of the target country in the preset information base can quickly locate the country information of the target country, without the need for a backend administrator to develop interfaces for different countries one by one, effectively reducing the workload of the administrator, shortening the development cycle of the backend, avoiding the difference problem of the terminal when used in different countries, and achieving the effect of universality of application software in the terminal in multiple countries.

[0010] In combination with the first aspect, in some possible implementation manners, before the target country in which the terminal is located is determined in response to the interface display request sent by the terminal, the method further comprises: in response to a site identifier of a target site sent by the terminal, determining P countries covered by the target site, the target site being a site in which the terminal is located, the target site being used to support the terminal to access function interfaces of the P countries, the P countries including the target country, P being a positive integer less than or equal to M.

[0011] In combination with the first aspect and the above implementation manner, in some possible implementation manners, the interface display request comprises a country identifier of the target country, and the target country in which the terminal is located is determined in response to the interface display request sent by the terminal, comprising: determining the target country from the P countries according to the country identifier of the target country.

[0012] In the technical solution, in the process of determining the target country, first, the target site where the terminal is located is determined from a plurality of sites according to the site identifier of the site where the terminal is located, each site covers different countries, so after the target site is determined, a plurality of countries covered by the target site can be obtained. Further, the target country where the terminal is currently located is determined from the plurality of countries covered by the site according to the country identifier of the terminal. The above method of determining the target country by combining the site identifier and the country identifier of the terminal ensures the accuracy of each link in the determination process, and provides accurate information basis for the subsequent display of the target function interface.

[0013] In combination with the first aspect and the above implementation, in some possible implementation, the target country is queried in the preset information base to obtain the country information of the target country, including: querying the target country in the preset information base according to the country identifier of the target country to obtain the country information of the target country.

[0014] In the technical solution, after the target country is determined, the country information of the target country can be obtained by querying the preset information base according to the country identifier of the target country. The method of querying the country information of the target country in the preset information base is faster and more efficient, and improves the user experience.

[0015] In combination with the first aspect and the above implementation, in some possible implementation, the method further includes: obtaining a configuration file, the configuration file including country information corresponding to each of the M countries; and storing the country information corresponding to each of the M countries in the preset information base.

[0016] In combination with the first aspect and the above implementation, in some possible implementation, the method of generating the configuration file includes: receiving a configuration operation of a user, the configuration operation of the user being used to configure the country information of the M countries; and in response to the configuration operation, generating the configuration file according to the country information of the M countries.

[0017] In summary, the application provides a method of interface adaptation, which can determine the target country where the terminal is located according to the interface display request sent by the terminal, further query the country information of the target country in the preset information base based on the target country, and finally send the country information of the target country to the terminal to make the terminal display the target function interface according to the country information of the target country. The above method of querying the country information of the target country in the preset information base can quickly locate the country information of the target country, without the need for the administrator to develop the interface of different countries one by one, effectively reducing the workload of the administrator, shortening the development cycle of the backend, avoiding the difference problem of the terminal in different countries, and achieving the universality of the application software in the terminal in multiple countries.

[0018] In the process of determining the target country, first, the target site where the terminal is currently located is determined from a plurality of sites according to the site identifier of the site where the terminal is located. Each site covers different countries, so after the target site is determined, a plurality of countries covered by the target site can be obtained. The target country where the terminal is currently located is determined from the plurality of countries covered by the site according to the country identifier of the terminal. The above method of determining the target country by combining the site identifier and the country identifier of the terminal ensures the accuracy of each link in the determination process, and provides accurate information basis for the subsequent display of the target function interface.

[0019] After the target country is determined, the country information of the target country can be obtained by querying the preset information library according to the country identifier of the target country. The method of querying the country information of the target country in the preset information library is faster and more efficient, which improves the user experience.

[0020] In a second aspect, an interface adaptation apparatus is provided, which includes: a first determination module configured to determine a target country where a terminal is located in response to an interface display request sent by the terminal, the interface display request being used to request display of a target function interface matched with the target country; a query module configured to query the target country in a preset information library to obtain country information of the target country, the country information being used to represent characteristics of the target country, and the preset information library storing country information of M countries, M being an integer greater than or equal to 1; and a sending module configured to send the country information of the target country to the terminal, so that the terminal displays the target function interface based on the country information of the target country.

[0021] With reference to the second aspect, in some possible implementation manners, before determining the target country where the terminal is located in response to the interface display request sent by the terminal, the apparatus further includes: a second determination module configured to determine P countries covered by a target site in response to a site identifier of the target site sent by the terminal, the target site being a site where the terminal is located, and the target site being used to support the terminal to access function interfaces of the P countries, the P countries including the target country, and P being a positive integer less than or equal to M.

[0022] With reference to the second aspect and the implementation manners above, in some possible implementation manners, the interface display request includes a country identifier of the target country, and the first determination module is specifically configured to determine the target country from the P countries according to the country identifier of the target country.

[0023] In a possible implementation of the second aspect and the foregoing implementation, the query module is specifically configured to: query the target country in the preset information base according to a country identifier of the target country, and obtain country information of the target country.

[0024] In a possible implementation of the second aspect and the foregoing implementation, the apparatus further includes a first processing module configured to: obtain a configuration file, the configuration file including country information corresponding to each of the M countries; and store the country information corresponding to each of the M countries in the preset information base.

[0025] In a possible implementation of the second aspect and the foregoing implementation, the apparatus further includes a second processing module configured to: receive a configuration operation of a user, the configuration operation of the user being configured to configure the country information of the M countries; and in response to the configuration operation, generate the configuration file according to the country information of the M countries.

[0026] In a third aspect, an electronic device is provided, including a memory and a processor. The memory is configured to store executable program code, and the processor is configured to invoke and run the executable program code from the memory, so that the electronic device executes the method in the first aspect or any possible implementation of the first aspect.

[0027] In a fourth aspect, a computer program product is provided, which includes computer program code. When the computer program code is run on a computer, the computer program code causes the computer to execute the method in the first aspect or any possible implementation of the first aspect.

[0028] In a fifth aspect, a computer-readable storage medium is provided, which stores computer program code. When the computer program code is run on a computer, the computer program code causes the computer to execute the method in the first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF DRAWINGS

[0029] Figure 1 is a scene schematic diagram of interface adaptation provided by an embodiment of the present application;

[0030] Figure 2 is a schematic flowchart of a method of interface adaptation provided by an embodiment of the present application;

[0031] Figure 3 is a scene schematic diagram of selecting a target country in a configuration interface provided by an embodiment of the present application;

[0032] Figure 4 is a scene schematic diagram of configuring country information provided by an embodiment of the present application;

[0033] Figure 5 is a structural schematic diagram of a device for interface adaptation provided by an embodiment of the present application;

[0034] Figure 6 is a structural schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0035] The technical solutions in the present application will be described in detail below with reference to the drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " represents the meaning of or, for example, A / B can represent A or B: "and / or" in the text only describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which means that there are three cases of A alone, A and B together, and B alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0036] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first" and "second" can explicitly or implicitly include one or more features.

[0037] Figure 1 is a structural schematic diagram of a device for interface adaptation provided by an embodiment of the present application;

[0038] As shown in Figure 1 , the terminal 101 is installed with an App related to vehicle services, for example, a car purchase App, and the service platform 102 is provided with a preset information library, which stores the country information of M countries, M being an integer greater than or equal to 1. As shown in Figure 1 , the country information includes country identification, language identification, flag identification, currency symbol, time zone, currency type, administrative area identification, unit of measurement, postcode code of administrative areas at all levels, site identification of countries belonging to the site, country identification of the current site belonging to the site, country sales vehicle brand, and App brand identification of the country, etc. Various information related to the country.

[0039] It should be understood that the above-mentioned country information can be divided into two categories: the first category is the characteristic information or basic information of the country, for example, the country identification, language identification, flag identification, time zone, currency symbol, currency type, administrative area identification, unit of measurement, administrative area identification, and postcode code of administrative areas at all levels, which belong to the information fixed in a country; the other is the business information of the country, for example, the site identification of the countries belonging to the site, the country identification of the site belonging to the site, the country sales vehicle brand, and the App brand identification of the country, etc. Information related to App operation.

[0040] It should be understood that information related to App operation can be different in different countries. For example, different countries can support different brands of vehicles or App brands for sale. Country A supports the sale of vehicles of brand a, and country B can not support the sale of vehicles of brand a. Or, the same vehicle has different brand names when sold in different countries. Or, the same App has different names in country A (a) and country B (b).

[0041] Optionally, the country identifier can be a country name or a country code; the language identifier can be a language name or a language code, and the administrative region identifier can be an administrative region name or an administrative region code.

[0042] When the front-end user uses the App, the front-end user needs to select the current target country in the configuration interface of the App. Based on the configuration operation of the front-end user, the terminal 101 can send an interface display request to the service platform 102. The service platform 102 sends the country information of the target country to the terminal 101 based on the interface display request sent by the terminal. The terminal 101 can directly display the corresponding function interface according to the country information of the target country.

[0043] Figure 2 is a schematic flowchart of a method for interface adaptation provided by an embodiment of the present application. The method can be applied to the scenario as shown in Figure 1 , and specifically applied to the service platform 102 in Figure 1 .

[0044] For example, as shown in Figure 2 , the method 200 includes:

[0045] 201, in response to the interface display request sent by the terminal, determining the target country where the terminal is located. The interface display request is used to request to display a target function interface matched with the target country.

[0046] In order to make an App applicable to multiple countries at the same time, an administrator or a back-end user can pre-configure multiple service sites of the App in a global range, so that when the front-end user uses the terminal in different countries, the service platform can determine the target country where the terminal is currently located according to different sites to which the terminal belongs.

[0047] Table 1 is a schematic table of multiple sites and countries covered by each site provided by an embodiment of the present application.

[0048] Table 1: Schematic table of multiple sites and countries covered by each site

[0049] North America USA, Canada, Mexico Europe UK, France, Germany, Italy, Spain, Netherlands, Sweden, Poland Japan Japan Australia Australia India India Middle East UAE, Saudi, Egypt

[0050] For example, as shown in Table 1, according to the configuration method in Table 1, a plurality of sites of the App service and one or more countries covered by each site can be set globally.

[0051] Further, since the terminal is in communication connection with the service platform, after the front-end user downloads the App on the terminal, the terminal can directly obtain the site identifier of the site where the terminal is located (i.e. the target site). Further, the terminal can send the site identifier of the target site to the service platform, so that the service platform determines one or more countries covered by the target site according to the identifier of the target site, and sends the one or more countries to the terminal in the form of a list, for the front-end user to select the target country through clicking operation in the configuration interface.

[0052] Specifically, the service platform determines one or more countries covered by the target site according to the site identifier of the target site sent by the terminal, including:

[0053] In response to the site identifier of the target site sent by the terminal, one or more countries covered by the target site are determined, the target site is the site where the terminal is located, the target site is used to support the terminal to access the function interface of the P countries, the P countries include the target country, and P is a positive integer less than or equal to M.

[0054] Further, when the front-end user determines the target country from the one or more countries in the configuration interface through clicking operation, the terminal can send the clicking operation of the front-end user to the service platform in the form of an interface request, to request the service platform to return the country information corresponding to the target country.

[0055] Specifically, the interface request includes the country identifier of the target country, and the service platform determines the target country when the terminal is located in the target country, including:

[0056] According to the country identifier of the target country, the target country is determined from the P countries.

[0057] Since the P countries covered by the current site include the target country, the target country can be determined from the P countries based on the country identifier of the target country.

[0058] In the above technical solution, the process of determining the target country first requires identifying the target site from multiple sites based on the site identifier of the terminal's current location. Each site covers different countries, so after determining the target site, the multiple countries covered by that target site can be obtained. Then, based on the country identifier of the terminal, the target country currently located by the terminal is determined from the multiple countries covered by that site. This method of determining the target country by combining the terminal's site identifier and country identifier ensures the accuracy of each step in the determination process, providing an accurate information foundation for the subsequent display of the target function interface.

[0059] In another possible implementation, each app can be pre-configured with relevant parameter information when it is published to the app store. Therefore, in this embodiment, the backend user can also pre-configure the target country applicable to the app during the app publishing process. When the frontend user opens the app on the terminal, the pre-configured target country will be displayed by default, without having to obtain the list of countries through the site identifier of the target site and have the frontend user manually select the target country.

[0060] Figure 3 This is a schematic diagram of a scenario where a configuration interface is used to select a target country, as provided in an embodiment of this application.

[0061] For example, such as Figure 3 As shown in (a) in the figure, combined with Figure 1 The first scenario is that after a user downloads an app on terminal 101, terminal 101 obtains the site identifier of the current target site and sends it to service platform 102. In response to the site identifier sent by terminal 101, service platform 102 sends a list of one or more countries covered by the target site to terminal 101, allowing terminal 101 to display one or more countries in the configuration interface 301. For example... Figure 3 As shown in (a), the target site covers countries 1, 2, 3, and 4. Front-end users can select the target country from country 1, country 2, country 3, and country 4 in the configuration interface 301 by clicking, for example, country 1.

[0062] After the front-end user selects country 1, terminal 101 can send an interface request to service platform 102 based on the current click operation of the front-end user on country 1. The interface request includes the country identifier of country 1, requesting service platform 102 to return the country information of country 1 based on the country identifier of country 1.

[0063] The second scenario is that the App has set the target country applicable to the App in advance during the publishing process. After the front-end user downloads the App in the terminal 101, the configuration interface 301 of the terminal 101 directly displays the current target country without the front-end user manually selecting the target country in the configuration interface 301. As shown in (b) of FIG. 1, Figure 3 The country applicable to the App (i.e., the target country) is country 1. The terminal 101 can also send the country identifier of country 1 to the service platform 102 in the form of an interface request to request the service platform 102 to return the country information of country 1 according to the country identifier of country 1.

[0064] 202. Query the target country in the preset information base to obtain country information of the target country, the country information being used to represent characteristics of the target country, the preset information base storing country information of M countries, M being an integer greater than or equal to 1.

[0065] According to step 201, the target country can be determined, and the country information of the target country can be further determined in the preset information base.

[0066] The preset information base is a mass database set in advance, which stores country information of a plurality of countries in a global range.

[0067] In a possible implementation, when the preset information base is established, a back-end user can first input country information of a plurality of countries into the service platform, and store the country information of the plurality of countries in the form of a configuration file, which specifically includes:

[0068] Receiving a configuration operation of a user, the configuration operation of the user being used to configure country information of M countries;

[0069] In response to the configuration operation, generating a configuration file according to the country information of the M countries.

[0070] In the above process, the back-end user can input country information of each country in the storage interface of the service platform in sequence.

[0071] Figure 4 FIG. 1 is a schematic diagram of a scenario of configuring country information provided by an embodiment of the present application.

[0072] For example, as shown in (a) of FIG. 1, Figure 4As shown, in the current interface, the backend user can input the corresponding country information in the corresponding function bar. Optionally, the country information includes the English abbreviation, Chinese abbreviation, English full name of the country, the site identifier of the site where the country is located, the time zone, the country identifier, the currency information, the unit of measurement, the time zone corresponding to the country, the language identifier of the country, the administrative region identifier of the country at all levels, the postcode of the administrative region at all levels, the telephone area code, the country to which the site belongs, the country sales vehicle brand, the App identifier of the country, etc.

[0073] Among them, the site code and the site name can be collectively referred to as the site identifier. The two-digit country code and the three-digit country code and the digital code are three forms of country and region codes provided by ISO 3166-1. Specifically, they include: two-letter code (ISO 3166-1 alpha-2): a code composed of two Latin characters; three-letter code (ISO 3166-1 alpha-3): a code composed of three Latin characters; and digital code (ISO 3166-1 numeric): a code composed of three Arabic numerals.

[0074] After inputting the country information of each country in the interface, the service platform can obtain a configuration file containing the country information of each country based on the country information of each country.

[0075] Further, when storing the configuration file in the preset information library, it specifically includes:

[0076] Obtaining a configuration file, the configuration file including country information corresponding to M countries respectively;

[0077] Storing the country information corresponding to the M countries respectively in the preset information library.

[0078] It should be understood that, since each country has a one-to-one correspondence with the country information, when storing the configuration file in the preset information library, the country information of multiple countries can be stored in the preset information library based on the country information corresponding to each country respectively.

[0079] It should also be understood that the preset information library can also provide various query interfaces based on the stored country information for terminals to obtain country information. Optionally, the interface types include: querying the country list covered according to the site identifier; querying the country information according to the country identifier; querying the provincial administrative region of the country according to the country identifier; obtaining the municipal administrative region according to the provincial administrative region; obtaining the county-level administrative region according to the municipal administrative region; querying the sales brand of the current country according to the country identifier, the App brand identifier, etc.

[0080] Optionally, in addition to the above-mentioned interface types, the following interfaces can also be included: querying country information according to the country's telephone area code; querying country information according to the country's language code or language name; and any interface that can query country information.

[0081] Further, after the preset information base is established, when the terminal requests to obtain the country information of the current target country, the service platform can query the country information corresponding to the target country in the preset information base based on the country identifier of the target country, specifically including:

[0082] According to the country identifier of the target country, the target country is queried in the preset information base to obtain the country information of the target country.

[0083] After the target country is determined, the country information of the target country can be queried in the preset information base based on the country identifier of the target country. The way of querying the country information of the target country in the preset information base is more rapid and efficient, which improves the user experience.

[0084] 203, the country information of the target country is sent to the terminal, so that the terminal displays the target function interface based on the country information of the target country.

[0085] Further, after the service platform queries the country information in the preset information base, the country information can be sent to the terminal, so that the terminal displays the function interface corresponding to the current target country according to the country information.

[0086] In summary, the present application proposes a method for interface adaptation, which can determine the target country where the terminal is located according to the interface display request sent by the terminal, further query the country information of the target country in the preset information base based on the target country, and finally send the country information to the terminal to make the terminal display the target function interface according to the country information of the target country. The above-mentioned way of querying the country information of the target country in the preset information base can quickly locate the country information of the target country, without the need for the administrator to develop the interfaces of different countries one by one, effectively reducing the workload of the administrator, shortening the development cycle of the backend, avoiding the difference problem of the terminal in different countries, and achieving the effect of the application software in the terminal being applicable in multiple countries.

[0087] In the process of determining the target country, first, the target site where the terminal is located is determined from multiple sites according to the site identifier of the site where the terminal is located. Each site covers different countries, so after the target site is determined, multiple countries covered by the target site can be obtained. The target country where the terminal is currently located is determined from the multiple countries covered by the site according to the country identifier of the terminal. The above method of determining the target country by combining the site identifier and the country identifier of the terminal ensures the accuracy of each link in the determination process, and provides accurate information basis for the subsequent display of the target function interface.

[0088] After the target country is determined, the country information of the target country can be obtained by querying the preset information library according to the country identifier of the target country. The method of querying the country information of the target country in the preset information library is faster and more efficient, which improves the user experience.

[0089] In another possible scenario, the interface adaptation method provided by the embodiment of the application can be applied not only to the App installed on the terminal, but also to the scenario that the front-end user browses the official website of the App in the form of a webpage on the terminal. For example, when the front-end user accesses the official website of the App through the browser, the front-end user can select the target country where the terminal is currently located by clicking the configuration interface at the initial access to the official website. The terminal can send the selection operation of the front-end user to the service platform in the form of an interface request to request the service platform to return the country information of the target country. After the terminal receives the country information returned by the service platform, the current official website interface can be displayed based on the country information of the target country. The process of obtaining the country information is the same as that of the App end, which will not be described here.

[0090] Figure 5 FIG. 1 is a structural schematic diagram of an interface adaptation device provided by an embodiment of the application.

[0091] For example, as shown in FIG. 5, the device 500 includes: Figure 5

[0092] The first determination module 501 is configured to determine the target country where the terminal is located in response to the interface display request sent by the terminal, and the interface display request is used to request to display the target function interface matched with the target country.

[0093] The query module 502 is configured to query the target country in a preset information library to obtain the country information of the target country, the country information is used to represent the characteristics of the target country, and the preset information library stores the country information of M countries, and M is an integer greater than or equal to 1.

[0094] ​The sending module 503 is used to send the country information of the target country to the terminal so that the terminal can display the target function interface based on the country information of the target country.

[0095] Optionally, before determining the target country where the terminal is located in response to the interface display request sent by the terminal, the device further includes: a second determining module, used to determine P countries covered by the target site in response to the site identifier of the target site sent by the terminal, the target site being the site where the terminal is located, the target site being used to support the terminal to access the functional interface of the P countries, the P countries including the target country, and P being a positive integer less than or equal to M.

[0096] In one possible implementation, the interface displays a request that includes the country identifier of the target country, and the first determining module 501 is specifically used to: determine the target country from among multiple countries covered by the target site based on the country identifier of the target country.

[0097] In one possible implementation, the query module 502 is specifically used to: query the target country in the preset information database based on the country identifier of the target country, and obtain the country information of the target country.

[0098] Optionally, the device further includes: a first processing module for obtaining a configuration file, the configuration file including the country information corresponding to each of the M countries; and storing the country information corresponding to each of the M countries in the preset information database.

[0099] Optionally, the device further includes: a second processing module, configured to receive a user's configuration operation, the user's configuration operation being used to configure the country information of the M countries; and in response to the configuration operation, generating the configuration file based on the country information of the M countries.

[0100] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0101] For example, such as Figure 6 As shown, the electronic device 600 includes a memory 601 and a processor 602. The memory 601 stores executable program code 6011, and the processor 602 is used to call and execute the executable program code 6011 to perform an interface adaptation method.

[0102] The embodiment can divide the function modules of the electronic device according to the method examples described above. For example, each function module can be divided, or two or more functions can be integrated into one processing module. The integrated module can be implemented in the form of hardware. It should be noted that the division of the modules in the embodiment is illustrative, and is only a logical function division. In actual implementation, another division manner can be used.

[0103] In the case of dividing each function module according to each function, the electronic device can include a first determination module, a query module, a sending module, and the like. It should be noted that all related contents of each step involved in the method embodiments can be cited in the function description of the corresponding function module, and will not be described here.

[0104] The electronic device provided by the embodiment is used to execute the method for interface adaptation, and thus the same effect as the implementation method can be achieved.

[0105] In the case of using the integrated unit, the electronic device can include a processing module and a storage module. The processing module can be used to control and manage the actions of the electronic device. The storage module can be used to support the electronic device to execute program codes and data.

[0106] The processing module can be a processor or a controller, which can implement or execute various exemplary logical blocks, modules and circuits described in combination with the disclosure of the present application. The processor can also be a combination of computing functions, such as one or more microprocessor combinations, a combination of digital signal processing (DSP) and microprocessors, and the like. The storage module can be a memory.

[0107] The embodiment further provides a computer readable storage medium, which stores computer program codes. When the computer program codes run on a computer, the computer is caused to execute the related method steps to implement the method for interface adaptation in the above embodiment.

[0108] The embodiment further provides a computer program product, which causes a computer to execute the related steps to implement the method for interface adaptation in the above embodiment when the computer program product runs on the computer.

[0109] In addition, the electronic device provided by the embodiment of the present application can be a chip, an assembly or a module. The electronic device can include a connected processor and a memory. The memory is used to store instructions. When the electronic device runs, the processor can invoke and execute the instructions to enable the chip to execute the method for interface adaptation in the above embodiment.

[0110] The electronic device, the computer readable storage medium, the computer program product or the chip provided in the embodiment can be used to execute the corresponding method provided above, and thus the beneficial effects achieved thereby can refer to the beneficial effects of the corresponding method provided above, which will not be repeated here.

[0111] Through the description of the above embodiments, those skilled in the art can understand that, for the convenience and brevity of description, only the division of the above functional modules is taken as an example, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

[0112] In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. For example, the apparatus embodiments described above are only illustrative, and for example, the division of the modules or units is only a logical function division, and in actual implementation, another division manner can be adopted, for example, a plurality of units or components can be combined or integrated into another apparatus, or some features can be omitted or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed ones can be indirect coupling or communication connection through some interfaces, apparatuses or units, and can be electrical, mechanical or other forms.

[0113] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto, and any skilled person in the art can easily think of changes or replacements within the technical range disclosed in the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method of interface adaptation, characterized by, The method comprises: in response to an interface display request sent by a terminal, determining a target country in which the terminal is located, the interface display request being used to request display of a target function interface matched with the target country; querying the target country in a preset information base to obtain country information of the target country, the country information being used to represent characteristics of the target country, the preset information base storing country information of M countries, M being an integer greater than or equal to 1, the country information including characteristic information and service information of a country, and different countries corresponding to different service information; sending the country information of the target country to the terminal, so that the terminal displays the target function interface based on the country information of the target country; wherein, before the step of determining the target country in which the terminal is located in response to the interface display request sent by the terminal, the method further comprises: in response to a site identifier of a target site sent by the terminal, determining P countries covered by the target site, the target site being a site in which the terminal is located, the target site being used to support the terminal to access function interfaces of the P countries, the P countries including the target country, P being a positive integer less than or equal to M; sending the P countries in the form of a list to the terminal, so that the terminal displays the P countries in a configuration interface; and the interface display request is generated by the terminal according to a selection operation of a front-end user on the target country in the configuration interface, the interface display request including a country identifier of the target country, the step of determining the target country in which the terminal is located in response to the interface display request sent by the terminal comprising: determining the target country from the P countries according to the country identifier of the target country.

2. The method of claim 1, wherein, querying the target country in the preset information base to obtain the country information of the target country, comprising: querying the target country in the preset information base to obtain the country information of the target country according to the country identifier of the target country.

3. The method of claim 1, wherein, The method further comprises: obtaining a configuration file, the configuration file including country information corresponding to each of the M countries; storing the country information corresponding to each of the M countries in the preset information base.

4. The method of claim 3, wherein, The method for generating the configuration file comprises: receiving a configuration operation of a user, the configuration operation of the user being used to configure country information of the M countries; in response to the configuration operation, generating the configuration file according to the country information of the M countries.

5. An apparatus for interface adaptation, characterized by The apparatus comprises: a first determining module, configured to determine a target country in which a terminal is located in response to an interface display request sent by the terminal, the interface display request being used to request display of a target function interface matched with the target country; The query module is configured to query the target country in a preset information base to obtain country information of the target country, the country information being used to represent characteristics of the target country, and the preset information base storing country information of M countries, M being an integer greater than or equal to 1, and the country information including characteristic information and business information of a country, different countries corresponding to different business information. The sending module is configured to send the country information of the target country to the terminal, so that the terminal displays the target function interface based on the country information of the target country. Before determining the target country in which the terminal is located in response to the interface display request sent by the terminal, the first determination module is further configured to: In response to a site identifier of a target site sent by the terminal, determine P countries covered by the target site, the target site being a site in which the terminal is located, the target site being used to support the terminal to access function interfaces of the P countries, the P countries including the target country, and P being a positive integer less than or equal to M. Send the P countries to the terminal in the form of a list, so that the terminal displays the P countries on a configuration interface. The interface display request is generated by the terminal according to a selection operation of a front-end user on the target country on the configuration interface, and the interface display request includes a country identifier of the target country. The first determination module is specifically configured to:

6. An electronic device, comprising: Determine the target country from the P countries according to the country identifier of the target country. The electronic device includes: A memory configured to store executable program code; 7. A computer readable storage medium characterized by A processor configured to call and run the executable program code from the memory, so that the electronic device performs the method according to any one of claims 1 to 4.

8. A computer program product, characterised in that, The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 4 is implemented. The computer program product includes computer program code, and when the computer program code is run on a computer, the computer performs the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Interface display method and device, electronic equipment, server and storage medium

    CN111026491A

  • Method and system for providing multi language support service

    KR101593143B1