CN114567855A - Long short message processing method and device and electronic equipment - Google Patents
Long short message processing method and device and electronic equipment Download PDFInfo
- Publication number
- CN114567855A CN114567855A CN202210225320.1A CN202210225320A CN114567855A CN 114567855 A CN114567855 A CN 114567855A CN 202210225320 A CN202210225320 A CN 202210225320A CN 114567855 A CN114567855 A CN 114567855A
- Authority
- CN
- China
- Prior art keywords
- short message
- split
- long short
- pushed
- sample
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
- H04W4/14—Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application discloses a long short message processing method and device and electronic equipment. The long short message processing method comprises the following steps: acquiring a historical push short message when a new sample long short message is received; determining whether the historical pushed short message is a split short message of a sample long short message or not, and if so, generating identification information of the split short message; combining split short messages with the same user identification and the same sample long short message identification into a long short message to obtain an actual push long short message; if the actual push long short message is consistent with the short message content of the sample long short message, generating a combined template according to the split short message; and determining the pushing condition of the sample long short message by using the combined template. The combined template obtained by self-learning has accuracy, effectiveness and integrity, the pushing condition of the sample long short message can be effectively managed, manual participation is not needed in the whole process, the management efficiency is greatly improved, and the labor cost is reduced.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for processing a long short message, and an electronic device.
Background
The short message pushing means that an operator sends the designated short message content to the user through the short message platform according to the user position information. The operator can use the mode to issue useful information related to the user position to the user, for example, welcome short messages, public service advertisements, position information, community service information and the like, and provide additional value-added services for the user, so that the user perception is improved, the customer loyalty is improved, and the core competitiveness of the operator is improved.
In the process of pushing the short messages, many long short messages exist. The long short message means that the length of the short message exceeds the length of one short message of the GSM network, and the length of one short message of the GSM network is usually 140 bytes (or 70 chinese characters). The processing method is that in the process of sending the long short message, a short message sending party divides the long short message provided by an operator into a plurality of short messages to be pushed, and when the short message sending party divides the long short message into a plurality of short messages, the divided short messages are endowed with standard numerical values according to a sequence, and then the assigned short messages are respectively sent to a network terminal. And when the receiving end receives all the short messages from the network end, the long short messages are restored according to the assigned sequence.
In the process of pushing the short message by the short message sender, the short message management system of the operator needs to manage and monitor the pushing condition of the long short message. At present, a short message management system of an operator manually generates a combined check template of a long short message, combines the short messages split by a short message sending party into a long short message by using the combined check template, and checks the pushing condition of the long short message from the short message sending party based on the combined long short message.
In practice, the problems of low efficiency and high labor cost are found when the content of the long short message is changed and the combined template is generated by a manual means.
Disclosure of Invention
The embodiment of the application provides a long short message processing method and device and electronic equipment, and aims to solve the problems of low efficiency and high labor cost existing in the prior art based on combined template management and monitoring of long short message pushing conditions.
The embodiment of the application adopts the following technical scheme:
in a first aspect, an embodiment of the present application provides a method for processing a long short message, where the method includes:
when a new sample long short message is received, acquiring a historical push short message, wherein the sample long short message is a long short message with specified content; determining whether the historical push short message is a split short message of the sample long short message, if so, generating identification information of the split short message, wherein the identification information comprises a user identification and a sample long short message identification; combining split short messages with the same user identification and the same sample long short message identification into a long short message to obtain an actual push long short message; if the actual push long short message is consistent with the short message content of the sample long short message, generating a combined template according to the split short message; and determining the pushing condition of the sample long short message by using the combined template.
In some embodiments, determining whether the historical pushed short message is a split short message of the sample long short message is performed by: detecting the content of the historical pushed short message; and if the short message content of the historical pushed short message belongs to the sample long short message, determining that the historical pushed short message is a split short message.
In some embodiments, combining split short messages with the same user identifier and the same sample long short message identifier into a long short message includes: sorting split short messages with the same user identification and the same sample length short message identification according to the short message sending sequence; and combining the split short messages into long short messages according to the sorting.
In some embodiments, if the actual push long short message is consistent with the short message content of the sample long short message, generating a combined template according to the split short message, including: acquiring a template serial number according to the serial number of the split short message corresponding to the actual pushed long short message; and obtaining the combined template according to the short message content of the split short message corresponding to the actual push long short message, the sample long short message identification and the template serial number.
In some embodiments, after determining the pushing condition of the sample long short message by using the combined template, the method further includes: and displaying the short message call ticket of each split short message of the sample long short message including the pushing condition through a front-end display interface.
In some embodiments, determining the pushing condition of the sample long short message by using the combined template includes: acquiring a pushed split short message of the sample long short message, and determining the pushed split short message matched with the combined template; carrying out long short message combination on the matched pushed split short messages to obtain the pushed long short messages; and if the contents of the pushed long short message are inconsistent with the contents of the sample long short message, generating a wrong pushing alarm of the sample long short message.
In some embodiments, determining a pushed split sms matching the combined template comprises: constructing a scalable distributed data set under each user identifier according to the combined template; storing the pushed split short message to a scalable distributed data set under the corresponding user identification according to the template serial number and the user identification corresponding to the pushed split short message;
the long short message combination is carried out on the matched pushed split short messages to obtain the pushed long short messages, and the method comprises the following steps: and carrying out batch combination on the pushed split short messages in the scalable distributed data set of each template serial number under the same user identification by using a combination operation instruction under a Spark frame to obtain the pushed long short messages.
In some embodiments, the batch combining, by using a combined operation instruction under a Spark framework, pushed split short messages in a scalable distributed data set of each template sequence number under the same user identifier to obtain a pushed long short message includes: acquiring pushed split short messages with the same sample length short message identification from a scalable distributed data set of each template serial number under the same user identification; carrying out duplication elimination processing on the obtained pushed split short message by using a combined operation unit instruction; and aggregating the pushed split short messages after the de-duplication processing by using an aggregation operation redubykey instruction to obtain the pushed long short messages.
In a second aspect, an embodiment of the present application further provides a long short message processing apparatus, where the apparatus includes:
the short message acquisition unit is used for acquiring historical push short messages when receiving new sample long short messages, wherein the sample long short messages are long short messages with specified contents;
the short message screening unit is used for determining whether the historical pushed short message is a split short message of the sample long short message or not, and if the historical pushed short message is the split short message, generating identification information of the split short message, wherein the identification information comprises a user identification and a sample long short message identification; the long short message combination unit is used for combining the split short messages with the same user identification and the same sample long short message identification into a long short message to obtain an actual push long short message; the template generating unit is used for generating a combined template according to the split short message if the short message contents of the actual pushed long short message and the sample long short message are consistent; and the pushing management unit is used for determining the pushing condition of the sample long short message by using the combined template.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor; and a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the method of processing long short messages as described in any of the preceding embodiments.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by an electronic device including a plurality of application programs, the electronic device is caused to execute the long short message processing method in any one of the foregoing embodiments.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects: according to the long short message processing method, the device, the electronic equipment and the computer readable storage medium, when a new sample long short message is obtained, the split short message of the new sample long short message is firstly screened from the historical push short messages, the screened split short message is subjected to long short message combination according to the user identification and the sample long short message identification, the consistency of the short message content is judged between the actual push long short message obtained by combination and the new sample long short message, if the contents of the two messages are consistent, the split short message corresponding to the actual push long short message is complete, accurate and effective, and therefore a combination template of the new sample long short message can be determined by the split short message, and the push condition of the sample long short message is managed and supervised based on the combination template.
Compared with the prior art, the combined template of the sample long short message is learned by self-learning through the real push short message, the combined template has accuracy, effectiveness and integrity, the push condition of the sample long short message can be effectively managed, manual participation is not needed in the whole process, the management efficiency is greatly improved, and the labor cost is reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flow chart of a long short message processing method in an embodiment of the present application;
FIG. 2 is a diagram of a plurality of new sample length short messages in the embodiment of the present application;
FIG. 3 is a schematic diagram illustrating splitting a short message in the embodiment of the present application;
fig. 4 is a schematic structural diagram of a long short message processing apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
The embodiment of the application provides a long short message processing method. As shown in fig. 1, which is a schematic flow chart of a long short message processing method in the embodiment of the present application, as shown in fig. 1, the method at least includes the following steps S110 to S150:
step S110, when a new sample long short message is received, the historical pushed short message is obtained, wherein the sample long short message is a long short message with appointed content.
The long short message processing method of the embodiment of the application relates to data flow between a short message management system server of an operator and a short message sending party server, and is executed by the short message management system server of the operator, wherein the short message management system of the operator can be regarded as a system platform integrated with a plurality of functional modules, and each functional module in the system platform can be uniformly deployed on one server, and certainly can be respectively deployed on different servers to respectively execute corresponding operations.
After the operator formulates a new sample long short message, the short message management system server of the operator can obtain the new sample long short message, and a combined template needs to be formulated for the new sample long short message, so that the short message sending party server can manage and supervise the pushing condition of the sample long short message. The sample long short message comprises short message content, validity period, pushing time, effective geographic position and the like.
The combined template is constructed based on the real historical pushed short messages, so that the combined template can accurately recover the pushing condition of the pushed long short messages. The historical pushed short messages can be obtained from the short message ticket data, and the historical pushed short messages corresponding to the new sample short messages can be obtained from the short message ticket data provided by the short message sending party server at the initial stage of pushing the new sample long short messages.
Step S120, determining whether the historical pushed short message is a split short message of the sample long short message, and if so, generating identification information of the split short message, wherein the identification information comprises a user identification and a sample long short message identification.
In this embodiment, for example, the historical pushed short message is obtained from short message ticket data, where the short message ticket data includes serial number, user identifier, sender number, receiver number, short message content, cost, discount, and the like. When the short message call ticket data is obtained, whether the historical pushed short messages comprise split short messages of sample long short messages or not can be determined according to the short message content. When the split short message is determined, the embodiment generates the identification information according to the sample long short message identification corresponding to the split short message and the user identification of the split short message in the short message ticket data.
The user identifier uniquely identifies the user identity in the short message management system server of the operator, such as a mobile phone number, an identity card number and the like, and the sample long short message identifier uniquely identifies the sample long short message in the short message management system server of the operator. Certainly, in practical applications, the identification information of the split short message may also include other information, for example, an identification formulated according to a corresponding function, and the like, and those skilled in the art may flexibly set the information.
Step S130, combining the split short messages with the same user identification and the same sample long short message identification into a long short message to obtain the actual pushed long short message.
The sample long short message corresponds to a plurality of split short messages, the short message management system server of the operator sends the sample long short message to the short message sending side server, and if the short message sending side server splits the sample long short message into 3 split short messages, the split template of the short message sending side server to the sample long short message is unknown to the short message management system server of the operator. Therefore, when managing or supervising the pushing condition of the short message sending side server to the sample long short message, the operator management system server needs to generate a combined template of the sample long short message by itself, and determines the pushing condition of the sample long short message based on the combined template, so as to realize the management and supervision of the pushing condition.
Through the processing in the above steps S110 and S120 of this embodiment, the user identifier and the sample length short message identifier corresponding to the 3 split short messages assumed above are respectively the same, but the short message contents are different. Therefore, in order to obtain a complete actual pushed long short message, split short messages with the same user identifier and the same sample long short message identifier are combined into the long short message, and the actual pushed long short message is obtained.
Step S140, if the message contents of the actual push long message and the sample long message are consistent, a combined template is generated according to the split short message.
Based on the above assumed situation, if the actual pushed long short message of the 3 split short message combinations is consistent with the sample long short message, it can be determined that the split rules of the short message sending side server for the 3 split short messages of the sample long short message are the combination rules required by the embodiment of the present application, a combination template of the sample long short message can be obtained based on the 3 split short messages, and the obtained combination template corresponds to the sample long short message one by one through the sample long short message identifier.
It should be understood that as long as enough historical pushed short messages are obtained in the data acquisition stage, split short messages corresponding to a sufficient number of sample long short messages can be screened out, and a combined template corresponding to the sample long short messages can be learned by self according to the split short messages. The combined template comprises a user identifier, a sample long short message identifier and a template serial number, wherein the template serial number indicates the serial number of the short message content of the combined template in all split short messages of the sample long short message. For example, based on the above assumed situation, this embodiment obtains 3 combined templates, where the template serial numbers are, for example, "1", "2" and "3", respectively, where the template serial number is "1", which indicates that the combined template corresponds to a first split short message of the sample long short message, the template serial number is "2", which indicates that the combined template corresponds to a second split short message of the sample long short message, and the template serial number is "3", which indicates that the split template corresponds to a third split short message of the sample long short message.
And step S150, determining the pushing condition of the sample long short message by using the combined template.
After the combined template is obtained, the situation that the short message sending side server pushes split short messages of the sample long short message can be determined by using the combined template. For example, whether the server of the short message sending party has the conditions of missing sending the split short message and retransmitting the split short message can be determined.
It can be known that, in the embodiment shown in fig. 1, when obtaining a new sample long short message, the short message management system server of the operator firstly screens out a split short message of the new sample long short message from the historical push short messages, long-short-message combination is performed on the screened split short message according to the user identifier and the sample long short message identifier, and the consistency determination of the short message content is performed on the actual push long short message and the new sample long short message obtained through combination, and if the contents of the two messages are consistent, it is indicated that the split short message corresponding to the actual push long short message is complete, accurate and effective, so that a combination template of the new sample long short message can be determined by using the split short message, and the push condition of the sample long short message is managed and supervised based on the combination template.
Compared with the prior art, the combined template of the sample long short message is learned by self-learning through the real push short message, the combined template has accuracy, effectiveness and integrity, the push condition of the sample long short message can be effectively managed, manual participation is not needed in the whole process, the management efficiency is greatly improved, and the labor cost is reduced.
In practical application, the international roaming long short message is a special long short message, the attribution condition of the long short message of each split short message is not recorded in the short message ticket data provided by the short message sending party server, and the situation that the split short messages belong to the same international roaming long short message cannot be determined only by using the original data of each recorded message in the short message ticket data, so that the pushing condition of the international roaming long short message cannot be effectively managed. Therefore, the long short message processing method is particularly suitable for pushing management and supervision of international roaming long short messages, split short messages in short message ticket data are matched and combined according to short message contents by using the self-learned combined template, the matching and combining process does not depend on identification information recorded by the short messages, all split short messages of the same international roaming long short message can be screened out only based on the short message contents, the short message ticket data in the prior art can be seamlessly butted, and popularization and implementation are facilitated.
In some embodiments, it is determined whether the historical pushed short message is a split short message of the sample long short message by:
detecting the content of the historical pushed short message; and if the short message content of the historical pushed short message belongs to the sample long short message, determining that the historical pushed short message is a split short message.
For example, the sms management system server of the operator in the embodiment of the present application receives a plurality of new sample length sms, such as 9 new international roaming sample length sms shown in fig. 2, where the international roaming sample length sms includes a length sms content (i.e., the sms content field in fig. 2), a geographic location information (i.e., the name field in fig. 2), a status information, a validity date (i.e., the sending date field in fig. 2), a pushing time (i.e., the sending time field in fig. 2), and so on. The short message management system server of the operator also obtains short message ticket data from a short message sending party server, wherein the short message ticket data comprises a plurality of short message records, the plurality of short message records comprise history push short message records of sample long short messages, and the short message records comprise short message contents, user identification, sending time and other contents. It should be noted that the history pushed short message record obtained by the short message management system server does not include the long short message to which the content of the short message belongs, and does not include the serial number information of the short message. That is, the sms management system server pushes the original data content of the sms record based on the history, and cannot screen the split sms belonging to the same long sms.
Based on the above situation, in this embodiment, a split short message whose short message content belongs to the sample long short message is screened out from the historical push short messages according to the short message content by using the sample long short message obtained in advance, for example, the screened split short message shown in fig. 3. Marking the screened split short messages to obtain push short message records and storing the push short message records into a temporary data table. The pushed short message record is used for recording historical pushed short messages capable of generating the combined template, and the recorded content comprises user identification, sample long short message identification and short message content.
In some embodiments, combining split short messages with the same user identifier and the same sample long short message identifier into a long short message includes:
sorting split short messages with the same user identification and the same sample length short message identification according to the short message sending sequence; and combining the split short messages into long short messages according to the sequence.
In order to improve the generation efficiency of the combined template, in the process of actually pushing the long short message by using the split short message combination, the split short messages with the same user identifier and the same sample long short message identifier are sorted.
Specifically, after splitting the sample long short message into a plurality of split short messages, the short message sender server sends the split short messages in sequence according to the sequence of the first split short message, the second split short message, and the third split short message …. The sending sequence corresponds to the positions of the split short messages in the sample long short message one by one. The sequencing order of the split short messages can be determined according to the sending order of the historical push short messages. The split short messages are actually pushed to be combined according to the sorting sequence, so that the combination mode of the split short messages is reduced, and the generation efficiency of the combined template is improved. The sending sequence of the historical pushed short messages can be obtained by referring to the sending time in the short message call ticket data.
In practical applications, the combination of split messages may be performed based on an operation instruction, for example, a Group aggregation instruction, where a user identifier and a sample long message identifier are used as aggregation conditions, all split messages of a sample long message pushed to a user are aggregated, and then the aggregated split messages are spliced by using a Group _ Contact splicing function, where the Group _ Contact splicing function is based on commas to splice the message contents of the split messages, so that the spliced message contents need to be removed from the spliced commas. Thus obtaining the actual pushed long short message. If the processed message content of the actual push long message is the same as that of the sample long message, the split message for combining the actual push long message can generate a combined template.
It should be understood that, in practical applications, the combined template may also be generated based on other operations, for example, the split short message is stored in a database, and the split short message is processed based on a database operation instruction to obtain the combined template.
After the actual pushed long short message is obtained, obtaining a template serial number according to the serial number of the split short message corresponding to the actual pushed long short message; for example, the short message ticket data includes the sending time of the split short message, and the serial number of the split short message can be obtained based on the sending time of all split short messages of a long short message, where the serial number is used to indicate the serial number of the split short message in all split short messages of the sample long short message. And obtaining a combined template according to the short message content of the split short message corresponding to the actual push long short message, the sample long short message identification and the template serial number. The combined template is associated with the sample long short message through the sample long short message identification, and the pushed split short message is matched and combined through the short message content and the template serial number.
In some embodiments, determining the pushing condition of the sample long short message by using the combined template includes:
acquiring a pushed split short message of the sample long short message, and determining the pushed split short message matched with the combined template; carrying out long short message combination on the matched pushed split short messages to obtain the pushed long short messages; and if the contents of the pushed long short message are inconsistent with the contents of the sample long short message, generating a wrong pushing alarm of the sample long short message.
In this embodiment, a scalable Distributed Dataset (RDD) under each user identifier is first constructed according to the combined template, and taking the assumption of the foregoing as an example, each user identifier may construct 3 RDDs, RDD _1 is used to store a pushed split short message matching the template sequence number "1", RDD _2 is used to store a pushed split short message matching the template sequence number "2", and RDD _3 is used to store a pushed split short message matching the template sequence number "3". And finally, the pushed split short messages in the scalable distributed data sets of the template serial numbers under the same user identification are combined in batches by using a combined operation instruction under a Spark framework to obtain the pushed long short messages. Here, the combined operation instruction under the Spark framework includes a union operation unit instruction, and an aggregation operation redebykey instruction.
Specifically, pushed split short messages with the same sample length short message identification are obtained from the scalable distributed data set of each template serial number under the same user identification; carrying out duplication elimination processing on the obtained pushed split short message by using a combined operation unit instruction; and aggregating the pushed split short messages after the de-duplication processing by using an aggregation operation redubykey instruction to obtain the pushed long short messages.
For example, the short message management system server of the operator is a server built based on Spark, and the short message management system server maps the pushed split short message provided by the short message sender into the following RDD format:
sample long message identification (first message, message content)
Sample long message identification (second message, message content)
(sample Long message identification, (third message, message content))
The (sample long short message identifier, (first short message, short message content)) is stored in the RDD _1, and the (sample long short message identifier, (second short message, short message content)) is stored in the RDD _2, and the (sample long short message identifier, (third short message, short message content)) is stored in the RDD _ 3.
Performing deduplication processing on RDD _1, RDD _2 and RDD _3 by using a unit instruction and taking a sample long short message identifier as a condition, wherein the processed data corresponds to:
sample long note identification (first note, note content)) → sample long note identification, (first note content, ")
Sample long note identification (second note, note content)) → sample long note identification, (", second note content,"))
(sample long note identifier, (third note, note content)) → sample long note identifier, (", third note content))
The processed data is aggregated under the condition of the sample long short message identifier by using a reduce bykey instruction, and if the embodiment aggregates 3 pushed split short messages of the sample long short message, a complete long short message in a form of (sample long short message identifier, (first short message content, second short message content, third short message content)) can be obtained. If the present embodiment converges 2 pushed split short messages of the sample long short message, an incomplete long short message in the form of (sample long short message identifier, (", second short message content, third short message content)) can be obtained. By comparing the content of the sample long short message corresponding to the sample long short message identification, whether the push condition of the missed transmission exists can be determined, and the condition of the missed transmission is alarmed.
The embodiment herein shows a specific implementation manner of determining a sample long sms push situation based on Spark framework. Of course, it should be understood that other implementations may be adopted, and the embodiments of the present application are not limited thereto. The Spark framework is a large data parallel computing framework based on memory computing, and can be used for constructing a large-scale and low-delay data analysis application program. The method has the advantages of high running speed, easiness in use, strong universality and various running models, and is compatible with various services of the short message management system server.
In some embodiments, after determining the pushing condition of the sample long short message by using the combined template, the method further includes: and displaying the short message call ticket of each split short message of the sample long short message including the pushing condition through a front-end display interface.
In the embodiment, multiple kinds of push dimension information such as a long short message push condition, a total time delay and the like can be extracted by combining long short message ticket data, and the success rate of sending various push short messages including international roaming long short messages can be detected through the push request of the long short messages, so that problems can be found in time. And through the total time delay of short message sending, a report form and large-screen display are provided for the client, the problem is sent in time, and related staff processing is counted.
In summary, the long short message processing method of the embodiment of the present application at least achieves the following technical effects:
1) the combinational logic of the sample long short messages is learned by self, particularly when the sample long short messages change, the latest combinational logic can be learned by self by utilizing real push short messages, and the manual identification cost is saved.
2) The combination template is used for matching, combining and verifying the pushed split short messages, and the situation of pushing the long short messages is quickly and accurately positioned.
The embodiment of the present application further provides a long short message processing apparatus 400, which is applied to a short message management system server of an operator. As shown in fig. 4, a schematic structural diagram of a long short message processing apparatus in an embodiment of the present application is provided, where the apparatus 400 includes:
a short message obtaining unit 410, configured to obtain a history push short message when a new sample long short message is received, where the sample long short message is a long short message with specified content;
a short message screening unit 420, configured to determine whether the historical pushed short message is a split short message of the sample long short message, and if so, generate identification information of the split short message, where the identification information includes a user identifier and a sample long short message identifier;
a long short message combination unit 430, configured to combine split short messages with the same user identifier and the same sample long short message identifier into a long short message, so as to obtain an actual push long short message;
a template generating unit 440, configured to generate a combined template according to the split short message if the short message content of the actual pushed long short message is consistent with that of the sample long short message;
the pushing management unit 450 is configured to determine a pushing condition of the sample long short message by using the combined template.
In some embodiments, the short message filtering unit 420 is configured to perform content detection on the historical pushed short messages; and if the short message content of the historical pushed short message belongs to the sample long short message, determining the historical pushed short message as a split short message.
In some embodiments, the long short message combining unit 430 is configured to sort the split short messages with the same user identifier and the same sample long short message identifier according to the short message sending order; and combining the split short messages into long short messages according to the sorting.
In some embodiments, the template generating unit 440 is configured to obtain a template serial number according to a serial number of a split short message corresponding to the actual pushed long short message; and obtaining the combined template according to the short message content of the split short message corresponding to the actual push long short message, the sample long short message identification and the template serial number.
In some embodiments, the apparatus 400 further comprises: and the display unit is used for displaying the short message call ticket of each split short message of the sample long short message including the pushing condition through a front-end display interface.
In some embodiments, the push management unit 450 is configured to obtain a pushed split short message of the sample length short message, and determine a pushed split short message matched with the combined template; carrying out long short message combination on the matched pushed split short messages to obtain the pushed long short messages; and if the contents of the pushed long short message are inconsistent with the contents of the sample long short message, generating a wrong pushing alarm of the sample long short message.
In some embodiments, the push management unit 450 is further configured to construct a scalable distributed data set under each user identifier according to the combination template; storing the pushed split short message to a scalable distributed data set under the corresponding user identification according to the template serial number and the user identification corresponding to the pushed split short message; and carrying out batch combination on the pushed split short messages in the scalable distributed data set of each template serial number under the same user identification by using a combination operation instruction under a Spark frame to obtain the pushed long short messages.
In some embodiments, the pushing management unit 450 is further configured to obtain the pushed split short message with the same sample length short message identifier from the scalable distributed data set of each template serial number under the same user identifier; carrying out duplication elimination processing on the obtained pushed split short message by using a combined operation unit instruction; and aggregating the pushed split short messages after the de-duplication processing by using an aggregation operation redubykey instruction to obtain the pushed long short messages.
It can be understood that the long short message processing apparatus can implement the steps of the long short message processing method provided in the foregoing embodiment, and the explanation about the long short message processing method is applicable to the long short message processing apparatus, and is not described herein again.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Referring to fig. 5, at a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 5, but this does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form the data query device on the logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
when a new sample long short message is received, acquiring a historical push short message, wherein the sample long short message is a long short message with specified content; determining whether the historical push short message is a split short message of the sample long short message, if so, generating identification information of the split short message, wherein the identification information comprises a user identification and a sample long short message identification; combining split short messages with the same user identification and the same sample long short message identification into a long short message to obtain an actual push long short message; if the actual push long short message is consistent with the short message content of the sample long short message, generating a combined template according to the split short message; and determining the pushing condition of the sample long short message by using the combined template.
The method executed by the long short message processing apparatus according to the embodiment shown in fig. 1 of the present application may be applied to a processor, or implemented by the processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may further execute the method executed by the long short message processing apparatus in fig. 1, and implement the functions of the long short message processing apparatus in the embodiment shown in fig. 1, which are not described herein again in this application embodiment.
An embodiment of the present application further provides a computer-readable storage medium storing one or more programs, where the one or more programs include instructions, which, when executed by an electronic device including multiple application programs, enable the electronic device to perform the method performed by the data synchronization apparatus in the embodiment shown in fig. 1, and are specifically configured to perform:
when a new sample long short message is received, acquiring a historical push short message, wherein the sample long short message is a long short message with specified content; determining whether the historical push short message is a split short message of the sample long short message, if so, generating identification information of the split short message, wherein the identification information comprises a user identification and a sample long short message identification; combining the split short messages with the same user identification and the same sample long short message identification into a long short message to obtain an actual push long short message; if the actual push long short message is consistent with the short message content of the sample long short message, generating a combined template according to the split short message; and determining the pushing condition of the sample long short message by using the combined template.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that 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 like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (10)
1. A method for processing long short messages is characterized by comprising the following steps:
when a new sample long short message is received, acquiring a historical push short message, wherein the sample long short message is a long short message with specified content;
determining whether the historical push short message is a split short message of the sample long short message, if so, generating identification information of the split short message, wherein the identification information comprises a user identification and a sample long short message identification;
combining the split short messages with the same user identification and the same sample long short message identification into a long short message to obtain an actual push long short message;
if the actual push long short message is consistent with the short message content of the sample long short message, generating a combined template according to the split short message;
and determining the pushing condition of the sample long short message by using the combined template.
2. The method of claim 1, wherein determining whether the historical pushed short message is a split short message of the sample long short message is performed by:
detecting the content of the historical pushed short message;
and if the short message content of the historical pushed short message belongs to the sample long short message, determining that the historical pushed short message is a split short message.
3. The method of claim 1, wherein combining split sms with same user id and same sample long sms id into long sms comprises:
sorting split short messages with the same user identification and the same sample length short message identification according to the short message sending sequence;
and combining the split short messages into long short messages according to the sorting.
4. The method of claim 3, wherein if the actual pushed long short message is consistent with the sample long short message, generating a combined template according to the split short message comprises:
acquiring a template serial number according to the serial number of the split short message corresponding to the actual pushed long short message;
and obtaining a combined template according to the short message content of the split short message corresponding to the actual push long short message, the sample long short message identification and the template serial number.
5. The method of claim 1, wherein after determining the pushing condition of the sample long short message by using the combined template, the method further comprises:
and displaying the short message call ticket of each split short message of the sample long short message including the pushing condition through a front-end display interface.
6. The method of claim 1, wherein determining the push of the sample long short message using the combined template comprises:
acquiring a pushed split short message of the sample long short message, and determining the pushed split short message matched with the combined template;
carrying out long short message combination on the matched pushed split short messages to obtain the pushed long short messages;
and if the contents of the pushed long short message are inconsistent with the contents of the sample long short message, generating a wrong pushing alarm of the sample long short message.
7. The method of claim 6, wherein determining the pushed split sms matching the combined template comprises:
constructing a scalable distributed data set under each user identifier according to the combined template;
storing the pushed split short message to a scalable distributed data set under the corresponding user identification according to the template serial number and the user identification corresponding to the pushed split short message;
the long short message combination is carried out on the matched pushed split short messages to obtain the pushed long short messages, and the method comprises the following steps:
and carrying out batch combination on the pushed split short messages in the scalable distributed data set of each template serial number under the same user identification by using a combination operation instruction under a Spark frame to obtain the pushed long short messages.
8. The method of claim 7, wherein the step of combining the pushed split short messages in the scalable distributed data set of each template sequence number under the same user identifier in batch by using a combined operation instruction under a Spark framework to obtain a pushed long short message comprises:
acquiring pushed split short messages with the same sample length short message identification from a scalable distributed data set of each template serial number under the same user identification;
carrying out duplication elimination processing on the obtained pushed split short message by using a combined operation unit instruction;
and aggregating the pushed split short messages after the de-duplication processing by using an aggregation operation redubykey instruction to obtain the pushed long short messages.
9. A long short message processing device, the device comprising:
the short message acquisition unit is used for acquiring historical push short messages when receiving new sample long short messages, wherein the sample long short messages are long short messages with specified contents;
the short message screening unit is used for determining whether the historical pushed short message is a split short message of the sample long short message or not, and if the historical pushed short message is the split short message, generating identification information of the split short message, wherein the identification information comprises a user identification and a sample long short message identification;
the long short message combination unit is used for combining the split short messages with the same user identification and the same sample long short message identification into a long short message to obtain an actual push long short message;
the template generating unit is used for generating a combined template according to the split short message if the short message contents of the actual pushed long short message and the sample long short message are consistent;
and the pushing management unit is used for determining the pushing condition of the sample long short message by using the combined template.
10. An electronic device, comprising:
a processor; and
a memory arranged to store computer executable instructions that when executed cause the processor to perform a method of processing long messages as claimed in any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210225320.1A CN114567855B (en) | 2022-03-09 | 2022-03-09 | Long short message processing method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210225320.1A CN114567855B (en) | 2022-03-09 | 2022-03-09 | Long short message processing method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114567855A true CN114567855A (en) | 2022-05-31 |
CN114567855B CN114567855B (en) | 2023-07-14 |
Family
ID=81717259
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210225320.1A Active CN114567855B (en) | 2022-03-09 | 2022-03-09 | Long short message processing method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114567855B (en) |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101001413A (en) * | 2007-01-08 | 2007-07-18 | 宇龙计算机通信科技(深圳)有限公司 | Long-short message transmission method of CDMA network |
CN101098498A (en) * | 2006-06-28 | 2008-01-02 | 北京握奇数据系统有限公司 | Method for receiving, transmitting and displaying length-increased short message |
CN101106754A (en) * | 2007-06-27 | 2008-01-16 | 中国联合通信有限公司 | A method for transmitting SMS to gateway in mobile network |
CN101651934A (en) * | 2009-09-04 | 2010-02-17 | 中兴通讯股份有限公司 | Method and system for filtering long short messages |
CN101820596A (en) * | 2010-01-22 | 2010-09-01 | 青岛海信移动通信技术股份有限公司 | Ultralong short message processing method and mobile communication terminal |
CN101931919A (en) * | 2010-08-18 | 2010-12-29 | 中国电信股份有限公司 | Long short message sending processing method and device, business gateway and communication system |
US20120117176A1 (en) * | 2009-07-20 | 2012-05-10 | Zte Corporation | Method, System And Mobile Terminal For Processing Short Message |
CN103079178A (en) * | 2012-12-27 | 2013-05-01 | 北京思特奇信息技术股份有限公司 | Short message management method and system for NGCRM (next-generation customer relationship management) system |
US8676236B1 (en) * | 2010-07-12 | 2014-03-18 | Amdocs Software Systems Limited | System, method, and computer program for generating a short message service (SMS) message using template codes |
US20150142934A1 (en) * | 2013-11-20 | 2015-05-21 | At&T Mobility Ii Llc | Method for managing device configurations using configuration templates |
CN106936977A (en) * | 2015-12-30 | 2017-07-07 | 深圳富泰宏精密工业有限公司 | Ultralong short message processing method and its mobile terminal |
WO2017177778A1 (en) * | 2016-04-12 | 2017-10-19 | 平安科技(深圳)有限公司 | Information transmission management method and apparatus, server, and storage medium |
US20180287973A1 (en) * | 2017-03-28 | 2018-10-04 | Whatsapp Inc. | Techniques for templated messages |
CN109348434A (en) * | 2018-08-14 | 2019-02-15 | 深圳市梦网科技发展有限公司 | A kind of sending method of scene information, sending device and terminal device |
WO2020000670A1 (en) * | 2018-06-27 | 2020-01-02 | 平安科技(深圳)有限公司 | Sms stitching processing method and apparatus, and computer device and storage medium |
CN111107504A (en) * | 2019-12-31 | 2020-05-05 | 苏州易卖东西信息技术有限公司 | E-commerce customer care short message pushing method based on big data |
CN111866770A (en) * | 2020-07-21 | 2020-10-30 | 上海聚均科技有限公司 | Capital monitoring method based on short message |
-
2022
- 2022-03-09 CN CN202210225320.1A patent/CN114567855B/en active Active
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101098498A (en) * | 2006-06-28 | 2008-01-02 | 北京握奇数据系统有限公司 | Method for receiving, transmitting and displaying length-increased short message |
CN101001413A (en) * | 2007-01-08 | 2007-07-18 | 宇龙计算机通信科技(深圳)有限公司 | Long-short message transmission method of CDMA network |
CN101106754A (en) * | 2007-06-27 | 2008-01-16 | 中国联合通信有限公司 | A method for transmitting SMS to gateway in mobile network |
US20120117176A1 (en) * | 2009-07-20 | 2012-05-10 | Zte Corporation | Method, System And Mobile Terminal For Processing Short Message |
CN101651934A (en) * | 2009-09-04 | 2010-02-17 | 中兴通讯股份有限公司 | Method and system for filtering long short messages |
CN101820596A (en) * | 2010-01-22 | 2010-09-01 | 青岛海信移动通信技术股份有限公司 | Ultralong short message processing method and mobile communication terminal |
US8676236B1 (en) * | 2010-07-12 | 2014-03-18 | Amdocs Software Systems Limited | System, method, and computer program for generating a short message service (SMS) message using template codes |
CN101931919A (en) * | 2010-08-18 | 2010-12-29 | 中国电信股份有限公司 | Long short message sending processing method and device, business gateway and communication system |
CN103079178A (en) * | 2012-12-27 | 2013-05-01 | 北京思特奇信息技术股份有限公司 | Short message management method and system for NGCRM (next-generation customer relationship management) system |
US20150142934A1 (en) * | 2013-11-20 | 2015-05-21 | At&T Mobility Ii Llc | Method for managing device configurations using configuration templates |
CN106936977A (en) * | 2015-12-30 | 2017-07-07 | 深圳富泰宏精密工业有限公司 | Ultralong short message processing method and its mobile terminal |
WO2017177778A1 (en) * | 2016-04-12 | 2017-10-19 | 平安科技(深圳)有限公司 | Information transmission management method and apparatus, server, and storage medium |
US20180287973A1 (en) * | 2017-03-28 | 2018-10-04 | Whatsapp Inc. | Techniques for templated messages |
WO2020000670A1 (en) * | 2018-06-27 | 2020-01-02 | 平安科技(深圳)有限公司 | Sms stitching processing method and apparatus, and computer device and storage medium |
CN109348434A (en) * | 2018-08-14 | 2019-02-15 | 深圳市梦网科技发展有限公司 | A kind of sending method of scene information, sending device and terminal device |
CN111107504A (en) * | 2019-12-31 | 2020-05-05 | 苏州易卖东西信息技术有限公司 | E-commerce customer care short message pushing method based on big data |
CN111866770A (en) * | 2020-07-21 | 2020-10-30 | 上海聚均科技有限公司 | Capital monitoring method based on short message |
Non-Patent Citations (2)
Title |
---|
徐蓉蓉;冯伟;吴伟刚;: "网上长短信实现及优化技术", 电信工程技术与标准化, no. 08 * |
谢滨懋;赵军;杨华;: "基于短信平台的开发与研究", 电脑迷, no. 01 * |
Also Published As
Publication number | Publication date |
---|---|
CN114567855B (en) | 2023-07-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111177222B (en) | Model testing method and device, computing equipment and storage medium | |
CN107733968B (en) | Application information pushing method and device, computer equipment and storage medium | |
CN110362455B (en) | Data processing method and data processing device | |
CN112395156A (en) | Fault warning method and device, storage medium and electronic equipment | |
CN113516529B (en) | Abnormal order determining method and device, storage medium and electronic equipment | |
WO2019019767A1 (en) | Client identity information processing method and apparatus, storage medium and computer device | |
CN113783931A (en) | Internet of things data aggregation and analysis method | |
CN111177094A (en) | Log data processing method and device, electronic equipment and storage medium | |
CN116016653A (en) | Information pushing method and device of blockchain, electronic equipment and storage medium | |
CN110177024B (en) | Monitoring method of hotspot equipment, client, server and system | |
CN112988776B (en) | Method, device and equipment for updating text parsing rule and readable storage medium | |
CN117874033A (en) | Database sub-table method and device, electronic equipment and storage medium | |
CN111262747B (en) | Internet of things-based equipment network access control method and Internet of things platform | |
CN114567855A (en) | Long short message processing method and device and electronic equipment | |
CN111427871B (en) | Data processing method, device and equipment | |
CN114996080A (en) | Data processing method, device, equipment and storage medium | |
CN110674386B (en) | Resource recommendation method, device and storage medium | |
CN112995017A (en) | Service management method, device, equipment and computer readable medium | |
CN112699009A (en) | Data detection method and device, server and storage medium | |
CN110430093B (en) | Data processing method and device and computer readable storage medium | |
CN112597109B (en) | Data storage method, device, electronic equipment and storage medium | |
CN109948097B (en) | Method, apparatus and storage medium for recommending content | |
CN105788053A (en) | System and method for acquiring queuing and number calling data and data capture client | |
CN117520322A (en) | Data checking method and device, electronic equipment and medium | |
CN113360409A (en) | Security testing method and system for mobile terminal application program |
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 |