CN114567855B - Long short message processing method and device and electronic equipment - Google Patents

Long short message processing method and device and electronic equipment Download PDF

Info

Publication number
CN114567855B
CN114567855B CN202210225320.1A CN202210225320A CN114567855B CN 114567855 B CN114567855 B CN 114567855B CN 202210225320 A CN202210225320 A CN 202210225320A CN 114567855 B CN114567855 B CN 114567855B
Authority
CN
China
Prior art keywords
short message
long
message
split
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.)
Active
Application number
CN202210225320.1A
Other languages
Chinese (zh)
Other versions
CN114567855A (en
Inventor
高文佳
付晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ultrapower Software Co ltd
Original Assignee
Ultrapower Software Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ultrapower Software Co ltd filed Critical Ultrapower Software Co ltd
Priority to CN202210225320.1A priority Critical patent/CN114567855B/en
Publication of CN114567855A publication Critical patent/CN114567855A/en
Application granted granted Critical
Publication of CN114567855B publication Critical patent/CN114567855B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing 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, a long short message processing device and electronic equipment. The long short message processing method comprises the following steps: when a new sample long short message is received, acquiring a history push short message; determining whether the history push short message is a split short message of the sample long message, 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 long short messages to obtain actual push long short messages; if the content of the actual pushing long message is consistent with that of the sample long message, generating a combined template according to the split short message; and determining the pushing condition of the sample long text message by using the combined template. The combined template obtained by self-learning has accuracy, effectiveness and integrity, can effectively manage the pushing condition of the sample long and short messages, does not need to be manually participated in the whole process, greatly improves the management efficiency and reduces the labor cost.

Description

Long short message processing method and device and electronic equipment
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for processing long text messages, and an electronic device.
Background
The pushing of the short message refers to that an operator sends specified short message content to a user through a short message platform according to the user position information. The operator can send useful information related to the user position to the user in this way, such as welcome short messages, public welfare advertisements, position information, cell service information and the like, and provide additional value-added services for the user, thereby improving the user perception, customer loyalty and core competitiveness.
In the short message pushing process, long short messages are the most. The long short message refers to that the length of sending a 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 sending process of the long short message, the short message sender splits the long short message provided by an operator into a plurality of short messages to be pushed, when splitting the long short message into a plurality of short messages, the short message sender gives a standard numerical value to the split short messages according to the sequence, and then the assigned short messages are respectively transmitted to a network side. And after the receiving end receives all the short messages from the network end, recovering the long short messages according to the assignment 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 short message. At present, a short message management system of an operator is a combined verification template for manually generating long messages, the short messages split by a short message sender are combined into a long message by using the combined template, and the pushing condition of the short message sender on the long message is checked based on the combined long message.
In practice, when the content of the long short message is changed, the combined template is generated by a manual means, so that the problems of low efficiency and high labor cost exist.
Disclosure of Invention
The embodiment of the application provides a long short message processing method, a long short message processing device and electronic equipment, which are used for solving the problems of low efficiency and high labor cost 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 text message, where the method includes:
when a new sample long short message is received, acquiring a history push short message, wherein the sample long message is a long message with specified content; determining whether the history 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 long short messages to obtain actual push long short messages; if the content of the actual pushing long message is consistent with that of the sample long message, generating a combined template according to the split short message; and determining the pushing condition of the sample long text message by using the combined template.
In some embodiments, determining whether the historical push sms is a split sms of the sample long sms is performed by: detecting the content of the history push short message; and if the short message content of the history push short message belongs to the sample long short message, determining that the history push short message is a split short message.
In some embodiments, combining split sms with the same user identifier and the same sample long sms identifier into a long sms includes: sorting split short messages with the same user identification and the same sample long short message identification according to a short message sending sequence; and combining the split short messages into long short messages according to the sequencing.
In some embodiments, if the actual push text message is consistent with the text message content of the sample text message, generating a combined template according to the split text message includes: obtaining a template sequence number according to the sequence number of the split short message corresponding to the actual push long message; and obtaining the combined template according to the short message content of the split short message corresponding to the actual push long message, the sample long message identifier and the template sequence number.
In some embodiments, after determining the pushing condition of the sample long text message by using the combined template, the method further includes: and displaying the short message ticket of each split short message of the sample long message including the pushing condition through a front-end display interface.
In some embodiments, determining the pushing condition of the sample long text message by using the combined template includes: the pushed split short message of the sample long message is obtained, and the pushed split short message matched with the combined template is determined; combining the long short messages with the matched pushed split short messages to obtain pushed long short messages; and if the pushed long short message is inconsistent with the sample long message content, generating a false push alarm of the sample long message.
In some embodiments, determining the pushed split sms that matches the combined template includes: constructing a scalable distributed data set under each user identifier according to the combined template; storing the pushed split short message into a scalable distributed data set under a corresponding user identifier according to a template sequence number and the user identifier corresponding to the pushed split short message;
combining the long short messages with the matched pushed split short messages to obtain pushed long short messages, wherein the method comprises the following steps: and carrying out batch combination on pushed split short messages in the scalable distributed data set of each template serial number under the same user identification by utilizing a combination operation instruction under the Spark framework to obtain pushed long short messages.
In some embodiments, batch combination is performed on pushed split sms in a scalable distributed dataset of template sequence numbers under the same user identifier by using a combination operation instruction under a Spark framework to obtain pushed long sms, including: obtaining pushed split short messages with the same long short message identifiers from a scalable distributed data set of each template serial number under the same user identifier; carrying out de-duplication processing on the obtained pushed split short message by utilizing a joint operation unit instruction; and aggregating the pushed split short messages subjected to the de-duplication processing by utilizing an aggregation operation reduction instruction to obtain the pushed long short messages.
In a second aspect, an embodiment of the present application further provides a long text message processing device, where the device includes:
the short message acquisition unit is used for acquiring a history push short message when receiving a new sample long message, wherein the sample long message is a long message with specified content;
the short message screening unit is used for determining whether the history 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; the long short message combination unit is used for combining split short messages with the same user identification and the same sample long short message identification into long short messages to obtain actual push long short messages; the template generating unit is used for generating a combined template according to the split short message if the actual push long message is consistent with the short message content of the sample long message; and the pushing management unit is used for determining the pushing condition of the sample long short message by utilizing the combined template.
In a third aspect, embodiments of the present application further provide an electronic device, including: a processor; and a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the long text message handling method of any of the preceding embodiments.
In a fourth aspect, embodiments of the present application further provide a computer-readable storage medium storing one or more programs that, when executed by an electronic device including a plurality of application programs, cause the electronic device to perform any one of the long text message processing methods of the foregoing embodiments.
The above-mentioned at least one technical scheme that this application embodiment adopted can reach following beneficial effect: when obtaining a new sample long short message, the method, the device, the electronic equipment and the computer readable storage medium for processing the long short message firstly screen out split short messages of the new sample long short message from the history push short message, combine the long short messages of the screened split short messages according to the user identification and the sample long short message identification, and judge the consistency of the short message content of the actual push long message obtained by combining with the new sample long short message, if the two contents are consistent, the split short message corresponding to the actual push long short message is complete, accurate and effective, so that the combined template of the new sample long short message can be determined by utilizing the split short message, and the push condition of the sample long short message can be managed and supervised based on the combined template.
Compared with the prior art, the embodiment of the application utilizes the real push short message to automatically learn the combined template of the sample long short message, the combined template has accuracy, effectiveness and integrity, the push condition of the sample long short message can be effectively managed, the whole process does not need to be manually participated, 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 embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to 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 schematic diagram of a plurality of new sample long short messages in an embodiment of the present application;
fig. 3 is a schematic diagram of splitting a short message in the embodiment of the present application;
fig. 4 is a schematic structural diagram of a long short message processing device in 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
For the purposes, technical solutions and advantages of the present application, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments of the present application and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The following describes in detail the technical solutions provided by the embodiments of the present application with reference to the accompanying drawings.
The embodiment of the application provides a long short message processing method. Fig. 1 is a schematic flow chart of a method for processing long text messages according to an embodiment of the present application, and 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, a history push short message is obtained, wherein the sample long message is a long message with specified 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 sender server, and the long short message processing method of the embodiment of the application 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 the functional modules in the system platform can be uniformly deployed on one server, and can be respectively deployed on different servers to respectively execute corresponding operations.
After the operator formulates the 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 is formulated for the new sample long short message so as to facilitate the short message sender server to manage and monitor the pushing condition of the sample long short message. The sample long short message comprises short message content, effective period, push time, effective geographic position and the like.
The embodiment of the application constructs the combined template based on the real history push short message so as to ensure that the combined template can accurately restore the push condition of the pushed long short message. The history push short message can be obtained from the short message ticket data, and in the initial stage of pushing the short message of the new sample, the history push short message corresponding to the short message of the new sample can be obtained from the short message ticket data provided by the short message sender server.
Step S120, determining whether the history 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.
In this embodiment, for example, a history push sms is obtained from sms ticket data, where the sms ticket data includes a serial number, a user identifier, a sender number, a receiver number, a sms content, a fee, a discount, and the like. When the short message bill data is obtained, whether the history push short message comprises split short messages of the sample long and short messages can be determined according to the short message content. When determining the split short message, the embodiment generates 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, for example, 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. Of course, in practical application, the identification information of the split short message may also include other information, for example, the identification formulated according to the corresponding function, etc., which can be flexibly set by those skilled in the art.
And step S130, combining the split short messages with the same user identification and the same sample long short message identification into long short messages to obtain the actual push long short messages.
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 sender server, and the short message sender server is assumed to split the sample long short message into 3 split short messages, and the split template of the short message sender server for the sample long short message is unknown to the short message management system server of the operator. Therefore, when the operator management system server manages or supervises the pushing condition of the short message sender server on the sample long message, the operator management system server needs to automatically generate a combined template of the sample long message, and determines the pushing condition of the sample long message based on the combined template, thereby realizing the management and supervision of the pushing condition.
Through the processing in step S110 and step S120 in this embodiment, the user identifiers and sample long short message identifiers corresponding to the 3 split short messages assumed above are the same, but the short message contents are different. Therefore, in order to obtain the complete actual push long short message, split short messages with the same user identification and the same sample long short message identification are combined into the long short message, and the actual push long short message is obtained.
And step S140, 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.
Based on the above assumption, if the actual push long short messages of the 3 split short message combinations are consistent with the sample long short message content, it can be determined that the splitting rule of the 3 split short messages of the sample long short messages by the short message sender server is the combination rule required by the embodiment of the application, and based on the 3 split short messages, a combination template of the sample long short messages can be obtained, and the obtained combination template corresponds to the sample long short messages one by one through the sample long short message identifiers.
It should be understood that, as long as enough historical push messages are obtained in the data acquisition stage, split messages corresponding to a sufficient number of sample long messages can be screened, and a combined template corresponding to the sample long messages can be self-learned according to the split messages. The combined template comprises a user identifier, a sample long short message identifier and a template sequence number, wherein the template sequence number indicates the sequence 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 assumption, the present embodiment obtains 3 combined templates, where the template numbers are, for example, "1", "2", and "3", respectively, where the template number is "1", indicating that the combined template corresponds to the first split sms of the sample long short message, the template number is "2", indicating that the combined template corresponds to the second split sms of the sample long short message, and the template number is "3", indicating that the split template corresponds to the third split sms of the sample long short message.
And step S150, determining the pushing condition of the sample long text message by using the combined template.
After the combined template is obtained, the pushing condition of the short message sender server on the split short message of the sample long message can be determined by utilizing the combined template. For example, it can be determined whether the short message sender server has a condition of missing split short messages and resending split short messages.
It can be known that in the embodiment shown in fig. 1, when the short message management system server of the operator obtains a new sample long short message, the split short message of the new sample long message is screened 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, consistency judgment of the short message content is performed on the actual push short message obtained by combination and the new sample long short message, if the two contents 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 the 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 message can be managed and supervised based on the combination template.
Compared with the prior art, the embodiment of the application utilizes the real push short message to automatically learn the combined template of the sample long short message, the combined template has accuracy, effectiveness and integrity, the push condition of the sample long short message can be effectively managed, the whole process does not need to be manually participated, 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 long short message attribution condition of each split short message is not recorded in the short message ticket data provided by the short message sender server, only the original data of each recorded message in the short message ticket data is utilized, which split short messages belong to the same international roaming long short message cannot be determined, and the pushing condition of the international roaming long short message cannot be effectively managed. Therefore, the method for processing the long short message is particularly suitable for pushing management and supervision of the international roaming long short message, split short messages in the short message bill data are matched and combined according to the short message content by utilizing the combined template obtained by self-learning, the matching and combining process does not depend on identification information of the short message record, all split short messages of the same international roaming long short message can be screened out only based on the short message content, the short message bill data in the prior art can be seamlessly connected, and the popularization and the implementation are convenient.
In some embodiments, determining whether the historical push sms is a split sms of the sample long sms is performed by:
detecting the content of the history push short message; and if the short message content of the history push short message belongs to the sample long short message, determining that the history push short message is a split short message.
For example, the sms management system server of the operator of the embodiment of the present application receives a plurality of new sample long sms, for example, 9 new international roaming sample long sms shown in fig. 2, where the international roaming sample long sms includes long sms content (i.e., the sms content field in fig. 2), geographic location information (i.e., the name field in fig. 2), status information, expiration date (i.e., the sending date field in fig. 2), push time (i.e., the sending time field in fig. 2), and so on. The short message management system server of the operator also acquires short message ticket data from a short message sender server, wherein the short message ticket data comprises a plurality of short message records, the plurality of short message records comprise historic push short message records of sample long and short messages, and the short message records comprise short message contents, user identifiers, sending time and the like. It should be noted that, the history push short message record obtained by the short message management system server does not include the long short message information to which the short message content belongs, and also does not include the serial number information of the short message. That is, the sms management system server cannot screen out split sms belonging to the same sms based on the original data content of the history push sms record.
Based on the above situation, in this embodiment, the short messages of the sample obtained in advance are used to screen out split short messages of which the short message content belongs to the short messages of the sample from the history push short messages according to the short message content, for example, the screened split short messages shown in fig. 3. Marking the screened split short message to obtain a push short message record and storing the push short message record in a temporary data table. The push short message record is used for recording historical push short messages capable of generating a combined template, and recording contents comprise user identification, sample long short message identification and short message content.
In some embodiments, combining split sms with the same user identifier and the same sample long sms identifier into a long sms includes:
sorting split short messages with the same user identification and the same sample long short message identification according to a short message sending sequence; and combining the split short messages into long short messages according to the sequencing.
In order to improve the generation efficiency of the combined template, in the process of actually pushing long messages by utilizing split message combination, the embodiment performs sorting processing on split messages with the same user identification and the same sample long message identification.
Specifically, after splitting the sample long short message into a plurality of split short messages, the short message sender server sequentially sends the split short messages 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 messages one by one. The sorting sequence of the split short messages can be determined according to the sending sequence of the historical push short messages. And carrying out actual push long short message combination on the split short messages according to the sequencing order, reducing the combination mode of the split short messages, and improving the generation efficiency of the combination template. The sending sequence of the history push short message can be obtained by referring to the sending time in the short message ticket data.
In practical application, the combination mode of split short messages can be executed based on an operation instruction, for example, a Group by aggregation instruction, a user identifier and a sample long short message identifier are used as aggregation conditions, all split short messages of the sample long short messages pushed to a user are aggregated, and then the aggregated split short messages are spliced by using a group_contact splicing function. And thus obtaining the actual push long short message. If the processed short message content of the actual push long message is the same as the short message content of the sample long message, the split short message used for combining the actual push long message can generate a combined template.
It should be understood that in practical application, the combination template may be generated based on other operation execution, 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 combination template.
After the actual push long message is obtained, the template sequence number is obtained according to the sequence number of the split short message corresponding to the actual push long message; for example, the short message ticket data includes the sending time of the split short message, and the sequence number of the split short message can be obtained based on the sending time of all split short messages of one long short message, where the sequence number is used to indicate the sequence 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, the sample long short message identifier and the template serial number corresponding to the actually pushed long short message. And the combined template is used for carrying out matching and combining treatment on the pushed split short messages through the short message content and the template serial number by associating the sample long message with the sample long message identification.
In some embodiments, determining the pushing condition of the sample long text message by using the combined template includes:
the pushed split short message of the sample long message is obtained, and the pushed split short message matched with the combined template is determined; combining the long short messages with the matched pushed split short messages to obtain pushed long short messages; and if the pushed long short message is inconsistent with the sample long message content, generating a false push alarm of the sample long message.
In this embodiment, a scalable distributed data set (Resilient Distributed Dataset, RDD) under each user identifier is first constructed according to the combined template, taking the foregoing case as an example, where each user identifier may construct 3 RDDs, rdd_1 is used to store a pushed split sms matched with the template sequence number "1", rdd_2 is used to store a pushed split sms matched with the template sequence number "2", and rdd_3 is used to store a pushed split sms matched with the template sequence number "3". And then storing the pushed split short messages to a scalable distributed data set under the corresponding user identifier according to the template serial numbers and the user identifiers corresponding to the pushed split short messages, and finally carrying out batch combination on the pushed split short messages in the scalable distributed data set with the template serial numbers under the same user identifier by utilizing a combination operation instruction under a Spark framework to obtain the pushed long short messages. Here, the combined operation instruction under the Spark framework includes a joint operation unit instruction, an aggregate operation reduce bykey instruction.
Specifically, a pushed split short message with the same long message identifier is obtained from a telescopic distributed data set of each template serial number under the same user identifier; carrying out de-duplication processing on the obtained pushed split short message by utilizing a joint operation unit instruction; and aggregating the pushed split short messages subjected to the de-duplication processing by utilizing an aggregation operation reduction 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 maps the pushed split short message provided by the short message sender into the following RDD format:
(sample Long short message identification, (first short message, short message content))
(sample Long short message identifier, (second short message, short message content))
(sample Long short message identifier, (third short message, short message content))
The (sample long short message identifier, (first short message and short message content)) is stored in the RDD_1, (sample long short message identifier, (second short message and short message content)) is stored in the RDD_2, and (sample long short message identifier, (third short message and short message content)) is stored in the RDD_3.
And carrying out de-duplication processing on the RDD_1, the RDD_2 and the RDD_3 by using a unit instruction under the condition of the sample long short message mark, wherein the processed data correspond to:
(sample Long message identifier, (first short message, short message content)) → sample Long message identifier, (first short message content, "))
(sample Long message identifier, (second short message, short message content)) → sample Long message identifier, (", second short message content,"))
(sample Long message identifier, (third short message, short message content)) → sample Long message identifier, (", third short message content))
And converging the processed data by using a reduced bykey instruction under the condition of the sample long short message identifier, and if the embodiment converges the 3 pushed split short messages of the sample long short message, obtaining a complete long short message in the form of (the sample long short message identifier, (the first short message content, the second short message content and the third short message content)). If the embodiment converges the 2 pushed split sms of the sample long sms, an incomplete long sms message, for example, in the form of (sample long sms identifier, ("", second sms content, third sms content)), can be obtained. And comparing the content of the sample long short message corresponding to the sample long short message identifier, determining whether the push condition of missed sending exists, and alarming the condition of missed sending.
The embodiment herein shows a specific implementation manner of determining the long short message pushing condition of the sample based on the Spark framework. Of course, it should be understood that other implementations may be used, and embodiments of the present application are not limited in this regard. The Spark framework is a big data parallel computing framework based on memory computing, and can be used for constructing a large-scale low-delay data analysis application program. The method has the advantages of high operation speed, easy use, strong universality and various operation models, is compatible with various services of the short message management system server, and builds the short message management system server of an operator by using the Spark framework to efficiently process mass short message data.
In some embodiments, after determining the pushing condition of the sample long text message by using the combined template, the method further includes: and displaying the short message ticket of each split short message of the sample long message including the pushing condition through a front-end display interface.
The embodiment can extract various pushing dimension information such as the pushing condition of the long short message, the total time delay and the like by combining the long short message ticket data, and can detect the sending success rate of various pushing short messages including the international roaming long short message through the pushing request of the long short message, thereby finding out the problem in time. And through total time delay of short message transmission, report forms and large screen display are provided for clients, problems are timely transmitted, and relevant staff processing is counted.
In summary, the long short message processing method in the embodiment of the application at least has the following technical effects:
1) The latest combination logic can be automatically learned by utilizing the real push short messages when the self-learning sample long short messages, and the manual identification cost is saved.
2) And matching, combining and verifying the pushed split short messages by using the combined template, so as to quickly and accurately position the pushing condition of the long short messages.
The embodiment of the application also provides a long short message processing device 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 text message processing apparatus in an embodiment of the present application is provided, where the apparatus 400 includes:
the short message obtaining unit 410 is configured to obtain a history push short message when a new sample long message is received, where the sample long message is a long message with specified content;
the short message screening unit 420 is configured to determine whether the history push short message is a split short message of the sample long short message, 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;
the long short message combining unit 430 is configured to combine split short messages with the same user identifier and the same sample long short message identifier into long short messages, so as to obtain actual push long short messages;
The template generating unit 440 is configured to generate a combined template according to the split sms if the actual pushed sms is consistent with the sms content of the sample sms;
and the pushing management unit 450 is used for determining the pushing condition of the sample long short message by using the combined template.
In some embodiments, the short message screening unit 420 is configured to perform content detection on the history push short message; and if the short message content of the history push short message belongs to the sample long short message, determining that the history push short message is a split short message.
In some embodiments, the long short message combining unit 430 is configured to sort split short messages with the same user identifier and the same sample long short message identifier according to a short message sending sequence; and combining the split short messages into long short messages according to the sequencing.
In some embodiments, the template generating unit 440 is configured to obtain a template sequence number according to the sequence number of the split short message corresponding to the actually 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 message, the sample long message identifier and the template sequence number.
In some embodiments, the apparatus 400 further comprises: and the display unit is used for displaying the short message ticket of each split short message of the sample long 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 sms of the sample long text message, and determine a pushed split sms that matches the combined template; combining the long short messages with the matched pushed split short messages to obtain pushed long short messages; and if the pushed long short message is inconsistent with the sample long message content, generating a false push alarm of the sample long 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 combined template; storing the pushed split short message into a scalable distributed data set under a corresponding user identifier according to a template sequence number and the user identifier corresponding to the pushed split short message; and carrying out batch combination on pushed split short messages in the scalable distributed data set of each template serial number under the same user identification by utilizing a combination operation instruction under the Spark framework to obtain pushed long short messages.
In some embodiments, the push management unit 450 is further configured to obtain, from the scalable distributed dataset of each template sequence number under the same user identifier, a pushed split sms with the same instance of the long sms identifier; carrying out de-duplication processing on the obtained pushed split short message by utilizing a joint operation unit instruction; and aggregating the pushed split short messages subjected to the de-duplication processing by utilizing an aggregation operation reduction instruction to obtain the pushed long short messages.
It can be understood that the long short message processing device can implement each step of the long short message processing method provided in the foregoing embodiment, and the related explanation about the long short message processing method is applicable to the long short message processing device, which 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 the hardware level, the electronic device includes a processor, and optionally 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 (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, network interface, and memory may be interconnected by an internal bus, which may be an ISA (Industry Standard Architecture ) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or EISA (Extended Industry Standard Architecture ) bus, among others. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 5, but not only one bus or type of bus.
And the memory is used for storing programs. In particular, the program may include program code including computer-operating instructions. The memory may include memory and non-volatile storage and provide instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs, and forms a data query device on a logic level. The processor is used for executing the programs stored in the memory and is specifically used for executing the following operations:
when a new sample long short message is received, acquiring a history push short message, wherein the sample long message is a long message with specified content; determining whether the history 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 long short messages to obtain actual push long short messages; if the content of the actual pushing long message is consistent with that of the sample long message, generating a combined template according to the split short message; and determining the pushing condition of the sample long text message by using the combined template.
The method executed by the long text message processing device disclosed in 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 by instructions in the form of software. The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks 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 a method disclosed in connection with the embodiments of the present application may be embodied directly in hardware, in a decoded processor, or in a combination of hardware and software modules in a decoded processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
The electronic device may further execute the method executed by the long short message processing apparatus in fig. 1, and implement the function of the long short message processing apparatus in the embodiment shown in fig. 1, which is not described herein again.
The embodiments of the present application also provide 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 that includes a plurality of application programs, enable the electronic device to perform a method performed by a data synchronization apparatus in the embodiment shown in fig. 1, and specifically for performing:
when a new sample long short message is received, acquiring a history push short message, wherein the sample long message is a long message with specified content; determining whether the history 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 long short messages to obtain actual push long short messages; if the content of the actual pushing long message is consistent with that of the sample long message, generating a combined template according to the split short message; and determining the pushing condition of the sample long text message by using the combined template.
It will be appreciated by those skilled in the art that 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
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 storage media for a computer 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, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
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 one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that 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 foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (10)

1. A method for processing a long short message, the method comprising:
when a new sample long short message is received, acquiring a history push short message, wherein the sample long message is a long message with specified content;
determining whether the history 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 long short messages to obtain actual push long short messages;
if the content of the actual pushing long message is consistent with that of the sample long message, generating a combined template according to the split short message;
and determining the pushing condition of the sample long text message by using the combined template.
2. The method of claim 1, wherein determining whether the history push sms is a split sms of the sample long sms is performed by:
detecting the content of the history push short message;
and if the short message content of the history push short message belongs to the sample long short message, determining that the history push short message is a split short message.
3. The method of claim 1, wherein combining split sms with the same subscriber identity and the same sample sms identity into a sms comprises:
sorting split short messages with the same user identification and the same sample long short message identification according to a short message sending sequence;
and combining the split short messages into long short messages according to the sequencing.
4. The method of claim 3, wherein if the actual push text message is consistent with the text message content of the sample text message, generating a combined template according to the split text message comprises:
Obtaining a template sequence number according to the sequence number of the split short message corresponding to the actual push long message;
and obtaining a combined template according to the short message content of the split short message corresponding to the actual push long message, the sample long message identifier and the template sequence number.
5. The method of claim 1, further comprising, after determining the push condition of the sample long text message using the combined template:
and displaying the short message ticket of each split short message of the sample long message including the pushing condition through a front-end display interface.
6. The method of claim 1, wherein determining the push condition of the sample long text message using the combined template comprises:
the pushed split short message of the sample long message is obtained, and the pushed split short message matched with the combined template is determined;
combining the long short messages with the matched pushed split short messages to obtain pushed long short messages;
and if the pushed long short message is inconsistent with the sample long message content, generating a false push alarm of the sample long message.
7. The method of claim 6, wherein determining the pushed split sms that matches 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 into a scalable distributed data set under a corresponding user identifier according to a template sequence number and the user identifier corresponding to the pushed split short message;
combining the long short messages with the matched pushed split short messages to obtain pushed long short messages, wherein the method comprises the following steps:
and carrying out batch combination on pushed split short messages in the scalable distributed data set of each template serial number under the same user identification by utilizing a combination operation instruction under the Spark framework to obtain pushed long short messages.
8. The method of claim 7, wherein batch combining pushed split messages in the scalable distributed dataset of each template sequence number under the same user identifier by using a combination operation instruction under a Spark framework to obtain pushed long messages comprises:
obtaining pushed split short messages with the same long short message identifiers from a scalable distributed data set of each template serial number under the same user identifier;
carrying out de-duplication processing on the obtained pushed split short message by utilizing a joint operation unit instruction;
and aggregating the pushed split short messages subjected to the de-duplication processing by utilizing an aggregation operation reduction instruction to obtain the pushed long short messages.
9. A long short message processing apparatus, the apparatus comprising:
the short message acquisition unit is used for acquiring a history push short message when receiving a new sample long message, wherein the sample long message is a long message with specified content;
the short message screening unit is used for determining whether the history 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;
the long short message combination unit is used for combining split short messages with the same user identification and the same sample long short message identification into long short messages to obtain actual push long short messages;
the template generating unit is used for generating a combined template according to the split short message if the actual push long message is consistent with the short message content of the sample long message;
and the pushing management unit is used for determining the pushing condition of the sample long short message by utilizing the combined template.
10. An electronic device, comprising:
a processor; and
a memory arranged to store computer executable instructions which when executed cause the processor to perform the long text message handling method of any of claims 1-8.
CN202210225320.1A 2022-03-09 2022-03-09 Long short message processing method and device and electronic equipment Active CN114567855B (en)

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 CN114567855A (en) 2022-05-31
CN114567855B true 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 (14)

* Cited by examiner, † Cited by third party
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
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
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
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616377B (en) * 2009-07-20 2012-09-05 中兴通讯股份有限公司 Method and system for processing short message
US9577877B2 (en) * 2013-11-20 2017-02-21 At&T Mobility Ii Llc Method for managing device configurations using configuration templates
US10547577B2 (en) * 2017-03-28 2020-01-28 Whatsapp Inc. Techniques for templated messages

Patent Citations (14)

* Cited by examiner, † Cited by third party
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
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
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
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)

