CN108897728B - Short message splicing processing method and device, computer equipment and storage medium - Google Patents
Short message splicing processing method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN108897728B CN108897728B CN201810678807.9A CN201810678807A CN108897728B CN 108897728 B CN108897728 B CN 108897728B CN 201810678807 A CN201810678807 A CN 201810678807A CN 108897728 B CN108897728 B CN 108897728B
- Authority
- CN
- China
- Prior art keywords
- short message
- field
- information
- field information
- placeholder
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
-
- 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)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to a short message splicing processing method and device, computer equipment and a storage medium. The method comprises the following steps: receiving a form uploaded by a terminal, grouping field information contained in the form to form a short message group, and acquiring a pre-stored short message template corresponding to the short message group, wherein the short message template comprises: and the text field and the placeholder field fill the field information in the short message packet into the placeholder field of the corresponding short message template, and the filled placeholder field and the text field are spliced to obtain the short message data. When the method is adopted to send the personalized short messages in groups, the accuracy is high.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a short message splicing processing method and device, computer equipment and a storage medium.
Background
With the development of short message sending technology, enterprises can select different short message templates to send short messages under different service scenes, each short message needs to be edited when manual short messages are sent by using the traditional technology, short messages to be sent are generated by editing the short message templates under the service scenes when batch short messages are sent, and a plurality of objects to be sent by short messages are selected, so that each object can receive short messages with the same content. In a special service scene, the short messages need to embody the information of different objects, and when the short messages of the type are sent in batches, personalized contents can be filled in the short message template, so that the personalized short messages in batches are generated. However, in this way, there is no substantial difference in the attributes of each corresponding personalized content, and there is a problem that personalized content filling is wrong when generating a personalized short message.
Disclosure of Invention
Therefore, it is necessary to provide a short message splicing method, a short message splicing device, a computer device and a storage medium, which can solve the problem that filling information is prone to error when splicing short messages.
A short message splicing processing method comprises the following steps:
receiving a form uploaded by a terminal, and grouping field information contained in the form to form a short message group;
acquiring a pre-stored short message template corresponding to the short message group, wherein the short message template comprises: a text field and a placeholder field; filling the field information in the short message packet into the placeholder field of the corresponding short message template;
and splicing the filled placeholder field and the text field to obtain the short message data.
In one embodiment, the form comprises: reading field information with the same characteristic parameters from the form according to the characteristic parameters corresponding to each short message packet to obtain short message packets of the field information; one of the field information corresponds to one of the characteristic parameters.
In one embodiment, the method further comprises the following steps: obtaining a format type of the field information, wherein the format type comprises: a string of Chinese characters, a string of digits, and a date; verifying the format type of the field information through the characteristic parameters of the field information, wherein the format type corresponds to more than one characteristic parameter; and when the short message passes the verification, determining to fill the field information in the short message packet into the placeholder field of the short message template corresponding to the short message packet.
In one embodiment, the method further comprises the following steps:
determining a placeholder field in a short message template corresponding to each field information in the short message packet; the placeholder field is a band format placeholder; and verifying whether the format of the field information is correct or not according to the format information of the placeholder field, and filling the field information into the placeholder field when the verification is passed.
In one embodiment, the method further comprises the following steps: analyzing to obtain user information included in the short message packet according to the field information in the short message packet; inquiring a pre-established user information base according to the user information to obtain a user information record corresponding to the user information; and updating the form according to the user information record.
In one embodiment, the user information includes: user name and user number, and further comprising: setting the user name as a query bit and the user number as a check bit; when the user number of the user is inquired in the user information base according to the inquiry position, the user number of the user is verified according to the verification position; and obtaining the user information record of the user from the user information base after the verification is passed.
In one embodiment, the method further comprises the following steps: analyzing the form to obtain a short message packet corresponding to the field information; acquiring a template label of the short message packet; the template tag is preset in the short message packet, and the template tag only corresponds to the short message template; and determining a short message template corresponding to the short message packet according to the template label.
A template short message splicing device comprises:
the receiving module is used for receiving the form uploaded by the terminal and grouping field information contained in the form to form a short message group;
the filling module is used for acquiring a pre-stored short message template corresponding to the short message group, and the short message template comprises: a text field and a placeholder field; filling the field information in the short message packet into a placeholder field of a corresponding short message template;
and the splicing module is used for splicing the filled placeholder field and the text field to obtain the short message data.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
receiving a form uploaded by a terminal, and grouping field information contained in the form to form a short message group;
acquiring a pre-stored short message template corresponding to the short message group, wherein the short message template comprises: a text field and a placeholder field; filling the field information in the short message packet into the placeholder field of the corresponding short message template;
and splicing the filled placeholder field and the text field to obtain short message data.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving a form uploaded by a terminal, and grouping field information contained in the form to form a short message group;
acquiring a pre-stored short message template corresponding to the short message group, wherein the short message template comprises: a text field and a placeholder field; filling the field information in the short message packet into the placeholder field of the corresponding short message template;
and splicing the filled placeholder field and the text field to obtain the short message data.
According to the short message splicing processing method, the short message splicing processing device, the computer equipment and the storage medium, field information contained in a form is grouped to form short message groups through the form uploaded by a receiving terminal, then a short message template corresponding to the short message groups is obtained, the short message template can be stored in a server in advance, the short message template comprises a text field and a placeholder field, the field information in each short message group is respectively filled into the placeholder field of the corresponding short message template, and finally the filled placeholder field and the text field are spliced to obtain short message data. The embodiment of the invention groups the field information in the form and then correspondingly splices the short messages, thereby ensuring that the information is free from errors when the short messages are spliced and meeting the personalized requirements of short message sending in different service scenes.
Drawings
FIG. 1 is a diagram of an application scenario of a short message splicing processing method in an embodiment;
FIG. 2 is a schematic flow chart of a short message splicing processing method according to an embodiment;
FIG. 3 is a schematic flow chart of a template short message splicing step in another embodiment;
FIG. 4 is a flowchart illustrating a field information updating step in another embodiment;
FIG. 5 is a block diagram of a template short message concatenation device in an embodiment;
FIG. 6 is a diagram of the internal structure of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application.
The short message splicing processing method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by multiple servers.
Further, the terminal 102 may access a web page, and thus the terminal 102 may access the server 104 by entering a server address in the web page. The operator edits the form containing the field information in a web page, and then sends the form over the network to the server 104.
Further, the terminal 102 and the server 104 may communicate via USB, internet, lan, bluetooth, wi-Fi or ZigBee protocols.
Further, the server 104 may analyze the form uploaded by the terminal 102, and it should be noted that a plurality of short message templates are pre-stored in the server 104, and when receiving the form, the server groups the field information to obtain short message groups, and then determines a short message template of each short message group, where the short message template corresponds to one or more short message groups. After grouping, the short message grouping comprises a plurality of pieces of field information, and then the field information of the short message grouping is filled into the placeholder field of the short message template. And finally, splicing the filled placeholders and the text fields to obtain short message data.
In an embodiment, as shown in fig. 2, a short message splicing processing method is provided, which is described by taking the application of the method to the server in fig. 1 as an example, and includes the following steps:
and 202, receiving the form uploaded by the terminal, and grouping field information contained in the form to form a short message group.
The field information can be a section of text, the type of the text can be date, number, chinese characters and the like, when the short messages are edited in the terminal, a series of field information is edited, each short message can correspond to a plurality of pieces of field information, then the field information of the edited short messages is correspondingly stored as a form, and the server can receive the form uploaded by the terminal.
Further, when the form is received by the server, the form may be analyzed, and since the form may include field information of multiple short messages, the field information corresponding to each short message needs to be distinguished during the analysis. Therefore, field information needs to be grouped, and each short message group corresponds to one short message in essence.
The short message templates corresponding to the service scenes can be prestored in the server, each short message template comprises a text field and a placeholder field, the text fields are composed of fixed texts and cannot be changed when short messages are spliced, the placeholder fields comprise various format settings, and the format of the placeholder can be specifically set according to the content filled in the placeholder fields. The server can obtain the short message template corresponding to the short message packet by inquiring according to the short message packet.
Furthermore, each short message packet may include multiple pieces of field information or only one piece of field information, when editing a short message, the short message packet to which the field information belongs may be edited according to service requirements, and when performing short message splicing, the short message packet corresponds to the short message template, so that all the pieces of field information can be filled in the placeholder field only if the number of the field information corresponds to the number of the placeholder fields, but for use in other service scenarios, the number of the field information may also be greater than the number of the placeholder fields, and the short message splicing can be realized only if the placeholder fields are filled.
And step 206, splicing the filled placeholder field and the text field to obtain short message data.
After the field information is filled in the placeholder field, the text field and the filled placeholder field can be spliced according to a preset sequence of the short message template, and the spliced short message data is generated. It should be noted that the short message data can be directly sent through the short message gateway.
In the short message splicing processing method, the field information contained in the form is grouped to form short message groups through the form uploaded by the receiving terminal, then a short message template corresponding to the short message groups is obtained, the short message template can be stored in the server in advance, the short message template comprises a text field and a placeholder field, the field information in each short message group is respectively filled into the placeholder field of the corresponding short message template, and finally the filled placeholder field and the text field are spliced to obtain the short message data. The embodiment of the invention groups the field information in the form and then correspondingly splices the short messages, thereby ensuring that the information is free from errors when the short messages are spliced and meeting the personalized requirements of short message sending in different service scenes.
In an embodiment, as shown in fig. 3, a short message concatenation processing method is provided, which is specifically shown in fig. 3.
And step 304, acquiring a pre-stored short message template corresponding to the short message group.
And step 306, acquiring the format type of the field information, verifying the format type of the field information through the characteristic parameters of the field information, and determining to fill the field information in the short message packet into the placeholder field of the corresponding short message template when the verification is passed.
And 308, filling the field information in the short message packet into a placeholder field of a short message template corresponding to the short message packet, and splicing the filled placeholder field and the text field to obtain short message data.
In the embodiment of the invention, the accuracy of filling data is ensured by adding corresponding detection logic before filling the field information into the placeholder field.
For step 302, in an embodiment, the form may include field information of a plurality of messages, each message includes a plurality of field information, and the field information is stored in the form in a band format.
Optionally, the form may be established by using Microsoft Office's EXCEL suite, and a blank form is established by EXCEL software first, and then field information of each short message is filled into an EXCEL table, so as to obtain the form.
For the step of S304, in an embodiment, the form includes field information of a plurality of short messages, and the field information needs to be grouped first, and specifically, according to a characteristic parameter corresponding to each short message group, the field information with the same characteristic parameter is read from the form to obtain the short message group of the field information; one of the field information corresponds to one of the characteristic parameters.
In a specific embodiment, the EXCEL form stores field information of a plurality of short messages, after obtaining the EXCEL form, the server may read the field information with the same feature parameter from the EXCEL form according to the feature parameter corresponding to each short message packet, it is worth mentioning that each short message may include a plurality of feature parameters, each feature parameter corresponds to one field information, and in the EXCEL form, it is determined that the feature parameter of the short message packet is location information of a cell in the EXCEL form, for example, the location is a cell location R16C7, the feature parameter of the field information filled in the cell is R16C7, and correspondingly, the corresponding short message packet includes the feature parameter R16C 7.
For step 306, in an embodiment, the feature parameters of the placeholder field in the short message template may be set correspondingly, and the feature parameters of the placeholder field and the feature parameters of the field information are kept consistent. When field information is filled, the field information may be filled according to the characteristic parameters.
By combining the above scheme, in an embodiment, when the form is an EXCEL form, the grouping of the field information can be obtained according to the arrangement sequence of the field information of each short message in the EXCEL form, and specifically, when the EXCEL form is edited, the field information of each short message is stored in one row or one column of the EXCEL form. In the server, the arrangement mode of the field information of the short message in the EXCEL form can be judged, and the arrangement mode comprises the following steps: the method comprises the steps of transverse arrangement and longitudinal arrangement, wherein during transverse arrangement, a server can read field information from left to right in sequence to obtain short message packets of the field information, and during longitudinal arrangement, the server can read the field information from top to bottom in sequence to obtain the short message packets of the field information.
In a specific embodiment, the field information may include a plurality of format types, the format types may include text, date, and numeric strings, and before the field information is filled into the character string field, it is required to verify whether the format type of the field information corresponds to the characteristic parameter corresponding thereto, and the characteristic parameter corresponds to one format type.
Specifically, the form is an EXCEL form, the characteristic parameters represent the positions of the cells, the format of the cells can be preset according to the stored field information, and then the format of the cells and the characteristic parameters are stored in a matching manner, so that whether the format type of the field information corresponds to the corresponding characteristic parameters is verified.
In an embodiment, after the field information is verified, the field information needs to be filled into a character string field, and first, a placeholder field in a short message template corresponding to each field information in a short message packet is determined, where the placeholder field is a placeholder with a format. And then, according to the format information of the placeholder field, verifying whether the format of the field information is correct or not, and filling the field information into the placeholder field after the verification is passed.
In another embodiment, after the field information determines the placeholder field in the corresponding format, the field information needs to be detected, for example, if the placeholder field is set with a numeric string of 11 digits and the field information in the format type of the numeric string is a 12-digit string, the field information cannot be filled.
In one embodiment, as shown in fig. 4, an exemplary flow chart of the field information updating step is provided, and particularly fig. 4.
And step 402, receiving the form uploaded by the terminal, and grouping field information contained in the form to form a short message group.
The user information base stores user information records of a plurality of users, the user information records can be obtained through business records transacted by the users and big data analysis, an index is established for the user information base, and the user information records of the users can be inquired through any user information of the users.
The step updates the form, which is substantially to update the field information of the short message in the form. It should be noted that the short message packet may include not only the user information but also other information.
In a specific embodiment, the field information in a complete short message consists of identity information and query information, and the query information may include the balance of a bank card, consumption records and the like; the identity information may include user name, number information, bank card number information, etc.
According to the embodiment of the invention, through the pre-established user identity library, when the form of the template short message is edited, only one part of the user information of each short message can be edited, and after the other part of the user information is uploaded to the server in the form, the user information is supplemented through the user information record stored in the user identity library. Therefore, the difficulty of short message editing is reduced, and the probability of stealing the user information can be reduced.
For step 404, in an embodiment, the user information included in the field information is determined, and the user information may include a user name and a user number, and the user name and the user number are respectively used as a query digit and a check digit when querying the user information base. When the name of the user is the query bit and the mobile phone number of the user is the check bit, the user number is verified through the check bit when the user number of the user is queried through the name of the user, and the form is updated only after verification. When the surname of the user is a check digit and the mobile phone number of the user is a query digit, the user number is verified through the check digit when the user number of the user is queried through the query digit, and the form is updated after verification. In this embodiment, the check bit and the query bit are set to avoid the coincidence and error of information query. It should be noted that the query bit and the check bit may be set by combining other user information, and the same effect may be achieved
As for step 402, in an embodiment, the transmitted form may be encrypted by an asymmetric encryption algorithm, so as to avoid monitoring during data transmission, specifically, the form may be encrypted by a public key of the server at the client, and after the server receives the form, the form is obtained by decrypting the encrypted data by using a private key, which further improves the security of information transmission.
In another embodiment, an index number corresponding to the user is established in the user information base, the index number can be a random character string, the random character string is unique, and after the index is established, a relation table of the user and the random character string is derived, so that only the random character string and the non-user information part corresponding to the user need to be edited when the form is edited. The security of the user information is further ensured when the field information is transmitted.
By establishing the user information base, the calibration of the user information can be realized. In an embodiment, a server receives a form sent by a client, the form includes a plurality of pieces of field information, user information included in the field information is analyzed for each short message, and then the user information is compared with a user information record corresponding to the user in a user information base, so that whether the user information uploaded by the terminal has an error or not is judged.
In one embodiment, the user information includes a user name, a user number, and a user card number, and the following description is given with reference to one embodiment: the user information contained in the field information received by the server is: zhang, 18888888888, 622215242554255, at this time, search in the user information base through the user name, for example, search "zhang san" in the user information base, the result obtained at this time is zhang, 188888887, 622215242554255, find through comparing, the subscriber number in the field information is inconsistent with in the user information base, therefore judge the subscriber number uploaded by the terminal is wrong. And when the server detects that the user number in the field information is wrong, the server correspondingly replaces the information with errors in the field information so as to ensure the accuracy of the information during short message splicing.
In the embodiment of the present invention, a precondition for searching through which user information is to be used is that the user information must be accurate, in this embodiment, if a user number is used for searching in a user information base, two situations may occur, one is that a search result is empty, that is, the user number does not exist in the user information base, and the other is that identity information of lie four is searched, and by comparing user information in field information with identity information of lie four, if only the user numbers are consistent in the comparison result, it is indicated that the user number of three in the field information is wrong, and at this time, other user information may be used for searching in the user information base. Through the processing, the original wrong user information can be prevented from being used for searching, and therefore the accuracy of the user information is ensured.
It should be understood that although the various steps in the flow charts of fig. 2-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 5, a template short message splicing apparatus is provided, which includes: a receiving module 502, a padding module 504, and a splicing module 506, wherein:
the receiving module 502 is configured to receive a form uploaded by a terminal, and group field information included in the form to form a short message group.
A filling module 504, configured to obtain a pre-stored short message template corresponding to a short message packet, where the short message template includes: a text field and a placeholder field; and filling the field information in the short message packet into the placeholder field of the corresponding short message template.
And the splicing module 506 is configured to splice the filled placeholder field and the text field to obtain the short message data.
The short message template splicing device receives a form uploaded by a terminal through the receiving module 502, groups field information contained in the form to form short message groups, then the filling module 504 acquires a short message template corresponding to the short message groups, the short message template can be stored in a server in advance, the short message template comprises a text field and a placeholder field, field information in each short message group is respectively filled into the placeholder field of the corresponding short message template, and finally the splicing module 506 splices the filled placeholder field and the text field to obtain short message data. According to the embodiment of the invention, the field information in the form is grouped, and then short message splicing is correspondingly carried out, so that the information can not be mistaken when the short messages are spliced, and the requirement of individuation short message sending under different service scenes is met.
In one embodiment, the parsing module 504 is further configured to read field information with the same characteristic parameter from the form according to the characteristic parameter corresponding to each short message packet, so as to obtain a short message packet of the field information; one of the field information corresponds to one of the characteristic parameters.
In an embodiment, the apparatus further includes a verification module, configured to obtain a format type of the field information, where the format type includes: a string of Chinese characters, a string of digits, and a date; verifying the format type of the field information through the characteristic parameters of the field information, wherein the format type corresponds to more than one characteristic parameter; and when the short message passes the verification, determining to fill the field information in the short message packet into the placeholder field of the corresponding short message template.
In an embodiment, the padding module 506 is further configured to determine a placeholder field in the short message template corresponding to each field information in the short message packet; the placeholder field is a band format placeholder; and verifying whether the format of the field information is correct or not according to the format information of the placeholder field, and filling the field information into the placeholder field when the verification is passed.
In one embodiment, the method further comprises: the updating module is used for analyzing and obtaining the user information included in the short message packet according to the field information in the short message packet; inquiring a pre-established user information base according to the user information to obtain a user information record corresponding to the user information; and updating the form according to the user information record.
In one embodiment, the user information includes: the updating module is also used for setting the user name as a query digit and setting the user number as a check digit; when the user number of the user is inquired in the user information base according to the inquiry position, the user number of the user is verified according to the verification position; and obtaining the user information record of the user from the user information base after the verification is passed.
In an embodiment, the filling module 504 is further configured to obtain a template tag of the short message packet; the template tag is preset in the short message packet, and the template tag only corresponds to the short message template; and determining a short message template corresponding to the short message packet according to the template tag.
For specific limitations of the template short message splicing apparatus, reference may be made to the above limitations on the short message splicing processing method, which is not described herein again. All modules in the template short message splicing device can be completely or partially realized through software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The database of the computer device is used for storing data such as field information, short message templates and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize a short message splicing processing method.
In one embodiment, the computer device is connected with a terminal through a network port, the terminal accesses the computer device through an access network port address, the terminal sends field information to the computer device through the network port, and after the computer device receives the field information, the computer device stores the field information into a database through a computer program stored in a nonvolatile storage medium, executes short message splicing operation and generates a template short message.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory storing a computer program and a processor implementing the steps of the above-described method embodiments when the processor executes the computer program.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the respective method embodiments described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A short message splicing processing method is characterized by comprising the following steps:
receiving a form uploaded by a terminal, and reading field information with the same characteristic parameters from the form according to the characteristic parameters corresponding to the short message packets to obtain the short message packets of the field information; one of the field information corresponds to one of the characteristic parameters; the form comprises field information of a plurality of short messages;
acquiring a pre-stored short message template corresponding to the short message packet, wherein the short message template comprises: a text field and a placeholder field; filling the field information in the short message packet into a placeholder field of a corresponding short message template;
splicing the filled placeholder field and the text field to obtain short message data;
after the step of obtaining the short message packet of the field information, the method further comprises the following steps:
analyzing to obtain user information included in the short message packet according to the field information in the short message packet;
inquiring a pre-established user information base according to the user information to obtain a user information record corresponding to the user information;
and updating the form according to the user information record.
2. The method of claim 1, wherein before filling field information in the short message packet into placeholder fields of a short message template corresponding to the short message packet, the method further comprises:
acquiring a format type of the field information, wherein the format type comprises: a string of Chinese characters, a string of digits, and a date;
verifying the format type of the field information through the characteristic parameters of the field information, wherein the format type corresponds to more than one characteristic parameter;
and when the short message passes the verification, determining to fill the field information in the short message packet into the placeholder field of the corresponding short message template.
3. The short message splicing processing method of claim 1, wherein the filling of the field information in the short message packet into the placeholder field of the corresponding short message template comprises:
determining a placeholder field in a short message template corresponding to each field information in the short message packet; the placeholder field is a band format placeholder;
and verifying whether the format of the field information is correct or not according to the format information of the placeholder field, and filling the field information into the placeholder field when the field information passes the verification.
4. The short message splicing processing method according to claim 1, wherein the user information includes: a user name and a user number;
the querying a pre-established user information base according to the user information to obtain a corresponding user information record of the user information includes:
setting the user name as a query bit and the user number as a check bit;
when the user number of the user is inquired in the user information base according to the inquiry position, the user number of the user is checked according to the check position; and obtaining the user information record of the user from the user information base after the verification is passed.
5. The short message splicing processing method according to any one of claims 1 to 4, wherein the acquiring of the pre-stored short message template corresponding to the short message packet includes:
acquiring a template label of the short message packet; the template tag is preset in the short message packet, and the template tag only corresponds to the short message template;
and determining a short message template corresponding to the short message packet according to the template tag.
6. A short message splicing processing device comprises:
the receiving module is used for receiving the form uploaded by the terminal and grouping field information contained in the form to form a short message group; according to the characteristic parameters corresponding to the short message packets, reading the field information with the same characteristic parameters from the form to obtain the short message packets of the field information; one of the field information corresponds to one of the characteristic parameters; the form comprises field information of a plurality of short messages;
a filling module, configured to obtain a pre-stored short message template corresponding to the short message packet, where the short message template includes: a text field and a placeholder field; filling the field information in the short message packet into the placeholder field of the corresponding short message template;
the splicing module is used for splicing the filled placeholder fields and the text fields to obtain short message data;
the device further comprises;
the updating module is used for analyzing and obtaining the user information included in the short message packet according to the field information in the short message packet; inquiring a pre-established user information base according to the user information to obtain a user information record corresponding to the user information; and updating the form according to the user information record.
7. The apparatus of claim 6, wherein the padding module is further configured to determine a placeholder field in the short message template corresponding to each field information in the short message packet; the placeholder field is a band format placeholder; and verifying whether the format of the field information is correct or not according to the format information of the placeholder field, and filling the field information into the placeholder field when the field information passes the verification.
8. The apparatus of claim 6, further comprising:
a verification module, configured to obtain a format type of the field information, where the format type includes: a string of Chinese characters, a string of digits, and a date; and verifying the format type of the field information through the characteristic parameters of the field information, wherein the format type corresponds to more than one characteristic parameter: and when the short message passes the verification, determining to fill the field information in the short message packet into the occupied field of the corresponding short message template.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810678807.9A CN108897728B (en) | 2018-06-27 | 2018-06-27 | Short message splicing processing method and device, computer equipment and storage medium |
PCT/CN2018/105289 WO2020000670A1 (en) | 2018-06-27 | 2018-09-12 | Sms stitching processing method and apparatus, and computer device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810678807.9A CN108897728B (en) | 2018-06-27 | 2018-06-27 | Short message splicing processing method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108897728A CN108897728A (en) | 2018-11-27 |
CN108897728B true CN108897728B (en) | 2023-04-07 |
Family
ID=64346394
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810678807.9A Active CN108897728B (en) | 2018-06-27 | 2018-06-27 | Short message splicing processing method and device, computer equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108897728B (en) |
WO (1) | WO2020000670A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109783336A (en) * | 2018-12-18 | 2019-05-21 | 中国平安人寿保险股份有限公司 | Data analyze scenario generation method, device, medium and electronic equipment |
CN110019754B (en) * | 2019-01-30 | 2023-11-07 | 创新先进技术有限公司 | Knowledge base building method, device and equipment |
CN112306994A (en) * | 2020-11-10 | 2021-02-02 | 北京沃东天骏信息技术有限公司 | Database data migration method and device and storage medium |
CN113778846B (en) * | 2020-11-30 | 2024-07-16 | 北京沃东天骏信息技术有限公司 | Method and device for generating test data |
CN114567855B (en) * | 2022-03-09 | 2023-07-14 | 北京神州泰岳软件股份有限公司 | Long short message processing method and device and electronic equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6317606B1 (en) * | 1998-08-14 | 2001-11-13 | Lg Information & Communication, Ltd. | Method for processing statistics data in mobile station in mobile communication system |
EP1158424A1 (en) * | 2000-05-24 | 2001-11-28 | Nua Limited | A system and method for publishing and categorising documents on a network |
CN101123532A (en) * | 2006-08-07 | 2008-02-13 | 华为技术有限公司 | A system and method for generating description information of communication user |
CN101620591A (en) * | 2009-08-12 | 2010-01-06 | 国网电力科学研究院 | Method for designing module report form layout based on cell mode |
CN101877836A (en) * | 2010-05-27 | 2010-11-03 | 中兴通讯股份有限公司 | Short message restoring system, device and method |
CN102508850A (en) * | 2011-09-29 | 2012-06-20 | 用友软件股份有限公司 | Form data processing device and form data processing method |
CN107666479A (en) * | 2017-08-02 | 2018-02-06 | 上海壹账通金融科技有限公司 | Information encrypting and decrypting method, apparatus, computer equipment and storage medium |
Family Cites Families (27)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4095617B2 (en) * | 2005-02-28 | 2008-06-04 | キヤノン株式会社 | Document processing apparatus, document processing method, and computer program |
CA2614653A1 (en) * | 2005-07-15 | 2007-01-25 | Think Software Pty Ltd | Method and apparatus for providing structured data for free text messages |
CN100559768C (en) * | 2006-08-08 | 2009-11-11 | 阿里巴巴集团控股有限公司 | A kind of information distribution method and system |
CN101335959A (en) * | 2008-08-06 | 2008-12-31 | 统庆通信设备(深圳)有限公司 | Mobile phone short message batch processing method |
CN101378549B (en) * | 2008-09-27 | 2012-01-25 | 华为终端有限公司 | Method, device and system for determining long short message affiliated by standard short message |
CN101465917B (en) * | 2009-01-09 | 2011-06-08 | 华为终端有限公司 | Method for grouping communication terminal information and communication terminal |
CN101924640A (en) * | 2009-06-15 | 2010-12-22 | 北京华智大为科技有限公司 | Method and system for group sending of email |
CN101616377B (en) * | 2009-07-20 | 2012-09-05 | 中兴通讯股份有限公司 | Method and system for processing short message |
CN102263851A (en) * | 2010-05-31 | 2011-11-30 | 北京迅捷英翔网络科技有限公司 | Message conversion method |
CN103246676A (en) * | 2012-02-10 | 2013-08-14 | 富士通株式会社 | Method and device for clustering messages |
WO2013130733A1 (en) * | 2012-02-28 | 2013-09-06 | Drivebuymarketing, Inc. | System and method for automated templated print and electronic advertising allowing editing of variable data |
US10489360B2 (en) * | 2012-10-17 | 2019-11-26 | Ab Initio Technology Llc | Specifying and applying rules to data |
CN103118346B (en) * | 2013-01-23 | 2016-07-06 | 小米科技有限责任公司 | A kind of send the method for note, device and terminal |
CN104461491B (en) * | 2013-09-24 | 2017-10-27 | 阿里巴巴集团控股有限公司 | The operation method and system of a kind of Hybrid components |
CN104796312B (en) * | 2014-01-17 | 2017-12-26 | 腾讯科技(深圳)有限公司 | Contact person information processing method, apparatus and system |
CN105450499B (en) * | 2014-08-15 | 2018-11-06 | 阿里巴巴集团控股有限公司 | A kind of mail behavior feedback method and device |
CN104935438B (en) * | 2015-05-28 | 2018-09-07 | 北京旷视科技有限公司 | Method and apparatus for authentication |
CN105045773A (en) * | 2015-07-10 | 2015-11-11 | 北京奇虎科技有限公司 | Method and apparatus for generating card template type service short message |
CN106528576B (en) * | 2015-09-15 | 2021-06-25 | 腾讯科技(深圳)有限公司 | Page search method, terminal, system and storage medium |
CN106559761A (en) * | 2015-09-28 | 2017-04-05 | 中国移动通信集团公司 | A kind of information processing method and terminal, server |
CN105472580B (en) * | 2015-11-17 | 2019-08-06 | 小米科技有限责任公司 | Processing method, device, terminal and the server of information |
CN107392560A (en) * | 2016-05-16 | 2017-11-24 | 杨国成 | A kind of Excel list datas issue acquisition method and system based on internet |
CN106384225A (en) * | 2016-09-20 | 2017-02-08 | 焦点教育科技有限公司 | Method for batch transmission of point-to-point notifications based on customized variable fields |
CN107092625B (en) * | 2016-12-28 | 2020-10-09 | 北京星选科技有限公司 | Data configuration method, data processing method and device |
CN107145537B (en) * | 2017-04-21 | 2021-06-18 | 深圳市天天来玩科技有限公司 | Table data importing method and system |
CN107704444B (en) * | 2017-10-11 | 2021-03-16 | 远光软件股份有限公司 | Display method of multi-column and multi-column table |
CN108153897B (en) * | 2018-01-10 | 2022-04-12 | 中国银行股份有限公司 | PLSQL program code generation method and system |
-
2018
- 2018-06-27 CN CN201810678807.9A patent/CN108897728B/en active Active
- 2018-09-12 WO PCT/CN2018/105289 patent/WO2020000670A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6317606B1 (en) * | 1998-08-14 | 2001-11-13 | Lg Information & Communication, Ltd. | Method for processing statistics data in mobile station in mobile communication system |
EP1158424A1 (en) * | 2000-05-24 | 2001-11-28 | Nua Limited | A system and method for publishing and categorising documents on a network |
CN101123532A (en) * | 2006-08-07 | 2008-02-13 | 华为技术有限公司 | A system and method for generating description information of communication user |
CN101620591A (en) * | 2009-08-12 | 2010-01-06 | 国网电力科学研究院 | Method for designing module report form layout based on cell mode |
CN101877836A (en) * | 2010-05-27 | 2010-11-03 | 中兴通讯股份有限公司 | Short message restoring system, device and method |
CN102508850A (en) * | 2011-09-29 | 2012-06-20 | 用友软件股份有限公司 | Form data processing device and form data processing method |
CN107666479A (en) * | 2017-08-02 | 2018-02-06 | 上海壹账通金融科技有限公司 | Information encrypting and decrypting method, apparatus, computer equipment and storage medium |
Non-Patent Citations (5)
Title |
---|
Jinho Ahn.Mobile agent group communication protocol ensuring causal order semantics.《IEEE》.2015,第269页-274页. * |
吴思颖等.面向办公自动化的短信收发系统的设计与实现.《计算机工程与设计》.2009,第30卷(第8期),第2071页-2074页. * |
田甲超.基于SNMP商业网的网络性能管理系统的研究与实现.《中国优秀硕士学位论文全文数据库信息科技辑》.2014,(第8期),第I139-28页. * |
胡冰群等.智能手机短信自动转发应用程序开发.《电信网技术》.2015,(第1期),第88页-94页. * |
路高鹏 ; .短信群发软件的设计与实现.计算机与网络.2013,(第05期),第64页-66页. * |
Also Published As
Publication number | Publication date |
---|---|
CN108897728A (en) | 2018-11-27 |
WO2020000670A1 (en) | 2020-01-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108897728B (en) | Short message splicing processing method and device, computer equipment and storage medium | |
CN108573371B (en) | Data approval method, device, computer equipment and storage medium | |
CN109474578B (en) | Message checking method, device, computer equipment and storage medium | |
WO2020186786A1 (en) | File processing method and apparatus, computer device and storage medium | |
CN110365670B (en) | Blacklist sharing method and device, computer equipment and storage medium | |
CN109816327B (en) | Contract data processing method, apparatus, computer device and storage medium | |
CN111314306A (en) | Interface access method and device, electronic equipment and storage medium | |
WO2020258655A1 (en) | Data verification method and apparatus, and computer device and storage medium | |
CN109766072B (en) | Information verification input method and device, computer equipment and storage medium | |
CN111428269B (en) | Data access method, device and terminal equipment | |
CN112861496A (en) | Report generation display method and device, computer equipment and readable storage medium | |
CN110069297A (en) | Abnormality eliminating method, device, computer equipment and storage medium based on Spring MVC | |
CN109766483B (en) | Regular expression generation method, device, computer equipment and storage medium | |
CN109062925A (en) | Automatically generate the method, apparatus, computer equipment and storage medium of insert sentence | |
CN109286933B (en) | Authentication method, device, system, computer equipment and storage medium | |
CN110648127A (en) | Resource transfer method, device, computer equipment and storage medium | |
WO2021120628A1 (en) | Blockchain-based sensitive word detection method and apparatus, computer device and computer-readable storage medium | |
CN112328486A (en) | Interface automation test method and device, computer equipment and storage medium | |
CN113709181A (en) | Website login method, device, equipment and storage medium based on browser plug-in | |
CN115391439B (en) | Document data export method, device, electronic equipment and storage medium | |
CN107832227B (en) | Interface parameter testing method, device, equipment and storage medium of business system | |
CN112507729A (en) | Method and device for translating text in page, computer equipment and storage medium | |
CN115391188A (en) | Scene test case generation method, device, equipment and storage medium | |
CN110808950B (en) | Message processing method, device, computer equipment and storage medium | |
CN110275703B (en) | Method and device for assigning key value to data, computer 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 |