Head portrait display method, device, apparatus and storage medium

By receiving the client's location information and header image acquisition request, parsing the parameter information, determining the target region's map set, and selecting the header image with the latest storage time as the display header image, the problem of multiple client versions caused by regional differences is solved, achieving flexible display and cost savings.

CN111723319BActive Publication Date: 2025-11-18CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010581272.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-23
Publication Date
2025-11-18
Estimated Expiration
2040-06-23

AI Technical Summary

Technical Problem

Developing multiple clients due to regional differences increases maintenance costs and wastes resources.

Method used

By receiving the client's location information and header image acquisition request, parsing the parameter information, determining the target region map set in the preset version map set, and selecting the last stored header image as the target header image based on the storage time of the candidate header images, the save path is recorded and fed back to the client.

Benefits of technology

It enables flexible display of regional landscape header images based on the current location, reducing the need to design multiple different client versions for different regions and saving management redundancy and costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111723319B_ABST
    Figure CN111723319B_ABST
Patent Text Reader

Abstract

The present application relates to the field of artificial intelligence, and discloses a head picture display method, device, equipment and storage medium. The head picture display method comprises the following steps: receiving positioning information and a head picture acquisition request sent by a client, and analyzing the head picture acquisition request to obtain corresponding parameter information; determining a target regional atlas in a preset version atlas according to the positioning information and the parameter information, and taking a head picture in the target regional atlas as a candidate head picture corresponding to the head picture acquisition request; comparing the storage time corresponding to each candidate head picture, and determining the candidate head picture stored last as the target head picture; recording the storage path corresponding to the target head picture, and sending the storage path as feedback information to the client to respond to the head picture acquisition request. In addition, the present application relates to blockchain technology, and the version atlas can be stored in a blockchain. The present application can dynamically display the head picture corresponding to the current region through one client.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of data display, and in particular to a head picture display method, device, equipment and storage medium. BACKGROUND

[0002] With the development of Internet technology, more and more product sales and services have moved to the Internet. For example, shopping, financial management, government service, and reservation. With the development of company business, the scope of service object is becoming larger and larger. It may be limited to a small area at the beginning, then extended to a province, and even extended to the whole country. However, there are huge differences in language, customs and preferences among people in different regions. For example, in Tibet, in addition to Chinese, there are a large number of people using Tibetan language, so when providing network services, the company needs to mark Tibetan on the product head picture in addition to Chinese.

[0003] Language differences can be converted by providing language packs in the app, but for the difference in displaying head pictures caused by regional differences, the main solution currently adopted is to develop different app branch versions. For example, a certain app has developed Chinese version, Tibetan version, Cantonese version, etc. However, in addition to the difference in displaying head pictures, the architecture is basically the same, so this way inevitably increases the maintenance cost, thereby wasting a lot of human and material resources. SUMMARY

[0004] The main purpose of the present application is to solve the problem of resource waste caused by developing multiple clients due to regional differences.

[0005] The first aspect of the present application provides a head picture display method, comprising:

[0006] receiving positioning information and head picture acquisition request sent by a client, and analyzing the head picture acquisition request to obtain corresponding parameter information;

[0007] According to the positioning information and the parameter information, determine the target regional atlas in the preset version atlas, and take the head picture in the target regional atlas as the candidate head picture corresponding to the head picture acquisition request;

[0008] Compare the storage time corresponding to each candidate head picture, and determine the last stored candidate head picture as the target head picture;

[0009] Record the save path corresponding to the target head picture, and send the save path as feedback information to the client to respond to the head picture acquisition request.

[0010] Optionally, in the first implementation manner of the first aspect, the version atlas is stored in a block chain, the parameter information comprises version information and a locator, and the determining the target regional atlas in the preset version atlas according to the positioning information and the parameter information and taking a head picture in the target regional atlas as the candidate head picture corresponding to the head picture acquisition request comprises:

[0011] determining a target version atlas corresponding to the version information in the preset version atlas, wherein the version atlas comprises a plurality of product atlases;

[0012] determining a target product atlas corresponding to the locator in the target version atlas, wherein the product atlas comprises a plurality of regional atlases;

[0013] determining a target regional atlas corresponding to the positioning information in the target product atlas;

[0014] taking a head picture in the target regional atlas as the candidate head picture corresponding to the head picture acquisition request.

[0015] Optionally, in the second implementation manner of the first aspect, the version atlas comprises a plurality of version type atlases, the version type atlas comprises a plurality of version number atlases, and the determining the target version atlas corresponding to the version information in the preset version atlas comprises:

[0016] parsing the version information to obtain a target version type and a target version number of the head picture acquisition request;

[0017] determining a candidate version atlas corresponding to the version type atlas in the version atlas according to the target version type;

[0018] determining a target version atlas corresponding to the version number atlas in the candidate version atlas according to the target version number.

[0019] Optionally, in the third implementation manner of the first aspect, the product atlas comprises a plurality of product category atlases and a general atlas, the product category atlas comprises a plurality of product number atlases, and the determining the target product atlas corresponding to the locator in the target version atlas comprises:

[0020] extracting a key value in the locator according to a preset first regular expression;

[0021] extracting a target product number and a target product type in the key value according to a preset second regular expression;

[0022] determining whether a product type atlas corresponding to the target product type exists in the target version atlas.

[0023] If yes, according to the target product number, a product number set in a product type set corresponding to the target product type is determined as a target product set, which is consistent with the target product number;

[0024] If no, the universal set is determined as the target product set.

[0025] Optionally, in a fourth implementation manner of the first aspect of the present application, the regional set includes a universal set, a city set and a province set, and the determining of the corresponding regional set in the target product set as a target regional set according to the positioning information includes:

