Method, apparatus and electronic device for determining object domain name
By determining the numerical information corresponding to the object name, selecting the target character and converting it to a number, and combining this with the length of the object domain name array to determine the target object domain name, the problem of low CDN cache utilization caused by random matching of image domain names in multi-image websites is solved, achieving stable image loading and cost reduction.
Patent Information
- Application Number
- CN202210012053.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-06
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2042-01-06
AI Technical Summary
In existing technologies, multi-image websites suffer from low CDN cache utilization due to random matching of image domains, which increases operating costs and reduces image loading speed.
By determining the numerical information corresponding to the object name, the target characters are selected from the string and converted into numbers using preset rules. The target object domain name is determined by combining the length of the object domain name array, ensuring that the domain name matching remains constant each time it is accessed.
It improved CDN cache utilization, stabilized image URLs, increased image loading speed, and reduced website operating costs.
Smart Images

Figure CN116455867B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of Internet, and more particularly, to a method and apparatus for determining an object domain name, an electronic device, a computer readable storage medium, and a computer program product. BACKGROUND
[0002] In a multi-picture website (such as an e-commerce website), the general practice of picture address splicing is: picture URL (Uniform Resource Locator) = picture domain name + picture name. In order to achieve the loading efficiency of the multi-picture website, the multi-picture website usually supports multiple domain name access, that is, the multi-picture website supports different picture domain names to access the same picture under the condition that the picture name remains unchanged.
[0003] In the prior art, in the case that the multi-picture website has multiple domain names, the multi-picture website determines the picture URL in the following manner: first, a random number is randomly obtained, then a picture domain name that can be matched is determined according to the random number, and finally the matched picture domain name and the picture name are spliced to obtain the picture URL. SUMMARY
[0004] The present disclosure provides a method, apparatus and device for determining an object domain name, which can alleviate the technical problem that the same object name is matched to different object domain names, thereby improving the CDN (Content Delivery Network) cache utilization rate.
[0005] One aspect of the present disclosure provides a method for determining an object domain name, comprising: determining digital information corresponding to an object name; determining the length of an object domain name array corresponding to the object name; and determining one object domain name in the object domain name array as a target object domain name according to the digital information and the length of the object domain name array.
[0006] According to an embodiment of the present disclosure, the determining of the digital information corresponding to the object name comprises: determining a string corresponding to the object name, the string comprising at least one of a digital character, an English character and a symbol character; selecting at least one target character from the string according to a preset rule; converting each target character into a number to obtain a plurality of numbers; and sorting the plurality of numbers to obtain the digital information.
[0007] According to an embodiment of the present disclosure, the determining of the string corresponding to the object name comprises: extracting a candidate character from the object name, the candidate character comprising an English character; and determining the string corresponding to the object name according to the case of the English character in the candidate character.
[0008] According to an embodiment of the present disclosure, the determining the string corresponding to the object name according to the case of the English character in the alternative character comprises: replacing the lower-case English character in the alternative character with an upper-case English character to obtain the string.
[0009] According to an embodiment of the present disclosure, in the case that the target character comprises an English character, the converting each target character into a number comprises: converting each target character into a number according to the case of the English character in the target character.
[0010] According to an embodiment of the present disclosure, the converting each target character into a number according to the case of the English character in the target character comprises: replacing the lower-case English character in the target character with an upper-case English character to obtain an alternative target character; and converting each alternative target character into a number.
[0011] According to an embodiment of the present disclosure, the selecting at least one target character from the string according to a preset rule comprises: in the case that the number of characters in the string is less than or equal to a preset number, determining all the characters in the string as the selected target character; in the case that the number of characters in the string is greater than the preset number, dividing all the characters in the string into the preset number of first subsets and a second subset according to an order, and selecting one character from each first subset as the target character; wherein the number of characters in the preset number of first subsets is the same, and the number of characters in the second subset is less than the number of characters in the first subset.
[0012] According to an embodiment of the present disclosure, the selecting one character from each first subset as the target character comprises: selecting the character with the same order from each first subset as the target character.
[0013] According to an embodiment of the present disclosure, the determining the digital information corresponding to the object name comprises: selecting the digital character from the object name according to an order to obtain the digital information.
[0014] According to an embodiment of the present disclosure, the determining one object domain name in the object domain name array as the target object domain name according to the digital information and the length of the object domain name array comprises: determining the remainder of the digital information modulo the length of the object domain name array; and determining one object domain name in the object domain name array as the target object domain name according to the remainder.
[0015] Another aspect of the present disclosure provides an apparatus for determining an object domain name, comprising: a digital information determining module, a length determining module, and a target object domain name determining module; wherein the digital information determining module is configured to determine digital information corresponding to an object name; the length determining module is configured to determine the length of an object domain name array; and the target object domain name determining module is configured to determine one object domain name in the object domain name array as a target object domain name according to the digital information and the length of the object domain name array.
[0016] Another aspect of the present disclosure provides an electronic device, comprising: one or more processors; further comprising a memory for storing one or more programs; wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method for determining an object domain name as described above.
[0017] Another aspect of the present disclosure provides a computer readable storage medium, storing computer executable instructions, which when executed, implement the method described in the embodiments of the present disclosure.
[0018] Another aspect of the present disclosure provides a computer program, comprising computer executable instructions, which when executed, implement the method described in the embodiments of the present disclosure.
[0019] According to the embodiments of the present disclosure, the object name of the same object is fixed and unchangeable, and the digital information determined by the object name is unique, so the same object matches the fixed object domain name. Therefore, the scheme of the embodiments of the present disclosure can improve the content distribution network (CDN) cache utilization rate. BRIEF DESCRIPTION OF DRAWINGS
[0020] The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure, taken in conjunction with the accompanying drawings, in which:
[0021] Figure 1 An exemplary system architecture to which the method and apparatus for determining an object domain name of the present disclosure can be applied is schematically shown;
[0022] Figure 2 A flowchart of the method for determining an object domain name according to the embodiments of the present disclosure is schematically shown;
[0023] Figure 3 A flowchart of determining digital information corresponding to an object name according to the embodiments of the present disclosure is schematically shown;
[0024] Figure 4 A flowchart of determining a string corresponding to an object name according to the embodiments of the present disclosure is schematically shown;
[0025] Figure 5 A flowchart is illustratively shown for determining a string corresponding to an object name according to the case of English characters in alternative characters according to embodiments of the present disclosure;
[0026] Figure 6 A flowchart is illustratively shown for converting each target character into a number according to embodiments of the present disclosure;
[0027] Figure 7 A flowchart is illustratively shown for converting each target character into a number according to the case of English characters in target characters according to embodiments of the present disclosure;
[0028] Figure 8 A flowchart is illustratively shown for selecting at least one target character from a string according to a preset rule according to embodiments of the present disclosure;
[0029] Figure 9 A flowchart is illustratively shown for a method for determining an object domain name according to embodiments of the present disclosure;
[0030] Figure 10 A flowchart is illustratively shown for determining a target object domain name according to embodiments of the present disclosure;
[0031] Figure 11 A flowchart is illustratively shown for a method for determining an object domain name according to embodiments of the present disclosure;
[0032] Figure 12 A block diagram is illustratively shown for an apparatus for determining an object domain name according to embodiments of the present disclosure; and
[0033] Figure 13 A block diagram is illustratively shown for an electronic device adapted to implement a method for determining an object domain name according to embodiments of the present disclosure. DETAILED DESCRIPTION
[0034] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It is to be understood, however, that the description is merely exemplary of the present disclosure, and is not intended to limit the scope of the present disclosure. In the following detailed description of embodiments of the present disclosure, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure. However, it would be apparent to one skilled in the art that the present disclosure can be practiced without these specific details. In other instances, well-known structures and functions have not been described in detail in order to avoid obscuring aspects of the present disclosure.
[0035] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the present disclosure. As used herein, the term "includes" and "including" means the inclusion without limitation.
[0036] All terms used herein (including technical and scientific terms) have the meaning commonly understood by one of ordinary skill in the art to which this disclosure pertains, unless otherwise defined. It should be noted that the use of any of the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification, and should not be interpreted in an idealized or overly formal manner.
[0037] In the case of using expressions similar to "at least one of A, B, and C, etc.", it should be generally interpreted as including any of them alone, any combination of two or more of them, etc. in the meaning of including at least one of the items (for example, "a system having at least one of A, B, and C" should include a system having A alone, a system having B alone, a system having C alone, a system having A and B together, a system having A and C together, a system having B and C together, and / or a system having A, B, and C together, etc.).
[0038] In implementing the present disclosure, the inventors have found that at least the following problems exist in the related art: Since the picture domain name needs to be determined based on the obtained random number each time the same picture is accessed, the same picture can be matched with multiple picture domain names, and the picture domain name matched each time for the same picture name is random, i.e., different users access the same picture name to match different picture domain names.
[0039] For picture access of general e-commerce websites, CDN caching is increased to improve picture loading efficiency. However, according to the existing picture URL determination manner, since the picture domain name matched is random, and the picture URL is determined according to the picture domain name, the picture URL addresses accessed by different users are different, which reduces the utilization rate of CDN caching, increases the data volume of CDN, reduces the picture loading speed, and increases the website operation cost.
[0040] Figure 1 An exemplary system architecture 100 to which the method and apparatus for determining an object domain name can be applied according to an embodiment of the present disclosure is schematically shown. It should be noted that, Figure 1 The shown is only an example of a system architecture to which the embodiments of the present disclosure can be applied, to help those skilled in the art understand the technical content of the present disclosure, but does not mean that the embodiments of the present disclosure cannot be used for other devices, systems, environments or scenarios.
[0041] As Figure 1 shown, the system architecture 100 according to the embodiment can include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 can include various connection types, such as wired and / or wireless communication links, etc.
[0042] The user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, and / or social platform software, etc. (only as examples).
[0043] The terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smartphones, tablet computers, laptop computers, desktop computers, etc.
[0044] The server 105 can be a server providing various services, such as a background management server providing support for websites browsed by users using the terminal devices 101, 102, 103 (only as an example). The background management server can analyze and process received user requests and other data, and feed back the processing results (such as web pages, information, or data, etc. obtained or generated according to user requests) to the terminal devices.
[0045] It should be noted that the method for determining an object domain name provided by the embodiments of the present disclosure can generally be executed by the server 105. Accordingly, the apparatus for determining an object domain name provided by the embodiments of the present disclosure can generally be arranged in the server 105. The method for determining an object domain name provided by the embodiments of the present disclosure can also be executed by a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the apparatus for determining an object domain name provided by the embodiments of the present disclosure can also be arranged in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and / or the server 105. Alternatively, the method for determining an object domain name provided by the embodiments of the present disclosure can also be executed by the terminal devices 101, 102, or 103, or by other terminal devices different from the terminal devices 101, 102, or 103. Accordingly, the apparatus for determining an object domain name provided by the embodiments of the present disclosure can also be arranged in the terminal devices 101, 102, or 103, or in other terminal devices different from the terminal devices 101, 102, or 103.
[0046] For example, the object name and the object domain name array can be stored in any one of the terminal devices 101, 102, or 103 (for example, the terminal device 101, but not limited thereto), or stored on an external storage device and imported into the terminal device 101. Then, the terminal device 101 can locally execute the method for determining the object domain name provided by the embodiments of the present disclosure, or send the object name and the object domain name array to other terminal devices, servers, or server clusters, and execute the method for determining the object domain name provided by the embodiments of the present disclosure by other terminal devices, servers, or server clusters receiving the object name and the object domain name array.
[0047] It should be understood that Figure 1 The number of terminal devices, networks, and servers in the system is only illustrative. Any number of terminal devices, networks, and servers can be provided according to the needs of implementation.
[0048] Figure 2 An illustrative flowchart of the method for determining the object domain name according to the embodiments of the present disclosure is shown.
[0049] As Figure 2 shown, the method includes operations S210-S230.
[0050] In operation S210, determine the digital information corresponding to the object name.
[0051] For example, the object can refer to a file of a type of picture, moving picture, or video, etc. The object name can only include the content of the file name itself, and ignore the extension. The object name can also include the content of the file name itself and the extension. For example, an object is a picture file, the name of the picture file is jfs / t.jpg, and the object name of the picture file can be jfs / t.jpg or jfs / t. Considering that the extension does not have randomness, the file name is generally taken as the object name after ignoring the extension. In addition, although the object name determined for the same object can be different, the same object name is used in each processing process. The digital information includes at least one digit. The object name corresponding to the digital information indicates that the digital information corresponding to the same object name is unique, but the same digital information can correspond to multiple object names.
[0052] In operation S220, determine the length of the object domain name array corresponding to the object name.
[0053] For example, the object domain name array can be a set containing a plurality of object domain names. The length of the object domain name array represents the number of object domain names in the object domain name array. For example, an object domain name array includes 7 object domain names, and the length of the object domain name array is 7.
[0054] At operation S230, one object domain name in the object domain name array is determined as the target object domain name according to the digital information and the length of the object domain name array.
[0055] For example, the target object domain name corresponding to the digital information is determined through some specific operation rules. The operation rules can include calculating the remainder of the digital information divided by the length of the object domain name number, and then determining the corresponding target object domain name according to the remainder. The operation rules can also include calculating the ratio of the digital information to the object domain name number, and then determining the corresponding target object domain name according to the ratio.
[0056] It should be noted that the embodiments of the present disclosure are to convert the object name into corresponding digital information, and the content of the rule used in the conversion process of the object name and the digital information is not important, as long as the digital information determined by the object name is fixed and unchanged each time the object is accessed.
[0057] As can be seen from the above, the method of the embodiments of the present disclosure determines the target object domain name according to the object name, rather than through a random number. Since the object name of the same object is fixed and unchanged, the target object domain name matching the same object is also fixed and not random, so that the object name can be matched to the same object domain name in the object domain name array, so that the spliced object URL address obtained by splicing the object domain name and the object name is stable, and the utilization rate of CDN cache is improved.
[0058] Those skilled in the art can understand that, Figure 2 The serial numbers of the steps are only used to distinguish different operations, and should not be considered as a limitation on the execution order of the method.
[0059] Figure 3 A flowchart for determining the digital information corresponding to the object name according to the embodiments of the present disclosure is schematically shown.
[0060] As Figure 3 shown, operation S210 can include operations S211-S214.
[0061] At operation S211, a string corresponding to the object name is determined; wherein the string includes at least one of a digital character, an English character, and a symbol character.
[0062] For example, the digital character includes 0-9. The English character includes uppercase English characters and / or lowercase English characters, including A-Z and a-z, respectively. The symbol character refers to a symbol supported by the object, such as a slash ( / ), a percent sign (%), etc. Since the characters in the string can be of various types, the method of the embodiments of the present disclosure is applicable to the case where the object name includes a digital character, an English character, and / or a symbol character.
[0063] In operation S212, at least one target character is selected from the string according to preset rules.
[0064] For example, selecting at least one target character from a string according to preset rules can mean selecting characters at preset positions in the string as target characters. The preset position can be a position calculated based on a specific function. For example, the preset position could refer to the first few positions, the last few positions, all odd positions, all even positions, or positions that are multiples of a preset value.
[0065] In operation S213, each target character is converted into a number, resulting in multiple numbers.
[0066] For example, there is a correspondence between target characters and numbers. This correspondence can be based on the ASCII code table, the Unicode code table, or other custom mapping tables. For instance, if the correspondence uses the ASCII code table, then when the target characters include 9, C, B, and 2, the corresponding numbers are 57, 67, 66, and 50, respectively.
[0067] In operation S214, multiple numbers are sorted to obtain numerical information.
[0068] For example, when sorting multiple numbers, you can sort them according to the order of the target characters, such as ascending or descending order. Alternatively, you can sort the numbers corresponding to the odd-numbered target characters first, then the numbers corresponding to the even-numbered target characters. For instance, when the target characters include 9, C, B, and 2, and the corresponding numbers are 57, 67, 66, and 50, the number obtained by ascending order is 57676650, and the number obtained by descending order is 50666757. Other arrangements will also yield the number 57666750. Generally, for simplicity, ascending order is used when sorting multiple numbers.
[0069] It's important to note that the number of target characters needs to be determined based on the corresponding digit and the maximum number supported by the computer system. For example, for a 32-bit computer, the numeric information can be 8 digits. If each target character converts to a two-digit number, then four target characters can be selected. Understandably, three target characters also apply to a 32-bit computer. As another example, for a 64-bit computer, the numeric information can be 9 digits.
[0070] Figure 4 A flowchart illustrating the determination of a string corresponding to an object name according to an embodiment of this disclosure is shown.
[0071] like Figure 4 As shown, operation S211 may include operations S2111 to S2112.
[0072] In operation S2111, candidate characters are extracted from the object name, the candidate characters including English characters.
[0073] For example, when extracting the candidate characters from the object name, each character in the object name can be extracted in sequence. Alternatively, only part of the characters in the object name can be extracted, for example, all the numeric characters in the object name, or all the uppercase English characters, or all the symbol characters, or the characters in a specific position.
[0074] In operation S2112, a string corresponding to the object name is determined according to the case of the English characters in the candidate characters.
[0075] For example, considering that in the ASCII code table, the numbers corresponding to the uppercase English characters and the lowercase English characters are different, for example, the number corresponding to the uppercase English character A is 65, and the number corresponding to the lowercase English character a is 97. Therefore, each lowercase English character in the candidate characters can be converted into the corresponding uppercase English character, or each uppercase English character can be converted into the corresponding lowercase English character, so that the characters in the determined string are all uppercase characters or all lowercase characters. Therefore, in the case where the target character includes English characters, the target character selected from the string is also all uppercase characters or all lowercase characters, and one of the uppercase English characters and the lowercase English characters can be omitted in the mapping table, thereby reducing the amount of data in the mapping table and improving the efficiency of converting the target character into a number.
[0076] Figure 5 A flowchart of determining a string corresponding to the object name according to the case of the English characters in the candidate characters according to an embodiment of the present disclosure is schematically shown.
[0077] As shown in Figure 5 operation S2112 can include operation S21121.
[0078] In operation S21121, the lowercase English characters in the candidate characters are replaced with uppercase English characters to obtain the string.
[0079] For example, taking the ASCII code table as an example, the numbers corresponding to the uppercase English characters are two digits, and the numbers corresponding to d to z in the lowercase English characters are three digits, so after replacing the lowercase English characters with the uppercase English characters, the target characters selected from the string all correspond to two digits, and the number of bits of the digital information is less, so the digital information obtained is more likely to be less than or equal to the maximum number supported by the computer system. For example, it is determined that four target characters, and the target characters only include numbers and uppercase English characters, since the ASCII codes of the number characters 0 to 9 are two digits, and the ASCII codes of the uppercase English characters A to Z are also two digits, the four target characters are converted into 8-bit digital information, which does not exceed the maximum number supported by the system even on a 32-bit computer.
[0080] Figure 6 A flowchart of converting each target character into a number according to an embodiment of the disclosure is schematically shown.
[0081] As shown in Figure 6 , in the case where the target characters include English characters, operation S213 can include operation S2131.
[0082] In operation S2131, each target character is converted into a number according to the case of the English characters in the target character.
[0083] For example, based on the same consideration as above, since the numbers corresponding to the uppercase English characters and the lowercase English characters are different in a commonly used mapping table (such as the ASCII code table), the case of the target characters can be unified, and at this time one of the uppercase and lowercase English characters can be omitted in the mapping table, reducing the amount of data in the mapping table and improving the efficiency of converting the target characters into numbers.
[0084] Figure 7 A flowchart of converting each target character into a number according to the case of the English characters in the target character in operation S2131 according to an embodiment of the disclosure is schematically shown.
[0085] As shown in Figure 7 , operation S2131 can include operations S21311-S21312.
[0086] In operation S21311, the lowercase English characters in the target characters are replaced with uppercase English characters to obtain alternative target characters;
[0087] In operation S21312, each alternative target character is converted into a number.
[0088] For example, taking the ASCII code table as an example, after replacing the lowercase English characters with the uppercase English characters, the number of bits of the digital information obtained from the target characters is less, and it is more likely to be less than or equal to the maximum number supported by the computer system.
[0089] It should be noted that operation S2131 and operation S2111-S2112 are parallel schemes, and the difference between the two is that the time of unifying the capital and small English characters is different, and one of them can be selected to implement the method according to the embodiment of the disclosure. For the scheme using operation S2131, the string is determined first, and then the target character is selected, and then the capitalization of the English character in the target character is unified. For operation S2111-S2112, the capitalization of the English character is unified first, and the string with unified capitalization is obtained.
[0090] Figure 8 The flowchart of selecting at least one target character from the string according to the preset rule according to the embodiment of the disclosure is schematically shown.
[0091] As shown in Figure 8 Operation S212 can include operations S2121-S2123.
[0092] In operation S2121, it is determined whether the number of characters in the string is greater than a preset number, if yes, operation S2122 is performed; if no, operation S2123 is performed.
[0093] For example, the preset number needs to be determined according to the number corresponding to the target character and the maximum number supported by the computer system, so that the number information corresponding to the target character does not exceed the maximum number supported by the computer. For example, for a 32-bit computer, the preset number can be 4.
[0094] In operation S2122, all characters in the string are divided into a preset number of first subsets and a second subset according to the order, and one character is selected from each first subset as a target character. The number of characters in the preset number of first subsets is the same as each other, and the number of characters in the second subset is less than the number of characters in the first subset.
[0095] For example, all characters in the string are divided into several subsets according to the order of arrangement, the subsets include first subsets and a second subset, and the second subset can be an empty set or a non-empty set. For example, the string includes 50 characters, and the preset number is 5, then there are 5 first subsets, each first subset includes 10 characters, and the second subset is an empty set. For another example, the string has a total of 53 characters, and the preset number is 5, then there are 5 first subsets, each first subset includes 10 characters, and the second subset includes 3 characters.
[0096] The order of the second subset and the first subset is not limited, for example, the first few characters in the string can be classified into the second subset, or the last few characters can be classified into the second subset, or the middle few characters can be classified into the second subset.
[0097] When selecting a character from each first subset as a target character, the following operation S21221 can be used, so that the target character has the same arrangement position in the corresponding first subset. Other schemes can also be used, such as randomly selecting a character in the first subset, in which case the arrangement position of the target character in the corresponding first subset is random.
[0098] Since the first subsets are divided according to the arrangement order of the characters, and a character is selected from each first subset as a target character, the target characters can be more dispersedly distributed in the string. In actual applications, considering that the similarity between some object names is relatively high, only the first few, last few, or middle few characters are different between the two object names, and the remaining characters are the same. In order to distinguish objects with similar object names, according to the technical scheme of the present disclosure, the digital information of the object names should be as different as possible.
[0099] In operation S2123, all characters in the string are determined as selected target characters.
[0100] For example, when the number of characters in the string is small, since the number corresponding to the string will not exceed the maximum number supported by the computer, the string can not be processed, and each character in the string can be directly determined as a target character.
[0101] According to an embodiment of the present disclosure, operation S2122 can include operation S21221.
[0102] In operation S21221, a character with the same order is selected from each first subset as a target character.
[0103] For example, the characters in the first subset are arranged in order, and the arrangement order is consistent with the order of the characters in the string. The character arranged at the Nth position in each first subset is selected as a target character, so that the target character has the same arrangement position in the corresponding first subset. For example, the first subset has 5, and each first subset includes 10 characters. The last character in each first subset can be selected as a target character, or the 8th character in each first subset can be selected as a target character. Using the scheme of the present disclosure, the target character can be further selected more dispersedly from the string.
[0104] In practical applications, the method of operation S21221 can be implemented by a function, for example, in a string, x = Math.floor(str2.length / n) is calculated; wherein str2.length represents the length of the string, n represents the preset number, Math.floor represents the floor function, and the calculated x is an integer, and then the x-1, 2x-1, 3x-1,... nx-1 characters are selected as target characters. It should be noted that the serial number of the string starts from 0, for example, for the string JFST118146519, the 0th character is J, and the 3rd character is T.
[0105] Figure 9 A flowchart of a method for determining an object domain name according to an embodiment of the present disclosure is schematically shown.
[0106] As shown in Figure 9 operation S210 can include operation S215.
[0107] In operation S215, the numerical characters are selected from the object name in order to obtain numerical information.
[0108] For example, for the case where the object name contains numerical characters, the numerical characters can be selected from the object name, and then the numerical characters are sorted to obtain numerical information; wherein the sorting method can be according to the arrangement order of the characters in the object name. For example, the object name is JFST11814M6cx51, and the numerical information can be 11814651.
[0109] It can be understood that in the case where the number of numerical characters in the object name exceeds the preset number mentioned above, after the numerical characters are selected from the object name, the numerical information can also be determined by other methods, for example, the first preset number (such as 4) of target characters are selected from the numerical characters according to the above operations S211-S214, and then the target characters are converted into numbers according to the mapping table, and the numbers are sorted to obtain the numerical information. The second preset number (such as 8) of target characters can also be selected from the numerical characters, and the process of converting the numerical characters into numbers according to the mapping table is omitted, and the target characters are directly sorted to obtain the numerical information.
[0110] It should be noted that the scheme of determining the numerical information only from the numerical characters in the object name is not applicable to the case where the object name does not contain numerical characters. Operation S215 and operations S211-S214 are parallel schemes, and one of them can be selected to implement the method according to an embodiment of the present disclosure.
[0111] Figure 10 A flowchart of a method for determining an object domain name according to an embodiment of the present disclosure is schematically shown.
[0112] As Figure 10 shown, operation S230 can include operations S231-S232.
[0113] In operation S231, a remainder of the digital information modulo the length of the object domain name number is determined.
[0114] In operation S232, one of the object domain name array is determined as the target object domain name according to the remainder.
[0115] For example, in a multi-picture website or other types of websites, the number of objects is generally greater than the number of object domain names, so in order to randomly distribute multiple objects in multiple object domain names to a certain degree, the loading speed of the objects can be improved. The remainder of the digital information modulo the length of the object domain name number can be calculated. Since the length of the object domain name number is M, the result of the modulo operation includes 0, 1, 2,..., M-1, that is, the number of results of the modulo operation is the same as the length of the object domain name number, so the remainder can be one-to-one corresponding to the object domain name in the object domain name array, so as to disperse the objects to each object domain name. For example, the total number of object domain names is 6, and the digital information is 57676650. The result of the modulo operation is 0, and the object is matched to the object domain name corresponding to the remainder 0.
[0116] Figure 11 A flowchart of a method for determining an object domain name according to an embodiment of the present disclosure is schematically shown.
[0117] In order to facilitate understanding of the method for determining the object domain name, an embodiment is specifically described below. One object is a picture file, and the object name is jfs / t1 / 181465 / 1 / 9802 / 150947 / 60cc5c24E636ae48b / f7360d76a7aa2aea.jpg. The process of determining the object domain name of the object name is as follows: first, the content of the object name itself is intercepted, and the extension of the object is ignored to obtain a string str1, that is, jfs / t1 / 181465 / 1 / 9802 / 150947 / 60cc5c24E636ae48b / f7360d76a7aa2aea. Then operation S1101 is performed, and the string str1 is simplified, for example, the digital characters 0-9, the uppercase English characters A-Z and the lowercase English characters a-z are extracted from the string str1. Then operation S1102 is performed, for example, the lowercase English characters are converted into uppercase English characters to form a new string str2, that is,
[0118] JFST11814651980215094760CC5C24E636AE48BF7360D76A7AA2AEA,
[0119] It can be seen that the string str2 includes numeric characters and uppercase English characters. Then operation S1103 is performed, assuming that the preset number is 4, i.e., 4 target characters need to be selected from the string str2. Since the length of the string str2 is greater than the preset number, operation S1104 is performed, e.g., a = str2.length / 4 is calculated, and then a is rounded down to obtain an integer x, and then the x-1, 2x-1, 3x-1, 4x-1, etc. characters are obtained to splice the string str3. It can be calculated that a = 13.75, x = 13, and therefore the string str3 is 9CB2. Then operation S1106 is performed, e.g., the characters in the string str3 are converted into ASCII codes one by one. Then operation S1107 is performed, e.g., the ASCII codes are spliced into a new string str4 to obtain the numeric information str4 as 57676650. Then operation S1108 is performed, assuming that the length of the object domain name array is 6. Then operation S1109 is performed, e.g., the numeric information str4 is taken modulo the length of the object domain name array, and the result of the modulo operation is 0. Then operation S1110 is performed, e.g., the object domain name array is determined to have an object domain name as the target object domain name through the remainder 0. After the target object domain name is determined, the target object domain name and the object name are spliced to obtain the spliced object URL address.
[0120] In order to verify the method for determining the object domain name in the above, an embodiment is specifically described below.
[0121] Assume that the 15 object names in the actual application are as follows:
[0122] jfs / t1 / 113589 / 24 / 11332 / 4897 / 5efbf3feE705d87db / e5c12d5e943266b9.png;
[0123] jfs / t1 / 195778 / 40 / 3028 / 153295 / 609e2e3eE00bd596d / 4f013eaf3fbb7230.jpg;
[0124] jfs / t1 / 140012 / 8 / 1804 / 3641 / 5efbf318E38bd5dad / 0db99d859ab16ce9.png;
[0125] jfs / t1 / 116602 / 7 / 11200 / 3796 / 5efbf375Ebba41029 / f07cc166f368fa05.png;
[0126] jfs / t1 / 179511 / 33 / 4023 / 3422 / 609e0d45Ea495a996 / 3783165b48cf1e08.png;
[0127] jfs / t1 / 131663 / 33 / 3380 / 3674 / 5efbf50fEf79cf314 / af4b57d2383e605d.p ng;
[0128] jfs / t1 / 123730 / 37 / 5924 / 4189 / 5efbf567E0a226121 / d04df7c74c87cf68. png;
[0129] jfs / t1 / 125193 / 15 / 5993 / 3443 / 5efbf5dbEa3327124 / a4282d5cb2879c8b. png;
[0130] jfs / t1 / 133947 / 24 / 3428 / 4213 / 5efbf625E7e1b4e98 / 95fda84d8748f88d. png;
[0131] jfs / t1 / 118396 / 30 / 11271 / 2692 / 5efbf680Eb3a3cf32 / c3e85c4d99746400.png;
[0132] jfs / t1 / 123571 / 19 / 6008 / 3747 / 5efbf6b2E03153a36 / 9ddc9036ba1c11a1. png;
[0133] jfs / t1 / 115003 / 18 / 11199 / 3519 / 5efbf6eaEe59cb7f6 / dab44230606cd112. png;
[0134] jfs / t1 / 116056 / 30 / 11288 / 4223 / 5efbf753Ee7cf2cd7 / 3977b5fe42b136e4. png;
[0135] jfs / t1 / 192211 / 36 / 9719 / 180634 / 60d2ad23E65bcabab / 1ea73dbeb842fe 9e.jpg;
[0136] jfs / t1 / 179114 / 11 / 10653 / 191671 / 60d0a058E787373aa / 5bc2b6fcf6fcd51b.jpg.
[0137] Meanwhile, assuming that there are 6 object domain names in the object domain name array, respectively:
[0138] img0.someimg.com
[0139] img1.someimg.com
[0140] img2.someimg.com
[0141] img3.someimg.com
[0142] img4.someimg.com
[0143] img5.someimg.com
[0144] According to the method for determining the object domain name, the matching relationship of the 15 object names and the target object domain name is shown in Table 1, and the matching times of each object domain name in the object domain name array and the corresponding object domain name are shown in Table 2.
[0145] Table 1
[0146] Serial Number Object Name Target Object Domain Name 1 jfs / t1 / 113589 / 24 / 11332 / 4897 / 5efbf3feE705d87db / e5c12d5e943266b9.png Img4.someimg.com 2 jfs / t1 / 195778 / 40 / 3028 / 153295 / 609e2e3eE00bd596d / 4f013eaf3fbb7230.jpg Img0.someimg.com 3 jfs / t1 / 140012 / 8 / 1804 / 3641 / 5efbf318E38bd5dad / 0db99d859ab16ce9.png img3.someimg.com 4 jfs / t1 / 116602 / 7 / 11200 / 3796 / 5efbf375Ebba41029 / f07cc166f368fa05.png Img5.someimg.com 5 jfs / t1 / 179511 / 33 / 4023 / 3422 / 609eod45Ea495a996 / 3783165b48cf1e08.png img3.someimg.com 6 jfs / t1 / 131663 / 33 / 3380 / 3674 / 5efbf50fEf79cf314 / af4b57d2383e605d.png Img0.someimg.com 7 jfs / t1 / 123730 / 37 / 5924 / 4189 / 5efbf567E0a226121 / d04df7c74c87cf68.png Img2.someimg.com 8 jfs / t1 / 125193 / 15 / 5993 / 3443 / 5efbf5dbEa3327124 / a4282d5cb2879c8b.png img3.someimg.com 9 jfs / t1 / 133947 / 24 / 3428 / 4213 / 5efbf625E7e1b4e98 / 95fda84d8748f88d.png Img4.someimg.com 10 jfs / t1 / 118396 / 30 / 11271 / 2692 / 5efbf680Eb3a3cf32 / c3e85c4d99746400.png Img2.someimg.com 11 jfs / t1 / 123571 / 19 / 6008 / 3747 / 5efbf6b2E03153a36 / 9ddc9036ba1c11a1.png Img5.someimg.com 12 jfs / t1 / 115003 / 18 / 11199 / 3519 / 5efbf6eaEe59cb7f6 / dab44230606cd112.png Img4.someimg.com 13 jfs / t1 / 116056 / 30 / 11288 / 4223 / 5efbf753Ee7cf2cd7 / 3977b5fe42b136e4.png Img1.someimg.com 14 jfs / t1 / 192211 / 36 / 9719 / 180634 / 60d2ad23E65bcabab / 1ea73dbeb842fe9e.jpg Img5.someimg.com 15 jfs / t1 / 179114 / 11 / 10653 / 191671 / 60doa058E787373aa / 5bc2b6fcf6fcd51b.jpg Img1.someimg.com
[0147] Table 2
[0148] Target Object Domain Name Matching Times img0.someimg.com 2 img1.someimg.com 2 img2.someimg.com 2 img3.someimg.com 3 img4.someimg.com 3 img5.someimg.com 3
[0149] It can be seen that each object name is stably corresponding to one of the object domain names, and the matching times of each object domain name are similar, thereby improving the object loading efficiency and the CDN utilization rate.
[0150] Figure 12 A block diagram of an apparatus for determining an object domain name according to an embodiment of the present disclosure is schematically shown.
[0151] As shown in Figure 12 , the apparatus for determining the object domain name can include a digital information determination module, a length determination module, and a target object domain name determination module. The digital information determination module is configured to determine the digital information corresponding to the object name; the length determination module is configured to determine the length of the object domain name array; and the target object domain name determination module is configured to determine one object domain name in the object domain name array as the target object domain name according to the digital information and the length of the object domain name array.
[0152] According to an embodiment of the present disclosure, the digital information determining module can include a string determining sub-module, a target character selecting sub-module, a digital converting sub-module, and a sorting sub-module; the string determining sub-module is configured to determine a string corresponding to the object name, the string including at least one of a numeric character, an English character, and a symbol character; the target character selecting sub-module is configured to select at least one target character from the string according to a preset rule; the digital converting sub-module is configured to convert each target character into a number to obtain a plurality of numbers; and the sorting sub-module is configured to sort the plurality of numbers to obtain the digital information.
[0153] According to an embodiment of the present disclosure, the string determining sub-module includes an alternative character extracting unit and a first string determining unit; the alternative character extracting unit is configured to extract alternative characters from the object name, the alternative characters including English characters; and the first string determining unit is configured to determine the string corresponding to the object name according to the case of the English characters in the alternative characters.
[0154] According to an embodiment of the present disclosure, the first string determining unit includes a first string determining sub-unit, the first string determining sub-unit being configured to replace a lower-case English character in the alternative characters with an upper-case English character to obtain the string.
[0155] According to an embodiment of the present disclosure, the digital converting sub-module is further configured to convert each target character into a number according to the case of the English characters in the target characters.
[0156] According to an embodiment of the present disclosure, the digital converting sub-module includes an alternative target character determining unit and an alternative target character converting unit; the alternative target character determining unit is configured to replace a lower-case English character in the target characters with an upper-case English character to obtain alternative target characters; and the alternative target character converting unit is configured to convert each alternative target character into a number.
[0157] According to an embodiment of the present disclosure, the target character selecting sub-module includes a first target character selecting unit and a second target character selecting unit; the first target character selecting unit is configured to determine all characters in the string as selected target characters in a case where the number of characters in the string is less than or equal to a preset number; and the second target character selecting unit is configured to divide all characters in the string into a preset number of first subsets and a second subset according to an order in a case where the number of characters in the string is greater than the preset number, and select one character from each first subset as a target character; the number of characters in the preset number of first subsets is the same, and the number of characters in the second subset is less than the number of characters in the first subset.
[0158] According to an embodiment of the present disclosure, the second target character selecting unit comprises a target character selecting subunit, which is configured to select characters with the same order from each of the first subsets as target characters.
[0159] According to an embodiment of the present disclosure, the digital information determining module comprises a digital information determining sub-module, which is configured to select digital characters from the object name in order to obtain the digital information.
[0160] According to an embodiment of the present disclosure, the target object domain name determining module comprises a remainder sub-module and a target object domain name determining sub-module; the remainder sub-module is configured to determine a remainder of the digital information modulo the length of the object domain name; and the target object domain name determining sub-module is configured to determine one of the object domain names in the object domain name array as the target object domain name according to the remainder.
[0161] It should be noted that the embodiments of the device part of the present disclosure correspond to the same or similar embodiments of the method part of the present disclosure, and the present disclosure will not be repeated here.
[0162] Any one or more of the modules, sub-modules, units, sub-units according to the embodiments of the present disclosure, or at least part of the functions of any one or more of the modules, sub-modules, units, sub-units, can be implemented in one module. Any one or more of the modules, sub-modules, units, sub-units according to the embodiments of the present disclosure can be split into multiple modules for implementation. Any one or more of the modules, sub-modules, units, sub-units according to the embodiments of the present disclosure can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on chip, a system on substrate, a system on package, an application specific integrated circuit (ASIC), or any other reasonable way of hardware or firmware through integration or packaging of circuits, or in any one of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, one or more of the modules, sub-modules, units, sub-units according to the embodiments of the present disclosure can be at least partially implemented as computer program modules, which can perform corresponding functions when running.
[0163] For example, any multiple of the following modules / units / sub-units: the number information determining module, the length determining module, the target object domain name determining module, the string determining sub-module, the target character selecting sub-module, the number converting sub-module, the sorting sub-module, the number information determining sub-module, the remainder sub-module, the target object domain name determining sub-module, the alternative character extracting unit, the first string determining unit, the alternative target character determining unit, the alternative target character converting unit, the first target character selecting unit, the second target character selecting unit, the first string determining sub-unit, and the target character selecting sub-unit, can be combined in one module / unit / sub-unit for implementation, or any one of the modules / units / sub-units can be split into multiple. Alternatively, at least part of the functions of one or more of the modules / units / sub-units can be combined with at least part of the functions of other modules / units / sub-units, and implemented in one module / unit / sub-unit. According to embodiments of the present disclosure, at least one of the number information determining module, the length determining module, the target object domain name determining module, the string determining sub-module, the target character selecting sub-module, the number converting sub-module, the sorting sub-module, the number information determining sub-module, the remainder sub-module, the target object domain name determining sub-module, the alternative character extracting unit, the first string determining unit, the alternative target character determining unit, the alternative target character converting unit, the first target character selecting unit, the second target character selecting unit, the first string determining sub-unit, and the target character selecting sub-unit can be at least partially implemented as a hardware circuit, such as a field-programmable gate array (FPGA), a programmable logic array (PLA), a system on chip, a system on board, a system in package, an application specific integrated circuit (ASIC), or any other reasonable manner of integrating or packaging a circuit, etc. hardware or firmware, or implemented in any one of software, hardware, and firmware, or in a proper combination of any number of them. Alternatively, at least one of the number information determining module, the length determining module, the target object domain name determining module, the string determining sub-module, the target character selecting sub-module, the number converting sub-module, the sorting sub-module, the number information determining sub-module, the remainder sub-module, the target object domain name determining sub-module, the alternative character extracting unit, the first string determining unit, the alternative target character determining unit, the alternative target character converting unit, the first target character selecting unit, the second target character selecting unit, the first string determining sub-unit, and the target character selecting sub-unit can be at least partially implemented as a computer program module that can perform the corresponding functions when the computer program module is run.
[0164] Figure 13 A block diagram of an electronic device suitable for implementing the above-described method according to embodiments of the present disclosure is schematically shown. Figure 13The electronic device shown is merely an example and should not bring any limitation to the function and use range of the embodiments of the present disclosure.
[0165] As shown in Figure 13 The electronic device 400 according to embodiments of the present disclosure includes a processor 401 that can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 402 or loaded into a random access memory (RAM) 403 from a storage section 408. The processor 401 can include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor, and / or a related chipset, and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), and so on. The processor 401 can also include an on-board memory for cache use. The processor 401 can include a single processing unit or a plurality of processing units for performing different actions of the method processes according to embodiments of the present disclosure.
[0166] In the RAM 403, various programs and data required for the operation of the electronic device 400 are stored. The processor 401, the ROM 402, and the RAM 403 are connected to each other through a bus 404. The processor 401 performs various operations of the method processes according to embodiments of the present disclosure by executing programs in the ROM 402 and / or the RAM 403. Note that the programs can also be stored in one or more memories other than the ROM 402 and the RAM 403. The processor 401 can also perform various operations of the method processes according to embodiments of the present disclosure by executing programs stored in the one or more memories.
[0167] According to embodiments of the present disclosure, the electronic device 400 can also include an input / output (I / O) interface 405, which is also connected to the bus 404. The system 400 can also include one or more of the following components connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a display such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as necessary. A removable medium 411 such as a magnetic disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 410 as necessary, so that a computer program read out therefrom is installed in the storage section 408 as necessary.
[0168] According to an embodiment of the present disclosure, the method flow according to the embodiments of the present disclosure can be implemented as a computer software program. For example, the embodiments of the present disclosure include a computer program product comprising a computer program that is carried by a computer-readable storage medium, and the computer program contains program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network by the communication section 409, and / or installed from the detachable medium 411. When the computer program is executed by the processor 401, the above-described functions defined in the system implementing the embodiments of the present disclosure are executed. According to an embodiment of the present disclosure, the system, device, apparatus, module, unit, etc. described above can be implemented by computer program modules.
[0169] The present disclosure also provides a computer-readable storage medium, which can be included in the device / apparatus / system described in the above embodiments, or can exist separately without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, which when executed, implement the methods according to the embodiments of the present disclosure.
[0170] According to an embodiment of the present disclosure, the computer-readable storage medium can be a non-volatile computer-readable storage medium. For example, it can include but is not limited to: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any appropriate combination thereof. In the present disclosure, the computer-readable storage medium can be any tangible medium that contains, or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device.
[0171] For example, according to an embodiment of the present disclosure, the computer-readable storage medium can include the ROM 402 and / or the RAM 403 described above, and / or one or more memories other than the ROM 402 and the RAM 403.
[0172] The computer program product of the first aspect can include one or more non-transitory computer-readable media storing instructions that, when executed, cause one or more processors to perform the operations of the first aspect. The one or more non-transitory computer-readable media can include, for example, magnetic media such as one or more magnetic disks, magnetic tapes or cassettes; optical media such as one or more compact discs (CD), optical discs or discs (for example, DVD, Blu-ray Disc®, digital video disc, ultra density disc, ultra-compact disc, any optical media, etc.); semiconductor media such as solid state hard drives (for example, flash memory, solid state USB drives, etc.); any other suitable medium; or any suitable combination of media.
[0173] Those skilled in the art will understand that the features recited in the various embodiments and / or claims of the present disclosure can be combined and / or incorporated in a variety of combinations and / or permutations, even if such combinations or permutations are not expressly recited in the present disclosure. In particular, the features recited in the various embodiments and / or claims of the present disclosure can be combined and / or incorporated in a variety of combinations and / or permutations without departing from the spirit and teachings of the present disclosure. All such combinations and / or permutations are within the scope of the present disclosure.
[0174] The embodiments of the present disclosure are described above. However, these embodiments are merely for illustrative purposes, and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. The scope of the present disclosure is defined by the appended claims and their equivalents. Those skilled in the art can make various substitutions and modifications without departing from the scope of the present disclosure, and all such substitutions and modifications shall fall within the scope of the present disclosure.
Claims
1. A method for determining the domain name of an object, comprising: Determining the numeric information corresponding to the object name includes: determining the string corresponding to the object name; selecting at least one target character from the string according to a preset rule; and converting each target character into a number to obtain multiple numbers. Determine the length of the object domain name array corresponding to the object name, wherein the object domain name array is a collection containing several object domain names, and the object domain name array is stored in the terminal device; and Based on the numerical information and the length of the object domain name array, one object domain name in the object domain name array is determined as the target object domain name.
2. The method according to claim 1, wherein, The string includes at least one of numeric characters, English characters, and symbol characters; The determination of the numerical information corresponding to the object name also includes: The multiple numbers are sorted to obtain the numerical information.
3. The method according to claim 2, wherein, The string corresponding to the object name includes: Extract candidate characters from the object name, the candidate characters including English characters; and The string corresponding to the object name is determined based on the case of the English characters in the candidate characters.
4. The method according to claim 3, wherein, The step of determining the string corresponding to the object name based on the case of the English characters in the candidate characters includes: Replace the lowercase English characters in the candidate characters with uppercase English characters to obtain the string.
5. The method according to claim 2, wherein, When the target characters include English characters, converting each target character into a number includes: Each target character is converted into a number based on the case of the English characters in the target character set.
6. The method according to claim 5, wherein, The step of converting each target character into a number based on the case of the English characters in the target character set includes: Replace the lowercase English characters in the target characters with uppercase English characters to obtain candidate target characters; and Convert each of the candidate target characters into a number.
7. The method according to any one of claims 2 to 6, wherein, The step of selecting at least one target character from the string according to preset rules includes: If the number of characters in the string is less than or equal to a preset number, all characters in the string are selected as the target characters. If the number of characters in the string is greater than the preset number, all characters in the string are divided into the preset number of first subsets and a second subset in sequence, and one character is selected from each of the first subsets as the target character; wherein the preset number of first subsets have the same number of characters, and the number of characters in the second subset is less than the number of characters in the first subset.
8. The method according to claim 7, wherein, The step of selecting a character from each of the first subsets as the target character includes: Select characters with the same order from each of the first subsets as the target characters.
9. The method according to claim 1, wherein, The numerical information corresponding to the object name includes: The numerical information is obtained by selecting numeric characters from the object name in sequence.
10. The method according to claim 1, wherein, The step of determining one object domain name in the object domain name array as the target object domain name based on the numerical information and the length of the object domain name array includes: Determine the remainder of the numerical information when the length of the object domain name number is taken; and The target object domain name is determined from one of the object domain name arrays based on the remainder.
11. An apparatus for determining the domain name of an object, comprising: A number information determination module is used to determine number information corresponding to an object name, including: determining a string corresponding to the object name; selecting at least one target character from the string according to a preset rule; and converting each target character into a number to obtain multiple numbers. A length determination module is used to determine the length of the object domain name array, wherein the object domain name array is a collection containing several object domain names, and the object domain name array is stored in a terminal device; and The target object domain name determination module is used to determine one of the object domain names in the object domain name array as the target object domain name based on the numerical information and the length of the object domain name array.
12. An electronic device, comprising: One or more processors; Memory, used to store one or more programs. Wherein, when the one or more programs are executed by the one or more processors, the one or more processors implement the method of any one of claims 1 to 10.
13. A computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 10.
14. A computer program product comprising computer-executable instructions, which, when executed, are used to implement the method of any one of claims 1 to 10.
Citation Information
Patent Citations
Method and system for realizing IDN registration based on domain name group
CN102984297A
System and method for domain name valuation
US20190050878A1