CN112954065B - Data pushing method and device, electronic equipment and storage medium - Google Patents

Data pushing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112954065B
CN112954065B CN202110216179.4A CN202110216179A CN112954065B CN 112954065 B CN112954065 B CN 112954065B CN 202110216179 A CN202110216179 A CN 202110216179A CN 112954065 B CN112954065 B CN 112954065B
Authority
CN
China
Prior art keywords
data
pushed
pushing
module
push
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110216179.4A
Other languages
Chinese (zh)
Other versions
CN112954065A (en
Inventor
林惠武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Entropy Technology Co ltd
Original Assignee
Xiamen Entropy Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Entropy Technology Co ltd filed Critical Xiamen Entropy Technology Co ltd
Priority to CN202110216179.4A priority Critical patent/CN112954065B/en
Publication of CN112954065A publication Critical patent/CN112954065A/en
Application granted granted Critical
Publication of CN112954065B publication Critical patent/CN112954065B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a data pushing method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving device data uploaded by a preset device end; converting the equipment data into service data through a preset service module; extracting a key and a data type from service data; carrying out push verification on service data according to the secret key and the data type to obtain data to be pushed; pushing data to be pushed. After receiving the device data uploaded by the preset device end, the invention converts the device data into service data carrying a secret key and a data type; therefore, the encryption condition and the pushing type of the service data can be determined according to the data type and the secret key, whether the service data is used as the data to be pushed which needs to be pushed currently or not is determined, and therefore safety and instantaneity of data pushing are achieved.

Description

Data pushing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data pushing technologies, and in particular, to a data pushing method, a data pushing device, an electronic device, and a storage medium.
Background
Data push is similar to the data callback function in the open platform, most of the open platforms have the function, but the open platforms on the market at present can only meet the subscription requirement. Resulting in the occurrence of some of the following problems.
1) When the data concurrency is large, the urgent data cannot be pushed to a third party in real time;
2) The third party user cannot autonomously determine the encryption mode and the secret key, so that the security is poor;
3) In the data pushing process, unnecessary data are easy to push to a third party together, so that the data processing pressure of the third party is increased;
4) When a certain third party occupies pushing resources due to abnormal data service receiving, the data pushing of other third parties is influenced.
Disclosure of Invention
The invention provides a data pushing method, a device, electronic equipment and a storage medium, which are used for solving the technical problems that an open platform in the prior art can only meet the subscription requirements and cannot guarantee the instantaneity and the safety of data pushing.
The data pushing method provided by the invention is applied to an open platform of cloud equipment, and comprises the following steps:
receiving device data uploaded by a preset device end;
converting the equipment data into service data through a preset service module;
extracting a key and a data type from the service data;
carrying out push verification on the service data according to the secret key and the data type to obtain data to be pushed;
pushing the data to be pushed.
Optionally, the step of pushing and verifying the service data according to the key and the data type to obtain data to be pushed includes:
inquiring corresponding application information according to the key;
detecting enabling information in the application information when the application information is queried;
when the enabling information is detected, push starting information is detected in the application information;
inquiring push setting of the service data in the application information when the push starting information is detected;
when the push setting is queried, matching the data grade corresponding to the data type, and adding the service data into a message queue corresponding to the data grade as data to be pushed.
Optionally, the step of pushing the data to be pushed includes:
extracting attribution information from the data to be pushed, and determining pushing configuration of an application corresponding to the data to be pushed according to the attribution information;
and pushing the data to be pushed to a third party terminal corresponding to the application according to the pushing configuration.
Optionally, after the step of pushing the data to be pushed to the preset third party terminal according to the pushing configuration, the method further includes:
judging whether the data to be pushed is pushed successfully or not;
if not, transferring the data to be pushed from the push queue to a preset dead letter queue, and pushing the data for the second time through the dead letter queue;
and when the secondary pushing fails, storing the data to be pushed into a preset transfer station data table, sending preset mails to the third party terminal, and triggering a timing pushing operation.
The invention also provides a data pushing device applied to the cloud equipment open platform, which comprises:
the device data receiving module is used for receiving device data uploaded by a preset device end;
the service data conversion module is used for converting the equipment data into service data through a preset service module;
a key and data type extraction module for extracting a key and a data type from the service data;
the data to be pushed generation module is used for pushing and verifying the service data according to the secret key and the data type to obtain data to be pushed;
and the pushing module is used for pushing the data to be pushed.
Optionally, the data to be pushed generating module includes:
an application information inquiry sub-module for inquiring the corresponding application information according to the key;
an enabling information detection sub-module, configured to detect enabling information in the application information when the application information is queried;
the push starting information detection sub-module is used for detecting push starting information in the application information when the starting information is detected;
a push setting inquiring sub-module, configured to inquire push setting of the service data in the application information when the push start information is detected;
and the data to be pushed generation sub-module is used for matching the data grade corresponding to the data type when the push setting is queried, and adding the service data into the message queue corresponding to the data grade to serve as the data to be pushed.
Optionally, the pushing module includes:
the pushing configuration determining submodule is used for extracting attribution information from the data to be pushed and determining pushing configuration of an application corresponding to the data to be pushed according to the attribution information;
and the pushing sub-module pushes the data to be pushed to a third party terminal corresponding to the application according to the pushing configuration.
Optionally, the apparatus further comprises:
the judging module is used for judging whether the data to be pushed is pushed successfully or not;
the secondary pushing module is used for transferring the data to be pushed from the pushing queue to a preset dead letter queue if not, and carrying out secondary pushing through the dead letter queue;
and the transfer storage module is used for storing the data to be pushed into a preset transfer station data table when the secondary pushing fails, sending preset mail to the third party terminal and triggering the timing pushing operation.
The invention also provides an electronic device comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform the data pushing method according to any of the above claims according to instructions in the program code.
The present invention also provides a computer readable storage medium for storing program code for performing the data pushing method as set forth in any one of the above.
From the above technical scheme, the invention has the following advantages: after receiving the device data uploaded by the preset device end, the invention converts the device data into service data carrying a secret key and a data type; therefore, the encryption condition and the pushing type of the service data can be determined according to the data type and the secret key, whether the service data is used as the data to be pushed which needs to be pushed currently or not is determined, and therefore safety and instantaneity of data pushing are achieved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained from these drawings without inventive faculty for a person skilled in the art.
Fig. 1 is a flowchart of a data pushing method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a data pushing method according to another embodiment of the present invention;
fig. 3 is a flowchart of a data pushing method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a data pushing device according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a data pushing method, a device, electronic equipment and a storage medium, which are used for solving the technical problems that an open platform in the prior art can only meet the subscription requirements and cannot guarantee the instantaneity and the safety of data pushing.
In order to make the objects, features and advantages of the present invention more comprehensible, the technical solutions in the embodiments of the present invention are described in detail below with reference to the accompanying drawings, and it is apparent that the embodiments described below are only some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of a data pushing method according to an embodiment of the present invention.
The invention provides a data pushing method which is applied to an open platform of cloud equipment, and specifically comprises the following steps:
step 101, receiving device data uploaded by a preset device end;
in the embodiment of the invention, the preset equipment end can be used for card punching equipment, access control equipment and the like, is used for staff attendance, access control management and the like, and can send corresponding equipment data to the cloud equipment open platform for data processing. The device data may include an attendance record, an entrance guard access record, and the like.
Step 102, converting the equipment data into service data through a preset service module;
after receiving the device data, the cloud device open platform can process the device data through the proxy server and the rule engine and then reach the service module, and the service module adds attribution information into the device data to generate service data; and then, a data pushing interface provided by the pushing center is called, and the service data is sent to the data pushing interface.
The proxy server is in charge of receiving the equipment data and authenticating the equipment data, and when the authentication is passed, the equipment data is forwarded to the rule engine; the rule engine includes operations of device data conversion and forwarding, and device data of the same kind of service is converted into a data format, for example, all attendance data is converted into the same data format.
It should be noted that there may be a plurality of service modules, such as an equipment management module, an attendance module, an access control module, and the like. Different device data may be processed by the corresponding traffic module. If the basic event information of the equipment is sent to the equipment management module for processing, the attendance record is sent to the attendance module for processing.
Step 103, extracting the key and the data type from the service data;
after the push center of the cloud device open platform receives the service data, a key (appKey) and a data type (sid) can be extracted from a message body of the service data.
Wherein, appKey is used for interface authentication and data authentication.
Step 104, pushing and verifying the service data according to the key and the data type to obtain data to be pushed;
after the key and the data type are acquired, push verification can be performed based on the key and the data type to determine data to be pushed, which meets the push requirement.
Step 105, pushing the data to be pushed.
After the data to be pushed is obtained, the data to be pushed can be pushed to the target receiving object.
After receiving the device data uploaded by the preset device end, the invention converts the device data into service data carrying a secret key and a data type; therefore, the encryption condition and the pushing type of the service data can be determined according to the data type and the secret key, whether the service data is used as the data to be pushed which needs to be pushed currently or not is determined, and therefore safety and instantaneity of data pushing are achieved.
Referring to fig. 2, fig. 2 is a flowchart illustrating a data pushing method according to another embodiment of the present invention. The method specifically comprises the following steps:
step 201, receiving device data uploaded by a preset device end;
step 202, converting the equipment data into service data through a preset service module;
step 203, extracting the key and the data type from the service data;
steps 201 to 203 are the same as steps 101 to 103, and specific reference may be made to descriptions of steps 101 to 103, which are not repeated in the embodiments of the present invention.
Step 204, pushing and verifying the service data according to the key and the data type to obtain data to be pushed;
in the embodiment of the invention, after the cloud device open platform acquires the key and the data type, the cloud device open platform can perform push verification based on the key and the data type to determine the data to be pushed which meets the push requirement.
In one example, step 204 may include the sub-steps of:
s41, inquiring corresponding application information according to the key;
s42, detecting enabling information in the application information when the application information is queried;
s43, detecting push starting information in application information when the enabling information is detected;
s44, inquiring push setting of service data in the application information when push starting information is detected;
s45, when the push setting is queried, matching the data grade corresponding to the data type, and adding the service data into a message queue corresponding to the data grade as the data to be pushed.
In a specific implementation, after a pushing center pushing an open platform of cloud equipment receives service data, firstly acquiring a service data appKey and a sid, inquiring application information of a corresponding application according to the appKey, detecting whether the application exists, if the application exists, detecting whether the application is started, if the application does not exist, ending, and if the application does not exist, detecting whether an application pushing switch is opened; if not, ending, if yes, detecting whether the application sets the push setting of the data, and specifically judging whether the push type of the open platform of the cloud device contains the data type of the service data or not; if the condition is not met, ending the flow, if the condition is met, matching the data grade corresponding to the sild of the service data, adding the service data into the message queue corresponding to the data grade as the data to be pushed, and pushing the data to be pushed in sequence according to the pushing sequence of the message queue.
In the embodiment of the invention, the application can be understood as a scene or a sandbox, and the application has the appKey and AppSecret attributes for interface authentication and data authentication.
The data grade refers to the grade defined for the urgency of the data, and different grades correspond to different push routes.
It should be noted that, the message queue may use RabbitMQ, or may use other message middleware, which is not specifically limited by the present invention.
Step 205, extracting attribution information from the data to be pushed, and determining the pushing configuration of the application corresponding to the data to be pushed according to the attribution information;
and step 206, pushing the data to be pushed to the third party terminal corresponding to the application according to the pushing configuration.
In the embodiment of the invention, after the message queue receives the data to be pushed, the application to which the data to be pushed belongs can be obtained from the message body of the data to be pushed, and the pushing configuration in the application is searched for carrying out real-time pushing.
The third party refers to a third party developer, namely an application developer accessing an open platform of the cloud device.
In a specific implementation, url needs to be assembled and a message body needs to be generated before pushing, wherein url can be composed of a basic address and signature authentication parameters, and the specification is as follows:
is? timestamp=xxxxx & nonce=xxxxx & sign=xxxxx, see table 1 for specific parameter definitions:
TABLE 1
The message body can be divided into a plaintext and a ciphertext, wherein the ciphertext is used for deciding whether to open encryption and a corresponding set key according to the requirement of a third party on data security. In one example, the entire data to be pushed may be plaintext encrypted. Its corresponding clear text message specification may be as follows:
further, after the data to be pushed is pushed, it needs to be determined whether the pushing is successful, so as to determine whether to push again, and specifically, the process may include the following steps:
step 207, judging whether the data to be pushed is successfully pushed;
step 208, if not, transferring the data to be pushed from the push queue to a preset dead message queue, and pushing the data for the second time through the dead message queue;
step 209, when the secondary pushing fails, storing the data to be pushed into a preset transfer station data table, sending a preset mail to a third party terminal, and triggering a timing pushing operation.
In the embodiment of the invention, the transfer station is used for storing the data to be pushed which is failed to be pushed and is not archived, and is used for attempting to push in the transfer validity period, so that the data loss is avoided.
In a specific implementation, when the data to be pushed is detected to be successfully pushed, the data to be pushed can be removed from the message queue; and when the data to be pushed is detected to be failed to be pushed, pushing the data to be pushed for the second time in real time. It should be noted that, to avoid that the main push queue occupies too long, the data that fails to be pushed for the first time may be selected to be added to the corresponding dead message queue for the second push. The process can avoid that a certain third party should receive data service abnormally to occupy push resources and influence the data push of other third parties.
If the secondary pushing fails, the data to be pushed can be stored in a preset transfer station data table, and a preset mail is triggered to be pushed to the third party terminal. The preset mail can be used for notifying a third party of a message of failure in sending data to be pushed. Further, to avoid that the data to be pushed which is failed to be pushed is accumulated in the data table of the transfer station for a long time, the survival period of the data in the transfer station can be set, for example, 48 hours, if the data to be pushed is not successfully pushed to the third party terminal within 48 hours, the data to be pushed can be directly archived and deleted from the transfer station. Further, the platform can choose to try to push for multiple times at fixed time in the survival period, if the pushing is successful, the platform is directly deleted from the transfer station, and if the pushing is failed, the platform still survives in the transfer station until the next pushing is successful or the storage time reaches the survival period time node. In addition, the third party may also choose to actively trigger the data to be pushed again, which is not particularly limited in the present invention.
After receiving the device data uploaded by the preset device end, the invention converts the device data into service data carrying a secret key and a data type; therefore, the encryption condition and the pushing type of the service data can be determined according to the data type and the secret key, whether the service data is used as the data to be pushed which needs to be pushed currently or not is determined, and therefore safety and instantaneity of data pushing are achieved.
It should be noted that, in the embodiment of the present invention, in order to implement data push, a third party needs to perform basic configuration. Specifically, the method comprises the following steps:
1. registering to be a developer, creating an application and obtaining a secret key;
2. entering an application setting data push related configuration, comprising the following:
a) Configuring url addresses of received data
b) Signature authentication
And setting a url request signature authentication token for illegal request filtering, and optionally configuring to decide whether to use or not by a third party.
c) Data encryption switch, setting encryption key
The configuration item is an optional configuration, a third party can carry out data encryption configuration according to the data security level requirement, select whether encryption is needed or not, and configure a corresponding encryption key, and the platform can directly agree on a fixed algorithm (such as AES128 (AES/ECB/PKCS 5 packing)), or provide an optional algorithm.
d) Pushing data items
According to the actual demands of the third party, selecting data to be pushed by the platform, and pushing the data to the third party according to the corresponding selection.
Note that: after the data push configuration is completed, the configuration is clamped in a memory DB (Redis) so as to be quickly searched in the subsequent push process, thereby improving the performance.
3. Starting a received data service;
4. and the adding device is connected with the device.
After the basic configuration is completed, the data pushing operation can be performed.
For ease of understanding, embodiments of the present invention are described below by way of specific examples:
referring to fig. 3, fig. 3 is a flowchart of a data pushing method according to an embodiment of the present invention.
When the cloud equipment open platform receives equipment data, pushing the data to be pushed to a third party in real time;
if the pushing execution result is successful, the data to be pushed is sent out of the message queue, and pushing is finished;
if the execution result of pushing is failure, trying to push in real time for the second time;
if the execution result of the second real-time pushing is successful, the data to be pushed is sent out of the message queue, and pushing is finished;
if the execution result of the second real-time pushing is failure, storing the data to be pushed into a transfer station data table;
assuming that the data survival time in the transfer station data table is 48 hours, the data to be pushed can be pushed in an attempt mode in the survival time, wherein the attempt pushing comprises irregular and fixed-point attempt pushing and manual triggering pushing by a third party;
if the execution result of the irregular and fixed-point trial pushing is successful, deleting the transfer station data table in the data to be pushed, and ending the pushing; if the execution result is failure, no processing is performed, and the next attempt pushing is waited;
if the execution result of the manual triggering pushing of the third party is successful, deleting the data to be pushed from the transfer station data table, and ending the pushing;
and if the data to be pushed is not successfully pushed in the survival period, deleting the data to be pushed from the transfer station data table, and ending the pushing.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a data pushing device according to an embodiment of the invention.
The embodiment of the invention provides a data pushing device which is applied to an open platform of cloud equipment, and the device comprises:
the device data receiving module 401 is configured to receive device data uploaded by a preset device end;
a service data conversion module 402, configured to convert the device data into service data through a preset service module;
a key and data type extraction module 403, configured to extract a key and a data type from the service data;
the to-be-pushed data generating module 404 is configured to perform push verification on the service data according to the key and the data type, so as to obtain to-be-pushed data;
and the pushing module 405 is configured to push the data to be pushed.
In the embodiment of the present invention, the data to be pushed generating module 404 includes:
an application information inquiry sub-module for inquiring the corresponding application information according to the key;
an enabling information detection sub-module, configured to detect enabling information in the application information when the application information is queried;
the push starting information detection sub-module is used for detecting push starting information in the application information when the starting information is detected;
a push setting inquiring sub-module, configured to inquire push setting of the service data in the application information when the push start information is detected;
and the data to be pushed generation sub-module is used for matching the data grade corresponding to the data type when the push setting is queried, and adding the service data into the message queue corresponding to the data grade to serve as the data to be pushed.
In the embodiment of the present invention, the pushing module 405 includes:
the pushing configuration determining submodule is used for extracting attribution information from the data to be pushed and determining pushing configuration of an application corresponding to the data to be pushed according to the attribution information;
and the pushing sub-module pushes the data to be pushed to a third party terminal corresponding to the application according to the pushing configuration.
In an embodiment of the present invention, the apparatus further includes:
the judging module is used for judging whether the data to be pushed is pushed successfully or not;
the secondary pushing module is used for transferring the data to be pushed from the pushing queue to a preset dead letter queue if not, and carrying out secondary pushing through the dead letter queue;
and the transfer storage module is used for storing the data to be pushed into a preset transfer station data table when the secondary pushing fails, sending preset mail to the third party terminal and triggering the timing pushing operation.
The embodiment of the invention also provides electronic equipment, which comprises a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the data pushing method according to any embodiment of the present invention according to the instructions in the program code.
The embodiment of the invention also provides a computer readable storage medium for storing program codes for executing the data pushing method according to any embodiment of the invention.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. The data pushing method is characterized by being applied to an open platform of cloud equipment, and comprises the following steps:
receiving device data uploaded by a preset device end;
converting the equipment data into service data through a preset service module;
extracting a key and a data type from the service data;
carrying out push verification on the service data according to the secret key and the data type to obtain data to be pushed;
pushing the data to be pushed;
the step of pushing and verifying the service data according to the key and the data type to obtain data to be pushed comprises the following steps:
inquiring corresponding application information according to the key;
detecting enabling information in the application information when the application information is queried;
when the enabling information is detected, push starting information is detected in the application information;
inquiring push setting of the service data in the application information when the push starting information is detected;
when the push setting is queried, matching the data grade corresponding to the data type, and adding the service data into a message queue corresponding to the data grade as data to be pushed.
2. The method of claim 1, wherein the step of pushing the data to be pushed comprises:
extracting attribution information from the data to be pushed, and determining pushing configuration of an application corresponding to the data to be pushed according to the attribution information;
and pushing the data to be pushed to a third party terminal corresponding to the application according to the pushing configuration.
3. The method according to claim 2, further comprising, after the step of pushing the data to be pushed to a preset third party terminal according to the pushing configuration:
judging whether the data to be pushed is pushed successfully or not;
if not, transferring the data to be pushed from the push queue to a preset dead letter queue, and pushing the data for the second time through the dead letter queue;
and when the secondary pushing fails, storing the data to be pushed into a preset transfer station data table, sending preset mails to the third party terminal, and triggering a timing pushing operation.
4. The utility model provides a data push device which characterized in that is applied to the open platform of high in the clouds equipment, the device include:
the device data receiving module is used for receiving device data uploaded by a preset device end;
the service data conversion module is used for converting the equipment data into service data through a preset service module;
a key and data type extraction module for extracting a key and a data type from the service data;
the data to be pushed generation module is used for pushing and verifying the service data according to the secret key and the data type to obtain data to be pushed;
the pushing module is used for pushing the data to be pushed;
the data to be pushed generating module comprises:
an application information inquiry sub-module for inquiring the corresponding application information according to the key;
an enabling information detection sub-module, configured to detect enabling information in the application information when the application information is queried;
the push starting information detection sub-module is used for detecting push starting information in the application information when the starting information is detected;
a push setting inquiring sub-module, configured to inquire push setting of the service data in the application information when the push start information is detected;
and the data to be pushed generation sub-module is used for matching the data grade corresponding to the data type when the push setting is queried, and adding the service data into the message queue corresponding to the data grade to serve as the data to be pushed.
5. The apparatus of claim 4, wherein the push module comprises:
the pushing configuration determining submodule is used for extracting attribution information from the data to be pushed and determining pushing configuration of an application corresponding to the data to be pushed according to the attribution information;
and the pushing sub-module pushes the data to be pushed to a third party terminal corresponding to the application according to the pushing configuration.
6. The apparatus of claim 5, wherein the apparatus further comprises:
the judging module is used for judging whether the data to be pushed is pushed successfully or not;
the secondary pushing module is used for transferring the data to be pushed from the pushing queue to a preset dead letter queue if not, and carrying out secondary pushing through the dead letter queue;
and the transfer storage module is used for storing the data to be pushed into a preset transfer station data table when the secondary pushing fails, sending preset mail to the third party terminal and triggering the timing pushing operation.
7. An electronic device, the device comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform the data pushing method of any of claims 1-3 according to instructions in the program code.
8. A computer readable storage medium, characterized in that the computer readable storage medium is for storing a program code for performing the data pushing method of any of claims 1-3.
CN202110216179.4A 2021-02-26 2021-02-26 Data pushing method and device, electronic equipment and storage medium Active CN112954065B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110216179.4A CN112954065B (en) 2021-02-26 2021-02-26 Data pushing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110216179.4A CN112954065B (en) 2021-02-26 2021-02-26 Data pushing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112954065A CN112954065A (en) 2021-06-11
CN112954065B true CN112954065B (en) 2023-12-29