[0026] The positioning information is parsed to obtain a target city and a target province corresponding to the head picture acquisition request;

[0027] It is judged whether a city set corresponding to the target city exists in the target product set;

[0028] If the corresponding city set exists in the target product set, the city set corresponding to the target city is determined as the target regional set;

[0029] If the corresponding city set does not exist in the regional set, it is judged whether a province set corresponding to the target province exists in the target product set;

[0030] If yes, the province set corresponding to the target province is determined as the target regional set;

[0031] If no, the universal set is determined as the target regional set.

[0032] Optionally, in a fifth implementation manner of the first aspect of the present application, the recording of the saving path corresponding to the target head picture and the sending of the saving path as feedback information to the client to respond to the head picture acquisition request include:

[0033] The target head picture is adjusted in specification according to the version information and a preset head picture adjustment rule;

[0034] The saving path of the adjusted target head picture is recorded, and the saving path is sent as feedback information to the client to respond to the head picture acquisition request.

[0035] The second aspect of the present application provides a head picture display device, which includes:

[0036] A receiving module is configured to receive positioning information and a head picture acquisition request sent by a client, and parse the head picture acquisition request to obtain corresponding parameter information;

[0037] a candidate head picture module configured to determine a target regional picture set corresponding to the head picture acquisition request from the preset version picture set according to the positioning information and the parameter information, and determine a head picture in the target regional picture set as a candidate head picture corresponding to the head picture acquisition request;

[0038] a target head picture module configured to compare storage times corresponding to each of the candidate head pictures, and determine a candidate head picture stored last as the target head picture;

[0039] a feedback module configured to record a storage path corresponding to the target head picture, and send the storage path as feedback information to the client to respond to the head picture acquisition request.

[0040] Optionally, in the first implementation manner of the second aspect, the version picture set is stored in a block chain, the parameter information includes version information and a locator, and the candidate head picture module includes:

[0041] a version picture set unit configured to determine a target version picture set corresponding to the version information from the preset version picture set, wherein the version picture set includes a plurality of product picture sets;

[0042] a product picture set unit configured to determine a target product picture set corresponding to the locator from the target version picture set, wherein the product picture set includes a plurality of regional picture sets;

[0043] a regional picture set unit configured to determine a target regional picture set corresponding to the positioning information from the target product picture set;

[0044] a candidate head picture unit configured to determine a head picture in the target regional picture set as a candidate head picture corresponding to the head picture acquisition request.

[0045] Optionally, in the second implementation manner of the second aspect, the version picture set includes a plurality of version type picture sets, the version type picture set includes a plurality of version number picture sets, and the version picture set unit is specifically configured to:

[0046] analyze the version information to obtain a target version type and a target version number of the head picture acquisition request;

[0047] determine a version type picture set corresponding to the target version type from the version picture set as a candidate version picture set;

[0048] determine a version number picture set corresponding to the target version number from the candidate version picture set as the target version picture set.

[0049] Optionally, in a third implementation form of the second aspect of the present application, the product atlas comprises a plurality of product category atlases and a general atlas, the product category atlas comprises a plurality of product number atlases, and the product atlas unit is specifically configured to:

[0050] extracting a key value in the locator according to a preset first regular expression;

[0051] extracting a target product number and a target product type in the key value according to a preset second regular expression;

[0052] judging whether a product type atlas corresponding to the target product type exists in the target version atlas;

[0053] if yes, determining a product number atlas in the product type atlas corresponding to the target product type and consistent with the target product number as a target product atlas according to the target product number;

[0054] if no, determining the general atlas as the target product atlas.

[0055] Optionally, in a fourth implementation form of the second aspect of the present application, the regional atlas comprises a general atlas, a city atlas and a province atlas, and the regional atlas unit is specifically configured to:

[0056] parsing the positioning information to obtain a target city and a target province corresponding to the header image acquisition request;

[0057] judging whether a city atlas corresponding to the target city exists in the target product atlas;

[0058] if the city atlas corresponding to the target city exists in the target product atlas, determining the city atlas corresponding to the target city as a target regional atlas;

[0059] if the city atlas corresponding to the target city does not exist in the target product atlas, judging whether a province atlas corresponding to the target province exists in the target product atlas;

[0060] if yes, determining the province atlas corresponding to the target province as a target regional atlas;

[0061] if no, determining the general atlas as a target regional atlas.

[0062] Optionally, in a fifth implementation form of the second aspect of the present application, the feedback module is specifically configured to:

[0063] performing specification adjustment on the target header image according to the version information and a preset header image adjustment rule;

[0064] record the saving path of the adjusted target head map, and send the saving path as feedback information to the client in response to the head map acquisition request.

[0065] The third aspect of the present application provides a head map display system, characterized in that the head map display system comprises a plurality of clients and the head map display device of claim 6, and the head map display device is in communication connection with the clients.

[0066] The client comprises:

[0067] The acquisition module is configured to acquire preset version information and a preset locator, and acquire positioning information through a preset positioning interface.

[0068] The generation module is configured to generate a head map acquisition request according to the version information and the locator.

[0069] The sending module is configured to send the positioning information and the head map acquisition request to the head map display device, so as to determine, by the head map display device, a target head map corresponding to the head map acquisition request and a saving path corresponding to the target head map.

[0070] The receiving module is configured to receive feedback information sent by the head map display device, and obtain the saving path.

[0071] The writing module is configured to write the saving path into a preset calling component, so as to realize calling and display of the target head map.

[0072] The fourth aspect of the present application provides a head map display device, comprising a memory and at least one processor, the memory storing instructions, and the memory and the at least one processor being interconnected by a circuit; the at least one processor calling the instructions in the memory to enable the head map display device to perform the head map display method described above.

