CN111245706A - Information processing method, device, server and medium - Google Patents

Information processing method, device, server and medium Download PDF

Info

Publication number
CN111245706A
CN111245706A CN202010006869.2A CN202010006869A CN111245706A CN 111245706 A CN111245706 A CN 111245706A CN 202010006869 A CN202010006869 A CN 202010006869A CN 111245706 A CN111245706 A CN 111245706A
Authority
CN
China
Prior art keywords
information
sent
sending
list
transmitted
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.)
Pending
Application number
CN202010006869.2A
Other languages
Chinese (zh)
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.)
Hunan Mengwang Technology Development Co Ltd
Original Assignee
Hunan Mengwang Technology Development 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 Hunan Mengwang Technology Development Co Ltd filed Critical Hunan Mengwang Technology Development Co Ltd
Priority to CN202010006869.2A priority Critical patent/CN111245706A/en
Publication of CN111245706A publication Critical patent/CN111245706A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/23Reliability checks, e.g. acknowledgments or fault reporting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/42Mailbox-related aspects, e.g. synchronisation of mailboxes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application is applicable to the technical field of communication, and provides an information processing method, an information processing device, a server and a medium, wherein the method comprises the following steps: acquiring an information list to be sent, wherein the information list to be sent comprises one or more pieces of information to be sent; sending the information to be sent, and storing the sent information to a sent information list; if the information sending state is abnormal, determining the information which is not sent in the information list to be sent according to the information list to be sent and the sent information list; and transmitting the information which is not transmitted. By the method, the repeated transmission of the information can be avoided.

Description

Information processing method, device, server and medium
Technical Field
The present application belongs to the field of communications technologies, and in particular, to an information processing method, apparatus, server, and medium.
Background
With the development of communication technology, the application range of information is also wider and wider. The server needs to send a large amount of information, and in the process of sending the information, abnormal conditions such as server disconnection and sudden network disconnection may occur, so that the information sending is interrupted. After the information transmission state is recovered, the server restarts the service and continues to transmit the information. When an abnormal situation occurs, the server is transmitting information, and when the service is restarted, the server cannot determine where the previous information transmission process has progressed, and thus may cause the information to be repeatedly transmitted in the process of transmitting the information again.
Disclosure of Invention
The embodiment of the application provides an information processing method, an information processing device, a server and a medium, which can solve the problem of repeated information transmission.
In a first aspect, an embodiment of the present application provides an information processing method, including:
acquiring an information list to be sent, wherein the information list to be sent comprises one or more pieces of information to be sent;
sending the information to be sent, and storing the sent information to a sent information list;
if the information sending state is abnormal, determining the information which is not sent in the information list to be sent according to the information list to be sent and the sent information list;
and transmitting the information which is not transmitted.
In a second aspect, an embodiment of the present application provides an information processing apparatus, including:
the device comprises an acquisition module, a sending module and a sending module, wherein the acquisition module is used for acquiring an information list to be sent, and the information list to be sent comprises one or more pieces of information to be sent;
the first sending module is used for sending the information to be sent and storing the sent information to a sent information list;
the unsent information determining module is used for determining unsent information in the to-be-sent information list according to the to-be-sent information list and the sent information list if the information sending state is abnormal;
and the second sending module is used for sending the unsent information.
In a third aspect, an embodiment of the present application provides a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method according to the first aspect when executing the computer program
In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product, which when run on a server, causes the server to perform the method of any one of the first aspect.
Compared with the prior art, the embodiment of the application has the advantages that: in the embodiment of the application, the server acquires the information list to be sent, then sends the information to be sent in the information list to be sent, and stores the sent information to the sent information list. When the information sending state is abnormal, the information sending process is suspended, and when the sending state is recovered to be normal, the server needs to continue sending the information to be sent in the information list to be sent. By recording the sent information in the sent information list, the server can send the information in the sent information list after the abnormal condition occurs, thereby solving the problem of repeated sending of the information.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart of an information processing method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of an information processing method according to a second embodiment of the present application;
fig. 3 is a schematic flowchart of an information processing method according to a third embodiment of the present application;
FIG. 4 is a schematic diagram of an information processing procedure provided in the fourth embodiment of the present application;
fig. 5 is a schematic view of an information processing flow after a sending state is abnormal according to a fourth embodiment of the present application;
fig. 6 is a schematic flowchart of an information processing method according to a fifth embodiment of the present application;
fig. 7 is a schematic structural diagram of an information processing apparatus according to a sixth embodiment of the present application;
fig. 8 is a schematic structural diagram of a server according to a seventh embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
Fig. 1 is a schematic flowchart of an information processing method according to an embodiment of the present application;
s101, acquiring an information list to be sent, wherein the information list to be sent comprises one or more pieces of information to be sent;
the execution subject of the embodiment of the application is a server, and the server may be a computing device capable of sending large-batch information, such as a cloud server.
The information list to be sent is composed of one or more pieces of information to be sent, and each piece of information to be sent comprises information content, a destination address and the like.
Specifically, the server obtains a to-be-sent information list provided by the sender, where the to-be-sent information provided by the sender may include information content to be sent, a destination address, a sending requirement, and the like. The destination address may include, but is not limited to, a communication number, a mailbox address, and an Instant Messaging (IM) address, and a piece of information to be sent may also correspond to multiple destination addresses, for example, a sender may provide a communication number and a mailbox address of a receiver at the same time. The transmission requirement may include the urgency of the information, e.g., "delivery within 3 seconds", "transmission delayed to 1 hour", etc. After being processed by the server, the information to be sent is sent to a destination address designated by the sender, so that the receiver can receive the information.
S102, sending the information to be sent, and storing the sent information to a sent information list;
the server may include a plurality of to-be-sent information lists to be processed, and for each to-be-sent information list, a corresponding to-be-sent information list may be set to store information already sent in the to-be-sent information list.
Specifically, the server acquires the information to be sent from the information list to be sent, and then sends the information to be sent to the corresponding destination address. Each time the server sends a message, the message is stored in the corresponding sent message list.
S103, if the information sending state is abnormal, determining unsent information in the information list to be sent according to the information list to be sent and the sent information list;
the information sending state is abnormal sometimes, for example, sudden power failure or network disconnection, and the server disconnects the service to cause the information sending state to be abnormal. After the information sending state is recovered to normal, the server needs to continue sending the information in the information list to be sent. The information to be sent is stored in the information list to be sent, the information which is already sent in the information list to be sent is stored in the sent information list corresponding to the information list to be sent, and the information which is not sent in the information list to be sent can be determined by comparing the information list to be sent with the corresponding sent information list.
And S104, transmitting the unsent information.
And the server sends the information which is not sent in the information list to be sent according to the information such as the sending requirement, the destination address and the like.
In this embodiment, each to-be-sent information list corresponds to one sent information list, so that after the information sending state is abnormal, the unsent information in the to-be-sent information list can be determined by referring to the sent information list, and the server only sends the unsent information, thereby solving the problem of repeated information sending.
Fig. 2 is a schematic flowchart of an information processing method according to a second embodiment of the present application;
s201, acquiring an information list to be sent, wherein the information list to be sent comprises one or more pieces of information to be sent;
specifically, the server may receive each to-be-sent information list from the sender, and send information according to each to-be-sent information in the to-be-sent information list. In addition, the server can also acquire the information list to be sent which needs to be processed through an information sending platform which can carry out data transmission.
S202, determining a coding format of the information to be sent, and analyzing the information to be sent according to the coding format;
encoding is to encode characters, numbers, or other objects into digital codes by a predetermined method, or to convert information and data into predetermined electric pulse signals. Common encoding formats are ASCII, ANSI, GBK, GB2312, UTF-8, GB18030, UNICODE, etc. The server may store a plurality of encoding formats in advance.
The information to be transmitted in the information to be transmitted list received by the server may be provided by different transmitters, and thus, may have different encoding formats. The server acquires the information to be sent from the information list to be sent, extracts the coding format of the information, and analyzes the information according to the pre-stored coding format.
In addition, if the corresponding coding format can not be found in the pre-stored coding format library, the information is stopped to be sent and returned to the information sending platform for processing. Thereby preventing the information from being incorrectly displayed at the destination terminal. The information sending platform can be a platform which can communicate with the server and transmit data, and the server can acquire the information list file to be sent which needs to be processed through the information sending platform and can also feed back the processing result to the information sending platform.
S203, detecting whether the information to be sent meets preset sending conditions;
each information list to be sent in the information list to be sent has a corresponding sending requirement, for example, it needs to "send after delaying to 1 hour". There is also a transmission requirement for the information content, for example, the information cannot contain sensitive words and the like. Before sending the information, it is necessary to detect whether the information satisfies a preset sending condition.
S204, if the information to be sent meets the sending condition, determining a destination address of the information to be sent and determining a sending channel of the information to be sent;
specifically, if the information to be sent meets the preset sending condition, the server may send the information. When information is transmitted, a transmission channel and a destination address need to be determined. The destination address is typically present in the list of information to be sent. The transmission channels may be allocated according to a pre-stored configuration file in which it is set for the corresponding sender or destination address which channel is used to transmit information. For example, if the sender is provided with a local carrier channel, the information of the sender may be configured as the carrier channel provided by the sender.
S205, the information to be sent is sent to the destination address through the sending channel, and the sent information is stored in a sent information list.
Specifically, the information to be transmitted is transmitted to the destination address through the transmission channel. If the destination address is a mailbox address, a mail channel can be used for sending information; if the destination address is an IM address, the information can be sent by using an Internet channel. If the destination address is a mobile phone number, operator channels can be distributed according to the front 7-bit number section of the mobile phone number, such as Guangdong Shenzhen telecom, Jiangxi Jiujiang Union and Hunan Changsha Mobile.
After the information is sent out through the server, the information cannot be sent successfully, for example, the sender provides a communication number as a destination address, the communication number conforms to the number specification, but the communication number is a null number, which may cause the failure of information sending; or in the process of information transmission, data is lost in the process of network transmission, which also causes information transmission failure.
After the server sends out the information, for the information which is successfully sent, the information can be stored in a sent information list corresponding to the information list to be sent.
In another possible implementation manner of this embodiment, the information that has been sent, whether the sending is successful or failed, may be recorded in the sent information list. The information on the transmission failure may be recorded in an error list.
S206, if the information sending state is abnormal, determining unsent information in the information list to be sent according to the information list to be sent and the sent information list;
when the information transmission state is abnormal, the information transmission is interrupted, and when the information transmission state is recovered to be normal, the information transmission is required to be continued. Specifically, if a piece of information exists in the to-be-sent information list but does not exist in the sent information list, the piece of information is unsent.
In another possible implementation manner of this embodiment, the unsent information in the to-be-transmitted information list may be determined according to the to-be-transmitted information list, the transmitted information list, and the error list.
And S207, transmitting the unsent information.
The unsent information is transmitted to the destination address according to the steps of S201 to S205.
Illustratively, if there are 10 pieces of information to be sent in the information to be sent requirement list and there are 10 pieces of information in the information to be sent list file, then there is no need to continue sending information. If there are 10 pieces of information to be sent in the information demand list to be sent and there are 4 pieces of information in the sent information list file, the remaining 6 pieces of information are continuously sent according to the information demand list to be sent.
When all the information to be sent in one information list to be sent has been sent, the information list to be sent can be moved to the history folder. And storing the list of the information to be transmitted which is not transmitted completely in a folder to be transmitted. By means of the processing, the situation that all the file lists to be sent need to be traversed after the information sending state is recovered to be normal every time is avoided. And when the information sending state is recovered to be normal, the server only needs to acquire the list file of the information to be sent from the folder to be sent, and does not need to send the information to the files in the history folder.
If the information failed to be sent is not stored in the sent information list, the information failed to be sent is included in the determined information which is not sent according to the comparison between the information list to be sent and the sent information list. After the information transmission state is recovered to normal, the information transmission of the information with failed transmission can be continued. In addition, in order to avoid the excessive number of times of transmission for the same piece of information, a threshold value of the number of times of erroneous transmission may be set in advance. For each piece of information, the initial value of the number of times of error transmission thereof may be set to 0, and each time the transmission of the information fails, the number of times of error transmission thereof may be increased by 1. And if the number of times of error transmission of a certain piece of information is greater than the threshold value of the number of times of error transmission, the information is not transmitted any more. It may be submitted to other relevant processing platforms for processing or may request a sender to process the opinion. Thus, waste of server resources can be reduced.
In another possible implementation manner of this embodiment, the unsent information in the to-be-transmitted information list may be determined according to the to-be-transmitted information list, the transmitted information list, and the error list. The information in the error list may be sent again. The information transmission fails, and in some cases, for example, data is lost in the network transmission process, the information can be transmitted for multiple times, and the successful transmission of the information is finally realized; however, in other cases, such as target address errors, this cannot be resolved by multiple transmissions. Therefore, information in the error list can be transmitted for a predetermined number of times, and information notifying the sender of the information which has failed to be transmitted after a plurality of times of information transmission can be transmitted. Further, it is also possible to determine whether or not the information transmission failure needs to be retransmitted based on the cause of the transmission failure.
In another possible implementation manner of this embodiment, if the information that has been sent is recorded in the sent information list regardless of whether the sending is successful or failed, the information that has not been sent is obtained according to a comparison between the information list to be sent and the sent information list, and the information that has not been sent does not include the information that has failed to be sent. For the information of failed transmission stored in the error list, the record can be fed back to the sender, and then the processing can be performed according to the requirement of the sender.
In the embodiment, the information is analyzed and then sent, so that the problem that the information cannot be correctly displayed on the target terminal can be avoided; the sending channels are distributed to the information to be sent, so that the delay or loss of information sending caused by using the same sending channel to send excessive information can be avoided; meanwhile, in the embodiment of the application, each sent message is recorded in the sent message list, and after the message sending state is abnormal, the message which is not sent can be determined through the message list to be sent and the sent message list, so that the message can be prevented from being sent repeatedly.
Fig. 3 is a schematic flowchart of an information processing method according to a third embodiment of the present application;
s301, acquiring an information list to be sent, wherein the information list to be sent comprises one or more pieces of information to be sent;
s302, determining a coding format of the information to be sent, and analyzing the information to be sent according to the coding format;
s301 to S302 in this embodiment are similar to S201 to S202 in the previous embodiment, and may refer to each other, which is not described herein again.
S303, detecting whether the information content of the information to be sent is in compliance, and identifying the sending time of the information to be sent;
specifically, before information is transmitted, it is necessary to detect whether the information satisfies a transmission condition. The sending conditions may include, but are not limited to, information content compliance, and sending time compliance. The information content compliance may include that the information content of the information to be transmitted does not contain sensitive words, the information content is not spam, and the like. Before information is sent, the information can be detected according to a preset rule, so that whether the information is in compliance or not is judged. The sending time is provided by the sender and can be stored in the information list to be sent. Before sending information, the server needs to obtain the requirement of sending time of the information to be sent.
Illustratively, whether the information content contains sensitive words is detected, and if yes, the information is returned to a sending platform for processing; if the sensitive words are not contained, further detecting the information sending condition, for example, if the sending attribute of the information is 'sent within 3 seconds', the information meets the condition of instant sending, if the sending attribute of the information is 'sent after 1 hour', further judging whether the current time and the time of submitting the sending requirement to the information sending platform meet the time difference requirement, if so, judging that the information meets the instant sending condition, and if not, continuing to wait until the current time meets the sending time requirement.
S304, if the information content is in compliance and the current time meets the requirement of the sending time, judging that the information to be sent meets the preset sending condition.
Specifically, if the content compliance is detected and the current time meets the requirement of the sending time, it indicates that the information can be sent currently.
S305, if the information to be sent meets the sending condition, determining a destination address of the information to be sent and determining a sending channel of the information to be sent;
the information needs to be sent to the destination address through a sending channel, and therefore the sending channel of the information to be sent needs to be acquired. In order to avoid information transmission delay or loss caused by using the same transmission channel to transmit too much information in a short time, the transmission channel can be allocated to the information to be transmitted.
The destination address may take many forms, such as a communication number, a mailbox address, an IM address. When the destination address is a communication number, the information can be sent through the operator channel. And when the destination address is a mailbox address, the information is sent by using a mail channel. And when the destination address is the IM address, the information is sent by using an Internet channel.
For a message to be sent, the destination address provided by the sender may include multiple addresses, such as a communication number, a mailbox address, and an IM address. The sender can also customize the sending strategy of the information, for example, the IM information, the information and the mailbox are all sent, or the IM information is sent firstly, the mailbox is used for sending after the IM information is sent in failure, and when the IM information and the mailbox are both sent in failure, the mobile phone information is sent by using the operator channel. Correspondingly, to which address the sender needs to send the information, a specific destination address needs to be provided.
If the destination address of the information to be sent is a communication number, different channels can be divided for the information to be sent. Firstly, different sending channels can be used for the Shenzhen electric signal segment based on different operators, and different sending channels can also be used based on different places, for example, if the communication number is the Guangdong Shenzhen electric signal segment address, the special channel of the Shenzhen electric signal is used. The transmission channel may be allocated according to a pre-stored profile. In the configuration file, which channel is used for sending information is set for a corresponding sender or a destination address, some senders can provide a local operator channel configured by themselves when providing information to be sent, and the local operator channel of themselves can be used when sending the information to be sent of the sender; a default Service Provider (SP) account channel may be configured for some senders. And if the sender does not find the set sending channel in the configuration file, using a system default channel.
In addition, the sending speed of the information can be set, and the sending speed of the information submitted to the operator is controlled, so that the information loss caused by the fact that the sending speed of the information exceeds the speed set by the operator is avoided. For some important or more demanding information, a fast transmission channel may be prioritized.
S306, the information to be sent is sent to the destination address through the sending channel, and the sent information is stored in a sent information list.
S307, if the information sending state is abnormal, determining unsent information in the information list to be sent according to the information list to be sent and the sent information list;
s308, the unsent information is sent.
S306-S308 in this embodiment are similar to S205-S207 in the previous embodiment, and may refer to each other, which is not described herein again.
S309, if the information to be sent fails to be sent, recording the information which fails to be sent in an error list;
specifically, a situation of information transmission failure may occur in the information transmission process, and the information of transmission failure is recorded in the error list. For the convenience of subsequent processing, the information of failed transmission may be recorded in detail, for example, the destination address, the information content, the error reason, the file name of the list of information to be transmitted, and the like are all recorded in the error list.
S310, when the number of the information recorded in the error list is larger than a preset threshold value, sending a prompt message to a sender of the information list to be sent.
Specifically, the sender may preset a preset threshold for the number of messages that failed to be sent, and when the number of messages of the sender in the error list is greater than the preset threshold, the server may prompt the sender to send messages, so as to process the messages that failed to be sent subsequently.
S311, the sent information list is cleared regularly.
In order to save storage space, the sent information list file can be periodically cleaned, for example, the sent information list file stored 30 days ago is periodically cleaned. It is of course also possible to clean up already processed list files of information to be sent and processed error list files.
In the embodiment, the information is analyzed according to the coding format of the information, so that the problem that the information cannot be correctly displayed at a target terminal is avoided; by dividing the sending channels, the distribution of information sending is realized, and the sending rate is set at the same time, so that the information loss caused by the fact that the sending speed of the information exceeds the receiving speed of an operator is avoided; the files are cleaned regularly, and the storage space can be saved.
Fig. 4 is a schematic diagram of an information processing process provided in the fourth embodiment of the present application, and as shown in fig. 4, after a project is started, a basic configuration file is loaded. The items herein may include that a to-be-sent information list from a certain sender needs to be sent, and the basic configuration file may include the to-be-sent information list, the sent information list, and the like. The configuration file polls and loads the binding relationship between the mobile phone number attribution and the SP account number, and a sending channel number is allocated to each mobile phone number. After an exception occurs, an abnormal power-off rollback procedure is executed to continue information transmission, and a specific procedure may refer to fig. 5. Fig. 5 is a schematic view of an information processing flow after a sending state is abnormal according to a fourth embodiment of the present application, and as shown in fig. 5, after a service is normally disconnected, when the service is recovered, an item is restarted. And reading the sending directory, storing the information list file to be sent which is not sent yet in a folder designated by the sending directory, and storing the information list file to be sent which is sent already in a history directory. If the file exists in the sending directory, the information list to be sent is not processed and completed at present, and the information sending can be continued. For each list of information to be sent (corresponding to txt file in fig. 5), there corresponds a list of information sent (corresponding to ok file in fig. 5). When information sending is continued, loading the ok file and the txt file into a memory, judging whether the ok file and the txt file are consistent, and if so, transferring the ok file and the txt file into a history folder; and if the information lists are inconsistent, the processing of the information list to be sent is finished. In addition, the files stored in the history folder can be cleaned at intervals, so that the storage space is saved.
Fig. 6 is a schematic flow chart of an information processing method according to a fifth embodiment of the present application, and as shown in fig. 6, when information is sent, a server performs timing scanning on a directory thread to be sent, and when all the directory threads reach a configured scanning time point, scans a directory to be sent, obtains an information list file to be sent, reads the file, reads file content into a memory list, and then polls the list, to obtain a single record in the information list to be sent. And judging whether the number in the single record is legal or not, if the number is illegal, writing the record into an ok file, and recording the illegal number in a log. If the number is legal, the first 7 digits of the number can be intercepted, whether a mapping relation exists between the attribution of the number and the SP in the memory is inquired, if the mapping relation exists, the information of the record is sent by adopting a configuration account number, and if not, the information is sent by adopting a default account number. When information is sent, a gateway single-sending interface needs to be called, and the information is sent to a destination address through a sending channel determined in the previous step. And then writing the sent information into an ok file, and writing the information and a corresponding sending result into a log. At this time, the processing of the single record in the information list to be sent is finished. In order to process all records in the to-be-sent type list, the list needs to be polled, and after all records in the to-be-sent information list are processed, the ok file and the txt file are transferred to a history folder. At this time, the processing for one information list to be transmitted ends. The information list to be sent, which is required to be processed by the server, may include a plurality of information lists, and when information is sent, the server may process the received information lists to be sent one by one according to the above method.
Fig. 7 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present application, and as shown in fig. 7, the apparatus 7 may specifically include the following modules:
an obtaining module 71, configured to obtain an information list to be sent, where the information list to be sent includes one or more pieces of information to be sent;
a first sending module 72, configured to send the information to be sent, and store the sent information in a sent information list;
an unsent information determining module 73, configured to determine unsent information in the to-be-sent information list according to the to-be-sent information list and the sent information list if an information sending state is abnormal;
a second sending module 74, configured to send the unsent information.
The information processing apparatus 7 may further include the following modules:
the analysis module is used for determining the coding format of the information to be sent and analyzing the information to be sent according to the coding format;
the detection module is used for detecting whether the information to be sent meets preset sending conditions or not;
the detection module may specifically include the following sub-modules:
the detection submodule is used for detecting whether the information content of the information to be sent is in compliance or not and identifying the sending time of the information to be sent;
and the judging submodule is used for judging that the information to be sent meets the preset sending condition if the information content is in compliance and the current time meets the requirement of the sending time.
The first transmission module 72 in the above-mentioned information processing apparatus 7 may further include the following sub-modules:
the determining submodule is used for determining a destination address of the information to be sent and determining a sending channel of the information to be sent;
and the processing submodule is used for sending the information to be sent to the destination address through the sending channel and storing the sent information to a sent information list.
The determining submodule may specifically include the following units:
a sending channel allocation unit, configured to allocate a sending channel for the to-be-sent information according to the sender and the destination address of the to-be-sent information, and store the information of the allocated sending channel in a preset configuration file;
and the sending channel acquiring unit is used for acquiring the sending channel of the information to be sent from the configuration file.
The information processing apparatus 7 may further include the following modules:
the failed information recording module is used for recording the information which is failed to be sent in an error list if the information which is to be sent fails to be sent;
and the prompt module is used for sending prompt information to a sender of the information list to be sent when the number of the information recorded in the error list is greater than a preset threshold value.
The information processing apparatus 7 may further include the following modules:
and the clearing module is used for regularly clearing the sent information list.
Fig. 8 is a schematic structural diagram of a server according to a seventh embodiment of the present application. As shown in fig. 8, the server 8 of this embodiment includes: at least one processor 80 (only one shown in fig. 8), a memory 81, and a computer program 82 stored in the memory 81 and executable on the at least one processor 80, the processor 80 implementing the steps in any of the various method embodiments described above when executing the computer program 82.
The server 8 includes computing devices such as a cloud server. The server may include, but is not limited to, a processor 80, a memory 81. Those skilled in the art will appreciate that fig. 8 is merely an example of a server 8 and does not constitute a limitation on the server 8, and may include more or fewer components than shown, or some components in combination, or different components, such as input output devices, network access devices, etc.
The processor 80 may be a Central Processing Unit (CPU), and the processor 80 may be other general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 81 may in some embodiments be an internal storage unit of the server 8, such as a hard disk or a memory of the server 8. The memory 81 may also be an external storage device of the server 8 in other embodiments, such as a plug-in hard disk provided on the server 8, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card (FlashCard), and the like. Further, the memory 81 may also include both an internal storage unit of the server 8 and an external storage device. The memory 81 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 81 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a server, enables the server to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing device/server, a recording medium, computer memory, Read-only memory (ROM), random-access memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. An information processing method characterized by comprising:
acquiring an information list to be sent, wherein the information list to be sent comprises one or more pieces of information to be sent;
sending the information to be sent, and storing the sent information to a sent information list;
if the information sending state is abnormal, determining the information which is not sent in the information list to be sent according to the information list to be sent and the sent information list;
and transmitting the information which is not transmitted.
2. The method of claim 1, wherein prior to transmitting the information to be transmitted, further comprising:
determining a coding format of the information to be sent, and analyzing the information to be sent according to the coding format;
detecting whether the information to be sent meets preset sending conditions or not;
and if the information to be sent meets the sending condition, executing a step of sending the information to be sent.
3. The method of claim 2, wherein the detecting whether the information to be transmitted satisfies a preset transmission condition comprises:
detecting whether the information content of the information to be sent is in compliance, and identifying the sending time of the information to be sent;
and if the information content is in compliance and the current time meets the requirement of the sending time, judging that the information to be sent meets the preset sending condition.
4. The method according to any one of claims 1-3, wherein the transmitting the information to be transmitted and storing the transmitted information in a transmitted information list comprises:
determining a destination address of the information to be sent and determining a sending channel of the information to be sent;
and sending the information to be sent to the destination address through the sending channel, and storing the sent information to a sent information list.
5. The method of claim 4, wherein the determining a transmission channel for the information to be transmitted comprises:
distributing a sending channel for the information to be sent according to the sender and the destination address of the information to be sent, and storing the information of the distributed sending channel into a preset configuration file;
and acquiring a sending channel of the information to be sent from the configuration file.
6. The method of claim 1, 2, 3 or 5, wherein after transmitting the information to be transmitted and storing the transmitted information in a transmitted information list, further comprising:
if the information to be sent fails to be sent, recording the information which fails to be sent in an error list;
and when the number of the information recorded in the error list is larger than a preset threshold value, sending prompt information to a sender of the information list to be sent.
7. The method of claim 6, further comprising:
the list of sent information is periodically purged.
8. An information processing apparatus characterized by comprising:
the device comprises an acquisition module, a sending module and a sending module, wherein the acquisition module is used for acquiring an information list to be sent, and the information list to be sent comprises one or more pieces of information to be sent;
the first sending module is used for sending the information to be sent and storing the sent information to a sent information list;
the unsent information determining module is used for determining unsent information in the to-be-sent information list according to the to-be-sent information list and the sent information list if the information sending state is abnormal;
and the second sending module is used for sending the unsent information.
9. A server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202010006869.2A 2020-01-03 2020-01-03 Information processing method, device, server and medium Pending CN111245706A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010006869.2A CN111245706A (en) 2020-01-03 2020-01-03 Information processing method, device, server and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010006869.2A CN111245706A (en) 2020-01-03 2020-01-03 Information processing method, device, server and medium

Publications (1)

Publication Number Publication Date
CN111245706A true CN111245706A (en) 2020-06-05

Family

ID=70864678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010006869.2A Pending CN111245706A (en) 2020-01-03 2020-01-03 Information processing method, device, server and medium

Country Status (1)

Country Link
CN (1) CN111245706A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111930890A (en) * 2020-07-28 2020-11-13 深圳市梦网科技发展有限公司 Information sending method and device, terminal equipment and storage medium
CN111934825B (en) * 2020-09-23 2021-03-02 南京金宁汇科技有限公司 Information transmission method based on block chain and storage medium
CN112995020A (en) * 2021-05-19 2021-06-18 天津中新智冠信息技术有限公司 Information distribution device, method, electronic device, and storage medium
WO2023124964A1 (en) * 2021-12-31 2023-07-06 北京字跳网络技术有限公司 Method for urgently sending message, apparatus, and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355342A (en) * 2011-10-19 2012-02-15 山东中创软件工程股份有限公司 Method for sending and receiving message and device
CN104636477A (en) * 2015-02-15 2015-05-20 山东卓创资讯集团有限公司 Push list duplicate removal method before information push
CN105511975A (en) * 2015-11-27 2016-04-20 北京奇虎科技有限公司 Exception handling method and device
US20160191437A1 (en) * 2014-12-31 2016-06-30 C. Douglass Thomas Data Transmission Management for Computer Based Inter-User Communication
CN105847059A (en) * 2016-04-12 2016-08-10 平安科技(深圳)有限公司 Information delivery managing method and apparatus
CN106533909A (en) * 2016-11-18 2017-03-22 灿芯半导体(上海)有限公司 Email sending method and system
CN108512898A (en) * 2018-02-09 2018-09-07 深圳壹账通智能科技有限公司 File push method, apparatus, computer equipment and storage medium
CN109660451A (en) * 2018-12-25 2019-04-19 北京云中融信网络科技有限公司 A kind of method, apparatus and messaging system sending message
CN109889432A (en) * 2019-01-24 2019-06-14 中国平安人寿保险股份有限公司 Information processing method, device, computer installation and computer readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355342A (en) * 2011-10-19 2012-02-15 山东中创软件工程股份有限公司 Method for sending and receiving message and device
US20160191437A1 (en) * 2014-12-31 2016-06-30 C. Douglass Thomas Data Transmission Management for Computer Based Inter-User Communication
CN104636477A (en) * 2015-02-15 2015-05-20 山东卓创资讯集团有限公司 Push list duplicate removal method before information push
CN105511975A (en) * 2015-11-27 2016-04-20 北京奇虎科技有限公司 Exception handling method and device
CN105847059A (en) * 2016-04-12 2016-08-10 平安科技(深圳)有限公司 Information delivery managing method and apparatus
CN106533909A (en) * 2016-11-18 2017-03-22 灿芯半导体(上海)有限公司 Email sending method and system
CN108512898A (en) * 2018-02-09 2018-09-07 深圳壹账通智能科技有限公司 File push method, apparatus, computer equipment and storage medium
CN109660451A (en) * 2018-12-25 2019-04-19 北京云中融信网络科技有限公司 A kind of method, apparatus and messaging system sending message
CN109889432A (en) * 2019-01-24 2019-06-14 中国平安人寿保险股份有限公司 Information processing method, device, computer installation and computer readable storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111930890A (en) * 2020-07-28 2020-11-13 深圳市梦网科技发展有限公司 Information sending method and device, terminal equipment and storage medium
CN111934825B (en) * 2020-09-23 2021-03-02 南京金宁汇科技有限公司 Information transmission method based on block chain and storage medium
CN112995020A (en) * 2021-05-19 2021-06-18 天津中新智冠信息技术有限公司 Information distribution device, method, electronic device, and storage medium
CN112995020B (en) * 2021-05-19 2021-08-20 天津中新智冠信息技术有限公司 Information distribution device, method, electronic device, and storage medium
WO2023124964A1 (en) * 2021-12-31 2023-07-06 北京字跳网络技术有限公司 Method for urgently sending message, apparatus, and storage medium

Similar Documents

Publication Publication Date Title
CN111245706A (en) Information processing method, device, server and medium
CN105847447B (en) Message pushing method and device
US20080005312A1 (en) Systems And Methods For Alerting Administrators About Suspect Communications
WO2006014804A2 (en) Messaging spam detection
CN103595774A (en) System application uninstalling method and device with terminal based on server side
US20110093546A1 (en) Method and system for sorting electronic communications
CN114268957B (en) Abnormal business data processing method, device, server and storage medium
CN108833443B (en) Message transmission method and system and computer equipment
CN112087475B (en) Message pushing method and device for cloud platform component application and message server
CN109889432B (en) Information processing method, information processing apparatus, computer apparatus, and computer-readable storage medium
CN108966234B (en) Malicious information processing method and device
CN107734180B (en) Information processing method
CN108965108B (en) Message pushing method and related equipment
CN111355793A (en) Large file uploading method based on HTML5 and Python
WO2011153582A9 (en) Electronic messaging recovery engine
EP2203025A1 (en) Method for transmitting sms and sms platform
CN110493735B (en) Short message processing method and device
EP3599580A1 (en) Scoring information matching method and apparatus, storage medium and server
CN114338794A (en) Service message pushing method and device, electronic equipment and storage medium
CN113596123A (en) Software downloading method, communication device and storage medium
CN108600036B (en) Message notification method and device
KR101600864B1 (en) A selective receiving method of e-mail
CN112052101A (en) Broadcast processing method and device and computer system
CN115589577B (en) Communication service access management method and device, electronic equipment and storage medium
CN114270309A (en) Resource acquisition method and device and electronic equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200605

RJ01 Rejection of invention patent application after publication