* Cited by examiner, † Cited by third party
Title
基于短信平台的开发与研究;谢滨懋;赵军;杨华;;电脑迷(01);全文 *
网上长短信实现及优化技术;徐蓉蓉;冯伟;吴伟刚;;电信工程技术与标准化(08);全文 *

Also Published As

Publication number Publication date
CN114567855A (en) 2022-05-31

Similar Documents

Publication Publication Date Title
CN111104664B (en) Risk identification method of electronic equipment and server
CN110806971A (en) Version testing method and device and electronic equipment
WO2019019767A1 (en) Client identity information processing method and apparatus, storage medium and computer device
CN110941632A (en) Database auditing method, device and equipment
CN108063685B (en) Log analysis method and device
CN111666193B (en) Method and system for monitoring and testing terminal function based on real-time log analysis
CN110380890B (en) CDN system service quality detection method and system
CN111897834A (en) Log searching method and device and server
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
CN114567855B (en) Long short message processing method and device and electronic equipment
CN112948262A (en) System test method, device, computer equipment and storage medium
CN112836124A (en) Image data acquisition method and device, electronic equipment and storage medium
CN114625407A (en) Method, system, equipment and storage medium for implementing AB experiment
CN111324583B (en) Service log classification method and device
CN116737710A (en) Data processing method and device and electronic equipment
CN108667893B (en) Data recommendation method and device and electronic equipment
CN114579416A (en) Index determination method, device, server and medium
CN113285977B (en) Network maintenance method and system based on block chain and big data
CN114595146A (en) AB test method, device, system, electronic equipment and medium
CN111143294B (en) Data retrieval method and device for power acquisition terminal and electronic equipment
CN114338794A (en) Service message pushing method and device, electronic equipment and storage medium
CN114221988A (en) Content distribution network hotspot analysis method and system
CN112819565A (en) Method and system for detecting surrounding mark string mark and storage medium
CN113535702B (en) Data processing method, device, equipment and storage medium

Legal Events

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