[0073] The fifth aspect of the present application provides a computer readable storage medium, the computer readable storage medium storing instructions, when the instructions are run on a computer, enabling the computer to perform the head map display method described above.

[0074] In the technical solution provided by this invention, the client first sends location information and a header image retrieval request. The server determines the candidate header images corresponding to the request based on the location information, and then selects the last stored candidate header image as the target header image based on the storage time of the candidate header images. The server then sends the storage path of the target header image as feedback information to the client. Through this method, the client can flexibly display header images representing the corresponding regional landscape based on its current location. Furthermore, this method also provides a solution for screening header images with regional characteristics based on four dimensions: client version information, product type and number, region, and time. The second solution, based on the first solution, takes into account different dimensions, improving the accuracy and hierarchy of header image display. When there are many candidate header images, this solution can be used to determine the most suitable target header image. After receiving the feedback information, the client writes the storage path corresponding to the target header image into the calling component, thereby achieving fast and convenient header image display. Therefore, this solution avoids designing multiple different versions of the client for different regions, reducing management redundancy and saving costs. Attached Figure Description

[0075] Figure 1 This is a schematic diagram of the first embodiment of the method shown in the header image of the present invention;

[0076] Figure 2 This is a schematic diagram of the second embodiment of the header image illustrating the method in this invention;

[0077] Figure 3 This is a schematic diagram of the third embodiment of the header image illustrating the method in this invention;

[0078] Figure 4 This is a schematic diagram of the fourth embodiment of the header image display method in this invention;

[0079] Figure 5 This is a schematic diagram of the fifth embodiment of the header image showing the method in this invention;

[0080] Figure 6 This is a schematic diagram of the sixth embodiment of the header image display method in the present invention;

[0081] Figure 7 This is a schematic diagram of one embodiment of the header image display device in this invention;

[0082] Figure 8 This is a schematic diagram of one embodiment of the header image display system in this invention;

[0083] Figure 9 The header image is a schematic diagram of one embodiment of the device shown in this invention. Detailed Implementation

[0084] The embodiment of the present application provides a head picture display method, device, equipment and storage medium, and the technical scheme provided by the present application comprises the following steps: a server determines a candidate head picture corresponding to a head picture acquisition request according to positioning information, selects a last-stored candidate head picture as a target head picture according to the storage time of the candidate head picture, and then sends the storage path of the target head picture to a client. Through the method, the client can flexibly display the head picture of the corresponding regional style according to the current positioning. In addition, the method also provides a scheme for screening the head picture with regional characteristics through four dimensions of the version information of the client, the product type and number, the region and the time. The second scheme takes into account different dimensions on the basis of the first scheme, and improves the accuracy and hierarchy of head picture display. When there are many candidate head pictures, the most suitable target head picture can be determined through the scheme. After receiving the feedback information, the client writes the storage path corresponding to the target head picture into a calling component, so that the head picture display is fast and convenient. Therefore, the scheme avoids designing multiple different versions of the client for different regions, reduces management redundancy, and saves cost.

[0085] The terms "first", "second", "third", "fourth" and the like in the description, claims, as well as the above-mentioned drawings (if any) of the present application are used to distinguish similar objects, and do not necessarily have to describe a particular order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" or "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0086] For the convenience of understanding, the specific flow of the embodiment of the present application is described below. Please refer to Figure 1 One embodiment of the head picture display method in the embodiment of the present application comprises the following steps:

[0087] 101. Receive the positioning information and the head picture acquisition request sent by the client, and parse the head picture acquisition request to obtain corresponding parameter information;

[0088] It can be understood that the execution subject of the present application can be a head picture display device, and can also be a terminal or a server, and the specific place is not limited. The embodiment of the present application takes the server as the execution subject for example.

[0089] The current mobile phone terminal is installed with a GPS positioning system, and the app can acquire the area where the device is located through the positioning system when the app is enabled. For example, the longitude and latitude are acquired through the API, and the address is acquired through the Geocoder reverse geocoding. In the embodiment, the client acquires the positioning information of the device through the API of Gaode: CitySearch.getLocalCity. After acquiring the positioning information, the client sends the positioning information and the head picture acquisition request to the server.

[0090] After the server receives the head picture acquisition request sent by the client, the server parses the head picture acquisition request to acquire the parameter information therein. In the embodiment, the parameter information includes the positioning symbol and the version information of the terminal.

[0091] 102. According to the positioning information and the parameter information, a target regional atlas in a preset version atlas is determined, and a head picture in the target regional atlas is taken as a candidate head picture corresponding to the head picture acquisition request.

[0092] When the positioning information is longitude and latitude, the server determines the city corresponding to the positioning information according to the longitude and latitude table. When the positioning information is city information, the server directly determines the target head picture according to the city name.

[0093] In the embodiment, the positioning information is A city, and it is determined whether the head picture of A city exists in the database. If the head picture exists, the head picture is taken as a candidate head picture. The embodiment only describes a simple case with small data. If the product quantity is large, the head picture data quantity is large, and the version of the client is large, the target head picture needs to be determined according to the comparison and judgment of multiple dimensions.

[0094] 103. The storage times corresponding to each candidate head picture are compared, and the candidate head picture stored last is determined as the target head picture.

[0095] In the embodiment, the candidate head picture is three, and the storage times are February 1, 2011, January 2, 2011, and November 1, 2013, respectively. The storage times corresponding to the candidate head pictures are compared, and the candidate head picture stored last is determined as the target head picture. In the embodiment, the head picture stored on November 1, 2013 is taken as the target head picture.

