CN112035763A - Information processing method, device and system, electronic equipment and storage medium - Google Patents

Information processing method, device and system, electronic equipment and storage medium Download PDF

Info

Publication number
CN112035763A
CN112035763A CN202010905545.2A CN202010905545A CN112035763A CN 112035763 A CN112035763 A CN 112035763A CN 202010905545 A CN202010905545 A CN 202010905545A CN 112035763 A CN112035763 A CN 112035763A
Authority
CN
China
Prior art keywords
link
character string
character
information
length
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010905545.2A
Other languages
Chinese (zh)
Inventor
李刘强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202010905545.2A priority Critical patent/CN112035763A/en
Publication of CN112035763A publication Critical patent/CN112035763A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides an information processing method, device and system, an electronic device and a storage medium, wherein after receiving a link conversion request, a first link to be converted is converted into a unique character string, and a preset domain name is spliced with the character string to obtain a second link; because the sum of the length of the character string and the length of the character of the domain name is smaller than the first threshold, the length of the character of the second link can be ensured to be smaller than the length of the character of the first link, the first link is included in the information to be sent, the second link is returned, the first link in the information to be sent is triggered to be replaced by the second link, and the length of the character of the information to be sent can be effectively reduced. In addition, the character string obtained after the first link is converted has uniqueness, and the second link is obtained by splicing the preset domain name and the unique character string, so that the requirement that the URL website is unique and accessible can be met by the obtained second link, namely the obtained second link is an effective link.

Description