Family

ID=76246376

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110216179.4A Active CN112954065B (en) 2021-02-26 2021-02-26 Data pushing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112954065B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636249A (en) * 2013-11-15 2015-05-20 中国移动通信集团公司 Generation system and method of debugging information of application program
CN105577602A (en) * 2014-10-08 2016-05-11 阿里巴巴集团控股有限公司 Data pushing method and data pushing device based on open application programming interface
CN106201585A (en) * 2016-06-28 2016-12-07 乐视控股(北京)有限公司 A kind of Notification Method and electronic equipment
WO2017113961A1 (en) * 2015-12-30 2017-07-06 努比亚技术有限公司 Data encryption apparatus and method, and storage medium
CN107911393A (en) * 2017-12-28 2018-04-13 北京明朝万达科技股份有限公司 A kind of data safety management system and method
CN108833101A (en) * 2018-09-28 2018-11-16 腾讯科技(深圳)有限公司 Data transmission method, internet of things equipment and the authentication platform of internet of things equipment
CN108876581A (en) * 2018-07-19 2018-11-23 武汉杰威鑫创软件技术有限公司 A kind of financial management system
CN109635187A (en) * 2018-11-26 2019-04-16 平安科技(深圳)有限公司 Information push method, device, computer equipment and storage medium
CN109995643A (en) * 2017-12-29 2019-07-09 中国移动通信集团河南有限公司 Business mail push method and device
CN110287041A (en) * 2019-06-28 2019-09-27 苏州亿歌网络科技有限公司 A kind of business datum sending method, device, equipment and storage medium
CN110460674A (en) * 2019-08-21 2019-11-15 中国工商银行股份有限公司 A kind of information-pushing method, apparatus and system
CN111565218A (en) * 2020-04-08 2020-08-21 深圳数联天下智能科技有限公司 Data processing method and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180039102A (en) * 2015-08-25 2018-04-17 후아웨이 테크놀러지 컴퍼니 리미티드 Method of transmitting data packets, apparatuses, systems, and node devices
US20200127859A1 (en) * 2018-10-22 2020-04-23 Ming-Tsung Chen Communication system using two kinds of keys

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636249A (en) * 2013-11-15 2015-05-20 中国移动通信集团公司 Generation system and method of debugging information of application program
CN105577602A (en) * 2014-10-08 2016-05-11 阿里巴巴集团控股有限公司 Data pushing method and data pushing device based on open application programming interface
WO2017113961A1 (en) * 2015-12-30 2017-07-06 努比亚技术有限公司 Data encryption apparatus and method, and storage medium
CN106201585A (en) * 2016-06-28 2016-12-07 乐视控股(北京)有限公司 A kind of Notification Method and electronic equipment
CN107911393A (en) * 2017-12-28 2018-04-13 北京明朝万达科技股份有限公司 A kind of data safety management system and method
CN109995643A (en) * 2017-12-29 2019-07-09 中国移动通信集团河南有限公司 Business mail push method and device
CN108876581A (en) * 2018-07-19 2018-11-23 武汉杰威鑫创软件技术有限公司 A kind of financial management system
CN108833101A (en) * 2018-09-28 2018-11-16 腾讯科技(深圳)有限公司 Data transmission method, internet of things equipment and the authentication platform of internet of things equipment
CN109635187A (en) * 2018-11-26 2019-04-16 平安科技(深圳)有限公司 Information push method, device, computer equipment and storage medium
CN110287041A (en) * 2019-06-28 2019-09-27 苏州亿歌网络科技有限公司 A kind of business datum sending method, device, equipment and storage medium
CN110460674A (en) * 2019-08-21 2019-11-15 中国工商银行股份有限公司 A kind of information-pushing method, apparatus and system
CN111565218A (en) * 2020-04-08 2020-08-21 深圳数联天下智能科技有限公司 Data processing method and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
云制造平台安全体系架构;黄爽;黄必清;;计算机集成制造系统(第04期);第851-861页 *
基于大数据分析的数字电视智能终端精准消息推送系统;李晓丽;中国优秀硕士学位论文全文数据库(信息科技辑)(第2019年第08期);I138-341 *