[0096] 104. The storage path corresponding to the target head picture is recorded, and the storage path is taken as feedback information and sent to the client to respond to the head picture acquisition request.

[0097] After the target header picture is determined, the storage path of the target header picture is recorded. If the front-end framework of the client is fixed, the target header picture may need to be converted and modified according to the version number of the client and the corresponding framework, so as to obtain a header picture that can be directly displayed by the front end. The target header picture after conversion and modification and the storage path are assembled into feedback information that can be parsed and used by the client, and then sent to the client.

[0098] In the embodiment of the application, the server determines the candidate header picture corresponding to the header picture acquisition request according to the positioning information, and selects the last stored candidate header picture as the target header picture according to the storage time of the candidate header picture, and then sends the storage path of the target header picture to the client. Through this method, the client can flexibly display the header picture of the corresponding regional style according to the current positioning.

[0099] Please refer to Figure 2 The second embodiment of the header picture display method in the embodiment of the application includes:

[0100] 201. Receive the positioning information and the header picture acquisition request sent by the client, and parse the header picture acquisition request to obtain corresponding parameter information, wherein the parameter information includes version information and a locator;

[0101] 202. Determine the target version picture set as the corresponding version picture set in the preset version picture set according to the version information, wherein the version picture set includes a plurality of product picture sets, and the version picture set is stored in a block chain;

[0102] In this embodiment, the version type of the client sending the header picture acquisition request is ios, and the version number is 1.0.0.

[0103] After the server parses the header picture acquisition request, the version type and version number of the app running on the client can be obtained. According to the obtained version type, it is determined that the corresponding version type picture set is the version type picture set of ios. The version picture set is stored in a block chain.

[0104] According to the obtained version number, it is further determined that the 1.0.0 version number picture set in the version type picture set of ios is the target version picture set.

[0105] Since different products also have their corresponding header pictures, after the target version picture set is determined, the corresponding product picture set needs to be further determined in the target version picture set.

[0106] The blockchain referred to in this invention is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked together using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain can include an underlying blockchain platform, a platform product service layer, and an application service layer.

[0107] 203. Based on the locator, determine the product atlas corresponding to the target version atlas as the target product atlas, wherein the product atlas includes multiple regional atlases;

[0108] In this embodiment, the locator is the URL. First, the key value of the locator is extracted, that is, the key of the URL.

[0109] The key in the URL is obtained using regular expressions. For example, in the URL "https: / / abcde&key=11911224# / ", the key contains the product number and type to be displayed. "11911224" is the key, "119" represents the product type, and "11224" is the product number. Regular expressions are then used to extract the product type and product number from the key. Based on the product number and product type, the target product image set in the version image set is determined. However, the header image for a product varies depending on the region. Therefore, it is necessary to further determine the region image set corresponding to the header image retrieval request within the target product image set.

[0110] 204. Based on the location information, determine the regional map set corresponding to the target product map set as the target regional map set;

[0111] The regional atlas includes city atlases, province atlases, and general atlases. City atlases contain header images for certain populous cities, while province atlases contain atlases for certain provinces. Due to sparse populations in some areas, corresponding city and province atlases have not yet been designed; header images from the general atlas will be displayed later.

[0112] In this embodiment, the server parses the location information and determines that the location request originates from City B in Province A. First, it determines whether City B has a corresponding city map set. If a corresponding city map set exists, it determines that the city map set is the target region map set containing the target header image. If it does not exist, it then checks whether a corresponding province map set exists. If no corresponding province map set exists, a general map set can be selected as the target region map set.

[0113] 205. Use the header image in the target region map set as the candidate header image corresponding to the header image retrieval request;

[0114] 206、compare the storage time corresponding to each of the candidate head maps, and determine the last stored candidate head map as the target head map;

[0115] 207、record the storage path corresponding to the target head map, and send the storage path as feedback information to the client in response to the head map acquisition request.

[0116] In the embodiment of the application, a scheme for screening head maps with regional characteristics through four dimensions of version information, product type and number, region and time of the client is provided, so that when the number of head maps is large, the appropriate head map can be finally determined through layer-by-layer screening according to the version information, product information, region and time, and the pertinence and accuracy of head map display are improved.

[0117] Please refer to Figure 3 The third embodiment of the head map display method in the embodiment of the application comprises:

[0118] 301、receive the positioning information and the head map acquisition request sent by the client, and parse the head map acquisition request to obtain corresponding parameter information, wherein the parameter information comprises version information and a locator;

[0119] 302、parse the version information to obtain a target version type and a target version number of the head map acquisition request;

[0120] Since there are various systems of existing mobile phones and computers, developers have developed different version types of apps based on different systems, such as ios system, Android system and windows system. The version type of the client sending the head map acquisition request is ios, and the version number is "1.0.0". After the server parses the version information, the version type and the version number of the app running on the client can be obtained.

[0121] 303、determine the version type atlas set corresponding to the version atlas set as a candidate version atlas set according to the target version type, wherein the version atlas set comprises a plurality of version type atlas sets, and the version type atlas set comprises a plurality of version number atlas sets;

[0122] There are some differences in page layout and development design between apps of different systems and different version numbers. In the present scheme, the head maps of the app belonging to the ios version are divided into the same version type atlas set, and the head maps of the app belonging to the Android version are divided into another version type atlas set according to the version type of the client. Therefore, according to the obtained version type, the version type atlas set corresponding thereto is determined as the ios version type atlas set.

[0123] 304. Based on the target version number, determine the version number map set corresponding to the candidate version map set as the target version map set;

[0124] Each version of an app undergoes continuous bug fixes, feature additions and removals, etc. Therefore, differences exist between different app version numbers. Based on the corresponding app version number, the header images of the iOS version type image set are further divided into different image sets. Based on the obtained version number, the corresponding version number image set is determined to be the "1.0.0" version number image set, and this is used as the target version image set.