Information processing method, device and system, electronic equipment and storage medium
Technical Field
The present application relates to the field of electronic information, and in particular, to a method, an apparatus, and a system for processing information, an electronic device, and a storage medium.
Background
In order to better provide services for users, many enterprises generally provide the users with the latest service activity information in a short message notification manner, and generally attach a link of service activities to a short message in order to make the provided service activity information more comprehensive and richer, so that the users can view more detailed service activity information by clicking the link.
The link is a Uniform Resource Locator (URL) website, the link with the longer URL website character string is called a long link, and the character length of the whole short message often exceeds a specified length after the long link is attached to the short message, so that the short message is automatically divided into two or more short messages to be sent to the user, which not only increases the cost of sending the short message by an enterprise, but also affects the experience of the user in reading the short message.
Disclosure of Invention
The application provides a method and a device, aiming at solving the problem that the character length of a short message is larger than the specified length because the short message comprises a long link.
In order to achieve the above object, the present application provides the following technical solutions:
a method of information processing, comprising:
receiving a link conversion request; the link conversion request carries a first link to be converted; the character length of the first link is greater than a first threshold; the first link is a link included in information to be sent;
converting the first link into a unique string;
splicing a preset domain name with the character string to obtain a second link; the sum of the character length of the character string and the character length of the domain name is smaller than the first threshold value;
and returning the second link, and triggering the first link in the information to be sent to be replaced by the second link.
The method mentioned above, optionally, the converting the first link into a unique character string includes:
judging whether target character strings exist in the multiple groups of generated second character strings; the target character string is one second character string which is not included in a preset database; the preset database is used for storing historical character strings which are used for being spliced with the domain name to form the second link;
if the target character string exists, the target character string is used as the unique character string;
if the target character string does not exist in the plurality of groups of second character strings, generating the plurality of groups of second character strings again until the target character string exists in the plurality of groups of second character strings; the plurality of groups of second character strings are obtained according to a first character string, the first character string is obtained by encrypting a splicing character string, and the splicing character string is obtained by splicing a randomly generated key and the first link.
The above method, optionally, further includes: and correspondingly storing the first link and the second link.
The above method, optionally, further includes:
after receiving an access request which is sent by a terminal and generated based on clicking the second link, acquiring the second link carried in the access request;
determining the first link corresponding to the second link according to the first link and the second link which are correspondingly stored;
and sending the first link and a preset redirection instruction to the terminal, and triggering a browser running in the terminal to jump to a page corresponding to the first link according to the first link and the redirection instruction.
A method of information processing, comprising:
sending a link conversion request; the link conversion request carries a first link to be converted; the character length of the first link is greater than a first threshold; the first link is a link included in information to be sent;
receiving a returned second link; the second link is obtained by converting the first link into a unique character string and splicing a preset domain name and the character string; the sum of the character length of the character string and the character length of the domain name is smaller than the first threshold value;
replacing the first link in the information to be transmitted with the second link.
An apparatus for information processing, comprising:
a receiving unit for receiving a link switching request; the link conversion request carries a first link to be converted; the character length of the first link is greater than a first threshold; the first link is a link included in information to be sent;
a conversion unit for converting the first link into a unique character string;
the splicing unit is used for splicing a preset domain name and the character string to obtain a second link; the sum of the character length of the character string and the character length of the domain name is smaller than the first threshold value;
and the returning unit is used for returning the second link and triggering the first link in the information to be sent to be replaced by the second link.
An apparatus for information processing, comprising:
a transmitting unit for transmitting a link switching request; the link conversion request carries a first link to be converted; the character length of the first link is greater than a first threshold; the first link is a link included in information to be sent;
the receiving unit is used for receiving the returned second link; the second link is obtained by converting the first link into a unique character string and splicing a preset domain name and the character string; the sum of the character length of the character string and the character length of the domain name is smaller than the first threshold value;
a replacing unit, configured to replace the first link in the information to be sent with the second link.
An electronic device, comprising: a processor and a memory for storing a program; the processor is used for running the program to implement the information processing method.
A storage medium having stored therein instructions which, when run on a computer, cause the computer to execute the above-described method of information processing.
A system for information processing, comprising: a first device, and a second device;
the first device is configured to send a link switching request to the second device, where the link switching request carries the first link to be switched, and a character length of the first link is greater than a first threshold; the first link is a link included in information to be sent;
the second device is used for converting the first link into a unique character string after receiving the link conversion request, and splicing a preset domain name with the character string to obtain a second link; and returning the second link to the first device;
the second device is further configured to replace the first link in the information to be sent with the second link after receiving the second link.
The method comprises the steps of receiving a link conversion request, converting a first link to be converted in the link conversion request into a unique character string, and splicing a preset domain name and the character string to obtain a second link; because the sum of the length of the character string and the length of the character of the domain name is smaller than the first threshold, the length of the character of the second link can be ensured to be smaller than the length of the character of the first link, the first link is included in the information to be sent, the second link is returned, the first link in the information to be sent is triggered to be replaced by the second link, and the length of the character of the information to be sent can be effectively reduced.
In addition, the character string obtained after the first link is converted has uniqueness, and the second link is obtained by splicing the preset domain name and the unique character string, so that the requirement that the URL website is unique and accessible can be met by the obtained second link, namely the obtained second link is an effective link.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an information processing method according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for converting a first link into a unique string according to an embodiment of the present application;
FIG. 3 is a flow chart of another method for processing information provided by an embodiment of the present application;
fig. 4 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of another information processing apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an information processing system according to an embodiment of the present application;
FIG. 7 is a schematic structural diagram of another information processing system according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
Detailed Description
In a short message service scenario, an enterprise usually provides the latest service activity information for a user in a short message notification manner, and a link of a service activity is attached to a general short message, so that the user can view more detailed service activity information by clicking the link. However, the character length of the whole short message often exceeds the specified length after the short message is attached with the long link, so that the short message is automatically divided into two or more short messages to be sent to the user, the cost of sending the short message by an enterprise is increased, and the experience of reading the short message by the user is influenced.
In order to solve the problem that the character length of the short message is larger than the specified length due to the fact that the short message comprises the long link, a link conversion party is additionally arranged, the link conversion party is connected with an existing message sending party used for sending the short message, the link conversion party is used for converting the long link in the short message into an effective (namely, anti-access) short link and triggering the message sending party to replace the long link in the short message into the short link, and therefore the character length of the short message is shortened.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments of the present application are described in detail and completely with reference to the accompanying drawings, wherein the description is to be construed as being merely a part of the embodiments of the present application and not a whole part of the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a method for processing information according to an embodiment of the present application, where the method is applied to a link conversion party, and includes the following steps:
s101, receiving a link conversion request.
The link conversion request is a request sent by a message sending method, a message sending party can send the link conversion request under the condition that the message to be sent includes a first link, the link conversion request carries the first link to be converted, the character length of the first link is larger than a first threshold, and the size of the first threshold can be set by combining requirements.
And S102, converting the first link into a unique character string.
The character string obtained after conversion has uniqueness, namely is different from the character string obtained by historical conversion. In the present embodiment, the length of the converted character string is set in advance, and the character length of any one of the character strings converted by the first link is the same. The specific implementation of this step can refer to the flowchart shown in fig. 2.
S103, splicing the preset domain name and the character string to obtain a second link.
The specific splicing mode is that the domain name is the first half part, and the character string is the second half part. For example, the domain name https:// mbs.
The preset domain name may be an accessible domain name of the link converter, and may of course be an accessible domain name of the message sender. Because the character string has uniqueness and the domain name is an accessible domain name, the second link can be guaranteed to meet the requirement that the link URL address is unique and accessible, namely the second link is guaranteed to be a valid link.
It should be noted that the sum of the character length of the character string and the character length of the domain name is smaller than the first threshold, that is, the character length of the second link is smaller than the first threshold. In this embodiment, since the character length of the character string may be preset, the character lengths of the character strings obtained by each conversion are the same, and the character length of the domain name is fixed, it may be achieved that the character length of the second link is smaller than the first threshold.
And S104, returning the second link, and triggering the first link in the information to be sent to be replaced by the second link.
And returning the second link to the message sender, and triggering the message sender to replace the first link in the information to be sent with the second link, so that the character length of the information to be sent is shortened.
In the method provided by the embodiment, after receiving a link conversion request sent by an information sender, a first link to be converted included in the link conversion request is converted into a unique character string, and a preset domain name is spliced with the character string to obtain a second link; because the sum of the length of the character string and the length of the character of the domain name is smaller than the first threshold, the length of the character of the second link can be ensured to be smaller than the length of the character of the first link, the first link is included in the information to be sent, the second link is returned, the first link in the information to be sent is triggered to be replaced by the second link, and the length of the character of the information to be sent can be effectively reduced.
In addition, the character string obtained after the first link is converted has uniqueness, and the second link is obtained by splicing the preset domain name and the unique character string, so that the requirement that the URL website is unique and accessible can be met by the obtained second link, namely the obtained second link is an effective link.
Fig. 2 is a specific embodiment of the method for converting the first link into the unique character string in fig. 1, which may include the following steps:
s201, randomly generating a main key.
The primary key may be a single character or may be a string of a preset length.
S202, splicing the primary key and the first link to obtain a spliced character string.
S203, carrying out encryption calculation on the spliced character string to obtain a first character string.
For example, the spliced string is encrypted using MD5(Message-digest algorithm, fifth edition) to obtain a 128-bit first string.
It should be noted that, because the primary key is randomly generated, the concatenation character string obtained by concatenating the primary key and the first link is also random, that is, the concatenation character string is different in most cases, and when the concatenation character string is different, the first character string obtained by using the MD5 algorithm is also different.
And S204, generating a plurality of groups of second character strings with the first length according to the first character strings.
The length of each second character string is the first length, which is the length of the unique character string described in the above embodiments.
The specific implementation manner of this step may be that the first character string is equally divided into a plurality of groups of character strings, each group of character strings and a preset character string are subjected to bitwise and operation to obtain a calculation result, and the calculation result is used as a group of second character strings. Of course, the embodiment of obtaining the plurality of sets of second character strings in this step is only an example, and this embodiment is not limited, as long as a plurality of sets of second character strings are generated.
It should be noted that, because the first character string obtained by performing encryption calculation on the spliced character string is different, it is possible to realize that a plurality of groups of second character strings generated according to the first character string are different from historically generated second character strings in a high probability.
S205, judging whether the target character strings exist in the plurality of groups of second character strings, if so, executing S206, and if not, executing S207.
The target character string is a second character string in the plurality of groups of second character strings, which is not included in the preset database. The preset database is used for storing historical character strings which are used for being spliced with the domain name to form a second link.
And S206, taking the target character string as a unique character string, and storing the unique character string in a preset database.
Since the target character string is different from the history stored in the preset database for the character string used for splicing the domain name into the second link, the uniqueness of the target character string can be ensured
S207, returning to execute S201.
In the case where the target character string does not exist, the step of randomly generating the primary key in S201 is returned to until the target character string is obtained.
In the scheme, the target character string is a second character string which is not included in the preset database, and the preset database is used for storing the historical character string which is used for being spliced with the domain name to form the second link, so that the specific uniqueness of the target character string can be ensured.
In order to enable a user to access an information resource corresponding to a first link through a second link, an information processing method provided in the embodiment of the present application is applied to a link converter, and for a detailed explanation of steps or terms related to the same implementation in the embodiment, reference may be made to the implementation, which is not described herein again. Referring to fig. 3, the present embodiment may include the steps of:
s301, receiving a link conversion request.
The link conversion request is a request sent by a message sending method, and the link conversion request carries a first link to be converted; the character length of the first link is greater than a first threshold; the first link is a link included in the information to be transmitted.
S302, converting the first link into a unique character string.
And S303, splicing the preset domain name and the character string to obtain a second link.
The preset domain name is the domain name of the link converter.
And S304, correspondingly storing the first link and the second link.
S305, returning the second link, and triggering to replace the first link in the information to be sent with the second link.
And returning the second link to the message sender, and triggering the message sender to replace the first link in the information to be sent with the second link.
S306, after receiving an access request which is sent by the terminal and generated based on clicking the second link, acquiring the second link carried in the access request.
The terminal can be a mobile phone, a tablet computer and other communication equipment. And the message sender for sending the short message replaces the first link in the information to be sent with the second link and then sends the information to be sent to the terminal. After the user using the terminal clicks the second link, because the domain name included in the second link is the domain name of the link conversion party, after the user clicks the second link, the terminal sends an access request generated based on clicking the second link to the link conversion party, and the second link carried in the access request.
S307, according to the correspondingly stored first link and second link, the first link corresponding to the second link is determined.
S308, the first link and a preset redirection instruction are sent to the terminal, and a browser running on the terminal is triggered to jump to a page corresponding to the first link according to the first link and the redirection instruction.
According to the method provided by the embodiment, after the second link is generated, the first link and the second link are correspondingly stored, after an access request which is sent by the terminal and is generated based on clicking of the second link is received, the first link corresponding to the second link is determined, the first link and a preset redirection instruction are sent to the terminal, a browser running on the terminal is enabled to jump to a page corresponding to the first link according to the first link and the redirection instruction, and the user can click the second link to access the information resource corresponding to the first link.
Fig. 4 provides an information processing apparatus 400 according to an embodiment of the present application, where the information processing apparatus may be the link switching party, and includes:
a receiving unit 401, configured to receive a link switching request; the link conversion request carries a first link to be converted; the character length of the first link is greater than a first threshold; the first link is a link included in the information to be transmitted.
A converting unit 402, configured to convert the first link into a unique character string.
A splicing unit 403, configured to splice a preset domain name and a character string to obtain a second link; the sum of the character length of the character string and the character length of the domain name is less than a first threshold value
A returning unit 404, configured to return the second link, and trigger the first link in the information to be sent to be replaced by the second link.
The apparatus 400 further comprises: a storage unit 405, configured to store the first link and the second link correspondingly.
In the apparatus 400, optionally, a specific implementation manner of the converting unit 402 converting the first link into the unique character string is as follows: judging whether target character strings exist in the multiple groups of generated second character strings; the target character string is a second character string which is not included in the preset database; the preset database is used for storing historical character strings which are used for splicing with the domain name to form a second link;
if the target character string exists, the target character string is used as a unique character string;
if the target character string does not exist in the plurality of groups of second character strings, generating the plurality of groups of second character strings again until the target character string exists in the plurality of groups of second character strings; and the splicing character strings are obtained by encrypting the first character strings according to the first character strings, and the splicing character strings are obtained by splicing the randomly generated main keys and the first links.
The apparatus 400, optionally, the receiving unit 401, is further configured to:
after receiving an access request which is sent by a terminal and generated based on clicking a second link, acquiring the second link carried in the access request;
determining a first link corresponding to a second link according to the first link and the second link which are correspondingly stored;
and sending the first link and a preset redirection instruction to the terminal, and triggering a browser running in the terminal to jump to a page corresponding to the first link according to the first link and the redirection instruction.
The device provided by this embodiment receives a link conversion request, converts a first link to be converted included in the link conversion request into a unique character string, and splices a preset domain name and the character string to obtain a second link; because the sum of the length of the character string and the length of the character of the domain name is smaller than the first threshold, the length of the character of the second link can be ensured to be smaller than the length of the character of the first link, the first link is included in the information to be sent, the second link is returned, the first link in the information to be sent is triggered to be replaced by the second link, and the length of the character of the information to be sent can be effectively reduced.
In addition, the character string obtained after the first link is converted has uniqueness, and the second link is obtained by splicing the preset domain name and the unique character string, so that the requirement that the URL website is unique and accessible can be met by the obtained second link, namely the obtained second link is an effective link.
Fig. 5 provides an information processing apparatus 500 according to an embodiment of the present application, where the information processing apparatus may be the above-mentioned message sender, and includes:
a sending unit 501, configured to send a link conversion request; the link conversion request carries a first link to be converted; the character length of the first link is greater than a first threshold; the first link is a link included in the information to be transmitted.
A receiving unit 502, configured to receive the returned second link; the second link is obtained by converting the first link into a unique character string and splicing a preset domain name and the character string; the sum of the character length of the character string and the character length of the domain name is smaller than a first threshold value;
a replacing unit 503, configured to replace the first link in the information to be transmitted with the second link.
According to the device provided by the embodiment, because the sum of the length of the unique character string and the character length of the domain name is smaller than the first threshold, the character length of the second link can be ensured to be smaller than the character length of the first link, the first link in the information to be sent is replaced by the second link, and the character length of the information to be sent can be effectively reduced.
In addition, the character string obtained after the first link is converted has uniqueness, and the second link is obtained by splicing the preset domain name and the unique character string, so that the requirement that the URL website is unique and accessible can be met by the obtained second link, namely the obtained second link is an effective link.
An embodiment of the present application provides an information processing system, including: a first device and a second device, which may be computer servers. Hereinafter, the workflow of the information processing system will be described with reference to the first device and the second device in the information processing system, as shown in fig. 6:
s601, the first device sends a link conversion request to the second device.
The link conversion request carries the first link to be converted, and the character length of the first link is larger than a first threshold value; the first link is a link included in the information to be sent;
and S602, after receiving the link conversion request, the second device converts the first link into a unique character string, and splices the preset domain name and the character string to obtain a second link.
And S603, the second device returns the second link to the first device.
S604, after the first device receives the second link, replacing the first link in the information to be sent with the second link.
According to the system provided by the application, the second device converts the first link into the unique character string, and the sum of the length of the unique character string and the character length of the domain name is smaller than the first threshold value, so that the character length of the second link can be ensured to be smaller than the character length of the first link. After the first device receives the second link, the first link in the information to be sent is replaced by the second link, so that the character length of the information to be sent can be effectively reduced.
In addition, the character string obtained after the first link is converted has uniqueness, and the second link is obtained by splicing the preset domain name and the unique character string, so that the requirement that the URL website is unique and accessible can be met by the obtained second link, namely the obtained second link is an effective link.
On the basis of the information processing system, terminals are added. Hereinafter, the workflow of the information processing system will be described with reference to the first device, the second device and the terminal in the information processing system, as shown in fig. 7:
s701, the first device sends a link conversion request to the second device.
The link conversion request carries the first link to be converted, and the character length of the first link is larger than a first threshold value; the first link is a link included in the information to be sent;
s702, after receiving the link conversion request, the second device converts the first link into a unique character string, and splices the preset domain name and the character string to obtain a second link.
And S703, the second device correspondingly stores the first link and the second link.
S704, the second device returns the second link to the first device.
S705, after receiving the second link, the first device replaces the first link in the information to be sent with the second link,
s706, the first device sends the information to be sent to the terminal.
And S707, the terminal sends an access request generated by the user based on clicking the second link to the second device.
And S708, after receiving the access request, the second device acquires the second link carried in the access request.
And S709, the second device determines a first link corresponding to the second link according to the first link and the second link which are correspondingly stored.
And S710, the second equipment sends the first link and a preset redirection instruction to the terminal.
And S711, the terminal receives the first link and the redirection instruction, and triggers the browser to jump to a page corresponding to the first link according to the first link and the redirection instruction.
According to the system provided by the application, the second device converts the first link into the unique character string, and the sum of the length of the unique character string and the character length of the domain name is smaller than the first threshold value, so that the character length of the second link can be ensured to be smaller than the character length of the first link. After the first device receives the second link, the first link in the information to be sent is replaced by the second link, so that the character length of the information to be sent can be effectively reduced.
Furthermore, the character string obtained after the first link is converted has uniqueness, and the second link is obtained by splicing the preset domain name and the unique character string, so that the second link can be ensured to meet the requirement that the URL website is unique and accessible, namely the obtained second link is ensured to be an effective link.
Further, after the second device generates the second link, the first link and the second link are correspondingly stored, after an access request which is sent by the terminal and is generated based on clicking of the second link is received, the first link corresponding to the second link is determined, the first link and a preset redirection instruction are sent to the terminal, a browser running on the terminal is enabled to jump to a page corresponding to the first link according to the first link and the redirection instruction, and the fact that a user clicks the second link is achieved, and the information resource corresponding to the first link can be accessed.
The present application further provides an electronic device 800, a schematic structural diagram of which is shown in fig. 8, including: a processor 801 and a memory 802, wherein the memory 802 is used for storing application programs, and the processor 801 is used for executing the application programs to realize the information processing method of the application, namely, the following steps are executed:
receiving a link conversion request; the link conversion request carries a first link to be converted; the character length of the first link is greater than a first threshold; the first link is a link included in the information to be sent;
converting the first link into a unique string;
splicing a preset domain name and a character string to obtain a second link; the sum of the character length of the character string and the character length of the domain name is smaller than a first threshold value;
and returning the second link, and triggering the first link in the information to be sent to be replaced by the second link.
Alternatively, the following steps are performed:
sending a link conversion request; the link conversion request carries a first link to be converted; the character length of the first link is greater than a first threshold; the first link is a link included in the information to be sent;
receiving a returned second link; the second link is obtained by converting the first link into a unique character string and splicing a preset domain name and the character string; the sum of the character length of the character string and the character length of the domain name is smaller than a first threshold value;
and replacing the first link in the information to be transmitted with the second link.
The present application also provides a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to perform the method of information processing of the present application, namely to perform the steps of:
receiving a link conversion request; the link conversion request carries a first link to be converted; the character length of the first link is greater than a first threshold; the first link is a link included in the information to be sent;
converting the first link into a unique string;
splicing a preset domain name and a character string to obtain a second link; the sum of the character length of the character string and the character length of the domain name is smaller than a first threshold value;
and returning the second link, and triggering the first link in the information to be sent to be replaced by the second link.
Alternatively, the following steps are performed:
sending a link conversion request; the link conversion request carries a first link to be converted; the character length of the first link is greater than a first threshold; the first link is a link included in the information to be sent;
receiving a returned second link; the second link is obtained by converting the first link into a unique character string and splicing a preset domain name and the character string; the sum of the character length of the character string and the character length of the domain name is smaller than a first threshold value;
and replacing the first link in the information to be transmitted with the second link.
The functions described in the method of the embodiment of the present application, if implemented in the form of software functional units and sold or used as independent products, may be stored in a storage medium readable by a computing device. Based on such understanding, part of the contribution to the prior art of the embodiments of the present application or part of the technical solution may be embodied in the form of a software product stored in a storage medium and including several instructions for causing a computing device (which may be a personal computer, a server, a mobile computing device or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of information processing, comprising:
receiving a link conversion request; the link conversion request carries a first link to be converted; the character length of the first link is greater than a first threshold; the first link is a link included in information to be sent;
converting the first link into a unique string;
splicing a preset domain name with the character string to obtain a second link; the sum of the character length of the character string and the character length of the domain name is smaller than the first threshold value;
and returning the second link, and triggering the first link in the information to be sent to be replaced by the second link.
2. The method of claim 1, wherein converting the first link into a unique string comprises:
judging whether target character strings exist in the multiple groups of generated second character strings; the target character string is one second character string which is not included in a preset database; the preset database is used for storing historical character strings which are used for being spliced with the domain name to form the second link;
if the target character string exists, the target character string is used as the unique character string;
if the target character string does not exist in the plurality of groups of second character strings, generating the plurality of groups of second character strings again until the target character string exists in the plurality of groups of second character strings; the plurality of groups of second character strings are obtained according to a first character string, the first character string is obtained by encrypting a splicing character string, and the splicing character string is obtained by splicing a randomly generated key and the first link.
3. The method of claim 1, further comprising: and correspondingly storing the first link and the second link.
4. The method of claim 3, further comprising:
after receiving an access request which is sent by a terminal and generated based on clicking the second link, acquiring the second link carried in the access request;
determining the first link corresponding to the second link according to the first link and the second link which are correspondingly stored;
and sending the first link and a preset redirection instruction to the terminal, and triggering a browser running in the terminal to jump to a page corresponding to the first link according to the first link and the redirection instruction.
5. A method of information processing, comprising:
sending a link conversion request; the link conversion request carries a first link to be converted; the character length of the first link is greater than a first threshold; the first link is a link included in information to be sent;
receiving a returned second link; the second link is obtained by converting the first link into a unique character string and splicing a preset domain name and the character string; the sum of the character length of the character string and the character length of the domain name is smaller than the first threshold value;
replacing the first link in the information to be transmitted with the second link.
6. An information processing apparatus, comprising:
a receiving unit for receiving a link switching request; the link conversion request carries a first link to be converted; the character length of the first link is greater than a first threshold; the first link is a link included in information to be sent;
a conversion unit for converting the first link into a unique character string;
the splicing unit is used for splicing a preset domain name and the character string to obtain a second link; the sum of the character length of the character string and the character length of the domain name is smaller than the first threshold value;
and the returning unit is used for returning the second link and triggering the first link in the information to be sent to be replaced by the second link.
7. An information processing apparatus, comprising:
a transmitting unit for transmitting a link switching request; the link conversion request carries a first link to be converted; the character length of the first link is greater than a first threshold; the first link is a link included in information to be sent;
the receiving unit is used for receiving the returned second link; the second link is obtained by converting the first link into a unique character string and splicing a preset domain name and the character string; the sum of the character length of the character string and the character length of the domain name is smaller than the first threshold value;
a replacing unit, configured to replace the first link in the information to be sent with the second link.
8. An electronic device, comprising: a processor and a memory for storing a program; the processor is configured to execute the program to implement the method for processing information according to any one of claims 1 to 4, or the method for processing information according to claim 5.
9. A storage medium having stored therein instructions that, when executed on a computer, cause the computer to execute the method of information processing according to any one of claims 1 to 4, or the method of information processing according to claim 5.
10. An information processing system, comprising: a first device, and a second device;
the first device is configured to send a link switching request to the second device, where the link switching request carries the first link to be switched, and a character length of the first link is greater than a first threshold; the first link is a link included in information to be sent;
the second device is used for converting the first link into a unique character string after receiving the link conversion request, and splicing a preset domain name with the character string to obtain a second link; and returning the second link to the first device;
the second device is further configured to replace the first link in the information to be sent with the second link after receiving the second link.
CN202010905545.2A 2020-09-01 2020-09-01 Information processing method, device and system, electronic equipment and storage medium Pending CN112035763A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010905545.2A CN112035763A (en) 2020-09-01 2020-09-01 Information processing method, device and system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010905545.2A CN112035763A (en) 2020-09-01 2020-09-01 Information processing method, device and system, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112035763A true CN112035763A (en) 2020-12-04

Family

ID=73590896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010905545.2A Pending CN112035763A (en) 2020-09-01 2020-09-01 Information processing method, device and system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112035763A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112861032A (en) * 2021-01-20 2021-05-28 银盛通信有限公司 Short link generation method and system
CN114169917A (en) * 2021-11-17 2022-03-11 广州市玄武无线科技股份有限公司 Information sending method, platform, system, electronic equipment and storage medium
CN115391689A (en) * 2022-08-23 2022-11-25 北京泰迪熊移动科技有限公司 Short link generation method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984287A (en) * 2012-11-19 2013-03-20 青岛海信传媒网络技术有限公司 Microblog application server and microblog platform chained address sharing method thereof
CN107612692A (en) * 2017-09-25 2018-01-19 咪咕文化科技有限公司 A kind of information processing method, device and storage medium
CN107749861A (en) * 2017-11-16 2018-03-02 平安科技(深圳)有限公司 Information-pushing method, device, terminal device and storage medium
CN109918586A (en) * 2019-01-21 2019-06-21 广东万丈金数信息技术股份有限公司 Short link jump method, device, short linked server and storage medium
CN110134889A (en) * 2019-04-30 2019-08-16 中国联合网络通信集团有限公司 Short link generation method, device and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984287A (en) * 2012-11-19 2013-03-20 青岛海信传媒网络技术有限公司 Microblog application server and microblog platform chained address sharing method thereof
CN107612692A (en) * 2017-09-25 2018-01-19 咪咕文化科技有限公司 A kind of information processing method, device and storage medium
CN107749861A (en) * 2017-11-16 2018-03-02 平安科技(深圳)有限公司 Information-pushing method, device, terminal device and storage medium
CN109918586A (en) * 2019-01-21 2019-06-21 广东万丈金数信息技术股份有限公司 Short link jump method, device, short linked server and storage medium
CN110134889A (en) * 2019-04-30 2019-08-16 中国联合网络通信集团有限公司 Short link generation method, device and server

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112861032A (en) * 2021-01-20 2021-05-28 银盛通信有限公司 Short link generation method and system
CN114169917A (en) * 2021-11-17 2022-03-11 广州市玄武无线科技股份有限公司 Information sending method, platform, system, electronic equipment and storage medium
CN115391689A (en) * 2022-08-23 2022-11-25 北京泰迪熊移动科技有限公司 Short link generation method, device, equipment and storage medium
CN115391689B (en) * 2022-08-23 2023-08-22 北京泰镝科技股份有限公司 Short link generation method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112035763A (en) Information processing method, device and system, electronic equipment and storage medium
US9104676B2 (en) Hash algorithm-based data storage method and system
US10447633B2 (en) Method and system for optimizing and preventing failure of sender policy framework (SPF) lookups
CN112380464B (en) Short link generation method and related equipment
EP2410771B1 (en) Method and system for implementing location service
CN110336848B (en) Scheduling method, scheduling system and scheduling equipment for access request
CN110263575B (en) Method for realizing data fusion and data privacy protection based on Hash algorithm and session control
EP3465510A1 (en) Account verification in deferred provisioning systems
WO2015085912A1 (en) Method and system for communication number update
CN110311962B (en) Message pushing method, system and computer readable storage medium
CN111339206A (en) Data sharing method and device based on block chain
CN113761565B (en) Data desensitization method and device
CN111797334B (en) Website access method and device, electronic equipment and storage medium
WO2024060630A1 (en) Data transmission management method, and data processing method and apparatus
US9544252B2 (en) Compressing and decompressing electronic messages in message threads
CN108600255B (en) Mock service management method, device, computer equipment and storage medium
CN111355793A (en) Large file uploading method based on HTML5 and Python
KR20170143261A (en) Operating method of intelligent network server and chatting server for switching between telephone counseling and chatting counseling in intelligent network environment, and intelligent network server and chatting server thereof
CN113992345B (en) Webpage sensitive data encryption and decryption method and device, electronic equipment and storage medium
CN107977381B (en) Data configuration method, index management method, related device and computing equipment
CN115361376A (en) Government affair file uploading method and device, electronic equipment and storage medium
CN104933059A (en) File reputation acquisition method, gateway equipment and file reputation server
CN114547214A (en) Long-link data processing method, device and equipment
CN110880974B (en) Data communication method and device based on block chain network
US11086822B1 (en) Application-based compression

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination