Method, system and device for processing short message issued by target and medium
By obtaining and matching video message templates in the prior art and generating video message or ordinary message, the problems of high cost of sending video message and limited type of text message in the prior art are solved, and video message generation based on standard SMS transmission protocol is realized.
Patent Information
- Application Number
- CN202411862487.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The prior art requires additional docking with other protocols when sending video messages, which is relatively expensive, and the types of SMS that can be transmitted by standard SMS transmission protocols are relatively limited.
By obtaining preset video SMS templates and sending packets to targets, matching type fields and video SMS templates, generating video SMS or ordinary SMS, realizing video SMS generation based on standard SMS transmission protocols.
It reduces the cost of protocol docking, expands the type of SMS that can be transmitted by the standard SMS transmission protocol, and realizes the efficient issuance of video SMS.
Smart Images

Figure CN119815298A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method, system, device and medium for processing short messages sent by a target. Background Art
[0002] SMS includes ordinary SMS and video SMS, among which ordinary SMS is often used to send text messages, while video SMS is often used to send video messages.
[0003] At present, the existing technical solutions mainly send text messages to user terminals based on the text message type. Specifically, ordinary text messages are sent to user terminals through standard text message transmission protocols provided by common operators (such as CMP2 protocol, CMP3 protocol, SGIP protocol and SMGP protocol, etc.), and video type text messages are sent to user terminals through MMS transmission. This method cannot generate and send video text messages based on the standard text message transmission protocol. It needs to connect to other protocols when sending video text messages. The cost of protocol connection is high, and the types of text messages that can be transmitted by the standard text message transmission protocol are relatively limited.
[0004] Therefore, the problems existing in the prior art still need to be solved and optimized. Summary of the invention
[0005] The purpose of the present invention is to solve one of the technical problems existing in the related art to at least a certain extent.
[0006] To this end, an object of an embodiment of the present invention is to provide a method, system, device and medium for processing text messages sent by a target, wherein the method can realize the generation of video text messages based on a standard text message transmission protocol, reduce the cost of protocol docking, and expand the types of text messages that can be transmitted by the standard text message transmission protocol.
[0007] In order to achieve the above technical objectives, the technical solutions adopted by the embodiments of the present application include:
[0008] In a first aspect, an embodiment of the present application provides a method for processing a target sending a text message, comprising:
[0009] Obtaining a plurality of preset video SMS templates and target sent messages, wherein the target sent message includes an SMS type field and an information content field;
[0010] Performing type field matching on the SMS type field to obtain a type matching result, wherein the type matching result is used to indicate a target SMS type of the target sent message, wherein the target SMS type is a video type or a common type;
[0011] According to the type matching result, the information content field is matched with a video SMS template to obtain a template matching result, wherein the template matching result is used to indicate whether there is a video SMS template matching the first information content field or the second information content field, wherein the first information content field is an information content field in a non-full-digital format when the target SMS type is a video type, and the second information content field is an information content field in a full-digital format when the target SMS type is a normal type;
[0012] According to the template matching result, the first information content is constructed for the information content field to obtain a target sent text message, where the target sent text message is a video type text message or a common type text message.
[0013] In addition, the method according to the above embodiment of the present application may also have the following additional technical features:
[0014] Furthermore, in one embodiment of the present application, the method further includes:
[0015] Obtaining a video SMS template application request, wherein the video SMS template application request includes a target video SMS template;
[0016] A template identifier is allocated to the target video SMS template in the video SMS template application request to obtain a target template identifier corresponding to the target video SMS template.
[0017] Further, in one embodiment of the present application, obtaining a message sent by a target includes:
[0018] Get the original request to send the message;
[0019] Performing port parsing on the original request for sending the message, and obtaining a target protocol port corresponding to the original request for sending the message;
[0020] According to the target protocol port, the original message request is parsed to obtain the target message.
[0021] Further, in one embodiment of the present application, if the type matching result is that the target SMS type of the target sent message is a video type, performing video SMS template matching on the information content field according to the type matching result to obtain a template matching result includes:
[0022] Get the preset content format key and content extraction rules;
[0023] According to the content extraction rule, the information content field is subjected to content extraction to obtain a target key and a target identification value, wherein the target key is a message format key of the message sent by the target, and the target identification value is used to indicate a target video SMS template of the message sent by the target;
[0024] According to the content format key, the target key is key matched to obtain a key matching result, and according to the target identification value, a first template identification matching is performed on all the video SMS templates to obtain an identification matching result;
[0025] The template matching result is obtained according to the key matching result and the identifier matching result.
[0026] Further, in one embodiment of the present application, if the type matching result is that the target SMS type of the target sent message is a common type, the video SMS template matching is performed on the information content field to obtain the template matching result, including:
[0027] Screening the information content field in full digital format to obtain the second information content field;
[0028] According to all the video SMS templates, a second template identifier match is performed on the second information content field to obtain the template matching result.
[0029] Further, in one embodiment of the present application, performing a second template identifier match on the second information content field according to all the video SMS templates to obtain the template matching result includes:
[0030] Using the current video SMS template as a first template, and obtaining a template unique identifier of the first template;
[0031] According to the template unique identifier, performing string matching on the second information content field to obtain a string matching result;
[0032] If there is at least one of the video SMS templates that has not been string matched and the string matching result is an unsuccessful string match, the string matching result is retained, and then the step of returning to execute the current video SMS template as the first template and obtaining the template unique identifier of the first template; or, if all of the video SMS templates have been string matched and the string matching result is an unsuccessful string match, the template matching result is obtained based on all of the string matching results; or, if the string matching result is a successful string match, the first template is determined as a video SMS template that matches the second information content field, and the template matching result is obtained based on the current string matching result.
[0033] Furthermore, in the embodiment of the present application, the method further includes:
[0034] Obtaining a preset common SMS construction rule and a third information content field, wherein the third information content field is an information content field in a non-full-digital format when the target SMS type is a common type;
[0035] According to the common SMS construction rule, the second information content is constructed for the third information content field to obtain the target SMS.
[0036] In a second aspect, an embodiment of the present application provides a system for processing a target-sent short message, including:
[0037] The first processing unit is used to obtain a plurality of preset video SMS templates and a target sending message sent by the client, wherein the target sending message includes an SMS type field and an information content field;
[0038] A second processing unit is used to perform type field matching on the SMS type field to obtain a type matching result, wherein the type matching result is used to indicate a target SMS type of the target sent message, and the target SMS type is a video type or a common type;
[0039] a third processing unit, configured to perform video SMS template matching on the information content field according to the type matching result, and obtain a template matching result, wherein the template matching result is used to characterize whether there is a video SMS template matching the first information content field or the second information content field, wherein the first information content field is an information content field in a non-full-digital format when the target SMS type is a video type, and the second information content field is an information content field in a full-digital format when the target SMS type is a normal type;
[0040] The fourth processing unit is used to construct the first information content for the information content field according to the template matching result to obtain a target sent text message, where the target sent text message is a video type text message or a common type text message.
[0041] In a third aspect, an embodiment of the present application further provides an electronic device, including:
[0042] at least one processor;
[0043] at least one memory for storing at least one program;
[0044] When the at least one program is executed by the at least one processor, the at least one processor implements the above method.
[0045] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores a program executable by a processor, and the program executable by the processor is used to implement the above method when executed by the processor.
[0046] The advantages and benefits of the present application will be partially given in the following description, and partially become apparent from the following description, or be understood through the practice of the present application:
[0047] The embodiments of the present application disclose a method, system, device and medium for processing a target SMS. The method obtains a plurality of preset video SMS templates and a target SMS message, wherein the target SMS message includes an SMS type field and an information content field; performs type field matching on the SMS type field to obtain a type matching result, wherein the type matching result is used to indicate the target SMS type of the target SMS message, wherein the target SMS type is a video type or a common type; performs video SMS template matching on the information content field according to the type matching result to obtain a template matching result, wherein the template matching result is used to characterize whether there is a video SMS template matching with a first information content field or a second information content field, wherein the first information content field is an information content field in a non-full digital format when the target SMS type is a video type, and the second information content field is an information content field in a full digital format when the target SMS type is a common type; performs first information content construction on the information content field according to the template matching result to obtain a target SMS message, wherein the target SMS message is a video type SMS or a common type SMS. The method matches the video SMS template for the information content field based on the type matching result, and constructs the information content for the information content field based on the template matching result. It can generate video SMS or ordinary SMS for the target message based on the standard SMS transmission protocol, realize the generation of video SMS based on the standard SMS transmission protocol, reduce the cost of protocol docking, and expand the types of SMS that can be transmitted by the standard SMS transmission protocol. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the embodiments of the present application or the drawings of the related technical solutions in the prior art are introduced below. It should be understood that the drawings introduced below are only for the convenience of clearly expressing some embodiments of the technical solutions of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0049] Figure 1 A flowchart of a method for processing a text message sent by a target provided in an embodiment of the present application;
[0050] Figure 2A schematic diagram of the structural framework of a target text message processing system provided in an embodiment of the present application;
[0051] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and are not to be construed as limitations on the present application. For the step numbers in the following embodiments, they are only provided for the convenience of explanation, and the order between the steps is not limited in any way, and the execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.
[0053] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0054] At present, the existing technical solutions mainly send text messages to user terminals based on the text message type. Specifically, ordinary text messages are sent to user terminals through standard text message transmission protocols provided by common operators (such as CMP2 protocol, CMP3 protocol, SGIP protocol and SMGP protocol, etc.), and video type text messages are sent to user terminals through MMS transmission. Among them, the MMS transmission method is mainly implemented through Internet network communication protocols (such as WAP protocol, TCP / IP protocol, HTTP protocol, etc.). This method cannot generate and send video text messages based on the standard text message transmission protocol. It needs to connect to other protocols when sending video text messages. The cost of protocol connection is high, and the types of text messages that can be transmitted by the standard text message transmission protocol are relatively limited.
[0055] In view of this, an embodiment of the present invention provides a method, system, device and medium for processing text messages sent by a target, wherein the method matches a video text message template for the information content field based on the type matching result, and constructs information content for the information content field based on the template matching result. It can generate video text messages or ordinary text messages for target sent messages based on the standard text message transmission protocol, realize the generation of video text messages based on the standard text message transmission protocol, reduce the cost of protocol docking, and expand the types of text messages that can be transmitted by the standard text message transmission protocol.
[0056] Reference Figure 1 In an embodiment of the present application, a method for processing a text message sent by a target includes:
[0057] Step 110: obtaining a plurality of preset video SMS templates and target sent messages, wherein the target sent message includes an SMS type field and an information content field;
[0058] In the embodiment of the present application, the processing method can be applied to the server, which stores a number of video SMS templates requested by different clients. Specifically, step 110 can be to obtain the template ID corresponding to each video SMS template stored in the server, and obtain the target downlink message submitted by a certain client, which is transmitted from the client to the server through the standard SMS transmission protocol, and includes an SMS type field and an information content field.
[0059] Exemplarily, if the client transmits the target message to the server through the CMPP2 protocol or the CMPP3 protocol, the field name corresponding to the SMS type field may be "Service_Id" specified by the CMPP2 protocol or the CMPP3 protocol, and the field name corresponding to the information content field may be "Msg_Content" specified by the CMPP2 protocol or the CMPP3 protocol. Alternatively, if the client transmits the target message to the server through the SGIP protocol, the field name corresponding to the SMS type field may be "ServiceType" specified by the SGIP protocol, and the field name corresponding to the information content field may be "MessageContent" specified by the SGIP protocol. Alternatively, if the client transmits the target message to the server through the SMGP protocol, the field name corresponding to the SMS type field may be "ServiceID" specified by the SMGP protocol, and the field name corresponding to the information content field may be "MsgContent" specified by the SGIP protocol. The examples in this application are for illustration only and are not intended to limit this application.
[0060] In some embodiments, the method further comprises:
[0061] A1. Obtain a video SMS template application request, where the video SMS template application request includes a target video SMS template;
[0062] A2. Assign a template identifier to the target video SMS template in the video SMS template application request to obtain a target template identifier corresponding to the target video SMS template.
[0063] In an embodiment of the present application, before the server obtains the target sent message, the server may also receive a video SMS template application request submitted by the client, wherein the video SMS template application request includes a target video SMS template, and the target video SMS template is used to indicate the video SMS template to be reported by the client. The target video SMS template may be an existing video SMS template in the server, or a video SMS template constructed by the client, or a video SMS template in a third channel party.
[0064] It is understandable that after the server obtains the video SMS template application request, it can allocate a template identifier for the target video SMS template, thereby generating a target template identifier corresponding to the target video SMS template, and returning the target template identifier to the client. Specifically, the template identifier allocation in step A2 can be achieved by the server generating a template unique identifier for the target video SMS template, or by the server calling the video SMS template reporting interface provided by a third-party channel to report, and after the report is successful, the template unique identifier provided by the third-party channel is used as the target template identifier. This application example is for illustration only.
[0065] In some embodiments, the step 110 of obtaining a target sent message includes:
[0066] B1. Obtain the original message sending request;
[0067] B2. performing port resolution on the original message request to obtain a target protocol port corresponding to the original message request;
[0068] B3. According to the target protocol port, the original message request is parsed to obtain the target message.
[0069] In the embodiment of the present application, the target downlink message obtained by the server is included in the original downlink message request sent by the client, so the server can first receive the original downlink message request sent by the client based on the standard SMS transmission protocol, and then perform port resolution on the sending port corresponding to the original downlink message request to obtain the target protocol port, which is the sending port used by the client when sending the original downlink message request. Specifically, if the target protocol port is 9060, the target protocol port corresponds to the CMPP2 protocol; or, if the target protocol port is 9070, the target protocol port corresponds to the CMPP3 protocol; or, if the target protocol port is 9080, the target protocol port corresponds to the SGIP protocol; or, if the target protocol port is 9090, the target protocol port is the SMGP protocol.
[0070] It can be understood that after obtaining the target protocol port, the server can determine the standard SMS transmission protocol corresponding to the original message request, and then perform protocol parsing on the original message request based on the standard SMS transmission protocol, and extract the SMS type field and information content field in the parsed original message request as the target message.
[0071] Step 120: Perform type field matching on the SMS type field to obtain a type matching result, wherein the type matching result is used to indicate the target SMS type of the target sent message, and the target SMS type is a video type or a common type;
[0072] In an embodiment of the present application, for a certain target message, step 120 may be to perform type field matching on the SMS type field of the target message, specifically, to determine whether the SMS type field is the character "video". If the SMS type field is the character "video", a type matching result indicating that the target SMS type of the target message is a video type may be obtained; or, if the SMS type field is not the character "video", a type matching result indicating that the target SMS type of the target message is a normal type may be obtained.
[0073] Step 130: According to the type matching result, perform video SMS template matching on the information content field to obtain a template matching result, wherein the template matching result is used to indicate whether there is a video SMS template matching the first information content field or the second information content field, wherein the first information content field is an information content field in a non-full digital format when the target SMS type is a video type, and the second information content field is an information content field in a full digital format when the target SMS type is a normal type;
[0074] In the embodiment of the present application, step 130 may be conditionally performing template matching based on the information content field corresponding to the type matching result, so as to obtain the template matching result. Specifically, step 130 may be matching the information content field of the non-full digital format of the video type, and matching the information content field of the full digital format of the ordinary type, so as to determine whether the message sent is constructed as a video type SMS or a ordinary type SMS.
[0075] In some embodiments, if the type matching result is that the target SMS type of the target sent message is a video type, the step 130, according to the type matching result, performs video SMS template matching on the information content field to obtain a template matching result, includes:
[0076] C1. Obtaining preset content format keys and content extraction rules;
[0077] C2. Extract the content of the information content field according to the content extraction rule to obtain a target key and a target identification value, wherein the target key is a message format key of the target sent message, and the target identification value is used to indicate a target video SMS template of the target sent message;
[0078] C3. According to the content format key, the target key is key matched to obtain a key matching result, and according to the target identification value, the first template identification matching is performed on all the video SMS templates to obtain an identification matching result;
[0079] C4. Obtain the template matching result according to the key matching result and the identifier matching result.
[0080] In an embodiment of the present application, for a certain target sent message, if the type matching result is that the target SMS type of the target sent message is a video type, the information content field needs to pass in the json format content specified by the standard SMS transmission protocol. Therefore, the embodiment of the present application can first obtain the content extraction rules and content format keys corresponding to the target sent message of the video type. The content extraction rules and content format keys can be pre-set, wherein the content format key can be a "templateId" key, and the content extraction rules are used to extract the key and template identifier of the information content field of the target sent message.
[0081] It is understandable that step C2 may be to extract the specific key and specific value in the information content field to obtain the target key and target identification value, and the target identification value is the value corresponding to the target key. Step C3 may be to match the key characters of the extracted target key based on the content format key to obtain the key matching result, and to match the template IDs corresponding to all video SMS templates according to the target identification value to obtain the identification matching result.
[0082] It should be noted that if the content passed in the information content field is not in json format, the key matching result obtained is a key character match failure, and the identifier matching result obtained is a template identifier match failure. In addition, if the content passed in the information content field is in json format, and the extracted target key is not the "templateId" key, a key matching result of a key character match failure is obtained, and if the extracted target identifier value does not successfully match the template id corresponding to one of the video SMS templates, an identifier matching result of a template identifier match failure is obtained.
[0083] It is worth mentioning that step C4 can be that if the key matching result is a successful key character match and the identifier matching result is a successful template identifier match, a template matching result of a video SMS template matching the first information content field can be generated, and the first information content field is an information content field in a non-full digital format when the target SMS type is a video type. Alternatively, if the key matching result is an unsuccessful key character match and / or the identifier matching result is an unsuccessful template identifier match, a template matching result of a video SMS template matching the first information content field can be generated.
[0084] It should be added that, for a target sent message corresponding to a video SMS template that does not match the first information content field as a result of template matching, a common type of SMS can be directly constructed based on the target sent message to obtain a target sent SMS corresponding to the target sent message.
[0085] In some embodiments, if the type matching result is that the target SMS type of the target sent message is a common type, the step 130 of performing video SMS template matching on the information content field to obtain a template matching result includes:
[0086] D1. Screen the information content field in full digital format to obtain the second information content field;
[0087] It is understandable that some clients cannot pass in the "video" character in the SMS type field of the original message sending request when submitting the original message sending request to the server in the actual application scenario. Therefore, in the embodiment of the present application, for the target SMS type of the target message sending whose type matching result is a common type, all the contents in the information content field can be screened, and the information content field whose contents are all in full digital format is determined as the second information content field, and the information content field whose contents are not all in full digital format is determined as the third information content field.
[0088] D2. According to all the video SMS templates, perform a second template identifier match on the second information content field to obtain the template matching result.
[0089] Further, performing a second template identifier match on the second information content field according to all the video SMS templates to obtain the template matching result includes:
[0090] D21, using the current video SMS template as the first template, and obtaining the template unique identifier of the first template;
[0091] D22. Perform string matching on the second information content field according to the template unique identifier to obtain a string matching result;
[0092] D23. If there is at least one video SMS template that has not been string matched and the string matching result is that the string matching is unsuccessful, retain the string matching result, and then return to the step of using the current video SMS template as the first template and obtaining the template unique identifier of the first template;
[0093] Alternatively, D24, if string matching has been performed on all the video SMS templates and the string matching result is that the string matching is unsuccessful, then obtaining the template matching result according to all the string matching results;
[0094] Alternatively, D25, if the string matching result is a successful string matching, the first template is determined as a video SMS template that matches the second information content field, and the template matching result is obtained based on the current string matching result.
[0095] In an embodiment of the present application, for a certain video SMS template among all video SMS templates, the second template identifier matching may firstly obtain the template id of the video SMS template as the template unique identifier, and then, based on the template unique identifier, perform string matching on the second information content field to determine whether there is a digital string identical to the template id of the video SMS template in all the digital contents in the second information content field; if so, a string matching result of successful string matching is obtained; otherwise, if not, a string matching result of unsuccessful string matching is obtained. There are many specific string matching methods, which will not be repeated in this application.
[0096] It can be understood that after obtaining the string matching result corresponding to the first template, if the string matching result is a successful string matching, the first template can be directly determined as the target video SMS template of the second information content field, and a template matching result of a video SMS template matching the second information content field can be generated. In addition, if the string matching result is an unsuccessful string matching, it can also be determined whether there is at least one video SMS template that has not been string matched. If there is at least one video SMS template that has not been string matched, the current string matching result is retained, and the next video SMS template that has not been string matched is determined as the current video SMS template, and the execution of step D21 is returned; or, if all video SMS templates have been string matched, and all string matching results are unsuccessful string matching, at this time, a template matching result of a video SMS template that does not match the second information content field can be generated based on all string matching results.
[0097] Step 140: construct the first information content for the information content field according to the template matching result to obtain a target sent text message, where the target sent text message is a video type text message or a common type text message.
[0098] In the embodiment of the present application, if the template matching result is that there is a video SMS template that matches the first information content field or the second information content field, then the target video SMS template corresponding to the template matching result can be obtained first, and the information content field is constructed by the target video SMS template to obtain a video type SMS, so that the video type SMS is sent to the receiving terminal. Alternatively, if the template matching result is that there is no video SMS template that matches the first information content field or the second information content field, then a normal type SMS can be directly constructed based on the information content field, so that the normal type SMS is sent to the receiving terminal.
[0099] In some embodiments, the method further comprises:
[0100] E1. Obtaining a preset common SMS construction rule and a third information content field, wherein the third information content field is an information content field in a non-full digital format when the target SMS type is a common type;
[0101] E2. According to the common SMS construction rule, construct the second information content for the third information content field to obtain the target SMS.
[0102] In an embodiment of the present application, for an information content field whose target SMS type is of ordinary type and not in a fully digital format, the server can first obtain a preset ordinary SMS construction rule, which is used to construct an ordinary type of SMS based on the content in the information content field, and there are multiple specific construction rules; then, based on the ordinary SMS construction rule, a target sent SMS is constructed according to the content in the third information content field, and the target sent SMS is an ordinary type of SMS.
[0103] A system for processing target-sent short messages according to an embodiment of the present application is described in detail below with reference to the accompanying drawings.
[0104] Reference Figure 2 , a target SMS processing system proposed in an embodiment of the present application includes:
[0105] The first processing unit 101 is used to obtain a plurality of preset video SMS templates and a target sending message sent by a client, wherein the target sending message includes an SMS type field and an information content field;
[0106] The second processing unit 102 is used to perform type field matching on the SMS type field to obtain a type matching result, wherein the type matching result is used to indicate a target SMS type of the target sent message, and the target SMS type is a video type or a common type;
[0107] The third processing unit 103 is used to perform video SMS template matching on the information content field according to the type matching result to obtain a template matching result, wherein the template matching result is used to indicate whether there is a video SMS template matching the first information content field or the second information content field, wherein the first information content field is an information content field in a non-full-digital format when the target SMS type is a video type, and the second information content field is an information content field in a full-digital format when the target SMS type is a normal type;
[0108] The fourth processing unit 104 is used to construct the first information content for the information content field according to the template matching result to obtain a target sent text message, where the target sent text message is a video type text message or a common type text message.
[0109] It can be understood that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0110] Reference Figure 3 , the embodiment of the present application further provides an electronic device, including:
[0111] at least one processor 201;
[0112] At least one memory 202, used to store at least one program;
[0113] When the at least one program is executed by the at least one processor 201, the at least one processor 201 implements the above method embodiment.
[0114] Similarly, it can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0115] The embodiment of the present application further provides a computer-readable storage medium, in which a program executable by the processor 201 is stored. The program executable by the processor 201 is used to implement the above-mentioned method embodiment when executed by the processor 201.
[0116] Similarly, the contents of the above method embodiments are all applicable to the computer-readable storage medium embodiments. The functions specifically implemented by the computer-readable storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0117] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the application is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part described as a larger operation is performed independently.
[0118] In addition, although the present application is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features can be integrated into a single physical device and / or software module, or one or more functions and / or features can be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present application. More specifically, in view of the properties, functions, and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional techniques of the engineer. Therefore, those skilled in the art can implement the present application set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present application, which is determined by the full scope of the attached claims and their equivalents.
[0119] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method of the embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0120] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0121] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or processing in another suitable manner as necessary, and then stored in a computer memory.
[0122] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0123] In the above description of this specification, the description with reference to the terms "one embodiment / example", "another embodiment / example" or "certain embodiments / examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0124] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.
[0125] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the embodiments. Technical personnel familiar with the field can make various equivalent modifications or substitutions without violating the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present application.
Claims
1. A method for processing a target sending a short message, characterized in that: include: Obtaining a plurality of preset video SMS templates and target sent messages, wherein the target sent message includes an SMS type field and an information content field; Performing type field matching on the SMS type field to obtain a type matching result, wherein the type matching result is used to indicate a target SMS type of the target sent message, wherein the target SMS type is a video type or a common type; According to the type matching result, the information content field is matched with a video SMS template to obtain a template matching result, wherein the template matching result is used to indicate whether there is a video SMS template matching the first information content field or the second information content field, wherein the first information content field is an information content field in a non-full-digital format when the target SMS type is a video type, and the second information content field is an information content field in a full-digital format when the target SMS type is a normal type; According to the template matching result, the first information content is constructed for the information content field to obtain a target sent text message, where the target sent text message is a video type text message or a common type text message.
2. The method according to claim 1, characterized in that The method further comprises: Obtaining a video SMS template application request, wherein the video SMS template application request includes a target video SMS template; A template identifier is allocated to the target video SMS template in the video SMS template application request to obtain a target template identifier corresponding to the target video SMS template.
3. The method according to claim 1, characterized in that Get the target sent message, including: Get the original request to send the message; Performing port parsing on the original request for sending the message, and obtaining a target protocol port corresponding to the original request for sending the message; According to the target protocol port, the original message request is parsed to obtain the target message.
4. The method according to claim 1, characterized in that If the type matching result is that the target SMS type of the target sent message is a video type, performing video SMS template matching on the information content field according to the type matching result to obtain a template matching result includes: Get the preset content format key and content extraction rules; According to the content extraction rule, the information content field is subjected to content extraction to obtain a target key and a target identification value, wherein the target key is a message format key of the message sent by the target, and the target identification value is used to indicate a target video SMS template of the message sent by the target; According to the content format key, the target key is key matched to obtain a key matching result, and according to the target identification value, a first template identification matching is performed on all the video SMS templates to obtain an identification matching result; The template matching result is obtained according to the key matching result and the identifier matching result.
5. The method according to claim 1, characterized in that If the type matching result is that the target SMS type of the target sent message is a common type, performing video SMS template matching on the information content field to obtain a template matching result includes: Screening the information content field in full digital format to obtain the second information content field; According to all the video SMS templates, a second template identifier match is performed on the second information content field to obtain the template matching result.
6. The method according to claim 5, characterized in that The performing a second template identifier match on the second information content field according to all the video SMS templates to obtain the template matching result includes: Using the current video SMS template as a first template, and obtaining a template unique identifier of the first template; According to the template unique identifier, performing string matching on the second information content field to obtain a string matching result; If there is at least one video SMS template that has not been string matched and the string matching result is an unsuccessful string match, the string matching result is retained, and then the step of returning to execute the current video SMS template as the first template and obtaining the template unique identifier of the first template; or, if all the video SMS templates have been string matched and the string matching result is an unsuccessful string match, the template matching result is obtained based on all the string matching results; or, if the string matching result is a successful string match, the first template is determined as a video SMS template that matches the second information content field, and the template matching result is obtained based on the current string matching result.
7. The method according to claim 5, characterized in that The method further comprises: Obtaining a preset common SMS construction rule and a third information content field, wherein the third information content field is an information content field in a non-full-digital format when the target SMS type is a common type; According to the common SMS construction rule, the second information content is constructed for the third information content field to obtain the target SMS.
8. A system for processing short messages sent by a target, characterized in that: include: The first processing unit is used to obtain a plurality of preset video SMS templates and a target sending message sent by the client, wherein the target sending message includes an SMS type field and an information content field; A second processing unit is used to perform type field matching on the SMS type field to obtain a type matching result, wherein the type matching result is used to indicate a target SMS type of the target sent message, and the target SMS type is a video type or a common type; a third processing unit, configured to perform video SMS template matching on the information content field according to the type matching result, and obtain a template matching result, wherein the template matching result is used to characterize whether there is a video SMS template matching the first information content field or the second information content field, wherein the first information content field is an information content field in a non-full-digital format when the target SMS type is a video type, and the second information content field is an information content field in a full-digital format when the target SMS type is a normal type; The fourth processing unit is used to construct the first information content for the information content field according to the template matching result to obtain a target sent text message, where the target sent text message is a video type text message or a common type text message.
9. An electronic device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a program executable by a processor, characterized in that: The program executable by the processor is used to implement the method according to any one of claims 1 to 7 when executed by the processor.
Citation Information
Patent Citations
Video short message issuing processing method and device
CN110753315A
Message pushing method and device, server and medium
CN111797315A
System and method for generating 5G message
CN114286302A