[0125] 305. Based on the locator, determine the product atlas corresponding to the target version atlas as the target product atlas, wherein the product atlas includes multiple regional atlases;

[0126] 306. Based on the location information, determine the regional map set corresponding to the target product map set as the target regional map set;

[0127] 307. Use the header image in the target region map set as the candidate header image corresponding to the header image retrieval request;

[0128] 308. Compare the storage times corresponding to each candidate header image, and determine the last stored candidate header image as the target header image;

[0129] 309. Record the save path corresponding to the target header image, and send the save path as feedback information to the client in response to the header image retrieval request.

[0130] In this embodiment, a scheme for confirming candidate header images based on version information is described in detail. The range of target product image sets is narrowed down based on the version type and version number in the version information, thereby improving the relevance and accuracy of the target header images obtained subsequently.

[0131] Please see Figure 4 The fourth embodiment of the header image display method in this invention includes:

[0132] 401. Receive the location information and header image retrieval request sent by the client, and parse the header image retrieval request to obtain the corresponding parameter information;

[0133] 402. Based on the version information, determine the version atlas corresponding to the preset version atlas as the target version atlas;

[0134] 403. Extract the key values ​​from the locators according to the preset first regular expression;

[0135] In the embodiment, the key value is a key of a URL. The key can be obtained from the URL by using a regular expression. For example, the URL is "https: / / abcde&key=11911224 / #". By using a regular expression, the number between "key=" and "# / " is extracted, which is the key value, i.e., the key of the URL.

[0136] 404. According to a preset second regular expression, a target product number and a target product type in the key value are extracted.

[0137] The key value contains the number and type of the product to be displayed. In the embodiment, "119" represents the product type and "11224" represents the product number. The product type and the product number in the key are extracted by using a regular expression.

[0138] 405. It is determined whether a product type atlas corresponding to the target product type exists in the target version atlas, wherein the version atlas comprises a plurality of version type atlases, and each version type atlas comprises a plurality of version number atlases.

[0139] When the product type atlas contains a plurality of head images of different product numbers, the head images of the same product number are grouped into a product number atlas. According to the target product type of the key value in the obtained head image acquisition request, it is determined whether a product type atlas corresponding to the target product type exists.

[0140] 406. If yes, according to the target product number, a product number atlas in the product type atlas corresponding to the target product type and consistent with the target product number is determined as a target product atlas.

[0141] If yes, according to the target product number, a product number atlas in the corresponding product type atlas and consistent with the target product number is determined as a target product atlas.

[0142] Since one product type, such as a toothbrush, can contain a plurality of product numbers, such as a child toothbrush 112, a female toothbrush 231, and a male toothbrush 541, the head images corresponding to the same product number are placed in the same product number atlas, and the product number atlases corresponding to the same product type are placed in the same product type atlas.

[0143] 406. If no, the general atlas is determined as the target product atlas.

[0144] In some cases, for example, the product category is a new category, and there is no special head image at present. The general product atlas can be selected as the atlas containing the target head image. The head images in the general product atlas are all head images that can be commonly used and / or not grouped into the product number atlases.

[0145] 407、determine the corresponding regional atlas in the target product atlas as a target regional atlas according to the positioning information;

[0146] 408、take the head atlas in the target regional atlas as a candidate head atlas corresponding to the head atlas acquisition request;

[0147] 409、compare the storage time corresponding to each candidate head atlas and determine the candidate head atlas stored last as the target head atlas;

[0148] 410、record the storage path corresponding to the target head atlas and send the storage path as feedback information to the client to respond to the head atlas acquisition request.

[0149] In the embodiment, the scheme of confirming the candidate head atlas according to the product number and product type in the head atlas acquisition request is described in detail. The product atlas includes product type atlas and general atlas. When the corresponding product type atlas exists, the product number is further used to narrow the screening range. When the corresponding product type atlas does not exist, the general atlas can also be used as the target product atlas, so that the pertinence and accuracy of the target head atlas obtained subsequently are improved.

[0150] Please refer to Figure 5 The fifth embodiment of the head atlas display method in the embodiment of the application includes:

[0151] 501、receive the positioning information and the head atlas acquisition request sent by the client and parse the head atlas acquisition request to obtain corresponding parameter information;

[0152] 502、determine the corresponding version atlas in the preset version atlas as a target version atlas according to the version information;

[0153] 503、determine the corresponding product atlas in the target version atlas as a target product atlas according to the locator;

[0154] 504、parse the positioning information to obtain a target city and a target province corresponding to the head atlas acquisition request;

[0155] In the embodiment, the positioning information can be the longitude and latitude of the area where the terminal is located, or the province and city information where the terminal is located. If the positioning information is the longitude and latitude of the area, the server compares the longitude and latitude with the longitude and latitude table to determine the specific city and province, and finally obtains the corresponding target city and target province: B city, A province.

[0156] 505、determine whether the target product atlas includes a city atlas corresponding to the target city;

[0157] First, it is determined whether the city atlas corresponding to B exists.

[0158] 506、If the corresponding city atlas exists in the target product atlas, the corresponding city atlas of the target city is determined as the target regional atlas;

[0159] 507、If the corresponding city atlas does not exist in the regional atlas, it is determined whether the corresponding province atlas of the target province exists in the target product atlas;

[0160] If the corresponding city atlas of B city does not exist, it is determined whether the corresponding province atlas of A province exists.

[0161] 508、If yes, the corresponding province atlas of the target province is determined as the target regional atlas;

[0162] 509、If no, the general atlas is determined as the target regional atlas;