Also Published As

Publication number Publication date
CN112954065A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN109067724B (en) Block chain data transaction method, device, equipment and storage medium
US10135818B2 (en) User biological feature authentication method and system
EP3100171B1 (en) Client authentication using social relationship data
CN106549902B (en) Method and device for identifying suspicious users
CN109688186B (en) Data interaction method, device, equipment and readable storage medium
CN109242405B (en) Government affair processing method and device, computer equipment and readable storage medium
CN110865905A (en) Data restoration method and device, computer equipment and storage medium
CN115065561B (en) Information interaction method and system based on database data storage
CN104753674A (en) Application identity authentication method and device
CN109245902A (en) The guard method of instant messaging message authentication codes and device
CN109729000B (en) Instant messaging method and device
CN110912689A (en) Method and system for generating and verifying unique value
CN110866265A (en) Data storage method, device and storage medium based on block chain
CN109614789B (en) Terminal equipment verification method and equipment
CN111328067B (en) User information checking method, device, system, equipment and medium
KR102294918B1 (en) System and method for automatic selection of message transmission channels and deduplication of messages based on multiple blockchains
CN112954065B (en) Data pushing method and device, electronic equipment and storage medium
CN107995616B (en) User behavior data processing method and device
CN110618989B (en) Information processing method, information processing device and related products
CN112398861A (en) Encryption system and method for sensitive data in web configuration system
CN105430623A (en) Monitoring method, device and system for RCS junk message
CN110728504A (en) Data processing method, device and equipment of block chain and readable storage medium
CN108123789B (en) Method and device for analyzing security attack
CN101778055B (en) Message processing method and network entity
CN104618898A (en) Method and system for encrypting/ decrypting IP (Internet Protocol) short messages based on SMS (Short Messaging Service) over IMS (IP Multimedia Subsystem)

Legal Events

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