CN112714406B - Method, device and equipment for realizing 5G message conversion - Google Patents

Method, device and equipment for realizing 5G message conversion Download PDF

Info

Publication number
CN112714406B
CN112714406B CN202011623509.3A CN202011623509A CN112714406B CN 112714406 B CN112714406 B CN 112714406B CN 202011623509 A CN202011623509 A CN 202011623509A CN 112714406 B CN112714406 B CN 112714406B
Authority
CN
China
Prior art keywords
message
content
sent
file
card
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.)
Active
Application number
CN202011623509.3A
Other languages
Chinese (zh)
Other versions
CN112714406A (en
Inventor
韩曾帆
焦健
高洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN202011623509.3A priority Critical patent/CN112714406B/en
Publication of CN112714406A publication Critical patent/CN112714406A/en
Application granted granted Critical
Publication of CN112714406B publication Critical patent/CN112714406B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/18Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals

Abstract

The embodiment of the application discloses a method, a device and equipment for realizing 5G message conversion, which can judge whether a receiving terminal of a 5G message to be sent supports receiving the 5G message or not by acquiring the 5G message to be sent and according to a receiving terminal identifier carried in the 5G message to be sent. And when the receiving terminal does not support to receive the 5G message, acquiring the message type of the 5G message to be sent, and extracting the corresponding message content according to the message type. And then according to the message type and the message content, converting the 5G message to be sent into a message page. The display of the message content of the 5G message through the message page can be realized. And finally, configuring a link address of the message page, and sending the link address of the message page to a receiving terminal as a push message to realize the sending of the message content of the 5G message. Therefore, the message content of the corresponding 5G message is displayed in a mode that the receiving terminal displays the message page, and the popularization rate of the 5G message is improved.

Description

Method, device and equipment for realizing 5G message conversion
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, and a device for implementing 5G message conversion.
Background
The 5G (5th-Generation, fifth Generation mobile Communication technology) message is an enhanced information service based on the RCS (Rich Communication Suite, converged Communication) technology. Different from the traditional short message service, the 5G message supports rich media formats, and can send various multimedia messages to a receiving terminal through a short message inlet so as to provide interactive service and safe anti-counterfeiting service for users.
Currently, only a terminal having a related function configuration corresponding to a function of receiving a 5G message and turning on a service function switch can support receiving the 5G message. Some terminals do not have related function configuration or do not open related services, and the number of terminals supporting receiving the 5G message is small, so that the popularity rate of the 5G message is low. How to enable a terminal which does not support receiving of the 5G message to acquire the message content of the 5G message is a problem to be solved urgently.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, an apparatus, and a device for implementing 5G message conversion, which can convert a 5G message into a page message, so that a receiving terminal receives the page message with the same message content on the basis of not having or not opening an RCS enhanced message, thereby increasing the popularity of the 5G message.
In order to solve the above problem, the technical solution provided by the embodiment of the present application is as follows:
a method of implementing 5G message conversion, the method comprising:
acquiring a 5G message to be sent, wherein the 5G message to be sent carries a receiving terminal identification;
judging whether the receiving terminal of the 5G message to be sent supports receiving the 5G message or not according to the receiving terminal identification;
if the receiving terminal does not support receiving of the 5G message, the message type of the 5G message to be sent is obtained, and corresponding message content is extracted according to the message type;
converting the 5G message to be sent into a message page according to the message type and the message content of the 5G message to be sent;
configuring a link address of the message page;
and sending the link address of the message page to the receiving terminal as a push message so that the receiving terminal responds to a trigger request for the link address and displays the message page.
In a possible implementation manner, the obtaining a message type of the to-be-sent 5G message and extracting corresponding message content according to the message type includes:
reading a field value in a content type field of the 5G message to be sent, and determining a message type of the 5G message to be sent according to the field value in the content type field, wherein the message type comprises a text message, a file message, a rich text card message and a mixed message;
when the message type is a text message, extracting text content included in the 5G message to be sent;
when the message type is a file message, extracting file contents included in the 5G message to be sent;
when the message type is a rich text card message, extracting card content included in the to-be-sent 5G message;
when the message type is a mixed message, extracting text content, file content and/or card content included in the 5G message to be sent;
the file content comprises file thumbnail content information and main file content information, and the card content comprises at least one piece of card content information and card style information.
In a possible implementation manner, the converting the to-be-transmitted 5G message into a message page according to the message type and the message content of the to-be-transmitted 5G message includes:
converting the message content of the 5G message to be sent into a message page format according to the message type of the 5G message to be sent;
and converting the message content of the 5G message to be sent into a message page by reading the message page format.
In a possible implementation manner, the converting, according to the message type of the to-be-transmitted 5G message, the message content of the to-be-transmitted 5G message into a message page format includes:
when the message type is a text message, writing the text content included in the 5G message to be sent into a text content object in a message page format;
when the message type is a file message, writing the content information of the file reduction rate graph included in the 5G message to be sent into a content object of the file reduction rate graph in a message page format, and writing the content information of the main file included in the 5G message to be sent into the content object of the main file in the message page format;
when the message type is a rich text card message, writing at least one card content information included in the to-be-sent 5G message into a card content object in a message page format, and writing the card style information included in the to-be-sent 5G message into the card style object in the message page format;
when the message type is a mixed message, writing reply button information included in the to-be-sent 5G message into a reply button object in a message page format; if the 5G message to be sent comprises text content, writing the text content contained in the 5G message to be sent into a text content object in the message page format; if the to-be-sent 5G message comprises file content, writing file reduction rate graph content information included in the to-be-sent 5G message into a file reduction rate graph content object in the message page format, and writing main file content information included in the to-be-sent 5G message into a main file content object in the message page format; if the to-be-sent 5G message comprises card content, writing at least one piece of card content information included in the to-be-sent 5G message into a card content object in the message page format, and writing the card style information included in the to-be-sent 5G message into a card style object in the message page format.
In a possible implementation manner, the converting the message content of the to-be-sent 5G message into a message page by reading the message page format includes:
when the message type is a text message, reading text content from a text content object in the message page format, and writing the text content into a text webpage element to generate a message page;
when the message type is a file message, reading the content information of the file thumbnail from the content object of the file thumbnail in the message page format, and reading the content information of the main file from the content object of the main file in the message page format; constructing corresponding webpage elements according to the content information of the file thumbnail and the content information of the main file to generate a message page;
when the message type is rich text card message, reading at least one piece of card content information from a card content object in the message page format, and reading card style information from a card style object in the message page format; constructing corresponding webpage elements according to the card content information and the card style information to generate a message page;
when the message type is a mixed message, sequentially reading a text content object, a file thumbnail content object and a card content object in the message page format; when the text content object is not empty, reading text content from the text content object in the message page format, and writing the text content into a text webpage element; when the file reduction rate graph content object is not empty, reading file reduction rate graph content information from the file reduction rate graph content object in the message page format, reading main file content information from the main file content object in the message page format, and constructing a corresponding webpage element according to the file reduction rate graph content information and the main file content information; when the card content object is not empty, reading at least one piece of card content information from the card content object in the message page format, reading card style information from the card style object in the message page format, and constructing a corresponding webpage element according to the card content information and the card style information; reading reply button information in a reply button object in the message page format, and constructing a corresponding webpage element according to the reply button information; and generating a message page according to each constructed webpage element.
In a possible implementation manner, the constructing a corresponding web page element according to the content information of the file shrinkage map and the content information of the main file to generate a message page includes:
and constructing a picture webpage element, a video webpage element or an audio webpage element according to the file shrinkage map content information and the main file content information, and generating a message page.
In one possible implementation, the method further includes:
when a trigger request for the link address sent by the receiving terminal is received, performing identity authentication on the receiving terminal;
and after the identity authentication is passed, responding to the trigger request of the link address so as to enable the receiving terminal to display the message page.
An apparatus for implementing 5G message conversion, the apparatus comprising:
an obtaining unit, configured to obtain a to-be-sent 5G message, where the to-be-sent 5G message carries a receiving terminal identifier;
a judging unit, configured to judge whether a receiving terminal of the to-be-sent 5G message supports receiving the 5G message according to the receiving terminal identifier;
an extracting unit, configured to acquire a message type of the to-be-sent 5G message and extract a corresponding message content according to the message type if the receiving terminal does not support receiving the 5G message;
the conversion unit is used for converting the 5G message to be sent into a message page according to the message type and the message content of the 5G message to be sent;
the configuration unit is used for configuring the link address of the message page;
and the sending unit is used for sending the link address of the message page to the receiving terminal as a push message so that the receiving terminal responds to a trigger request for the link address and displays the message page.
An apparatus for implementing 5G message conversion, comprising: the device comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the computer program, the method for realizing the 5G message conversion is realized.
A computer-readable storage medium having stored therein instructions which, when run on a terminal device, cause the terminal device to execute the above-described method of implementing 5G message conversion.
Therefore, the embodiment of the application has the following beneficial effects:
according to the method, the device and the equipment for realizing 5G message conversion, whether a receiving terminal of the 5G message to be sent supports receiving of the 5G message can be judged according to the receiving terminal identification carried in the 5G message to be sent by acquiring the 5G message to be sent. And when the receiving terminal does not support to receive the 5G message, acquiring the message type of the 5G message to be sent, and extracting the corresponding message content according to the message type. And then according to the message type and the message content, converting the 5G message to be sent into a message page. Therefore, the 5G message can be converted into a message page, and the message content of the 5G message is displayed through the message page. And finally, configuring a link address of the message page, sending the link address of the message page to a receiving terminal as a push message, wherein the receiving terminal can respond to a trigger request of the link address to display the message page and realize the sending of the message content of the 5G message. Therefore, on the basis that the receiving terminal does not support receiving the 5G message, the message content of the corresponding 5G message is displayed in a mode that the receiving terminal displays the message page, the receiving terminal is convenient to receive the message content of the 5G message, and the popularization rate of the 5G message is improved.
Drawings
Fig. 1 is a schematic diagram of a framework of an exemplary application scenario provided in an embodiment of the present application;
fig. 2 is a flowchart of a method for implementing 5G message conversion according to an embodiment of the present disclosure;
FIG. 3 is a diagram illustrating contents of a document according to an embodiment of the present application;
fig. 4 is a schematic diagram of card contents provided in an embodiment of the present application;
fig. 5 is a schematic diagram of a hybrid message provided in an embodiment of the present application;
fig. 6 is a schematic diagram illustrating that a message content of a 5G message to be sent is converted into a message page format according to an embodiment of the present application;
fig. 7 is a schematic diagram of a message page generated by conversion when a message type is a text message according to an embodiment of the present application;
fig. 8 is a schematic diagram of a message page generated by conversion when a message type is a file message according to an embodiment of the present application;
fig. 9 is a schematic diagram of a message page generated by conversion when another message type provided in the embodiment of the present application is a file message;
fig. 10 is a schematic diagram of a message page generated by conversion when another message type provided in the embodiment of the present application is a file message;
fig. 11 is a schematic diagram of a message page generated by conversion when a message type is a rich text card message according to an embodiment of the present application;
fig. 12 is a schematic diagram of a message page generated by conversion when another message type provided in the embodiment of the present application is a rich text card message;
fig. 13 is a schematic structural diagram of an apparatus for implementing 5G message conversion according to an embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments accompanying the drawings are described in detail below.
In order to facilitate understanding and explaining the technical solutions provided by the embodiments of the present application, the following description will first describe the background art of the present application.
After studying on the conventional 5G message, the inventor finds that a receiving terminal receiving the 5G message needs to be provided with relevant function configuration and also needs to open relevant services, and the receiving terminal can register to an IMS (IP Multimedia system) network so as to receive the 5G message. However, currently, there are many terminals without setting related function configuration or opening related services, so that most terminals do not support receiving 5G messages, and the popularity rate of the 5G messages is low.
Based on this, embodiments of the present application provide a method, an apparatus, and a device for implementing 5G message conversion, which can determine whether a receiving terminal of a to-be-sent 5G message supports receiving of the 5G message by obtaining the to-be-sent 5G message and according to a receiving terminal identifier carried in the to-be-sent 5G message. And when the receiving terminal does not support to receive the 5G message, acquiring the message type of the 5G message to be sent, and extracting the corresponding message content according to the message type. And then according to the message type and the message content, converting the 5G message to be sent into a message page. Therefore, the 5G message can be converted into a message page, and the message content of the 5G message is displayed through the message page. And finally, configuring a link address of the message page, sending the link address of the message page to a receiving terminal as a push message, wherein the receiving terminal can respond to a trigger request of the link address to display the message page and realize the sending of the message content of the 5G message. Therefore, on the basis that the receiving terminal does not support receiving the 5G message, the message content of the corresponding 5G message is displayed in a mode that the receiving terminal displays the message page, the receiving terminal is convenient to receive the message content of the 5G message, and the popularization rate of the 5G message is improved.
In order to facilitate understanding of the method for implementing 5G message conversion provided in the embodiment of the present application, the following description is made with reference to a scenario example shown in fig. 1. Referring to fig. 1, the figure is a schematic diagram of a framework of an exemplary application scenario provided in an embodiment of the present application.
In practical application, a to-be-sent 5G message is obtained first, and a received terminal identifier carried in the to-be-sent 5G message is obtained. And determining whether the receiving terminal supports receiving the 5G message or not through the receiving terminal identification, and if the receiving terminal supports receiving the 5G message, directly sending the 5G message to be sent to the receiving terminal. If the receiving terminal does not support to receive the 5G message, the message type of the 5G message to be sent is determined first, and the message content is extracted according to the message type. And then converting the 5G message to be sent into a message page according to the message type and the message content of the 5G message to be sent, and configuring a link address of the message page. And sending the link address of the message page to the receiving terminal. The receiving terminal may display a message page in response to a trigger request for a link address.
Those skilled in the art will appreciate that the block diagram shown in fig. 1 is only one example in which embodiments of the present application may be implemented. The scope of applicability of the embodiments of the present application is not limited in any way by this framework.
In order to facilitate understanding of the present application, a method for implementing 5G message conversion provided in the embodiments of the present application is described below with reference to the drawings.
Referring to fig. 2, which is a flowchart of a method for implementing 5G message conversion according to an embodiment of the present application, as shown in fig. 2, the method may include S201 to S206:
s201: and acquiring a 5G message to be sent, wherein the 5G message to be sent carries a receiving terminal identification.
Before sending a 5G message to be sent, it is first necessary to determine whether a receiving terminal receiving the 5G message to be sent supports receiving the 5G message.
And acquiring a to-be-sent 5G message, wherein the to-be-sent 5G message carries a to-be-received receiving terminal identifier. The receiving terminal identification may be a corresponding identification that each receiving terminal has, and may be, for example, a mobile phone number of the receiving terminal. The receiving terminal identifier is used for determining a receiving terminal for receiving the 5G message to be sent, and further can judge whether the receiving terminal supports receiving the 5G message.
S202: and judging whether the receiving terminal of the 5G message to be sent supports receiving the 5G message or not according to the receiving terminal identification.
It can be understood that, the receiving terminal supports that the receiving of the 5G message needs to open the relevant service in advance, and the receiving terminal identifier of the receiving terminal can be compared with the receiving terminal identifier of the receiving terminal that opens the relevant service, so as to determine whether the receiving terminal of the 5G message to be sent is the receiving terminal that supports receiving of the 5G message.
In a possible implementation manner, the receiving terminal identifier of the receiving terminal that supports receiving the 5G message and opens the related service may be stored in the 5G message user tag library in advance, and the receiving terminal identifier obtained from the 5G message to be sent is compared with the receiving terminal identifier of the 5G message user tag library. If the 5G message user tag library stores the receiving terminal identifier obtained from the transmitted 5G message, it can be determined that the receiving terminal corresponding to the 5G message to be transmitted opens the related service for receiving the 5G message, and the 5G message reception is supported. If the 5G message user tag library does not store the receiving terminal identifier obtained from the transmitted 5G message, it may be determined that the receiving terminal corresponding to the 5G message to be transmitted does not open the related service for receiving the 5G message, and cannot support receiving the 5G message.
When the receiving terminal can support receiving the 5G message, the 5G message can be directly sent to the corresponding receiving terminal without converting the 5G message to be sent.
When the receiving terminal does not support to receive the 5G message, the 5G message to be sent needs to be converted into a page message and then sent to the receiving terminal, so that a user can check the message content through the message page.
S203: and if the receiving terminal does not support receiving the 5G message, acquiring the message type of the 5G message to be sent, and extracting the corresponding message content according to the message type.
The 5G messages are of various types, such as text messages, file messages, rich text card messages, and mixed messages. The different types of 5G messages have different forms of message content, for example, the message content in the text message is text content.
For different types of to-be-sent 5G messages, it is necessary to determine the message type of the to-be-sent 5G message, and then extract corresponding message content for the to-be-sent 5G messages of different message types.
In a possible implementation manner, an embodiment of the present application provides a specific implementation manner for acquiring a message type of a to-be-sent 5G message and extracting corresponding message content according to the message type, please refer to the following.
S204: and converting the 5G message to be sent into a message page according to the message type and the message content of the 5G message to be sent.
A message page refers to a web page that contains the content of a message. The message page may be obtained from an HTML (Hyper Text Markup Language) page and a CSS (Cascading Style Sheets) Style. The message page can be browsed conveniently through a browser in the receiving terminal.
After the message type and the message content of the to-be-sent 5G message are acquired, a corresponding message page needs to be generated by using the message type and the message content of the to-be-sent 5G message, so that conversion between the to-be-sent 5G message and the message page is realized.
In a possible implementation manner, the message type of the to-be-sent 5G message and the message page format of the message page are corresponding to each other, and the message page format of the message page needs to be determined first according to the message type of the to-be-sent 5G message. And after the format of the message page is determined, the converted message page is obtained according to the message content. The embodiment of the present application provides a specific implementation manner for converting a to-be-transmitted 5G message into a message page according to a message type and a message content of the to-be-transmitted 5G message, please refer to the following.
S205: and configuring a link address of the message page.
The message page needs to be accessed through the corresponding link address. The link address may specifically be formed by a domain name + a message identifier, and the link address may be in the form of a url (uniform resource locator) link address or a short link address.
And configuring a corresponding link address for the converted message page so that the receiving terminal accesses the message page after triggering the link address and displays the message page to a user. The user can obtain the message content of the 5G message to be sent through the message page.
S206: and sending the link address of the message page as a push message to the receiving terminal so that the receiving terminal responds to a trigger request for the link address and displays the message page.
And sending a push message to the receiving terminal, wherein the push message has a link address of the message page. And after the receiving terminal receives the trigger request for the link address, responding to the trigger request and displaying a message page corresponding to the link address.
The push message may specifically be a wap short message, and the push message may be sent to the receiving terminal through the industry gateway. The link address can be set to be in a triggerable form in the push message, so that the user generates a corresponding trigger request by triggering the link address. The push message may also be set to be triggerable, and the user may generate a trigger request by clicking on the push message. In addition, conditions for generating the trigger request may also be set, for example, the user enters a page for viewing the push message. And when the condition for generating the trigger request is met, automatically generating the corresponding trigger request to realize the automatic display of the message page.
The embodiment of the present application does not limit the specific manner of displaying the message page, and for example, the message page corresponding to the link address may be accessed through a browser, and the message page may be displayed.
Based on the related contents of S201-S206, in the embodiment of the present application, after it is determined that the receiving terminal corresponding to the to-be-sent 5G message does not support the 5G message, the message content is extracted according to the message type, and the to-be-sent 5G message is converted into a message page. The message page can be displayed in various modes such as a browser based on the link address, so that the receiving terminal which does not have or does not open the RCS enhanced message can display the message page by receiving the push message with the link address, thereby realizing the acquisition and display of the message content of the 5G message by the receiving terminal which does not support the 5G message receiving, and improving the popularization rate of the 5G message. In addition, the display effect of the message page is rich, the types of the compatible receiving terminals are more, and the message content can be better displayed. And push messages sent are less costly than 5G messages.
Before converting a to-be-sent 5G message into a message page, it is necessary to extract corresponding message content from the to-be-sent 5G message, where the message content of the to-be-sent 5G message is related to a message type of the to-be-sent 5G message.
Based on the above, the message type of the 5G message to be sent needs to be determined first, and the corresponding message content is extracted according to the message type. In one possible implementation, the message type may be determined by a field value in a content type field in the 5G message to be sent. The embodiment of the present application provides a specific implementation manner for acquiring a message type of a to-be-sent 5G message and extracting corresponding message content according to the message type, which specifically includes the following steps:
and reading field values in the content type fields of the 5G messages to be sent, and determining the message types of the 5G messages to be sent according to the field values in the content type fields, wherein the message types comprise text messages, file messages, rich text card messages and mixed messages.
The message types of the 5G message to be sent may include text messages, file messages, rich text card messages, and mixed messages. The text message is a message type with text content, and the file message is a message type with a picture file, an audio file or a video file. The rich text card message is a type of message in the form of a card having a plurality of media. The mixed message is a message type with primary message content information and reply button information, wherein the primary message content information can be one or more of text content, file content and rich text card content. The 5G messages to be sent of different message types have corresponding message contents.
The 5G message to be sent has a content type field, and the field value of the content type field is used for indicating the corresponding message type. The message type of the 5G message to be sent can be determined by reading the field value in the content type field of the 5G message to be sent.
As an example, the format of the 5G message to be sent is an XML format, and the contenttype field in the 5G message to be sent is a content type field. The correspondence between the field value of the contenttype field and the message type of the 5G message to be sent is as follows
Shown in table 1.
Figure BDA0002874395830000091
TABLE 1
The following methods for extracting message contents of four message types are introduced respectively:
the first condition is as follows: and when the message type is a text message, extracting the text content included in the 5G message to be sent.
And if the message type determined by the content type field is a text message, extracting text content from the 5G message to be sent.
Taking the above format of the 5G message to be sent as an example, a field value of a contenttype field in the 5G message to be sent is "text/plane", which indicates that the 5G message to be sent is a text message. Correspondingly, the text content may be extracted from the body text field.
Case two: and when the message type is a file message, extracting the file content included in the 5G message to be sent.
And if the message type determined by the content type field is a file message, extracting file content from the 5G message to be sent.
In one possible implementation, the file content has file thumbnail content information and main file content information. Referring to fig. 3, the figure is a schematic diagram of a file content provided in an embodiment of the present application. The file thumbnail content information comprises file size, file type, file address and file name. The main file content information includes a file size, a file type, a file address, and a file name.
Taking the format of the 5G message to be sent as an example, the field value of the contenttype field in the 5G message to be sent is "application/vnd.gsma.rcs-ft-http + xml", which indicates that the 5G message to be sent is a file message. Correspondingly, the file content is extracted from the body text field.
Case three: and when the message type is the rich text card message, extracting the card content included in the 5G message to be sent.
And if the message type determined by the content type field is the rich text card message, extracting the card content from the 5G message to be sent.
The card content includes at least one card content information and card style information. Referring to fig. 4, the figure is a schematic view of a card content provided in an embodiment of the present application. The card content information includes a card title, text content, card media, and a button list. The card media comprises a media file type, a media file address, a reduction map file type and a reduction map url. The button list includes button types, button display names, button callback contents, and button information.
Still taking the above format of the 5G message to be sent as an example, a field value of a contenttype field in the 5G message to be sent is "application/vnd.gsma.botmessagev1.0 + json", which indicates that the 5G message to be sent is a rich text card message. Correspondingly, the card content is extracted from the body text field.
Case four: and when the message type is a mixed message, extracting text content, file content and/or card content included in the 5G message to be sent.
And if the message type determined by the content type field is a mixed message, extracting text content, file content and/or card content from the 5G message to be sent.
Referring to fig. 5, this is a schematic diagram of a hybrid message provided in an embodiment of the present application. The mixed message includes the main message content information and the resume button information. The primary message content information may be text content, file content and/or card content. The resume button information includes a button type, a button display name, button callback contents, and button information.
It should be noted that, in order to facilitate extracting a plurality of message contents, a separator may be used to divide the two message contents.
Still taking the format of the 5G message to be sent as an example, in the 5G message to be sent, the field value of the contenttype field is multipart/mixed; the boundary indicates that the 5G message to be sent is a mixed message. Wherein next is a separator. Correspondingly, the message content is extracted from the body text field.
Based on the above content, the message type of the to-be-sent 5G message can be determined by the field value of the content type field in the to-be-sent 5G message, so as to extract the corresponding message content, thereby realizing the extraction of the message content in the to-be-sent 5G message with multiple message types.
It can be understood that the format of the 5G message to be sent is not the same as the format of the message page and cannot be directly converted. In the process of converting the 5G message to be sent into the message page, the message content of the 5G message to be sent needs to be converted into an intermediate format, and then the message page is obtained through the intermediate format conversion.
In a possible implementation manner, an embodiment of the present application provides a specific implementation manner for converting a to-be-transmitted 5G message into a message page according to a message type and a message content of the to-be-transmitted 5G message, and specifically includes the following two steps:
b1: and converting the message content of the 5G message to be sent into a message page format according to the message type of the 5G message to be sent.
The objects of the converted message page formats are different for the message contents corresponding to different message types. And converting the corresponding extracted message content into a corresponding message page format according to the message type of the 5G message to be sent. The message page format is an intermediate format for converting the 5G message to be sent into a message page. The message page format may be a json format.
The embodiment of the present application provides a specific implementation manner for converting, for a to-be-transmitted 5G message of multiple message types, message content of the to-be-transmitted 5G message into a message page format according to a message type of the to-be-transmitted 5G message, please refer to the following.
B2: and converting the message content of the 5G message to be transmitted into a message page by reading the message page format.
The message page format can be used for directly converting the message content of the 5G message to be sent into the message page. Correspondingly, the embodiment of the present application provides a specific implementation manner for converting the message content of the to-be-transmitted 5G message into a message page by reading the message page format for the message page format obtained by converting the to-be-transmitted 5G message of multiple message types, please refer to the following.
In the embodiment of the application, the message content of the to-be-sent 5G message can be converted into the message page through the message page format, so that the receiving terminal which does not support the to-be-sent 5G message display can display the message page, and a user can conveniently obtain the message content of the to-be-sent 5G message through the message page.
In a possible implementation manner, an embodiment of the present application provides a specific implementation manner for converting message content of a to-be-sent 5G message into a message page format according to a message type of the to-be-sent 5G message when the message type includes a text message, a file message, a rich text card message, or a mixed message.
It should be noted that, the message page format includes content objects corresponding to different message contents. Referring to fig. 6, this figure is a schematic diagram of converting message content of a 5G message to be sent into a message page format according to an embodiment of the present application. The message page format comprises a message type, a text content object, a file thumbnail content object, a main file content object, a card style object and a button list. Each content object corresponds to the message content of a 5G message to be sent of a particular message type.
The following describes the conversion mode between the message content of the to-be-sent 5G message of four message types and the content object in the message page format.
The first condition is as follows: and when the message type is a text message, writing the text content included in the 5G message to be sent into a text content object in a message page format.
As shown by an arrow corresponding to "text message" in fig. 6, the text content included in the to-be-sent 5G message belonging to the text message corresponds to the text content object in the message page format, and the text content is written into the text content object in the message page format.
Case two: and when the message type is a file message, writing the content information of the file reduction rate graph included in the 5G message to be sent into the content object of the file reduction rate graph in the message page format, and writing the content information of the main file included in the 5G message to be sent into the content object of the main file in the message page format.
The file content included in the to-be-sent 5G message belonging to the file message is file reduction rate map content information and main file content information.
Referring to an arrow corresponding to "file reduction rate map content information" in fig. 6, the file reduction rate map content information included in the to-be-sent 5G message belonging to the file message corresponds to the file reduction rate map content object in the message page format, and the file reduction rate map content information is written into the file reduction rate map content object in the message page format.
Referring to an arrow corresponding to "main file content information" in fig. 6, the main file content information included in the to-be-sent 5G message belonging to the file message corresponds to the main file content object in the message page format, and the main file content information is written into the main file content object in the message page format.
Case three: and when the message type is a rich text card message, writing at least one piece of card content information included in the 5G message to be sent into a card content object in a message page format, and writing the card style information included in the 5G message to be sent into a card style object in the message page format.
The file contents included in the to-be-sent 5G message belonging to the rich text card message are card content information and card style information.
And the rich text card message included in the to-be-sent 5G message belonging to the rich text card message corresponds to the rich text card content object in the message page format, and the rich text card message is written into the rich text card content object in the message page format. As shown by an arrow corresponding to "card content information" in fig. 6, the card content information corresponds to a card content object in the rich text card content object in the message page format, and the card content information is written into the card content object in the message page format. Referring to an arrow corresponding to "card style information" in fig. 6, the card style information corresponds to a card style object in the rich text card content object in the message page format, and the card style information is written to the card style object in the message page format.
Case four: when the message type is a mixed message, writing reply button information included in the 5G message to be sent into a reply button object in a message page format; if the 5G message to be sent comprises text content, writing the text content contained in the 5G message to be sent into a text content object in a message page format; if the 5G message to be sent comprises file content, writing the file reduction rate graph content information included in the 5G message to be sent into a file reduction rate graph content object in a message page format, and writing the main file content information included in the 5G message to be sent into a main file content object in the message page format; if the 5G message to be sent comprises the card content, writing at least one piece of card content information included in the 5G message to be sent into a card content object in a message page format, and writing the card style information included in the 5G message to be sent into a card style object in the message page format.
When the message type is a mixed message, the message content of the mixed message comprises reply button information and primary message content information, wherein the primary message content information comprises one or more of text content, file content and card content.
Referring to an arrow corresponding to "reply button information" in fig. 6, the reply button information included in the to-be-sent 5G message belonging to the mixed message corresponds to the reply button object in the message page format, and the reply button information is written into the reply button object in the message page format.
And if the to-be-sent 5G message belonging to the mixed message comprises text content, writing the text content included in the to-be-sent 5G message into a text content object in a message page format.
If the to-be-sent 5G message belonging to the mixed message comprises file content, writing the file reduction rate graph content information included in the to-be-sent 5G message into a file reduction rate graph content object in a message page format, and writing the main file content information included in the to-be-sent 5G message into a main file content object in the message page format.
If the to-be-sent 5G message belonging to the mixed message comprises card content, writing at least one piece of card content information included in the to-be-sent 5G message into a card content object in a message page format, and writing the card style information included in the to-be-sent 5G message into a card style object in the message page format.
Based on the above, the embodiment of the present application provides a specific way for writing the message content of the to-be-sent 5G message belonging to different message types into the message page format. By correspondingly writing the message content into the message page format, the subsequent conversion from the message page format to the message page can be realized, so that the automatic conversion from the 5G message to be sent to the message page can be realized, and the message content can be displayed through the message page.
It will be appreciated that there are a variety of web page elements in the message page, the variety of web page elements corresponding to the variety of message content. The embodiment of the present application provides a method for converting message content of a to-be-sent 5G message into a message page by reading a message page format when a message type includes a text message, a file message, a rich text card message, or a mixed message, including the following four cases:
the first condition is as follows: and when the message type is a text message, reading text content from the text content object in the message page format, and writing the text content into a text webpage element to generate a message page.
And the webpage elements in the message page corresponding to the text content are text webpage elements, the text content is read from the text content object in the message page format, and the text content is written into the text webpage elements to generate the corresponding message page.
As an example, when the message page format is JSON format, the text content in msgTxt may be acquired, and the text content is written into a < span > text web page element, so as to generate a corresponding message page.
Referring to fig. 7, this figure is a schematic diagram of a message page generated by conversion when a message type is a text message according to an embodiment of the present application.
Case two: when the message type is a file message, reading the content information of the file thumbnail from the content object of the file thumbnail in the message page format, and reading the content information of the main file from the content object of the main file in the message page format; and constructing corresponding webpage elements according to the content information of the file thumbnail and the content information of the main file to generate a message page.
And when the message type is a file message, the file content is correspondingly written into the file thumbnail content object and the main file content object. Reading the content information of the file reduction rate graph from the content object of the file reduction rate graph in the message page format, and reading the content information of the main file from the content object of the main file in the message page format. And writing the content information of the file reduction rate graph and the content information of the main file into corresponding webpage elements to generate a message page.
Specifically, the file message may be further divided into a file message of a picture file, a file message of a video file, and a file message of an audio file. Correspondingly, a picture webpage element, a video webpage element or an audio webpage element can be constructed according to the file thumbnail content information and the main file content information, and a message page is generated.
As an example, when the message page format is JSON format, the thumbnail content information and the main file content information in the thumbnafile file may be acquired.
If the main file is a picture file, an < img > picture webpage element can be constructed, and the file reduction rate graph content information and the main file content information are written into the < img > picture webpage element to generate a corresponding message page. Referring to fig. 8, this figure is a schematic diagram of a message page generated by conversion when a message type is a file message according to an embodiment of the present application. It should be noted that only the corresponding reduction rate graph is displayed when the message page is displayed, and the text content information is loaded after the reduction rate graph is triggered to display the picture.
If the main file is a video file, a < video > video webpage element can be constructed, and the file thumbnail image content information and the main file content information are written into the < video > video webpage element to generate a corresponding message page. Referring to fig. 9, this figure is a schematic diagram of a message page generated by conversion when another message type provided by the embodiment of the present application is a file message. And only displaying the corresponding reduction rate graph when the message page is displayed, and loading text content information after triggering the reduction rate graph to play the video.
If the main file is an audio file, an audio webpage element can be constructed, and the content information of the file thumbnail and the content information of the main file are written into the audio webpage element to generate a corresponding message page. Referring to fig. 10, this figure is a schematic diagram of a message page generated by conversion when another message type is a file message according to the embodiment of the present application. And when the message page is displayed, only the corresponding reduction rate graph is displayed, and after the reduction rate graph is triggered, the text content information is loaded to play the audio.
Case three: when the message type is rich text card message, reading at least one piece of card content information from a card content object in a message page format, and reading card style information from a card style object in the message page format; and constructing corresponding webpage elements according to the card content information and the card style information to generate a message page.
And when the message type is a rich text card message, at least one piece of card content information is correspondingly written into the card content object, and the card style information is correspondingly written into the card style object. Reading at least one piece of card content information from the card content object in the message page format, and reading the card style information from the card style object in the message page format. And writing the card content information and the card style information into the corresponding constructed webpage elements to generate a message page.
As an example, when the message page format is JSON format, content information in generalPurposeCard may be acquired. The constructed webpage element is < div > < i > < img > < span > < dl > < dd >, wherein the picture content information in the card adopts the < img > webpage element, and the button information in the card adopts the < dl > < dd > webpage element. Referring to fig. 11, this is a schematic diagram of a message page generated by conversion when a message type is a rich text card message according to an embodiment of the present application. And if the rich text card message has a plurality of card content information, sequentially displaying the plurality of cards. Referring to fig. 12, this is a schematic diagram of a message page generated by conversion when another message type provided by the embodiment of the present application is a rich text card message.
Case four: when the message type is a mixed message, the mixed message comprises reply button information and main message content. The following describes a conversion method of the main message content information and a conversion method of the reply button information in the mixed message, respectively, including the following three steps:
a1: and when the message type is a mixed message, reading the text content object, the file thumbnail content object and the card content object in the message page format in sequence.
When the text content object is not empty, reading the text content from the text content object in the message page format, and writing the text content into a text webpage element;
when the file reduction rate graph content object is not empty, reading file reduction rate graph content information from the file reduction rate graph content object in the message page format, reading main file content information from the main file content object in the message page format, and constructing a corresponding webpage element according to the file reduction rate graph content information and the main file content information;
and when the card content object is not empty, reading at least one piece of card content information from the card content object in the message page format, reading the card style information from the card style object in the message page format, and constructing a corresponding webpage element according to the card content information and the card style information.
The mixed message may include a text message, a file message, and/or a rich text card message. Correspondingly, the text content object, the file thumbnail content object and the card content object in the message page format are read in sequence.
If the text content object is not empty, which indicates that the mixed message includes a text message, the text content is read from the text content object in the message page format and written to the text web page element. The way of reading the text content and writing the text content into the text web page element is the same as the above case one, and when the message type is a text message, the method of reading the text content from the text content object in the message page format and writing the text content into the text web page element to generate the message page is the same, and the description is omitted here.
If the file reduction rate graph content object is not empty, the mixed message comprises file information, the file reduction rate graph content information is read from the file reduction rate graph content object in the message page format, the main file content information is read from the main file content object in the message page format, and corresponding webpage elements are constructed according to the file reduction rate graph content information and the main file content information. The method is the same as the method in the second case, and is not described herein again.
If the card content object is not empty, the mixed message includes a rich text card message, at least one piece of card content information is read from the card content object in the message page format, the card style information is read from the card style object in the message page format, and corresponding webpage elements are constructed according to the card content information and the card style information. The method is the same as the method in case three above, and is not described herein again.
A2: reply button information is also included in the hybrid message. And reading the reply button information in the reply button object in the message page format, and constructing a corresponding webpage element according to the reply button information.
And reading the reply button information from the reply button object in the message page format, and writing the reply button information into the corresponding webpage element.
As an example, when the message page format is JSON format, the reply button information in the comments may be obtained and written to the constructed < div > < span > web page element.
A3: and generating a message page according to each constructed webpage element.
And finally, generating a message page according to each constructed webpage element so as to obtain the message page corresponding to the mixed message.
Based on the above content, the corresponding message content is obtained from the message content format and written into the corresponding webpage element, so that the 5G message to be sent is encapsulated, the corresponding message content can be generated based on the message content format, and the accuracy of the message content displayed by the receiving terminal is ensured.
In a possible implementation manner, when a trigger request of a link address sent by a receiving terminal is received, in order to ensure the safety of the access of the message page, the receiving terminal needs to be authenticated.
The embodiment of the present application provides a method for implementing 5G message conversion, which includes the following two steps in addition to the above S201-S206:
when a trigger request for a link address sent by a receiving terminal is received, carrying out identity verification on the receiving terminal;
and after the identity authentication is passed, responding to the trigger request of the link address so as to enable the receiving terminal to display the message page.
And after receiving a trigger request for the link address sent by the receiving terminal, carrying out identity verification on the receiving terminal. Specifically, the authentication may be performed by sending a random verification code to a corresponding number of the receiving terminal, and determining whether the authentication is successful by comparing whether the received verification code fed back by the receiving terminal is consistent with the sent verification code.
And if the identity authentication is passed, responding to the trigger request of the link address, and enabling the receiving terminal to display a message page corresponding to the link address.
In the embodiment of the application, before the trigger request of the link address is responded, the identity of the receiving terminal is verified, so that the access safety of the message page can be ensured, and the communication safety of the message content is improved.
Based on the method for implementing 5G message conversion provided by the foregoing method embodiment, an embodiment of the present application further provides a device for implementing 5G message conversion, and the device for implementing 5G message conversion will be described below with reference to the accompanying drawings.
Referring to fig. 13, this figure is a schematic structural diagram of an apparatus for implementing 5G message conversion according to an embodiment of the present application. As shown in fig. 6, the apparatus for implementing 5G message conversion includes:
an obtaining unit 1301, configured to obtain a to-be-sent 5G message, where the to-be-sent 5G message carries a receiving terminal identifier;
a determining unit 1302, configured to determine, according to the receiving terminal identifier, whether a receiving terminal of the to-be-sent 5G message supports receiving the 5G message;
an extracting unit 1303, configured to obtain a message type of the to-be-sent 5G message if the receiving terminal does not support receiving the 5G message, and extract corresponding message content according to the message type;
a converting unit 1304, configured to convert the to-be-sent 5G message into a message page according to a message type and a message content of the to-be-sent 5G message;
a configuration unit 1305, configured to configure a link address of the message page;
a sending unit 1306, configured to send the link address of the message page to the receiving terminal as a push message, so that the receiving terminal displays the message page in response to a trigger request for the link address.
In a possible implementation manner, the extracting unit 1303 includes:
the reading subunit is configured to read a field value in a content type field of the to-be-sent 5G message, and determine a message type of the to-be-sent 5G message according to the field value in the content type field, where the message type includes a text message, a file message, a rich text card message, and a mixed message;
the first extraction subunit is configured to, when the message type is a text message, extract text content included in the to-be-sent 5G message;
the second extraction subunit is configured to, when the message type is a file message, extract file content included in the to-be-sent 5G message;
the third extraction subunit is used for extracting the card content included in the to-be-sent 5G message when the message type is a rich text card message;
a fourth extraction subunit, configured to, when the message type is a mixed message, extract text content, file content, and/or card content included in the to-be-sent 5G message;
the file content comprises file thumbnail content information and main file content information, and the card content comprises at least one piece of card content information and card style information.
In one possible implementation manner, the conversion unit 1304 includes:
the first conversion subunit is configured to convert, according to the message type of the to-be-transmitted 5G message, the message content of the to-be-transmitted 5G message into a message page format;
and the second conversion subunit is used for converting the message content of the 5G message to be sent into a message page by reading the message page format.
In one possible implementation manner, the first conversion subunit includes:
the first writing subunit is configured to, when the message type is a text message, write text content included in the to-be-sent 5G message into a text content object in a message page format;
a second writing subunit, configured to, when the message type is a file message, write the content information of the file reduction rate map included in the to-be-sent 5G message into a content object of the file reduction rate map in a message page format, and write the content information of the main file included in the to-be-sent 5G message into a content object of the main file in the message page format;
a third writing subunit, configured to, when the message type is a rich text card message, write at least one piece of card content information included in the to-be-sent 5G message into a card content object in a message page format, and write card style information included in the to-be-sent 5G message into the card style object in the message page format;
a fourth writing subunit, configured to write, when the message type is a mixed message, reply button information included in the to-be-sent 5G message into a reply button object in a message page format; if the 5G message to be sent comprises text content, writing the text content contained in the 5G message to be sent into a text content object in the message page format; if the to-be-sent 5G message comprises file content, writing file reduction rate graph content information included in the to-be-sent 5G message into a file reduction rate graph content object in the message page format, and writing main file content information included in the to-be-sent 5G message into a main file content object in the message page format; if the to-be-sent 5G message comprises card content, writing at least one piece of card content information included in the to-be-sent 5G message into a card content object in the message page format, and writing the card style information included in the to-be-sent 5G message into a card style object in the message page format.
In one possible implementation manner, the second conversion subunit includes:
a fifth writing subunit, configured to, when the message type is a text message, read text content from a text content object in the message page format, and write the text content into a text web page element to generate a message page;
a sixth write-in subunit, configured to, when the message type is a file message, read file thumbnail content information from a file thumbnail content object in the message page format, and read main file content information from a main file content object in the message page format; constructing corresponding webpage elements according to the content information of the file thumbnail and the content information of the main file to generate a message page;
a seventh writing subunit, configured to, when the message type is a rich text card message, read at least one piece of card content information from a card content object in the message page format, and read card style information from a card style object in the message page format; constructing corresponding webpage elements according to the card content information and the card style information to generate a message page;
the eighth writing subunit is configured to, when the message type is a mixed message, sequentially read a text content object, a file thumbnail content object, and a card content object in the message page format; when the text content object is not empty, reading text content from the text content object in the message page format, and writing the text content into a text webpage element; when the file reduction rate graph content object is not empty, reading file reduction rate graph content information from the file reduction rate graph content object in the message page format, reading main file content information from the main file content object in the message page format, and constructing a corresponding webpage element according to the file reduction rate graph content information and the main file content information; when the card content object is not empty, reading at least one piece of card content information from the card content object in the message page format, reading card style information from the card style object in the message page format, and constructing a corresponding webpage element according to the card content information and the card style information; reading reply button information in a reply button object in the message page format, and constructing a corresponding webpage element according to the reply button information; and generating a message page according to each constructed webpage element.
In a possible implementation manner, the sixth write-in subunit is specifically configured to construct a picture web page element, a video web page element, or an audio web page element according to the file reduction rate map content information and the main file content information, and generate a message page.
In one possible implementation, the apparatus further includes:
the verification unit is used for verifying the identity of the receiving terminal when receiving a trigger request for the link address sent by the receiving terminal;
and the response unit is used for responding to the trigger request of the link address after the identity authentication is passed so as to enable the receiving terminal to display the message page.
In addition, an embodiment of the present application further provides a device for implementing 5G message conversion, including: the system comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the method for realizing 5G message conversion according to the embodiment.
In addition, an embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on a terminal device, the terminal device is caused to execute the method for implementing 5G message conversion according to the foregoing embodiment.
The device and the equipment for realizing 5G message conversion provided by the embodiment of the application can judge whether a receiving terminal of a to-be-sent 5G message supports receiving of the 5G message or not by acquiring the to-be-sent 5G message and according to a receiving terminal identifier carried in the to-be-sent 5G message. And when the receiving terminal does not support to receive the 5G message, acquiring the message type of the 5G message to be sent, and extracting the corresponding message content according to the message type. And then according to the message type and the message content, converting the 5G message to be sent into a message page. Therefore, the 5G message can be converted into a message page, and the message content of the 5G message is displayed through the message page. And finally, configuring a link address of the message page, sending the link address of the message page to a receiving terminal as a push message, wherein the receiving terminal can respond to a trigger request of the link address to display the message page and realize the sending of the message content of the 5G message. Therefore, on the basis that the receiving terminal does not support receiving the 5G message, the message content of the corresponding 5G message is displayed in a mode that the receiving terminal displays the message page, the receiving terminal is convenient to receive the message content of the 5G message, and the popularization rate of the 5G message is improved.
It should be noted that, in the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the system or the device disclosed by the embodiment, the description is simple because the system or the device corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
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 (8)

1. A method for implementing 5G message conversion, the method comprising:
acquiring a 5G message to be sent, wherein the 5G message to be sent carries a receiving terminal identification;
judging whether the receiving terminal of the 5G message to be sent supports receiving the 5G message or not according to the receiving terminal identification;
if the receiving terminal does not support receiving of the 5G message, the message type of the 5G message to be sent is obtained, and corresponding message content is extracted according to the message type;
converting the message content of the 5G message to be sent into a message page format according to the message type of the 5G message to be sent;
converting the message content of the 5G message to be sent into a message page by reading the message page format;
configuring a link address of the message page;
sending the link address of the message page to the receiving terminal as a push message so that the receiving terminal responds to a trigger request for the link address and displays the message page;
the converting, according to the message type of the to-be-transmitted 5G message, the message content of the to-be-transmitted 5G message into a message page format includes:
when the message type is a text message, writing the text content included in the 5G message to be sent into a text content object in a message page format;
when the message type is a file message, writing the content information of the file reduction rate graph included in the 5G message to be sent into a content object of the file reduction rate graph in a message page format, and writing the content information of the main file included in the 5G message to be sent into the content object of the main file in the message page format;
when the message type is a rich text card message, writing at least one card content information included in the to-be-sent 5G message into a card content object in a message page format, and writing the card style information included in the to-be-sent 5G message into the card style object in the message page format;
when the message type is a mixed message, writing reply button information included in the to-be-sent 5G message into a reply button object in a message page format; if the 5G message to be sent comprises text content, writing the text content contained in the 5G message to be sent into a text content object in the message page format; if the to-be-sent 5G message comprises file content, writing file reduction rate graph content information included in the to-be-sent 5G message into a file reduction rate graph content object in the message page format, and writing main file content information included in the to-be-sent 5G message into a main file content object in the message page format; if the to-be-sent 5G message comprises card content, writing at least one piece of card content information included in the to-be-sent 5G message into a card content object in the message page format, and writing the card style information included in the to-be-sent 5G message into a card style object in the message page format.
2. The method according to claim 1, wherein the obtaining the message type of the to-be-sent 5G message and extracting the corresponding message content according to the message type comprises:
reading a field value in a content type field of the 5G message to be sent, and determining a message type of the 5G message to be sent according to the field value in the content type field, wherein the message type comprises a text message, a file message, a rich text card message and a mixed message;
when the message type is a text message, extracting text content included in the 5G message to be sent;
when the message type is a file message, extracting file contents included in the 5G message to be sent;
when the message type is a rich text card message, extracting card content included in the to-be-sent 5G message;
when the message type is a mixed message, extracting text content, file content and/or card content included in the 5G message to be sent;
the file content comprises file thumbnail content information and main file content information, and the card content comprises at least one piece of card content information and card style information.
3. The method according to claim 1, wherein the converting the message content of the 5G message to be sent into a message page by reading the message page format comprises:
when the message type is a text message, reading text content from a text content object in the message page format, and writing the text content into a text webpage element to generate a message page;
when the message type is a file message, reading the content information of the file thumbnail from the content object of the file thumbnail in the message page format, and reading the content information of the main file from the content object of the main file in the message page format; constructing corresponding webpage elements according to the content information of the file thumbnail and the content information of the main file to generate a message page;
when the message type is rich text card message, reading at least one piece of card content information from a card content object in the message page format, and reading card style information from a card style object in the message page format; constructing corresponding webpage elements according to the card content information and the card style information to generate a message page;
when the message type is a mixed message, sequentially reading a text content object, a file thumbnail content object and a card content object in the message page format; when the text content object is not empty, reading text content from the text content object in the message page format, and writing the text content into a text webpage element; when the file reduction rate graph content object is not empty, reading file reduction rate graph content information from the file reduction rate graph content object in the message page format, reading main file content information from the main file content object in the message page format, and constructing a corresponding webpage element according to the file reduction rate graph content information and the main file content information; when the card content object is not empty, reading at least one piece of card content information from the card content object in the message page format, reading card style information from the card style object in the message page format, and constructing a corresponding webpage element according to the card content information and the card style information; reading reply button information in a reply button object in the message page format, and constructing a corresponding webpage element according to the reply button information; and generating a message page according to each constructed webpage element.
4. The method of claim 3, wherein constructing the corresponding web page element generation message page according to the thumbnail content information and the main file content information comprises:
and constructing a picture webpage element, a video webpage element or an audio webpage element according to the file shrinkage map content information and the main file content information, and generating a message page.
5. The method of claim 1, further comprising:
when a trigger request for the link address sent by the receiving terminal is received, performing identity authentication on the receiving terminal;
and after the identity authentication is passed, responding to the trigger request of the link address so as to enable the receiving terminal to display the message page.
6. An apparatus for implementing 5G message conversion, the apparatus comprising:
an obtaining unit, configured to obtain a to-be-sent 5G message, where the to-be-sent 5G message carries a receiving terminal identifier;
a judging unit, configured to judge whether a receiving terminal of the to-be-sent 5G message supports receiving the 5G message according to the receiving terminal identifier;
an extracting unit, configured to acquire a message type of the to-be-sent 5G message and extract a corresponding message content according to the message type if the receiving terminal does not support receiving the 5G message;
the conversion unit is used for converting the 5G message to be sent into a message page according to the message type and the message content of the 5G message to be sent;
the configuration unit is used for configuring the link address of the message page;
a sending unit, configured to send a link address of the message page to the receiving terminal as a push message, so that the receiving terminal displays the message page in response to a trigger request for the link address;
the conversion unit includes:
the first conversion subunit is configured to convert, according to the message type of the to-be-transmitted 5G message, the message content of the to-be-transmitted 5G message into a message page format;
the second conversion subunit is configured to convert the message content of the to-be-sent 5G message into a message page by reading the message page format;
the first conversion subunit includes:
the first writing subunit is configured to, when the message type is a text message, write text content included in the to-be-sent 5G message into a text content object in a message page format;
a second writing subunit, configured to, when the message type is a file message, write the content information of the file reduction rate map included in the to-be-sent 5G message into a content object of the file reduction rate map in a message page format, and write the content information of the main file included in the to-be-sent 5G message into a content object of the main file in the message page format;
a third writing subunit, configured to, when the message type is a rich text card message, write at least one piece of card content information included in the to-be-sent 5G message into a card content object in a message page format, and write card style information included in the to-be-sent 5G message into the card style object in the message page format;
a fourth writing subunit, configured to write, when the message type is a mixed message, reply button information included in the to-be-sent 5G message into a reply button object in a message page format; if the 5G message to be sent comprises text content, writing the text content contained in the 5G message to be sent into a text content object in the message page format; if the to-be-sent 5G message comprises file content, writing file reduction rate graph content information included in the to-be-sent 5G message into a file reduction rate graph content object in the message page format, and writing main file content information included in the to-be-sent 5G message into a main file content object in the message page format; if the to-be-sent 5G message comprises card content, writing at least one piece of card content information included in the to-be-sent 5G message into a card content object in the message page format, and writing the card style information included in the to-be-sent 5G message into a card style object in the message page format.
7. An apparatus for implementing 5G message conversion, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the method of implementing 5G message conversion as claimed in any one of claims 1-5 when executing the computer program.
8. A computer-readable storage medium having stored therein instructions that, when run on a terminal device, cause the terminal device to perform a method of implementing 5G message conversion as claimed in any one of claims 1-5.
CN202011623509.3A 2020-12-30 2020-12-30 Method, device and equipment for realizing 5G message conversion Active CN112714406B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011623509.3A CN112714406B (en) 2020-12-30 2020-12-30 Method, device and equipment for realizing 5G message conversion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011623509.3A CN112714406B (en) 2020-12-30 2020-12-30 Method, device and equipment for realizing 5G message conversion

Publications (2)

Publication Number Publication Date
CN112714406A CN112714406A (en) 2021-04-27
CN112714406B true CN112714406B (en) 2022-04-15

Family

ID=75547621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011623509.3A Active CN112714406B (en) 2020-12-30 2020-12-30 Method, device and equipment for realizing 5G message conversion

Country Status (1)

Country Link
CN (1) CN112714406B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115396826B (en) * 2021-05-25 2024-04-09 中国移动通信集团有限公司 Message processing method, device, equipment and storage medium
CN115499793B (en) * 2021-06-18 2024-02-27 深圳艾派网络科技股份有限公司 5G short message making method, system and 5G short message system
CN113543048B (en) * 2021-07-15 2022-12-23 中国银行股份有限公司 Method and device for falling 5G message
CN113938847B (en) * 2021-09-08 2023-05-23 中国联合网络通信集团有限公司 5G message processing method and device
CN115967698A (en) * 2021-10-09 2023-04-14 中兴通讯股份有限公司 Message sending method, electronic device, and computer-readable storage medium
CN114979308B (en) * 2022-05-11 2024-04-16 北京沃东天骏信息技术有限公司 Message processing method and device
CN115103320B (en) * 2022-07-11 2023-09-05 中移互联网有限公司 Message transmission method and device, electronic equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9042923B1 (en) * 2012-02-08 2015-05-26 Fsp Llc Text message definition and control of multimedia
CN105516935A (en) * 2014-09-25 2016-04-20 深圳市中兴微电子技术有限公司 Platform integrated decision method and device of RCS (Rich Communication Suite) and traditional information service and terminal
KR102311613B1 (en) * 2015-03-23 2021-10-13 삼성전자주식회사 Method and Apparatus for Transmitting Integrated Message
US20170185617A1 (en) * 2015-12-29 2017-06-29 Quixey, Inc. Data Object Based Application State Sharing Methods for User Devices
US10341810B2 (en) * 2016-06-23 2019-07-02 T-Mobile Usa, Inc. Geolocation compatibility for non-RCS devices
CN109391540A (en) * 2018-10-31 2019-02-26 珠海市小源科技有限公司 A kind of processing method and processing device of RCS message
KR20200099845A (en) * 2019-02-15 2020-08-25 삼성전자주식회사 Electronic device and computer readable medium for dynamic layout message
CN111107503A (en) * 2019-12-30 2020-05-05 珠海市小源科技有限公司 Short message fallback method, device and system for converged communication message platform service

Also Published As

Publication number Publication date
CN112714406A (en) 2021-04-27

Similar Documents

Publication Publication Date Title
CN112714406B (en) Method, device and equipment for realizing 5G message conversion
CN111177005B (en) Service application testing method, device, server and storage medium
CN110162408B (en) Data processing method, device, equipment and machine-readable medium
WO2016124074A1 (en) Information processing method, client, server and computer storage medium
US11929973B2 (en) Mail processing method and apparatus, and electronic device, and computer readable medium
WO2014154033A1 (en) Method and apparatus for extracting web page content
WO2016048907A1 (en) Method and apparatus of processing a doi (digital object unique identifier) in interaction information
CN112905928A (en) Webpage refreshing method and device, electronic equipment and storage medium
CN106453582B (en) Asynchronous message pushing method and system
CN107888989A (en) A kind of interactive system and method live based on internet
JP2019522847A (en) Method, device and terminal device for extracting data
CN108809896A (en) A kind of information calibration method, device and electronic equipment
CN104077323A (en) Method and device for converting web page content to multimedia messages
CN112187622A (en) Instant message display method and device and server
CN109766315A (en) Document presentation method and terminal, computer storage medium, computer equipment
CN115437930B (en) Webpage application fingerprint information identification method and related equipment
CN109120509B (en) Information collection method and device
CN114741144B (en) Web-side complex form display method, device and system
CN115065945B (en) Short message link generation method and device, electronic equipment and storage medium
CN106033405B (en) Network book catalog integrity detection method and device
CN111767544B (en) Multi-frequency replay attack vulnerability determination method, device, equipment and readable storage medium
CN108920589B (en) Browsing hijacking identification method, device, server and storage medium
CN113704648A (en) Page data processing method, device, equipment and storage medium
US20210021639A1 (en) Method and electronic device for displaying web page
CN111783006A (en) Page generation method and device, electronic equipment and computer readable medium

Legal Events

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