[0163] 510、The storage time corresponding to each candidate head atlas is compared, and the candidate head atlas stored last is determined as the target head atlas;

[0164] 511、The storage path corresponding to the target head atlas is recorded, and the storage path is sent to the client as feedback information to respond to the head atlas acquisition request.

[0165] In the embodiment, the city and the province in the positioning information are taken as indexes for narrowing the range of the candidate head atlas, so that the accuracy of the region where the client is located is improved.

[0166] Please refer to Figure 6 , the sixth embodiment of the head atlas display method in the embodiment of the application comprises:

[0167] 601、The positioning information and the head atlas acquisition request sent by the client are received, and the head atlas acquisition request is parsed to obtain corresponding parameter information, wherein the parameter information comprises version information and a locator;

[0168] 602、According to the version information, the corresponding version atlas in the preset version atlas is determined as the target version atlas, wherein the version atlas comprises a plurality of product atlases;

[0169] 603、According to the locator, the corresponding product atlas in the target version atlas is determined as the target product atlas, wherein the product atlas comprises a plurality of regional atlases;

[0170] 604、According to the positioning information, the corresponding regional atlas in the target product atlas is determined as the target regional atlas;

[0171] 605、The head atlas in the target regional atlas is taken as the candidate head atlas corresponding to the head atlas acquisition request;

[0172] 606、compare the storage time corresponding to each of the candidate head pictures, and determine the candidate head picture stored last as the target head picture;

[0173] 607、adjust the specification of the target head picture according to the version information and the preset head picture adjustment rule;

[0174] In the embodiment, the version information is included in the parameter information sent by the client. Although the target head picture is derived from the version picture set determined according to the version information, it is not necessarily that each head picture is accurately corresponding to the version of the terminal. For example, on the version number 1.0.1, the head picture with a resolution of 400 dpi is supported, but on the version number 2.0.1, the head picture with a resolution of 600 dpi is supported.

[0175] Therefore, after the target head picture is determined, the target head picture can be converted according to the version information and the head picture adjustment rule corresponding to the version information. The target head picture determined is 600 dpi, and the version number of the terminal is 1.0.1. Therefore, the head picture with 600 dpi is converted into a head picture with 400 dpi, and is saved as a cache file.

[0176] 608、record the storage path of the adjusted target head picture, and send the storage path as feedback information to the client to respond to the head picture acquisition request.

[0177] The storage path of the adjusted target head picture is recorded and sent to the client as feedback information. The client writes the storage path into the corresponding component according to the assembly requirement of the corresponding format, so as to facilitate subsequent calling and display.

[0178] In the embodiment, the server adjusts the target head picture according to the version information, so as to be more suitable for the front-end framework structure of the client, and the subsequent calling and display are more beautiful.

[0179] The head picture display method in the embodiment of the application is described above, and the head picture display device in the embodiment of the application is described below. Please refer to Figure 7 One embodiment of the head picture display device in the embodiment of the application includes:

[0180] The receiving module 701 is configured to receive the positioning information and the head picture acquisition request sent by the client, and parse the head picture acquisition request to obtain corresponding parameter information.

[0181] The candidate head picture module 702 is configured to determine the target regional picture set corresponding to the head picture acquisition request in the preset version picture set according to the positioning information and the parameter information, and take the head picture in the target regional picture set as the candidate head picture corresponding to the head picture acquisition request.

[0182] The target head picture module 703 is configured to compare storage times corresponding to the candidate head pictures, and determine the candidate head picture stored last as the target head picture.

[0183] The feedback module 704 is configured to record a storage path corresponding to the target head picture, and send the storage path as feedback information to the client to respond to the head picture acquisition request.

[0184] In the embodiment of the application, the server determines the candidate head picture corresponding to the head picture acquisition request according to the positioning information, selects the candidate head picture stored last as the target head picture according to the storage time of the candidate head picture, and then sends the storage path of the target head picture to the client. Through this method, the client can flexibly display the head picture corresponding to the regional features according to the current positioning.

[0185] Another embodiment of the head picture display device in the embodiment of the application comprises:

[0186] The receiving module is configured to receive the positioning information and the head picture acquisition request sent by the client, and parse the head picture acquisition request to obtain corresponding parameter information;

[0187] The candidate head picture module is configured to determine a target regional atlas corresponding to the head picture acquisition request in a preset version atlas set according to the positioning information and the parameter information, and take the head picture in the target regional atlas as the candidate head picture corresponding to the head picture acquisition request;

[0188] The target head picture module is configured to compare storage times corresponding to the candidate head pictures, and determine the candidate head picture stored last as the target head picture;

[0189] The feedback module is configured to record a storage path corresponding to the target head picture, and send the storage path as feedback information to the client to respond to the head picture acquisition request.

[0190] The version atlas is stored in a block chain, the parameter information includes version information and a locator, and the candidate head picture module comprises:

[0191] The version atlas unit is configured to determine a target version atlas corresponding to the version atlas in the preset version atlas set according to the version information, wherein the version atlas comprises a plurality of product atlases;

[0192] The product atlas unit is configured to determine a target product atlas corresponding to the product atlas in the target version atlas according to the locator, wherein the product atlas comprises a plurality of regional atlases;

[0193] The regional atlas unit is configured to determine a target regional atlas corresponding to the regional atlas in the target product atlas according to the positioning information.

[0194] a candidate head map unit, configured to obtain a head map in the target regional map set as a candidate head map corresponding to the head map acquisition request.

[0195] Optionally, the version map set includes a plurality of version type map sets, and the version type map set includes a plurality of version number map sets.

[0196] The version information is parsed to obtain a target version type and a target version number of the head map acquisition request.

[0197] According to the target version type, a version type map set corresponding to the version map set is determined as a candidate version map set.

[0198] According to the target version number, a version number map set corresponding to the candidate version map set is determined as a target version map set.

[0199] Optionally, the product map set includes a plurality of product category map sets and a general map set, and the product category map set includes a plurality of product number map sets.

[0200] According to a preset first regular expression, a key value in the locator is extracted.

[0201] According to a preset second regular expression, a target product number and a target product type in the key value are extracted.

[0202] It is judged whether a product type map set corresponding to the target product type exists in the target version map set.

[0203] If yes, a product number map set corresponding to the target product number in the product type map set corresponding to the target product type is determined as a target product map set according to the target product number.

[0204] If no, the general map set is determined as the target product map set.

[0205] Optionally, the regional map set includes a general map set, a city map set and a province map set, and the regional map set unit is specifically configured to:

[0206] The positioning information is parsed to obtain a target city and a target province corresponding to the head map acquisition request.

[0207] It is judged whether a city map set corresponding to the target city exists in the target product map set.

[0208] If the city map set corresponding to the target city exists in the target product map set, the city map set corresponding to the target city is determined as a target regional map set.

[0209] If the corresponding city atlas does not exist in the regional atlas, it is determined whether the corresponding province atlas of the target province exists in the target product atlas;

[0210] If yes, it is determined that the corresponding province atlas of the target province is the target regional atlas;

[0211] If no, the general atlas is determined as the target regional atlas.

[0212] Optionally, the feedback module is specifically configured to:

[0213] According to the version information and the corresponding preset head map adjustment rule, the specification of the target head map is adjusted;

[0214] The saving path of the adjusted target head map is recorded, and the saving path is sent to the client as feedback information to respond to the head map acquisition request.

[0215] In the embodiment of the application, the beneficial effects are as follows.

[0216] The above Figure 7 The head map display device in the embodiment of the application is described in detail from the perspective of a modular functional entity, and the head map display system in the embodiment of the application is described in detail from the perspective of hardware processing. Please refer to Figure 8 One embodiment of the head map display system in the embodiment of the application includes:

[0217] The head map display system includes a plurality of clients 810 and the above-mentioned head map display device 820, and the head map display device 820 is in communication connection with the clients 810.

[0218] The client 810 includes:

[0219] The acquisition module 811 is configured to acquire preset version information and a preset locator, and acquire positioning information through a preset positioning interface.

[0220] When a user clicks a certain link, the client receives an instruction to send an access request. At the same time, the client acquires its own version information, and the method used can be getversion(). The current mobile terminal is installed with a GPS positioning system, and the app can acquire the area where the device is located through the positioning system when it is enabled. Common methods include acquiring the longitude and latitude through the built-in API, and then querying the address where it is located through the Geocoder reverse geocoding; external SDK; external interface is used to acquire the external network IP, and then the API is used to obtain the address. In the embodiment, the client acquires the positioning data of the device through the API of Gaode: CitySearch.getLocalCity.

[0221] The client can directly send the positioning data as the positioning information to the server, and the server determines the specific country, province and city according to the longitude and latitude in the positioning data; or the client can directly obtain the country, province and city information corresponding to the positioning data from Gaode, and send the information as the positioning information to the server, so as to eliminate the step of determining the city according to the longitude and latitude by the server.

[0222] The generation module 812 is configured to generate a head picture acquisition request according to the version information and the locator.

[0223] After obtaining the version information and the locator, the client generates a head picture acquisition request.

[0224] The sending module 813 is configured to send the positioning information and the head picture acquisition request to the head picture display device, so as to determine, by the head picture display device, a target head picture corresponding to the head picture acquisition request and a storage path corresponding to the target head picture.

[0225] The receiving module 814 is configured to receive feedback information sent by the head picture display device, and obtain the storage path.

[0226] The writing module 815 is configured to write the storage path into a preset calling component, so as to realize calling and display of the target head picture.

[0227] In the embodiment, the framework used by the client is a VUE framework. In the VUE framework, the storage path can be written into a data component to realize calling of the head picture. A function of a target head picture to be called is written in advance. The preferred scheme of writing the storage path into the preset calling component in the embodiment is as follows: the name of the target head picture to be displayed is imgsrc, the return object in the data component is written with imgsrc: require('storage path') in advance, when the client obtains the storage path of the target head picture, the path is written into require('storage path'), and finally the target head picture is displayed based on the layout of the VUE framework.

[0228] In the embodiment, the client pre-establishes the VUE framework, directly writes the storage path into the data component when the storage path is received, and thus quick calling and display of the head picture can be realized.

[0229] The head picture display device in the embodiment of the application is described in detail from the perspective of hardware processing.

[0230] Figure 9is a structural schematic diagram of a head map display device provided by an embodiment of the present application. The head map display device 900 can have great differences due to different configurations or performances, and can include one or more central processing units (CPUs) 910 (for example, one or more processors) and a memory 920, one or more storage media 930 (for example, one or more mass storage devices) storing application programs 933 or data 932. The memory 920 and the storage media 930 can be temporary storage or persistent storage. The programs stored in the storage media 930 can include one or more modules (not shown in the figure), and each module can include a series of instruction operations in the head map display device 900. Further, the processor 910 can be configured to communicate with the storage media 930 and execute a series of instruction operations in the storage media 930 on the head map display device 900.

[0231] The head map display device 900 can also include one or more power supplies 940, one or more wired or wireless network interfaces 950, one or more input / output interfaces 960, and / or one or more operating systems 931, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art can understand that the head map display device 900 can include more or fewer components than those shown, or combine some components, or arrange different components. Figure 9 The head map display device structure shown does not constitute a limitation on the head map display device, and can include more or fewer components than those shown, or combine some components, or arrange different components.

