Information sending method and electronic equipment
By pre-constructing the correspondence between the general template identification information and the information service provider template identification information, the cumbersome problem of enterprises configuring information sending parameters and templates between multiple information service providers is solved, and the improvement of information sending efficiency and optimization of process is achieved.
Patent Information
- Application Number
- CN202510305679.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-14
- Publication Date
- 2025-06-24
AI Technical Summary
When connecting with multiple information service providers, enterprises need to frequently configure information sending parameters and templates, resulting in cumbersome operations, complex processes and inefficient efficiency.
By pre-constructing the correspondence between the general template identification information and the service provider template identification information of each information service provider, the unified configuration of the information sender client and the automatic docking of multiple information service providers is realized.
Optimize workflow, improve information transmission efficiency, reduce maintenance workload and operation load, and improve the convenience of information transmission monitoring and management.
Smart Images

Figure CN120201000A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technologies, and in particular, to a method for sending information and an electronic device. Background Art
[0002] An information service provider is a company or platform that provides information sending services for enterprises or individuals and can be used to help enterprise users send information in batches. When an enterprise needs to use an information service provider to send information, it needs to configure information at the corresponding interface or platform according to the rules of the information service provider. When it is necessary to connect to multiple information service providers, different information service providers have different configuration interfaces, platforms, and configuration methods, and enterprise users need to repeatedly configure, which is cumbersome in operation, complex in process, and poor in operation convenience. Summary of the Invention
[0003] In view of this, the purpose of this application is to propose a method for sending information and an electronic device to solve the problems such as cumbersome operation and complex process when connecting to multiple information service providers.
[0004] Based on the above purpose, this application provides a method for sending information, which is applied to an information sending party client and includes:
[0005] Obtain information sending parameters and general template identification information for identifying a general information template;
[0006] Determine a target service provider from multiple information service providers based on the information sending parameters;
[0007] Based on the general template identification information, determine the service provider template identification information of each target service provider corresponding to the general template identification information according to the pre-constructed corresponding relationship; wherein, the corresponding relationship stipulates the relationship between the general template identification information and the service provider template identification information;
[0008] Send the service provider template identification information and the information sending parameters to the corresponding target service provider so that the target service provider generates and sends target information.
[0009] Due to the pre-established corresponding relationship, when it is necessary to send information using an information service provider, it is only necessary to configure information sending parameters and general template identification information on the information sender's client, without having to configure the information sending parameters and service provider template identification information one by one on the platforms of each target service provider. Through the information sender's client, unified docking of multiple information service providers can be achieved, optimizing the work process, effectively improving the information sending efficiency, and being more conducive to information sending monitoring and management. When applied to the vehicle networking system to send information to users, after each business port generates an information sending requirement, it uniformly sends the information of the information sending parameters and the general template identification information to the information sender's client, and then the generation and sending of the target information can be completed. When different users have different applicable information service providers, docking of different information service providers can be achieved through a unified information sender's client, and the system runs more efficiently. When the information service provider changes, there is no need to modify the information sending configuration rules in the vehicle networking system, effectively reducing the maintenance workload and operation load of the vehicle networking system.
[0010] Optionally, the method for constructing the corresponding relationship includes:
[0011] Construct multiple general information templates according to the information sending requirements, and generate unique general template identification information for each general information template;
[0012] For each information service provider, based on the information template construction rules of the information service provider, convert each general information template into a service provider information template adapted to the information service provider respectively;
[0013] Send each of the service provider information templates to the corresponding information service provider for registration review;
[0014] Receive the service provider template identification information returned by the information service provider after successful registration review, and associate and store the general template identification information, the information service provider, and the corresponding service provider template identification information to obtain the corresponding relationship.
[0015] Through the above steps, the pre-construction of the corresponding relationship is realized, providing a basis for the automatic acquisition of the service provider template identification information in the future, and further providing a prerequisite for the efficient sending of the target information.
[0016] Optionally, the constructing multiple general information templates according to the information sending requirements includes:
[0017] Divide the information sending requirements into multiple types;
[0018] For each type of information sending requirement, construct at least one corresponding general information template.
[0019] By dividing SMS sending needs into multiple types and then constructing general message templates in a targeted manner, it can facilitate management on the one hand, and on the other hand, it can reduce the workload of constructing general message templates and improve work efficiency.
[0020] Optionally, the information sending parameter includes at least one piece of information of an information recipient, and determining a target service provider from a plurality of information service providers based on the information sending parameter includes:
[0021] By using the regional scope of each piece of information about the information recipient and the service scope of each information service provider, a target service provider corresponding to each piece of information about the information recipient is determined from a plurality of the information service providers.
[0022] By matching the regional scope of each information recipient's information with the service scope of each information service provider, the information service provider suitable for the regional scope of the information recipient's information can be effectively determined, thereby effectively determining the target service provider and providing a basis for the subsequent use of the target service provider to send the target information.
[0023] Optionally, the step of using the regional scope of each piece of information recipient information and the service scope of each information service provider to determine a target service provider corresponding to each piece of information recipient information from a plurality of information service providers includes:
[0024] Using the regional scope of each piece of information recipient information and the service scope of each information service provider, determine the primary service provider and the backup service provider corresponding to each piece of information recipient information from the plurality of information service providers;
[0025] Obtaining the operating status of the primary service provider;
[0026] The main service provider or the backup service provider is determined as the target service provider according to the operating status of the main service provider.
[0027] By determining the main service provider and backup service provider corresponding to each message recipient from multiple information service providers, when the main service provider is abnormal, the channel of the backup service provider can be called in time to send information, ensuring the timely delivery of information, improving information delivery efficiency, and improving user experience and timeliness of information notification.
[0028] Optionally, the information sending parameters include information variable parameters, and the information variable parameters correspond one-to-one to the information of the information recipient;
[0029] The sending of the service provider template identification information and the information sending parameter to the corresponding target service provider includes:
[0030] For each information recipient information, send the service provider template identification information corresponding to the target service provider, the information recipient information, and the information variable parameters corresponding to the information recipient information to the target service provider corresponding thereto.
[0031] After obtaining each information recipient information and the corresponding information variable parameters, send the information recipient information, its corresponding information variable parameters, and the service provider template identification information to the corresponding target service provider, so that each target service provider can generate the target information of each information recipient information and complete the sending of the target information, realizing the effective generation and sending of the target information, and the sending efficiency is higher.
[0032] Optionally, it further includes:
[0033] Receive and record the sending result of the target information returned by the target service provider;
[0034] In response to the sending result being a sending failure and the number of sending failures reaching the target threshold, generate and send an alarm message.
[0035] By recording and monitoring the sending result, when the number of sending failures of the target service provider reaches the target threshold, generate and send an alarm message, so that the information sender can take corresponding measures in time to ensure the timeliness and efficiency of information sending.
[0036] Based on the same inventive concept, the present application also provides another information sending method, which is applied to the server side of an information service provider and includes:
[0037] Receive the information sending parameters and the service provider template identification information sent according to the above-mentioned information sending method;
[0038] Determine the service provider information template based on the service provider template identification information;
[0039] Generate and send the target information based on the information sending parameters and the service provider information template.
[0040] After receiving the information sending parameters and the service provider template identification information, the information service provider can use the service provider template identification information to retrieve the pre-approved and stored service provider information template, and then complete the generation and sending of the target information based on the information in the information sending parameters, thereby realizing the sending of information.
[0041] Optionally, the information sending parameters include information variable parameters and information recipient information, and the generating and sending the target information based on the information sending parameters and the service provider information template includes:
[0042] Fill the information variable parameters into the service provider information template to generate the target information;
[0043] Determine the information receiving device based on the information receiver information, and send the target information to the information receiving device.
[0044] In this way, it is possible to realize information sending by using an information service provider. Compared with building a self - built gateway or traditional communication methods, the sending stability is high, the delivery rate is higher, high concurrency can be supported, especially when batch - sending information, the processing efficiency and sending efficiency are higher.
[0045] Based on the same inventive concept, the present application also provides an information sending device, which is applied to an information sender client and includes:
[0046] An acquisition module, configured to acquire information sending parameters and general template identification information for identifying a general information template;
[0047] A first determination module, configured to determine a target service provider from multiple information service providers based on the information sending parameters;
[0048] A second determination module, configured to determine the service provider template identification information of each target service provider corresponding to the general template identification information based on the general template identification information according to a pre - constructed corresponding relationship; wherein, the corresponding relationship defines the relationship between the general template identification information and the service provider template identification information;
[0049] A sending module, configured to send the service provider template identification information and the information sending parameters to the corresponding target service provider, so that the target service provider generates and sends the target information.
[0050] Based on the same inventive concept, the present application also provides another information sending device, which is applied to the server side of an information service provider and includes:
[0051] A receiving module, configured to receive the information sending parameters and the service provider template identification information sent by the information sender client;
[0052] A template determination module, configured to determine a service provider information template based on the service provider template identification information;
[0053] An information sending module, configured to generate and send target information based on the information sending parameters and the service provider information template.
[0054] Based on the same inventive concept, the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable by the processor. When the processor executes the computer program, the above - described method is implemented.
[0055] Based on the same inventive concept, the present disclosure also provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the method as described above.
[0056] Based on the same inventive concept, the present disclosure also provides a computer program product including computer program instructions that, when run on a computer, cause the computer to execute the method as described above.
[0057] As can be seen from the above, for an information sending method and an electronic device provided by the present application, by means of a pre-constructed correspondence relationship, the relationship between the general template identification information and the service provider template identification information is specified. When it is necessary to send information using an information service provider, only the information sending parameters and the general template identification information need to be configured on the information sender client, then the target service provider is determined according to the information sending parameters, and then the service provider template identification information of the target service provider corresponding to the general template identification information is automatically obtained by using the pre-constructed correspondence relationship. It is not necessary to configure the information sending parameters and the service provider template identification information on the platforms of each target service provider one by one, which optimizes the work process and effectively improves the information sending efficiency. At the same time, when the information service provider changes, since a correspondence relationship is constructed between the general template identification information and the new information service provider, enterprise technical personnel still only need to configure according to the configuration requirements of the general information template, and do not need to configure according to the requirements of the new information service provider. This enables enterprise technical personnel to only be familiar with the general information template configuration rules and the client of their own enterprise, and can always configure the content related to information sending according to the familiar general information template configuration rules and the client of their own enterprise, which can effectively reduce the workload, improve the work efficiency, and the configuration speed is faster. At the same time, enterprise technical personnel configure the content related to information sending by using the general information template configuration rules and the client they are familiar with for a long time, and do not need to use the unfamiliar information service provider and its client, which can effectively reduce the probability of configuration errors. When the error probability is reduced and the configuration speed is increased, the improvement of the information sending efficiency can be effectively achieved. In addition, the general template identification information is constructed with a correspondence relationship with the service provider template identification information of all information service providers, which is more conducive to information sending monitoring and management.When applied to the vehicle networking system to send information to users, after each service port generates an information sending requirement, it immediately sends the information sending parameters and the general template identification information to the information sender client. Then, the information sender client sends the service provider template identification information and the information sending parameters to the corresponding target service provider, and the generation and sending of the target information can be completed. When the information service providers applicable to different users are different, there is no need to separately configure information sending according to the requirements of each information service provider in the vehicle networking system, nor do we need to separately call the ports of each information service provider for information sending configuration. Through the unified information sender client, the docking of different information service providers can be achieved, and the system runs more efficiently. At the same time, when the information service provider changes, only the correspondence between the general template identification information and the service provider template identification information of the new information service provider needs to be updated on the information sender client. There is no need to modify the information sending configuration rules in the vehicle networking system, nor to add a docking interface for the new information service provider in the vehicle networking system, which can effectively reduce the maintenance workload and operation load of the vehicle networking system. In addition, each service end uniformly generates and sends the information sending parameters and the general template identification information to the information sender client through the general SMS template configuration rules, which is more conducive to information sending monitoring and management. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solutions in the present application or related technologies, the following will briefly introduce the drawings required for use in the embodiments or related technology descriptions. Obviously, the drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0059] Figure 1 Schematic diagram of an information sending method according to an embodiment of the present application;
[0060] Figure 2 Schematic diagram of another information sending method according to an embodiment of the present application;
[0061] Figure 3 Schematic diagram of an information sending device according to an embodiment of the present application;
[0062] Figure 4 Schematic diagram of another information sending device according to an embodiment of the present application;
[0063] Figure 5 Schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0064] In order to make the objectives, technical solutions, and advantages of the present application clearer and more understandable, the following further elaborates on the present application in detail with reference to specific embodiments and the accompanying drawings.
[0065] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of this application should have the ordinary meanings understood by those of ordinary skill in the art to which this application belongs. The "first", "second" and similar terms used in the embodiments of this application do not denote any order, quantity or importance, but are only used to distinguish different components. Words such as "including" or "comprising" mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Words such as "connected" or "coupled" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Upper", "lower", "left", "right", etc. are only used to represent relative positional relationships, and when the absolute position of the object being described changes, the relative positional relationship may also change accordingly.
[0066] As described in the background art, information service providers can be used to help enterprise users send information in batches, which are widely used in scenarios such as verification codes, notifications, marketing, etc. In the prior art, there are multiple information service providers that provide information batch sending, such as Huawei, Alibaba, Tencent, NetEase, Twilio, Infobip, etc. Different information service providers build different application platforms. When it is necessary to use an information service provider to send information, various parameters related to information sending need to be configured according to its rules on its corresponding platform. In the prior art, since there are certain differences in the service areas, communication characteristics, business characteristics, etc. of each information service provider, enterprises need to connect with multiple information service providers to send information. At this time, there are many drawbacks in the configuration methods in the prior art, including at least the following:
[0067] (1) Different information service providers have different construction rules. Therefore, when changing information service providers, it is necessary to update the information configuration rules again. When there are many information service providers to be connected, multiple sets of information configuration rules will be used simultaneously, which not only increases the workload of technical personnel but also easily leads to errors. In addition, some enterprises set information sending configuration rules, platforms, etc. according to their own characteristics, and these rules and platforms usually differ from those of information service providers. Enterprise technical personnel not only need to be familiar with the configuration rules of their own enterprises but also need to learn the configuration rules of each information service provider, further increasing the workload and reducing work efficiency;
[0068] (2) When sending information in batches, the process is complex and cumbersome. When an enterprise needs to use two or more information service providers to send notification information in batches, it is first necessary to classify the recipients according to the appropriate information service providers, and then configure specific content such as information content and recipient information on the platforms of the two information service providers respectively. Even if the content of the notification information is exactly the same, it is necessary to repeat the operations on the platforms of the two information service providers. The operation is cumbersome, the process is complex, and the operation convenience is poor;
[0069] (3) It is not conducive to management. Since multiple information service providers all have their own application platforms, and the information is configured and sent on different platforms when sending information, it is not conducive to unified management and monitoring.
[0070] The efficient and timely sending of information is also particularly important in the vehicle networking system. The vehicle networking system is an intelligent transportation system that connects vehicles with the external environment, other vehicles, road infrastructure, etc. It can achieve the interconnection and interoperability between vehicles, between vehicles and road conditions, between vehicles and people, and between vehicles and things through means such as wireless communication, sensors, and computer technology, so as to improve traffic efficiency, reduce accidents, and optimize the driving experience, etc. Although the vehicle networking system can monitor the vehicle status in real time, the system often has limitations and cannot ensure that users can pay attention to the system prompts in real time. As an instant messaging tool, information has the characteristic of second-level response and can quickly convey the vehicle status information to the vehicle owner to ensure that the vehicle owner can understand the vehicle condition in the first time. For example, when the vehicle breaks down or needs maintenance, the vehicle owner can be notified by sending information to remind timely inspection, repair, maintenance, etc.; when the vehicle owner enables the security functions of the vehicle networking (such as GPS positioning, vehicle lock monitoring, etc.), if security incidents such as illegal unlocking and theft occur, the system can send information to send an alarm message to the vehicle owner; when an emergency accident (such as collision, health problem, etc.) occurs, the system can send information to notify the emergency contact or the insurance company, etc. In addition to sending notification and alarm messages, when there are new product marketing, activity promotion, etc., information can also be sent to notify customers, so as to improve the corporate image and customer satisfaction. Compared with other communication methods, information has universality, reliability, and high delivery rate, and is an effective information transmission method in the vehicle networking system, especially suitable for simple and important notifications and alarms. However, when using information service providers to send information in the vehicle networking system, there are also the problems mentioned above, which affect the information sending efficiency.
[0071] In view of this, as Figure 1 shown, the present application provides an information sending method, which is applied to the information sending party client and can effectively improve the information sending efficiency, including:
[0072] S101. Obtain information sending parameters and general template identification information used to identify a general information template;
[0073] Specifically, the information described in this article can be a short message. A short message is a service for sending short text messages through a mobile network, which has characteristics such as wide coverage and high immediacy. It can also be information with similar functions to short messages, and there is no specific limitation. Users can configure information sending parameters according to actual needs. The general template identification information can be directly determined according to the information sending parameters, or can be obtained according to user selection, and there is no specific limitation. Different types of information have different characteristics. Exemplarily, when sending verification code information, specific verification code data needs to be configured as the information sending parameter. Therefore, the verification code data can be used to determine that the information is applicable to the general information template for verification codes, and then the corresponding general template identification information can be obtained. The configuration rules of the general information template can be formulated by the actual situation of the enterprise, and there is no specific limitation.
[0074] S102. Determine a target service provider from multiple information service providers based on the information sending parameters;
[0075] Specifically, when receiving the information sending parameters, the target service provider for this information sending can be determined from multiple information service providers according to the information in the information sending parameters. The target service provider can be multiple, that is, the batch sending of this information requires multiple target service providers to jointly carry out; it can also be one, that is, the batch sending of this information is completed by one of the target service providers, and there is no specific limitation.
[0076] S103. Based on the general template identification information, determine the service provider template identification information of each target service provider corresponding to the general template identification information according to the pre-constructed corresponding relationship; wherein, the corresponding relationship stipulates the relationship between the general template identification information and the service provider template identification information;
[0077] Specifically, the pre-constructed corresponding relationship is stored in a database, such as MySQL, PostgreSQL, MariaDB, SQL Server, Oracle, etc. MySQL has the characteristics of being lightweight, having excellent performance, and being applicable to high-concurrency scenarios. PostgreSQL has stronger data consistency and transaction management capabilities. MariaDB has higher performance and a more flexible storage engine. SQLServer has transaction support and analysis capabilities. Oracle has high performance, high security, and strong consistency, etc. According to actual needs and application scenarios, an applicable database can be selected, and there is no specific limitation. In the pre-constructed corresponding relationship, each general template identification information corresponds to a unique service provider template identification information for all information service providers. Therefore, after determining the target service provider and the general template identification information, the service provider template identification information can be directly determined, providing a basis for the smooth sending of subsequent information.
[0078] S104. Send the service provider template identification information and the information sending parameters to the corresponding target service provider so that the target service provider generates and sends target information.
[0079] Specifically, after determining the service provider template identification information, call the API (Application Programming Interface) of the target service provider, and send the service provider template identification information and the information sending parameters to the target service provider through the API of the target service provider. The target service provider then generates and sends the target information by using the received service provider template identification information and the information sending parameters, completing the batch sending of information.
[0080] In this application, based on the steps of S101 - S104, since a corresponding relationship is pre - constructed to define the relationship between the general template identification information and the service provider template identification information, when it is necessary to send information using an information service provider, only the information sending parameters and the general template identification information need to be configured on the information sender's client. Then, determine the target supplier according to the information sending parameters, and then automatically obtain the service provider template identification information of the target supplier corresponding to the general template identification information by using the pre - constructed corresponding relationship. There is no need to configure the information sending parameters and the service provider template identification information on the platform of each target service provider one by one, optimizing the work process and effectively improving the information sending efficiency. At the same time, when the information service provider changes, since a corresponding relationship is constructed between the general template identification information and the new information service provider, enterprise technicians still only need to configure according to the configuration requirements of the general information template, and do not need to configure according to the requirements of the new information service provider. This enables enterprise technicians to only be familiar with the general information template configuration rules and the client of their own enterprise, and can always configure the content related to information sending according to the familiar general information template configuration rules and the client of their own enterprise, which can effectively reduce the workload, improve the work efficiency, and the configuration speed is faster. At the same time, enterprise technicians use the familiar general information template configuration rules and the client of their own enterprise to configure the content related to information sending for a long time, and do not need to use the unfamiliar information service provider and its client, which can effectively reduce the probability of configuration errors. When the error probability decreases and the configuration speed increases, the improvement of information sending efficiency can be effectively achieved. In addition, the general template identification information is constructed with the service provider template identification information of all information service providers, which is more conducive to information sending monitoring and management.
[0081] When applying this application to the vehicle networking system to send information to users, after each service port generates an information sending requirement, it immediately sends the information sending parameters and the information of the general template identification information to the information sender client. Then, the information sender client sends the service provider template identification information and the information sending parameters to the corresponding target service provider, and the generation and sending of the target information can be completed. When the information service providers applicable to different users are different, there is no need to separately configure information sending according to the requirements of each information service provider in the vehicle networking system, nor is it necessary to separately call the ports of each information service provider for information sending configuration. Through the unified information sender client, the docking of different information service providers can be achieved, and the system runs more efficiently. At the same time, when the information service provider changes, only the corresponding relationship between the general template identification information and the service provider template identification information of the new information service provider needs to be updated in the information sender client, without modifying the information sending configuration rules in the vehicle networking system, nor adding a docking interface for the new information service provider in the vehicle networking system, which can effectively reduce the maintenance workload and operation load of the vehicle networking system. In addition, each service end uniformly generates and sends the information sending parameters and the general template identification information to the information sender client through the general SMS template configuration rules, which is more conducive to information sending monitoring and management. When applying the information sending method of this application to the process of sending SMS using multiple information service providers, the foregoing technical effects can also be achieved.
[0082] Before using the information sender client to send information, it is necessary to pre - construct the corresponding relationship between the general template identification information and the service provider template identification information in the information sender client. Thus, after receiving the general template identification information, the service provider template identification information of the target service provider can be automatically obtained. In some embodiments, the method for constructing the corresponding relationship includes:
[0083] S201. Construct multiple general information templates according to the information sending requirements, and generate a unique general template identification information for each general information template;
[0084] Specifically, collect the information sending requirements of each business end, and then construct corresponding general information templates according to the corresponding information sending requirements. The general information template includes a template signature and general copywriting. The template signature is used to identify the information sender, which can be set before or after the general copywriting. Exemplarily, when sending information in the name of Great Wall Motors, the template signature can be set as "Great Wall Motors" to enable the information recipient to understand the information sender and improve the trust in the information content. The general copywriting is the main body part, including fixed fields and variable fields. The fixed fields are general content and cannot be changed. The variable fields are parts that can be dynamically replaced, which can be specifically represented by variable placeholders and will be replaced by specific values when information needs to be sent. Exemplarily, the general information template for the verification code can be expressed as:
G Enterprise
G Enterprise
[0085] S202. For each information service provider, based on the information template construction rules of the information service provider, convert each general information template into a service provider information template suitable for the information service provider respectively;
[0086] Specifically, the service provider information template also includes a template signature and general copywriting. There are certain differences in the information template construction rules of each information service provider. Taking an information service provider as an example, the variable fields in the information template of the verification code type are identified by "${TXT_10}"; while for another information service provider, the variable fields in its verification code type information template are represented by "${code}". Therefore, after the user constructs the general information template according to the enterprise's own rules, for each information service provider, use its corresponding information template construction rules to convert the general information template into a service provider information template suitable for the information service provider. Optionally, the conversion relationship between the pre-constructed general information template and the service provider information templates of each information service provider can be established, so that after the general information template is constructed, the service provider information template can be directly obtained.
[0087] Exemplarily, the general information template is expressed as "
A certain enterprise
A certain enterprise
[0088] S203. Send each of the service provider information templates to the corresponding information service provider for registration review;
[0089] Specifically, after the service provider information template is obtained by conversion, it is sent to the corresponding information service provider for registration review to check whether the template content complies with laws and regulations, service provider specifications, industry requirements, etc. After the registration review of each information service provider is successful, a unique service provider template identification information is generated for each service provider information template, the corresponding service provider information template and the service provider template identification information are stored in association, and the service provider template identification information is sent back to the information sender client.
[0090] S204. Receive the service provider template identification information returned by the information service provider after the registration review is successful, and store the general template identification information, the information service provider and the corresponding service provider template identification information in association to obtain the corresponding relationship.
[0091] Specifically, when the service provider information template passes the registration review of the information service provider, it means that the registration is successful. The information service provider then returns the service provider template identification information. The information sender client receives the service provider template identification information and stores the general template identification information, the service provider template identification information and the corresponding information service provider in association to obtain the corresponding relationship.
[0092] In this application, based on the steps of S201 to S204, after constructing the general information template and identifying information with the template, for different information service providers, according to their information template construction rules, the general information template is converted into service provider information templates applicable to each information service provider, and then all the service provider information templates are sent to the corresponding information service providers for registration review respectively. Finally, the service provider template identification information obtained after successful registration review is associated and stored with the general template identification information and the information service providers, thereby realizing the construction of the corresponding relationship, providing a basis for the automatic acquisition of the service provider template identification information in the future, and further providing a prerequisite for the efficient transmission of target information. When the information sender client needs to send information, the corresponding target service provider can be determined by obtaining the information sending parameters, and then using the constructed corresponding relationship, the service provider template identification information corresponding to the target service provider can be determined through the general template identification information. Thus, when sending information, only the information sending parameters and the general template identification information need to be obtained to achieve the effect of sending information using multiple target service providers, without the need to repeatedly configure each corresponding target service provider one by one, reducing the information sending workload and thus improving the information sending efficiency; especially when using multiple target service providers for batch information sending, the operation convenience and sending efficiency are higher.
[0093] Exemplarily, a certain enterprise client (i.e., the information sender client) has currently constructed a general information template a, and its general template identification information is a-0; currently, the information service providers connected by this enterprise are A, B, and C; according to the information template construction rules of A, B, and C, the general information template a is converted into service provider information templates a-A, a-B, and a-C applicable to A, B, and C; a-A, a-B, and a-C are respectively sent to A, B, and C for registration review, and after registration review, service provider template identification information a-A-0, a-B-0, and a-C-0 are respectively generated. The above service provider template identification information is returned to a certain enterprise client that initiated the registration review. The enterprise client associates and stores the general information template a, the information service providers A, B, C, and the service provider template identification information a-A-0, a-B-0, a-C-0 to obtain the corresponding relationship, and the corresponding relationship is shown in the following table:
[0094]
[0095] After pre - constructing the above - mentioned corresponding relationship, when an enterprise needs to send information in batches, it only needs to configure information - sending parameters and general template identification information on its client, such as general template identification information a - 0. Then, according to the information - sending parameters, determine the target service providers for this information - sending, such as A and B. Then, according to the above - mentioned corresponding relationship, obtain service - provider template identification information a - A - 0 and a - B - 0. Next, call the API interfaces of the target service providers A and B respectively, and send the corresponding information - sending parameters and service - provider template identification information a - A - 0 to the target service provider A, and send the corresponding information - sending parameters and service - provider template identification information a - B - 0 to the target service provider B. After receiving the corresponding service - provider template identification information and information - sending parameters, the target service providers A and B call the corresponding service - provider information templates according to the service - provider template identification information, so as to generate and complete the sending of the target information.
[0096] When an enterprise has multiple information - sending requirements, for the convenience of management and to improve work efficiency, after collecting the information - sending requirements, the information - sending requirements can be further classified, and then applicable general information templates can be constructed according to different classifications. In some embodiments, constructing multiple general information templates according to information - sending requirements includes:
[0097] Dividing the information - sending requirements into multiple types;
[0098] For each type of information - sending requirement, construct at least one corresponding general information template.
[0099] The application scenarios for enterprise users to send information are very extensive, so there are also many information - sending requirements. For example, account - login verification code information, transaction verification code information, new - product promotion information, new - activity promotion information, vehicle - condition notification, maintenance - situation notification, etc. In some cases, multiple information - sending requirements can be combined and applied to one general information template. For example, both account - login verification code information and transaction verification code information are used to send verification codes, so a general verification - code - type information template can be used. Therefore, before constructing general information templates, the information - sending requirements can be classified first, such as notification type, verification - code type, marketing type, etc., and then at least one corresponding general information template can be constructed for each type of information - sending requirement. Specifically, for one type of information - sending requirement, only one general information template can be constructed, or multiple general information templates can be constructed. For example, for the notification type, a general information template for vehicle - anomaly notification and a general information template for vehicle - status report can be constructed, etc., without specific limitation. By dividing the SMS - sending requirements into multiple types and then constructing general information templates accordingly, on the one hand, it is convenient for management, and on the other hand, it can reduce the workload of constructing general information templates and improve work efficiency.
[0100] The information sending parameter includes at least one piece of information recipient information. When bulk information sending is required, the information sending parameter includes multiple pieces of information recipient information. Through each piece of information recipient information, the target service provider applicable to each information recipient can be determined one by one. In some embodiments, the information sending parameter includes at least one piece of information recipient information, and determining a target service provider from multiple information service providers based on the information sending parameter includes:
[0101] Using the regional scope of each piece of information recipient information and the service scope of each information service provider, determine the target service provider corresponding to each piece of information recipient information from the multiple information service providers.
[0102] Specifically, the service scope of each information service provider is set in advance. There are certain differences in the performance characteristics, applicable scopes, signal coverage ranges, applicable scenarios, sending speeds, stabilities, etc. of existing information service providers. In practical applications, different information service providers may be selected for different regions. For example, in region E, the coverage range and signal of information service provider A are the best, while in region F, only information service provider B can meet the enterprise's needs. Therefore, the information sending service for region E is provided by information service provider A, and the information sending service for region F is provided by information service provider B. Optionally, for each information service provider, the corresponding service scope can be set in advance.
[0103] The information recipient information can be a mobile phone number, short number, virtual number, etc. When sending information to multiple devices, the information recipient information is used as the identification information of the information receiving device. For example, when the information recipient information is a mobile phone number, it means sending information to the receiving device corresponding to the mobile phone number. The regional scope can be a country, regional scope, etc. When the information recipient information is a mobile phone number and the regional scope is a country, since global mobile phone numbers generally follow the E.164 international number standard, after configuring the mobile phone number, its country can be directly obtained through the mobile phone number, and then service providers with the country in their service scope are screened from multiple information service providers as the target service providers. Optionally, the relationship between the information recipient information and the regional scope can also be constructed in advance. For example, the regional scope filled in by the information recipient when using the information recipient information for user registration can be captured as the regional scope corresponding to the information recipient information, and there is no specific limitation.
[0104] By matching the regional scope of each piece of information recipient information with the service scope of each information service provider, the information service provider applicable to the regional scope of the information recipient information can be effectively determined, realizing the effective determination of the target service provider and providing a basis for subsequent sending of target information using the target service provider.
[0105] As a third party providing information sending services, information service providers sometimes encounter service anomalies. Such anomalies are usually difficult to recover in a short period of time, which will seriously affect the timeliness of information sending. Especially for the sending of some important and time-sensitive information, such as verification code information, the delay in sending such information will seriously affect the user experience. In some embodiments, determining a target service provider corresponding to each information recipient's information from multiple information service providers by using the regional scope of each information recipient's information and the service scope of each information service provider includes:
[0106] Determining a primary service provider and a backup service provider corresponding to each information recipient's information from multiple information service providers by using the regional scope of each information recipient's information and the service scope of each information service provider;
[0107] Obtaining the operating status of the primary service provider;
[0108] Determining the primary service provider or the backup service provider as the target service provider according to the operating status of the primary service provider.
[0109] In a vehicle networking system, when sending some information such as verification code information, anomaly notifications, and status notifications, high requirements are imposed on the timeliness of the information. If the information cannot be sent in a timely manner, it may cause the corresponding user to be unable to complete the verification operation smoothly or to learn about the vehicle's anomaly information in a timely manner, which not only affects the user experience but also may prevent the user from taking timely measures, thus having an adverse impact on vehicle driving. Therefore, two information service providers can be set to provide information sending services for the same region, and on this basis, the primary service provider and the backup service provider for this region can be determined, with the primary service provider being preferred. When a target service provider needs to be determined, by matching the regional scope of each information recipient's information with the service scope of each information service provider, since there are two information service providers corresponding to each region, two eligible information service providers, namely the primary service provider and the backup service provider, can be matched according to each information recipient's information; then the operating status of the primary service provider is obtained, and a target service provider is determined from the primary service provider and the backup service provider according to the operating status of the primary service provider. Specifically, in response to the operating status of the primary service provider being normal, the primary service provider is determined as the corresponding target service provider, and in response to the operating status of the primary service provider being abnormal, the backup service provider is determined as the corresponding target service provider.
[0110] Specifically, API request failures, API connection timeouts, billing anomalies, etc. are all abnormal states. It is also possible to customize some situations as abnormal states to determine the selection of the primary service provider and the backup service provider. For example, if there has been network congestion on the same day, the number of information transmissions exceeds the predetermined frequency on the same day, or the number of information transmission failures exceeds the predetermined threshold on the same day, etc. There are no specific restrictions. By determining the primary service provider and the backup service provider corresponding to each information recipient's information from multiple information service providers, when the primary service provider is abnormal, the channel of the backup service provider can be called in a timely manner to send information, ensuring the timely sending of information, improving the information sending efficiency, improving the user experience, and the timeliness of information notification, etc.
[0111] The information sending parameters include information variable parameters, which are used to replace the variable fields in the general information template or the service provider information template. The information variable parameters are sent to the target service provider through the information sender's client to generate the target information. In some embodiments, the information sending parameters include information variable parameters, and the information variable parameters correspond one-to-one with the information recipient's information;
[0112] Sending the service provider template identification information and the information sending parameters to the corresponding target service provider includes:
[0113] For each information recipient's information, send the service provider template identification information corresponding to the target service provider, the information recipient's information, and the information variable parameters corresponding to the information recipient's information to the target service provider corresponding to the information recipient's information.
[0114] Specifically, the information variable parameters corresponding to each information recipient's information can be the same, different, or partially the same, with no specific restrictions. For example, when sending marketing information, the general information template used at this time can be "
A certain enterprise
[0115] Through the above steps, after obtaining the information of each information recipient and the corresponding information variable parameters, the information of the information recipient, its corresponding information variable parameters, and the service provider template identification information are sent to the corresponding target service provider. As a result, each target service provider can match the corresponding service provider information template according to the corresponding information variable parameters and service provider template identification information, so as to generate the target information of each information recipient. Then, the target information is sent to the receiving device corresponding to the information of the information recipient, realizing the effective sending of the target information. Multiple information service providers can be used to send information in batches at the same time, and the sending efficiency is higher.
[0116] Exemplarily, when it is necessary to send verification values to 7 mobile phone numbers using a general information template, the service provider template identification information of target service provider A corresponding to the general information template is a-A-0, and the service provider template identification information of target service provider B corresponding to the general information template is a-B-0. Obtain 7 mobile phone numbers (i.e., the information of the information recipient) and the corresponding information variable parameters (i.e., the specific verification values). Determine the corresponding target service provider according to each mobile phone number, so as to determine the service provider template identification information. The information variable parameters and service provider template identification information corresponding to each information recipient are shown in the following table:
[0117] Serial number Information of the information recipient Information variable parameter Service provider template identification information Target supplier 1 13XXXXX80 12345 a-A-0 A 2 13XXXXX81 12345 a-A-0 A 3 13XXXXX82 12345 a-B-0 B 4 13XXXXX83 54321 a-A-0 A 5 13XXXXX84 54321 a-B-0 B 6 13XXXXX85 24680 a-A-0 A 7 13XXXXX86 13579 a-B-0 B
[0118] As can be seen from the above table, the information of the information recipients with serial numbers 1, 2, 4, and 6 is sent through target service provider A, and the information of the information recipients with serial numbers 3, 5, and 7 is sent through target service provider B. Therefore, the information of the information recipients, information variable parameters, and service provider template identification information of serial numbers 1, 2, 4, and 6 are sent to target service provider A. Target service provider A then generates the target information of each information recipient according to the received information and sends the target information to the receiving device identified by the information of the information recipient; the information of the information recipients, information variable parameters, and service provider template identification information of serial numbers 3, 5, and 7 are sent to target service provider B. Target service provider B then generates the target information of each information recipient according to the received information and sends the target information to the receiving device identified by the information of the information recipient.
[0119] After the target information is sent, record the sending result of the target information and perform an alarm according to the sending result to realize the monitoring and analysis of the sending result. In some embodiments, receive and record the sending result of the target information returned by the target service provider;
[0120] In response to the sending result being a sending failure and the number of sending failures reaching the target threshold, generate and send an alarm message.
[0121] After the target service provider completes the information sending, it will return the sending result, such as sending failure, sending success, etc. Specifically, there are various reasons for the failure of sending the target information, such as errors in the information of the information recipient, network congestion of the service provider, abnormal communication signals of the recipient, and busy base stations in the recipient's home area. Optionally, the value range of the target threshold can be 5 to 20 times, such as 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 times, or it can be other value ranges, such as other values less than 5, or other values greater than 20, and there is no specific limit. By recording and monitoring the sending results, when the number of times the target service provider fails to send reaches the target threshold, an alarm message is generated and sent out so that the information sender can take corresponding measures in time to ensure the timeliness and efficiency of information sending.
[0122] Specifically, the alarm message can be sent through DingTalk, email, etc. Exemplarily, when the number of times the target information sending fails reaches the target threshold, an alarm message is generated, and the API interface of DingTalk or email is called to send the alarm message to specific personnel. The specific personnel can be the pre-set recipients of the alarm message, so that the information sender can discover the abnormality in time and handle it in time.
[0123] The information sending method provided by this application pre - constructs the correspondence relationship between the general template identification information, multiple information service providers, and the service provider template identification information. When sending information, it can be uniformly configured on the information sender's client, without the need for separate configuration on the application ports of multiple information service providers, reducing the operation process, workload, and making it more convenient for information sending and monitoring management. Especially when sending batch information, only the information of the information recipient and the corresponding information variable parameters need to be configured once on the client, and then the target service providers can be automatically determined, and the information of the information recipient, information variable parameters, and service provider template identification information required by each target service provider can be sent to the corresponding target service providers, realizing the smooth call of multiple information service providers without the need for additional separate configuration of the information of the information recipient, information variable parameters, and service provider template identification information for each information service provider, reducing the probability of configuration errors and effectively improving the information sending efficiency. The information sending method provided by this application can be applied to the vehicle - to - everything (V2X) system to send information to users. In the V2X system, when information sending requirements are generated at each service port, the information sending parameters and the information of the general template identification information are uniformly sent to the information sender's client, and then the service provider template identification information and the information sending parameters are sent by the information sender's client to the corresponding target service providers, thus completing the generation and sending of the target information. When different information service providers are applicable to different users, there is no need to separately configure information sending according to the requirements of each information service provider, nor to separately call the ports of each information service provider for information sending configuration. Through the unified information sender's client, the docking of different information service providers can be realized, and the system runs more efficiently. At the same time, when the information service provider changes, only the correspondence relationship between the general template identification information and the service provider template identification information of the new information service provider needs to be updated on the information sender's client, without the need to modify the information sending configuration rules in the V2X system, nor to add new docking interfaces for information service providers in the V2X system, which can effectively reduce the maintenance workload and operation load of the V2X system. In addition, each service end uniformly generates and sends the information sending parameters and the information of the general template identification information to the information sender's client through the general SMS template configuration rule, which is more conducive to information sending monitoring and management.
[0124] Based on the same inventive concept, as Figure 2 shown, this application also provides another information sending method, which is applied to the service end of an information service provider and includes:
[0125] S301. Receive the information sending parameters and the service provider template identification information sent by an information sending method according to any one of the foregoing embodiments;
[0126] S302. Determine the service provider information template based on the service provider template identification information;
[0127] S303. Generate and send target information based on the information sending parameters and the service provider information template.
[0128] Specifically, after receiving the information sending parameters and the service provider template identification information, the information service provider can use the service provider template identification information to retrieve the pre-audited and stored service provider information template, and then complete the generation and sending of the target information based on the information in the information sending parameters, thereby realizing the sending of information.
[0129] The short message sending parameters include information variable parameters and information recipient information. After the server of the information service provider receives the information variable parameters and the information recipient information, it generates the target information using the above information and determines the information receiving device. In some embodiments, the information sending parameters include information variable parameters and information recipient information. The generating and sending of the target information based on the information sending parameters and the service provider information template includes:
[0130] Fill the information variable parameters into the service provider information template to generate the target information;
[0131] Determine the information receiving device based on the information recipient information, and send the target information to the information receiving device.
[0132] Specifically, replace the variable fields in the service provider information template with the information variable parameters to obtain the target information. Exemplarily, the information variable parameters corresponding to the information recipient information Y are "889900" and "5", and the corresponding service provider information template is "
A certain enterprise
A certain enterprise
[0133] Before generating and sending the target information after the information service provider receives the information variable parameters and the information recipient information, it can review the information variable parameters and the information recipient information. Specifically, it can review the compliance and legality of the content, etc. When abnormalities are found, reminders can be issued to improve the accuracy of information sending, and problems can be discovered in advance for timely adjustment, thereby further improving the information sending efficiency.
[0134] After the information operator generates the target information, it can further determine the operator channel for transmitting the target information according to the information of the information recipient. The existing operator channels include China Mobile, China Unicom, China Telecom, international operators, etc. When the information service provider receives the information of the information recipient, it can determine the operator channel for finally transmitting the target information by combining the information of the information recipient and the characteristics of the operator channel. For example, when the information of the information recipient is a mobile phone number of China Mobile, China Mobile can be preferentially selected to transmit the target information; when the information of the information recipient is an international mobile phone number, the international information gateway, that is, the local operator of that country, can be preferentially selected to transmit the target information, thereby achieving higher information transmission efficiency.
[0135] It should be noted that the method of the embodiment of the present application can be executed by a single device, such as a computer or a server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In this case of a distributed scenario, one of the multiple devices can only execute one or more steps of the method of the embodiment of the present application, and these multiple devices will interact with each other to complete the described method.
[0136] It should be noted that some embodiments of the present application have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be executed in a different order than in the above embodiments and still achieve the desired result. Additionally, the processes depicted in the figures do not necessarily require the particular order or sequential order shown to achieve the desired result. In certain implementations, multitasking and parallel processing are also possible or may be advantageous.
[0137] Based on the same inventive concept, corresponding to the method of any of the above embodiments, the present application further provides an information sending device.
[0138] Refer to Figure 3 , the information sending device, which is applied to the information sender client, includes:
[0139] An obtaining module 401, configured to obtain information sending parameters and a general template identification information for identifying a general information template;
[0140] A first determining module 402, configured to determine a target service provider from multiple information service providers based on the information sending parameters;
[0141] The second determination module 403 is configured to determine, based on the general template identification information, and according to a pre-constructed corresponding relationship, the service provider template identification information of each target service provider corresponding to the general template identification information; wherein, the corresponding relationship stipulates the relationship between the general template identification information and the service provider template identification information;
[0142] The sending module 404 is configured to send the service provider template identification information and the information sending parameters to the corresponding target service provider, so that the target service provider generates and sends target information.
[0143] In some embodiments, the second determination module 403 is further configured to:
[0144] Construct a plurality of general information templates according to the information sending requirements, and generate a unique general template identification information for each general information template;
[0145] For each information service provider, based on the information template construction rules of the information service provider, convert each general information template into a service provider information template adapted to the information service provider;
[0146] Send each of the service provider information templates to the corresponding information service provider for registration review;
[0147] Receive the service provider template identification information returned by the information service provider after successful registration review, and associate and store the general template identification information, the information service provider, and the corresponding service provider template identification information to obtain the corresponding relationship.
[0148] In some embodiments, the second determination module 403 is further configured to:
[0149] Divide the information sending requirements into multiple types;
[0150] For each type of information sending requirement, construct at least one corresponding general information template.
[0151] In some embodiments, the information sending parameters include at least one piece of information recipient information, and the first determination module 402 is further configured to:
[0152] Use the regional scope of each piece of information recipient information and the service scope of each information service provider to determine the target service provider corresponding to each piece of information recipient information from multiple information service providers.
[0153] In some embodiments, the first determination module 402 is further configured to:
[0154] Determine the primary service provider and the backup service provider corresponding to each piece of information recipient information from multiple said information service providers by using the regional scope of each piece of information recipient information and the service scope of each information service provider;
[0155] Obtain the operating status of the primary service provider;
[0156] Determine the primary service provider or the backup service provider as the target service provider according to the operating status of the primary service provider.
[0157] In some embodiments, the information sending parameter includes an information variable parameter, and the information variable parameter corresponds to each piece of information recipient information one by one; the sending module 404 is further configured to:
[0158] For each piece of information recipient information, send the service provider template identification information corresponding to the target service provider, the information recipient information, and the information variable parameter corresponding to the information recipient information to the target service provider corresponding to the information recipient information.
[0159] In some embodiments, the information sending device further includes:
[0160] A storage module, configured to receive and record the sending result of the target information returned by the target service provider;
[0161] An alarm module, configured to generate and send an alarm message in response to the sending result being a sending failure and the number of sending failures reaching a target threshold.
[0162] Based on the same inventive concept, corresponding to the method in any of the above embodiments, the present application further provides another information sending device.
[0163] Reference Figure 4 , the information sending device is applied to the service end of an information service provider and includes:
[0164] A receiving module 501, configured to receive the information sending parameter and the service provider template identification information sent by the information sender client;
[0165] A template determination module 502, configured to determine a service provider information template based on the service provider template identification information;
[0166] An information sending module 503, configured to generate and send a target information based on the information sending parameter and the service provider information template.
[0167] In some embodiments, the information sending parameter includes an information variable parameter and information recipient information, and the information sending module 503 is further configured to:
[0168] Fill the information variable parameters into the service provider information template to generate the target information;
[0169] Determine the information receiving device based on the information receiver information, and send the target information to the information receiving device.
[0170] For the convenience of description, when describing the above device, various modules are described separately according to their functions. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0171] The device in the above embodiment is used to implement the corresponding information sending method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be elaborated here.
[0172] Based on the same inventive concept, corresponding to the method in any of the above embodiments, the present application also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements the information sending method described in any of the above embodiments.
[0173] Figure 5 FIG. shows a more specific schematic diagram of the hardware structure of the electronic device provided in this embodiment. The device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. Among them, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are communicatively connected to each other inside the device through the bus 1050.
[0174] The processor 1010 may be implemented in a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, etc., and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0175] The memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When implementing the technical solutions provided in the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0176] The input / output interface 1030 is used to connect to the input / output module to achieve information input and output. The input / output module can be configured as a component in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. The input devices can include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices can include a display, a speaker, a vibrator, an indicator light, etc.
[0177] The communication interface 1040 is used to connect to the communication module (not shown in the figure) to achieve communication interaction between this device and other devices. The communication module can achieve communication through a wired method (such as USB, network cable, etc.) or through a wireless method (such as mobile network, WIFI, Bluetooth, etc.).
[0178] The bus 1050 includes a path for transmitting information between various components of the device (such as the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0179] It should be noted that although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040, and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, those skilled in the art can understand that the above device may also only include the components necessary to implement the solution of the embodiments of this specification, and does not necessarily include all the components shown in the figure.
[0180] The electronic device of the above embodiment is used to implement the corresponding information sending method in any one of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be elaborated here.
[0181] Based on the same inventive concept, corresponding to the method of any of the above embodiments, the present application also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute an information sending method as described in any of the above embodiments.
[0182] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tapes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible by a computing device.
[0183] The computer instructions stored in the storage medium of the above embodiment are used to cause the computer to execute an information sending method as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be elaborated here.
[0184] Based on the same concept, corresponding to the method of any of the above embodiments, the present application also provides a computer program product, including computer program instructions. When the computer program instructions run on a computer, the computer is caused to execute the method as described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be elaborated here.
[0185] It can be understood that before using the technical solutions of the various embodiments of the present disclosure, the types, usage scopes, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner, and the user's authorization will be obtained.
[0186] For example, in response to receiving an active request from the user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be executed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application program, server, or storage medium that performs the operations of the technical solutions of the present disclosure according to the prompt message.
[0187] As an optional but non-limiting implementation manner, the way of sending a prompt message to the user in response to receiving an active request from the user can be, for example, in the form of a pop-up window. The prompt message can be presented in text in the pop-up window. In addition, the pop-up window can also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0188] It should be understood that the above-mentioned notice and the process of obtaining user authorization are only illustrative and do not limit the implementation manner of the present disclosure. Other ways that comply with relevant laws and regulations can also be applied to the implementation manner of the present disclosure.
[0189] Those of ordinary skill in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the present application is limited to these examples; under the concept of the present application, the technical features in the above embodiments or different embodiments can also be combined, and the steps can be implemented in any order, and there are many other variations in different aspects of the embodiments of the present application as described above. For the sake of brevity, they are not provided in detail.
[0190] In addition, for the sake of simplicity of description and discussion, and in order not to make the embodiments of the present application difficult to understand, the well-known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided drawings. In addition, the devices may be shown in block diagram form in order not to make the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation manner of these block diagram devices are highly dependent on the platform on which the embodiments of the present application are to be implemented (i.e., these details should be fully within the understanding of those skilled in the art). In the case where specific details (such as circuits) are set forth to describe the exemplary embodiments of the present application, it will be apparent to those skilled in the art that the embodiments of the present application can be implemented without these specific details or with variations of these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0191] Although the present application has been described in connection with specific embodiments of the present application, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art based on the foregoing description. For example, other memory architectures (such as dynamic RAM (DRAM)) can be used with the embodiments discussed.
[0192] The embodiments of the present application are intended to cover all such alternatives, modifications, and variations that fall within the broad scope of the claims of the present application. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the embodiments of the present application shall be included within the protection scope of the present application.
Claims
1. A method for sending information, characterized in that: Applied to the information sender client, including: Acquire information sending parameters and general template identification information for identifying a general information template; Determine a target service provider from a plurality of information service providers based on the information sending parameters; Based on the general template identification information, according to the pre-established correspondence relationship, determine the service provider template identification information of each target service provider corresponding to the general template identification information; wherein the correspondence relationship specifies the relationship between the general template identification information and the service provider template identification information; The service provider template identification information and the information sending parameters are sent to the corresponding target service provider, so that the target service provider generates and sends target information.
2. The information sending method according to claim 1, characterized in that: The method for constructing the corresponding relationship includes: Construct multiple general information templates according to information sending requirements, and generate unique general template identification information for each general information template; For each information service provider, a rule is constructed based on the information template of the information service provider, and each general information template is converted into a service provider information template suitable for the information service provider; Sending each of the service provider information templates to the corresponding information service provider for registration review; The service provider template identification information returned by the information service provider after successful registration review is received, and the general template identification information, the information service provider and the corresponding service provider template identification information are associated and stored to obtain the corresponding relationship.
3. The information sending method according to claim 2, characterized in that: The method of constructing multiple general information templates according to information sending requirements includes: Classifying the information sending requirements into multiple types; For each type of information sending requirement, at least one corresponding universal information template is constructed.
4. The information sending method according to claim 1, characterized in that: The information sending parameter includes at least one piece of information of an information recipient, and determining a target service provider from a plurality of information service providers based on the information sending parameter includes: By using the regional scope of each piece of information about the information recipient and the service scope of each information service provider, a target service provider corresponding to each piece of information about the information recipient is determined from a plurality of the information service providers.
5. The information sending method according to claim 4, characterized in that: The method of using the regional scope of each piece of information recipient information and the service scope of each information service provider to determine a target service provider corresponding to each piece of information recipient information from a plurality of information service providers includes: Using the regional scope of each piece of information recipient information and the service scope of each information service provider, determine the primary service provider and the backup service provider corresponding to each piece of information recipient information from the plurality of information service providers; Obtaining the operating status of the primary service provider; The main service provider or the backup service provider is determined as the target service provider according to the operating status of the main service provider.
6. The information sending method according to claim 4, characterized in that: The information sending parameters include information variable parameters, and the information variable parameters correspond one-to-one to the information of the information receiver; The sending of the service provider template identification information and the information sending parameter to the corresponding target service provider includes: For each information recipient information, the service provider template identification information corresponding to the target service provider, the information recipient information and the information variable parameters corresponding to the information recipient information are sent to the target service provider corresponding to the information recipient information.
7. The information sending method according to claim 1, characterized in that: Also includes: Receive and record the sending result of the target information returned by the target service provider; In response to the sending result being a sending failure and the number of sending failures reaching a target threshold, an alarm message is generated and issued.
8. A method for sending information, characterized in that: Applied to the server side of information service providers, including: Receiving the information sending parameter and the service provider template identification information sent by the information sending method according to any one of claims 1 to 7; Determine a service provider information template based on the service provider template identification information; Generate and send target information based on the information sending parameters and the service provider information template.
9. The information sending method according to claim 8, characterized in that: The information sending parameters include information variable parameters and information recipient information, and the generating and sending of target information based on the information sending parameters and the service provider information template includes: Filling the information variable parameters into the service provider information template to generate the target information; An information receiving device is determined based on the information recipient information, and the target information is sent to the information receiving device.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the program, it implements an information sending method as described in any one of claims 1-7, or an information sending method as described in any one of claims 8-9.