[0232] The present application also provides a computer readable storage medium, which can be a non-volatile computer readable storage medium or a volatile computer readable storage medium. The computer readable storage medium stores instructions, and when the instructions are run on a computer, the computer executes the steps of the head map display method.

[0233] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described system, device and unit can refer to the corresponding processes in the foregoing method embodiments, which will not be described here.

[0234] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application or the entire or part of the technical solutions that essentially contribute to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.

[0235] The above-described embodiments are merely used to illustrate the technical solutions of the present application, rather than limit the same; even though the present application has been described in detail with reference to the foregoing embodiments, those ordinarily skilled in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacements for some of the technical features; and these modifications or replacements do not cause the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for displaying header images, characterized in that, The header image display method includes: Receive location information and header image retrieval request sent by the client, and parse the header image retrieval request to obtain the corresponding parameter information, including version information and locator; Based on the version information, the version set corresponding to the preset version set is determined as the target version set, wherein the version set is stored in the blockchain and includes multiple product sets; Based on the locator, the product atlas corresponding to the target version atlas is determined as the target product atlas, wherein the product atlas includes multiple regional atlases; Based on the location information, the region map set corresponding to the target product map set is determined as the target region map set; The header image in the target region map set is used as the candidate header image for the header image retrieval request; Compare the storage times of each candidate header image and determine the last stored candidate header image as the target header image; Record the save path corresponding to the target header image, and send the save path as feedback information to the client in response to the header image retrieval request.

2. The header image display method according to claim 1, characterized in that, The version atlas includes multiple version type atlases, and the version type atlas includes multiple version number atlases. The step of determining the version atlas corresponding to the preset version atlas as the target version atlas based on the version information includes: Parse the version information to obtain the target version type and target version number of the header image retrieval request; Based on the target version type, the version type map set corresponding to the version map set is determined as the candidate version map set; Based on the target version number, the version number map set corresponding to the candidate version map set is determined as the target version map set.

3. The header image display method according to claim 1, characterized in that, The product atlas includes multiple product category atlases and a general atlas. The product category atlas includes multiple product number atlases. Determining the product atlas corresponding to the target version atlas as the target product atlas based on the locator includes: Extract the key values ​​from the locator based on the preset first regular expression; Based on the preset second regular expression, extract the target product number and target product type from the key values; Determine whether a product type image set corresponding to the target product type exists in the target version image set; If so, then based on the target product number, determine the product number set in the product type set corresponding to the target product type that matches the target product number as the target product set; If not, then the general atlas is determined to be the target product atlas.

4. The header image display method according to claim 1, characterized in that, The regional map atlas includes general map atlases, city map atlases, and province map atlases. The step of determining the regional map atlas corresponding to the target product map atlas as the target regional map atlas based on the location information includes: The location information is parsed to obtain the target city and target province corresponding to the header image retrieval request; Determine whether a city map set corresponding to the target city exists in the target product map set; If a corresponding city map exists in the target product map set, then the city map set corresponding to the target city is determined to be the target region map set; If the corresponding city map does not exist in the regional map set, then it is determined whether the province map set corresponding to the target province exists in the target product map set; If so, then the provincial atlas corresponding to the target province is determined as the target regional atlas; If not, then the general atlas is determined as the target regional atlas.

5. The header image display method according to any one of claims 1-4, characterized in that, The step of recording the save path corresponding to the target header image and sending the save path as feedback information to the client in response to the header image retrieval request includes: Based on the version information and the corresponding preset header image adjustment rules, the target header image is sized and adjusted. Record the save path of the adjusted target header image and send the save path as feedback information to the client in response to the header image retrieval request.

6. A header image display device, characterized in that, The header image display device includes: The receiving module is used to receive location information and header image retrieval requests sent by the client, and parse the header image retrieval requests to obtain corresponding parameter information, including version information and locator; The candidate header image module is used to determine, based on the version information, a version image set corresponding to a preset version image set as a target version image set, wherein the version image set is stored in the blockchain and includes multiple product image sets; based on the locator, determine a product image set corresponding to the target version image set as a target product image set, wherein the product image set includes multiple regional image sets; based on the location information, determine a regional image set corresponding to the target product image set as a target regional image set; and use the header image in the target regional image set as a candidate header image for the header image retrieval request. The target header image module is used to compare the storage time of each candidate header image and determine the last stored candidate header image as the target header image. The feedback module is used to record the save path corresponding to the target header image and send the save path as feedback information to the client in response to the header image retrieval request.

7. A header image display system, characterized in that, The header image display system includes multiple clients and the header image display device as described in claim 6, wherein the header image display device is communicatively connected to the clients; The client includes: The acquisition module is used to acquire preset version information and preset locator, and to acquire location information through the preset location interface; The generation module is used to generate a header image retrieval request based on the version information and the locator; The sending module is used to send the location information and the header image acquisition request to the header image display device, so as to determine the target header image corresponding to the header image acquisition request and the storage path corresponding to the target header image through the header image display device; A receiving module is used to receive feedback information sent by the header image display device and obtain the save path; The writing module is used to write the saved path into the preset calling component to realize the calling and display of the target header image.

8. A header image display device, characterized in that, The header image display device includes: a memory and at least one processor, wherein the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor invokes the instructions in the memory to cause the header image display device to perform the header image display method as described in any one of claims 1-5.

9. A computer-readable storage medium storing a computer program thereon, characterized in that, When the computer program is executed by the processor, it implements the header image display method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Photo sharing method, photo sharing device and electronic equipment

    CN105743771A