CN110569639B - Application program equipment activation method and device based on asynchronous processing - Google Patents

Application program equipment activation method and device based on asynchronous processing Download PDF

Info

Publication number
CN110569639B
CN110569639B CN201910777311.1A CN201910777311A CN110569639B CN 110569639 B CN110569639 B CN 110569639B CN 201910777311 A CN201910777311 A CN 201910777311A CN 110569639 B CN110569639 B CN 110569639B
Authority
CN
China
Prior art keywords
request
activation
application program
user
equipment
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
CN201910777311.1A
Other languages
Chinese (zh)
Other versions
CN110569639A (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.)
Wheel Interconnection Technology Shanghai Co ltd
Original Assignee
Shanghai Yidianshikong Network 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 Shanghai Yidianshikong Network Co Ltd filed Critical Shanghai Yidianshikong Network Co Ltd
Priority to CN201910777311.1A priority Critical patent/CN110569639B/en
Publication of CN110569639A publication Critical patent/CN110569639A/en
Application granted granted Critical
Publication of CN110569639B publication Critical patent/CN110569639B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses an application program equipment activation method and device based on asynchronous processing. The method comprises the steps of receiving an application program starting request through an application program starting interface configured by a first user, wherein the application program starting request is a request for starting the application program; identifying parameter information in the application program starting request through the application program starting interface; inquiring in a preset database according to the parameter information, wherein the preset database is a database of equipment to be activated; and judging whether to send a device activation request to a second user according to the query result, wherein the device activation request is a request for activating the device for installing the application program. The method and the device solve the technical problem that the activation method of the application program installation equipment in the related technology cannot guarantee the consistency of the data of both the benefit parties. Through the method and the device, the technical effect of ensuring the consistency of the activation data of the benefit parties is achieved.

Description

Application program equipment activation method and device based on asynchronous processing
Technical Field
The present application relates to the field of data processing technologies, and in particular, to an application device activation method and apparatus based on asynchronous processing.
Background
Asynchronous processing is the processing of problems according to unsynchronized programs. Asynchronous processing is opposed to synchronous processing, which results in them being multi-threaded or multi-process. The benefit of asynchronous processing is increased device utilization, thereby improving sequence operating efficiency macroscopically.
In the related technology, the channel popularization of application programs (APP) is mainly performed by advertisers, statistical data are provided by the advertisers for inquiry and account checking, and certain fairness is lacked. In this case, the interests of the advertiser are hardly secured, and there may be official disputes. As an advertiser, in order to establish a long-term mutual trust cooperative relationship with a partner, a set of complete, fair and reliable advertiser cooperative system is necessary to be established, uniform access service is provided for all advertisers, and fair transaction performance of both parties is ensured on the premise of ensuring data safety and reliability, so that a harmonious and reliable Internet channel popularization access platform is created.
Aiming at the problem that the activation method of the application program installation equipment in the related technology cannot ensure the consistency of data of both benefit parties, no effective solution is provided at present.
Disclosure of Invention
The application mainly aims to provide an application program equipment activation method and device based on asynchronous processing, so as to solve the problem that the data consistency of both benefit parties cannot be guaranteed by the application program installation equipment activation method in the related art.
To achieve the above object, according to one aspect of the present application, there is provided an application device activation method based on asynchronous processing.
The application program device activation method based on asynchronous processing comprises the following steps: receiving an application program starting request through an application program starting interface configured by a first user, wherein the application program starting request is a request for starting the application program; identifying parameter information in the application program starting request through the application program starting interface; inquiring in a preset database according to the parameter information, wherein the preset database is a database of equipment to be activated; and judging whether to send a device activation request to a second user according to the query result, wherein the device activation request is a request for activating the device for installing the application program.
Further, the determining whether to send the device activation request to the second user according to the query result includes: if parameter information of the equipment is inquired in a preset database, recording the state of the equipment as a state to be activated; delivering the parameter information of the equipment to be activated to an asynchronous queue; and acquiring an activation result of the equipment to be activated.
Further, the determining whether to send the device activation request to the second user according to the query result includes: when the query result accords with a preset activation rule, acquiring an activation result of the equipment to be activated; and setting the state of the equipment to be an activated state according to the activation result.
Further, the determining whether to send the device activation request to the second user according to the query result includes: calling back the activation result of the equipment to a second user; receiving a response result of the second user; and judging whether callback is needed again according to the response result of the second user.
Further, after the determining whether to send the device activation request to the second user according to the query result, the method further includes: receiving a data statistics request through a data statistics interface configured by the first user, wherein the data statistics request refers to an interface for requesting statistics data by the first user or the second user; counting the data in the database according to a preset counting rule according to the data counting request; and displaying the statistical result according to different dimensions.
In order to achieve the above object, according to another aspect of the present application, there is provided an application device activation apparatus based on asynchronous processing.
The application program equipment activating device based on asynchronous processing comprises: the device comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving an application program starting request through an application program starting interface configured by a first user, and the application program starting request is a request for starting the application program; the identification module is used for identifying the parameter information in the application program starting request through the application program starting interface; the query module is used for querying in a preset database according to the parameter information, wherein the preset database is a database of the equipment to be activated; and the first judgment module is used for judging whether to send a device activation request to the second user according to the query result, wherein the device activation request is a request for activating the device for installing the application program.
Further, the first determining module includes: the recording unit is used for recording the state of the equipment as a state to be activated if parameter information of the equipment is inquired in a preset database; the delivery unit is used for delivering the parameter information of the equipment to be activated to the asynchronous queue; a first obtaining unit, configured to obtain an activation result of the device to be activated.
Further, the first determining module includes: the second obtaining unit is used for obtaining the activation result of the equipment to be activated when the query result accords with a preset activation rule; and the setting unit is used for setting the state of the equipment into an activated state according to the activation result.
Further, still include: the callback module is used for calling back the activation result of the equipment to the second user; the second receiving module is used for receiving the response result of the second user; and the second judgment module is used for judging whether callback is needed again according to the response result of the second user.
Further, still include: a third receiving module, configured to receive a data statistics request through a data statistics interface configured by the first user, where the data statistics request refers to an interface where the first user or the second user requests statistics data; the statistical module is used for carrying out statistics on the data in the database according to a preset statistical rule according to the data statistical request; and the display module is used for displaying the statistical result according to different dimensions.
In the embodiment of the application, an application program starting request is received through an application program starting interface configured by a first user, wherein the application program starting request is a request for starting the application program; identifying parameter information in the application program starting request through the application program starting interface; and inquiring in a preset database according to the parameter information, wherein the preset database is a database of equipment to be activated, and judging whether to send an equipment activation request to a second user or not according to an inquiry result, wherein the equipment activation request is a request for activating equipment for installing the application program, so that the aim of activating the equipment between the first user and the second user is fulfilled, the technical effect of ensuring the consistency of the activated data of both parties of interest is realized, and the technical problem that the consistency of the data of both parties of interest cannot be ensured by an activation method of the application program installation equipment in the related art is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, serve to provide a further understanding of the application and to enable other features, objects, and advantages of the application to be more apparent. The drawings and their description illustrate the embodiments of the invention and do not limit it. In the drawings:
FIG. 1 is a flowchart illustrating a method for activating an application device based on asynchronous processing according to a first embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for activating an application device based on asynchronous processing according to a second embodiment of the present application;
FIG. 3 is a flowchart illustrating an asynchronous processing based application device activation method according to a third embodiment of the present application;
FIG. 4 is a flowchart illustrating a method for activating an application device based on asynchronous processing according to a fourth embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a component structure of an asynchronous processing-based application device activation method according to a fifth embodiment of the present application;
fig. 6 is a schematic structural diagram of an application device activation apparatus based on asynchronous processing according to a first embodiment of the present application;
FIG. 7 is a schematic diagram illustrating the structure of an apparatus for activating an application device based on asynchronous processing according to a second embodiment of the present application;
fig. 8 is a schematic diagram of a component structure of an application device activation apparatus based on asynchronous processing according to a third embodiment of the present application; and
fig. 9 is a schematic diagram of a configuration of an application device activation apparatus based on asynchronous processing according to a fourth embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
According to an embodiment of the present invention, there is provided an application device activation method based on asynchronous processing, as shown in fig. 1, the method includes the following steps S101 to S104:
step S101, an application program starting request is received through an application program starting interface configured by a first user, wherein the application program starting request is a request for starting the application program.
An application scenario of the embodiment of the present application may be an activation process of an application installation device provided by an advertiser terminal that provides an application program (APP) and an advertiser terminal that advertises the APP, where in the embodiment of the present application, the advertiser terminal and the advertiser terminal correspond to a first user and a second user, respectively. In the APP channel promotion in the related technology, usually, an advertiser end is taken as a main part, statistical data are provided for query and account checking services by the advertiser, certain fairness is lacked, and data between the advertiser and the advertiser are difficult to keep consistent, so that in order to solve the problems of fairness of data transaction between the advertiser and data consistency and the like, the embodiment of the application provides an application program equipment activation method based on asynchronous processing, and by establishing a data access platform between the advertiser and the advertiser, synchronization and consistency of activation data are realized, and benefits of both parties are maintained.
During specific implementation, if the user installs the APP of the advertiser through the channel of the advertiser, the APP can be called to the server interface of the advertiser corresponding to the APP when the APP is started. The advertiser can select a plurality of interfaces in advance to bury the points, namely, the application program starting interfaces are configured to monitor and receive application program starting requests sent by users of APP using terminals.
And step S102, identifying parameter information in the application program starting request through the application program starting interface.
In specific implementation, after receiving an APP start request sent by a user of an APP user terminal, further identifying device information included in the start request, such as device number information of the user of the terminal.
Step S103, inquiring in a preset database according to the parameter information, wherein the preset database is a database of the equipment to be activated.
In specific implementation, the REDIS database is constructed in advance, the REDIS is a high-performance key-value database, master-slave synchronization is supported, and data query efficiency can be improved by storing in a REDIS set mode. Preferably, the value of the parameter APP is used as the key of the REDIS set. That is to say, the device number information of all the devices to be activated, which has been reported by the APP, is stored in each APP set. The method can greatly improve the success rate of parameter reporting and avoid the instability of a single reporting interface, namely if the system parameter of one interface is not reported successfully, other interfaces are likely to report successfully.
Preferably, the parameter information, such as device number information and application ID information, is queried in a preset REDIS database, and the REDIS database may use the value of the parameter app and the current month as the key of the database, that is, the device number to be activated each month is stored in a set of REDIS, and the REDIS set to store data, so that the query efficiency of the activation data can be improved.
And step S104, judging whether to send a device activation request to the second user according to the query result, wherein the device activation request is a request for activating the device for installing the application program.
In specific implementation, if the parameter information in the APP start request is queried in the preset REDIS database, the parameter information in the start request is considered as data to be activated, the device corresponding to the parameter information is a device of an application program to be activated, and a device activation request can be sent to a second user to activate the device to be activated; if the parameter information in the starting request is not inquired in the preset REDIS database, the parameter information in the starting request is considered not to be the data to be activated, the equipment corresponding to the parameter information is not the equipment of the application program to be activated, and the equipment activation cannot be carried out.
As a preferred implementation manner of the embodiment of the present application, as shown in fig. 2, the determining whether to send the device activation request to the second user according to the query result includes steps S201 to S203 as follows:
step S201, if the parameter information of the device is queried in a preset database, recording the state of the device as a to-be-activated state.
In specific implementation, if the parameter information in the APP start request is queried in the preset REDIS database, the parameter information in the start request is considered to be data to be activated, the device corresponding to the parameter information is a device of an application program to be activated, and the device state corresponding to the parameter information is recorded as a state to be activated.
Step S202, the parameter information of the device to be activated is delivered to the asynchronous queue.
In specific implementation, the parameter information in the equipment to be activated is delivered to the asynchronous processing queue for processing, and the asynchronous queue processing program completes the equipment activation operation.
Step S203, obtaining an activation result of the device to be activated.
In specific implementation, the activation result comprises a successful activation result and a failed activation result, and whether the device is successfully activated or not and whether reactivation is required or not when activation fails is determined by obtaining the activation result of the device to be activated.
As a preferred implementation manner of the embodiment of the present application, as shown in fig. 3, the determining whether to send the device activation request to the second user according to the query result includes steps S301 to S302 as follows:
step S301, when the query result accords with the preset activation rule.
In specific implementation, the preset activation rule may be: (1) judging whether the equipment corresponding to the equipment number in the current request is in a state to be activated or not; (2) and if the time of the equipment number reported by the data exceeds half an hour, the equipment number is regarded as invalid activation. And if the equipment number in the current request passes the detection rules of the previous two steps, further acquiring the activation result of the equipment to be activated.
Step S302, setting the state of the equipment to be an activated state according to the activation result.
In specific implementation, the activation result includes a successful activation result and a failed activation result, and when the acquired activation result is a successful activation result, the device state corresponding to the device number is set as the activation state.
As a preferred implementation manner of the embodiment of the present application, as shown in fig. 4, after determining whether to send the device activation request to the second user according to the query result, the following steps S401 to S403 are included:
step S401, the activation result of the equipment is called back to the second user.
In specific implementation, after the device state corresponding to the device number is set to the activation state, the callback URL of the activation record is called back to a second user, i.e., an advertiser terminal, preferably by an http request, where the callback URL includes at least one ID identifier capable of querying the device number.
Step S402, receiving the response result of the second user.
In specific implementation, when the callback notification sent by the first user is successfully received, the information of the to-be-activated device number stored in the REDIS database before being queried by the device number identifier carried in the callback URL is preset, then the corresponding recorded state is set to be the activated state, and meanwhile, an identifier response of successful activation is returned to the second user, namely the advertiser.
And step S403, judging whether to call back again according to the response result of the second user.
In specific implementation, if the response result received by the advertiser is the response with failed activation, the advertiser tries to call back again, after failing to retry for N times, the advertiser stops retrying, and meanwhile, the callback state of the current device number is marked as the callback failed state. If the response result received by the advertiser is the response which is successfully activated, the callback is not needed, and the callback state of the current equipment number is marked as the callback successful state.
As a preferred implementation manner of the embodiment of the present application, as shown in fig. 5, after determining whether to send the device activation request to the second user according to the query result, the method further includes steps S501 to S503 as follows:
step S501, receiving a data statistics request through a data statistics interface configured by the first user, where the data statistics request refers to an interface where the first user or the second user requests statistics data.
In particular, it is preferable that the first user, i.e. the advertiser, configures the data statistics interface, and receives a data statistics request from the advertiser or the advertiser through the data statistics interface.
And step S502, counting the data in the database according to a preset counting rule according to the data counting request.
In specific implementation, an advertiser or an advertiser may count the activation details of each advertiser channel according to the channel, and specifically may perform data statistics according to dimensions such as a channel, an activation state, a reporting time, and an activation time.
And step S503, displaying the statistical result according to different dimensions.
During specific implementation, the statistical data can be displayed in a form of a table, condition filtering can be set, a data export function is provided, and diversified statistical requirements of users are met.
Preferably, the activation records and the activation results are all stored in the blockchain network, so that the subsequent dispute evidence obtaining work is facilitated, and fair transactions between advertisers and advertisers are realized. Specifically, when entering a two-party settlement period, the advertiser will provide each advertiser with a query background, and each advertiser may only allow querying its own records. The advertiser can then derive its own record for comparison with its own locally activated record. If the error of the comparison result is within the acceptable range agreed by the two parties, the confirmation is successful. Otherwise, the advertiser can propose objection to the advertiser, trigger the block chain forensics process of the advertiser, and finally give the final compensation and judgment result through the block chain forensics network.
From the above description, it can be seen that the present invention achieves the following technical effects: (1) and (3) high-efficiency treatment: the collection and activation of the device number are realized by adopting a mode of REDIS set storage and asynchronous queue processing, and the reliability of data processing can be ensured while the high-efficiency request is ensured. (2) The configuration is flexible: in the access platform of the advertiser, once the standard access step is appointed, a plurality of advertiser channels can be conveniently docked; the advertiser of each channel can be conveniently docked and the related data can be counted only by configuring new channel information. (3) Intelligent dispute resolution: by using the block chain forensics technology, a fair and fair data verification method can be provided for dispute problems of the two activated metering parties, and the economic benefits of the two parties are ensured.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
According to an embodiment of the present invention, there is also provided an apparatus for implementing the above method for activating an application device based on asynchronous processing, as shown in fig. 6, the apparatus includes: the device comprises a first receiving module 1, an identification module 2, an inquiry module 3 and a first judgment module 4.
The first receiving module 1 in the embodiment of the present application is configured to receive an application start request through an application start interface configured by a first user, where the application start request is a request for starting an application.
An application scenario of the embodiment of the present application may be an activation process of an application installation device provided by an advertiser terminal that provides an application program (APP) and an advertiser terminal that advertises the APP, where in the embodiment of the present application, the advertiser terminal and the advertiser terminal correspond to a first user and a second user, respectively. In the APP channel promotion in the related technology, usually, an advertiser end is taken as a main part, statistical data are provided for query and account checking services by the advertiser, certain fairness is lacked, and data between the advertiser and the advertiser are difficult to keep consistent, so that in order to solve the problems of fairness of data transaction between the advertiser and data consistency and the like, the embodiment of the application provides an application program equipment activation method based on asynchronous processing, and by establishing a data access platform between the advertiser and the advertiser, synchronization and consistency of activation data are realized, and benefits of both parties are maintained.
During specific implementation, if the user installs the APP of the advertiser through the channel of the advertiser, the APP can be called to the server interface of the advertiser corresponding to the APP when the APP is started. The advertiser can select a plurality of interfaces in advance to bury the points, namely, the application program starting interfaces are configured to monitor and receive application program starting requests sent by users of APP using terminals.
The identification module 2 in the embodiment of the application is configured to identify parameter information in the application start request through the application start interface.
In specific implementation, after receiving an APP start request sent by a user of an APP user terminal, further identifying device information included in the start request, such as device number information of the user of the terminal.
The query module 3 of the embodiment of the application is configured to query in a preset database according to the parameter information, where the preset database is a database of a device to be activated.
In specific implementation, the REDIS database is constructed in advance, the REDIS is a high-performance key-value database, master-slave synchronization is supported, and data query efficiency can be improved by storing in a REDIS set mode. Preferably, the value of the parameter APP is used as the key of the REDIS set. That is to say, the device number information of all the devices to be activated, which has been reported by the APP, is stored in each APP set. The method can greatly improve the success rate of parameter reporting and avoid the instability of a single reporting interface, namely if the system parameter of one interface is not reported successfully, other interfaces are likely to report successfully.
Preferably, the parameter information, such as device number information and application ID information, is queried in a preset REDIS database, and the REDIS database may use the value of the parameter app and the current month as the key of the database, that is, the device number to be activated each month is stored in a set of REDIS, and the REDIS set to store data, so that the query efficiency of the activation data can be improved.
The first determining module 4 in the embodiment of the application is configured to determine whether to send a device activation request to the second user according to a query result, where the device activation request is a request for activating a device for installing the application.
In specific implementation, if the parameter information in the APP start request is queried in the preset REDIS database, the parameter information in the start request is considered as data to be activated, the device corresponding to the parameter information is a device of an application program to be activated, and a device activation request can be sent to a second user to activate the device to be activated; if the parameter information in the starting request is not inquired in the preset REDIS database, the parameter information in the starting request is considered not to be the data to be activated, the equipment corresponding to the parameter information is not the equipment of the application program to be activated, and the equipment activation cannot be carried out.
As a preferred implementation manner of the embodiment of the present application, as shown in fig. 7, the first determining module 4 includes: a recording unit 41, a delivery unit 42 and a first acquisition unit 43.
The recording unit 41 of the embodiment of the present application is configured to record the state of the device as a to-be-activated state if parameter information of the device is queried in a preset database.
In specific implementation, if the parameter information in the APP start request is queried in the preset REDIS database, the parameter information in the start request is considered to be data to be activated, the device corresponding to the parameter information is a device of an application program to be activated, and the device state corresponding to the parameter information is recorded as a state to be activated.
The delivery unit 42 of the embodiment of the present application is configured to deliver the parameter information of the device to be activated to the asynchronous queue.
In specific implementation, the parameter information in the equipment to be activated is delivered to the asynchronous processing queue for processing, and the asynchronous queue processing program completes the equipment activation operation.
The first obtaining unit 43 in this embodiment of the application is configured to obtain an activation result of the device to be activated.
In specific implementation, the activation result comprises a successful activation result and a failed activation result, and whether the device is successfully activated or not and whether reactivation is required or not when activation fails is determined by obtaining the activation result of the device to be activated.
As a preferred implementation manner of the embodiment of the present application, as shown in fig. 7, the first determining module 4 includes: a second acquisition unit 44 and a setting unit 45.
The second obtaining unit 44 in this embodiment is configured to obtain an activation result of the device to be activated when the query result meets a preset activation rule.
In specific implementation, the preset activation rule may be: (1) judging whether the equipment corresponding to the equipment number in the current request is in a state to be activated or not; (2) and if the time of the equipment number reported by the data exceeds half an hour, the equipment number is regarded as invalid activation. And if the equipment number in the current request passes the detection rules of the previous two steps, further acquiring the activation result of the equipment to be activated.
The setting unit 45 in this embodiment of the application is configured to set the state of the device to the activated state according to the activation result.
In specific implementation, the activation result includes a successful activation result and a failed activation result, and when the acquired activation result is a successful activation result, the device state corresponding to the device number is set as the activation state.
As a preferred implementation manner of the embodiment of the present application, as shown in fig. 8, the method further includes: a callback module 5, a second receiving module 6 and a second judging module 7.
The callback module 5 of the embodiment of the application is configured to call back the activation result of the device to the second user.
In specific implementation, after the device state corresponding to the device number is set to the activation state, the callback URL of the activation record is called back to a second user, i.e., an advertiser terminal, preferably by an http request, where the callback URL includes at least one ID identifier capable of querying the device number.
The second receiving module 6 in the embodiment of the present application is configured to receive a response result of the second user.
In specific implementation, when the callback notification sent by the first user is successfully received, the information of the to-be-activated device number stored in the REDIS database before being queried by the device number identifier carried in the callback URL is preset, then the corresponding recorded state is set to be the activated state, and meanwhile, an identifier response of successful activation is returned to the second user, namely the advertiser.
The second determining module 7 in the embodiment of the application is configured to determine whether to call back again according to the response result of the second user.
In specific implementation, if the response result received by the advertiser is the response with failed activation, the advertiser tries to call back again, after failing to retry for N times, the advertiser stops retrying, and meanwhile, the callback state of the current device number is marked as the callback failed state. If the response result received by the advertiser is the response which is successfully activated, the callback is not needed, and the callback state of the current equipment number is marked as the callback successful state.
As a preferred implementation manner of the embodiment of the present application, as shown in fig. 9, the method further includes: a third receiving module 8, a statistical module 9 and a presentation module 10.
The third receiving module 8 in this embodiment is configured to receive a data statistics request through a data statistics interface configured by the first user, where the data statistics request refers to an interface where the first user or the second user requests statistics data.
In particular, it is preferable that the first user, i.e. the advertiser, configures the data statistics interface, and receives a data statistics request from the advertiser or the advertiser through the data statistics interface.
The statistical module 9 in the embodiment of the application is configured to perform statistics on the data in the database according to the data statistics request and a preset statistical rule.
In specific implementation, an advertiser or an advertiser may count the activation details of each advertiser channel according to the channel, and specifically may perform data statistics according to dimensions such as a channel, an activation state, a reporting time, and an activation time.
The display module 10 of the embodiment of the application is configured to display the statistical result according to different dimensions.
During specific implementation, the statistical data can be displayed in a form of a table, condition filtering can be set, a data export function is provided, and diversified statistical requirements of users are met.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may alternatively be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (8)

1. An application program device activation method based on asynchronous processing is characterized by comprising the following steps:
receiving an application program starting request through an application program starting interface configured by a first user, wherein the application program starting request is a request for starting the application program;
identifying parameter information in the application program starting request through the application program starting interface, wherein the parameter information comprises equipment information;
inquiring in a preset database according to the parameter information, wherein the preset database is a database of equipment to be activated; the method comprises the steps that a REDIS database is built in advance, data storage is carried out in a REDIS set mode, the value of a parameter APP is used as a key of the REDIS set, and all device number information of devices to be activated, reported by the APP, is stored in each APP set; inquiring the parameter information in a preset REDIS database, wherein the REDIS database takes the value of a parameter APP and the current year and month as keys of the database, the number of the equipment to be activated in each month is stored in a set of REDIS, and data storage is carried out in a REDIS set form;
judging whether to send a device activation request to a second user according to the query result, wherein the device activation request is a request for activating a device for installing the application program;
after judging whether to send the device activation request to the second user according to the query result, the method further comprises the following steps:
receiving a data statistics request through a data statistics interface configured by the first user, wherein the data statistics request refers to an interface for requesting statistics data by the first user or the second user;
counting the data in the database according to a preset counting rule according to the data counting request; the preset statistical rule can carry out data statistics according to the dimensions of channels, activation states, reporting time and activation time;
and displaying the statistical result according to different dimensions.
2. The asynchronous processing based application program device activation method as claimed in claim 1, wherein the determining whether to send a device activation request to the second user according to the query result comprises:
if parameter information of the equipment is inquired in a preset database, recording the state of the equipment as a state to be activated;
delivering the parameter information of the equipment to be activated to an asynchronous queue;
and acquiring an activation result of the equipment to be activated.
3. The asynchronous processing based application program device activation method as claimed in claim 1, wherein the determining whether to send a device activation request to the second user according to the query result comprises:
when the query result accords with a preset activation rule, acquiring an activation result of the equipment to be activated;
and setting the state of the equipment to be an activated state according to the activation result.
4. The asynchronous processing based application program device activation method as claimed in claim 1, wherein the determining whether to send the device activation request to the second user according to the query result comprises:
calling back the activation result of the equipment to a second user;
receiving a response result of the second user;
and judging whether callback is needed again according to the response result of the second user.
5. An apparatus for activating an application device based on asynchronous processing, comprising:
the device comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving an application program starting request through an application program starting interface configured by a first user, and the application program starting request is a request for starting the application program;
the identification module is used for identifying parameter information in the application program starting request through the application program starting interface, wherein the parameter information comprises equipment information;
the query module is used for querying in a preset database according to the parameter information, wherein the preset database is a database of the equipment to be activated; the method comprises the steps that a REDIS database is built in advance, data storage is carried out in a REDIS set mode, the value of a parameter APP is used as a key of the REDIS set, and all device number information of devices to be activated, reported by the APP, is stored in each APP set; inquiring the parameter information in a preset REDIS database, wherein the REDIS database takes the value of a parameter APP and the current year and month as keys of the database, the number of the equipment to be activated in each month is stored in a set of REDIS, and data storage is carried out in a REDIS set form;
the first judgment module is used for judging whether to send a device activation request to a second user according to the query result, wherein the device activation request is a request for activating the device for installing the application program;
further comprising:
a third receiving module, configured to receive a data statistics request through a data statistics interface configured by the first user, where the data statistics request refers to an interface where the first user or the second user requests statistics data;
the statistical module is used for carrying out statistics on the data in the database according to a preset statistical rule according to the data statistical request; the preset statistical rule can carry out data statistics according to the dimensions of channels, activation states, reporting time and activation time;
and the display module is used for displaying the statistical result according to different dimensions.
6. The asynchronous processing based application device activation apparatus of claim 5, wherein the first determination module comprises:
the recording unit is used for recording the state of the equipment as a state to be activated if parameter information of the equipment is inquired in a preset database;
the delivery unit is used for delivering the parameter information of the equipment to be activated to the asynchronous queue;
a first obtaining unit, configured to obtain an activation result of the device to be activated.
7. The asynchronous processing based application device activation apparatus of claim 5, wherein the first determination module comprises:
the second obtaining unit is used for obtaining the activation result of the equipment to be activated when the query result accords with a preset activation rule;
and the setting unit is used for setting the state of the equipment into an activated state according to the activation result.
8. The asynchronous processing based application device activation apparatus of claim 5, further comprising:
the callback module is used for calling back the activation result of the equipment to the second user;
the second receiving module is used for receiving the response result of the second user;
and the second judgment module is used for judging whether callback is needed again according to the response result of the second user.
CN201910777311.1A 2019-08-21 2019-08-21 Application program equipment activation method and device based on asynchronous processing Active CN110569639B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910777311.1A CN110569639B (en) 2019-08-21 2019-08-21 Application program equipment activation method and device based on asynchronous processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910777311.1A CN110569639B (en) 2019-08-21 2019-08-21 Application program equipment activation method and device based on asynchronous processing

Publications (2)

Publication Number Publication Date
CN110569639A CN110569639A (en) 2019-12-13
CN110569639B true CN110569639B (en) 2022-04-05

Family

ID=68774316

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910777311.1A Active CN110569639B (en) 2019-08-21 2019-08-21 Application program equipment activation method and device based on asynchronous processing

Country Status (1)

Country Link
CN (1) CN110569639B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112632474B (en) * 2020-12-28 2022-06-14 亿咖通(湖北)技术有限公司 Vehicle-mounted machine software and hardware activation method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107846511A (en) * 2017-10-30 2018-03-27 深圳市金立通信设备有限公司 A kind of method, terminal and computer-readable recording medium for accessing moving advertising
CN107886370A (en) * 2017-11-29 2018-04-06 四川长虹电器股份有限公司 Ad system and method and advertisement placement method based on internet-based control Android device
CN108920323A (en) * 2018-06-08 2018-11-30 广州优视网络科技有限公司 Using data statistical approach, device and mobile terminal
CN109447691A (en) * 2018-09-30 2019-03-08 上海恺英网络科技有限公司 Tracking and equipment are launched in advertisement
CN109547280A (en) * 2018-09-17 2019-03-29 微梦创科网络科技(中国)有限公司 A kind of monitoring method of data activation, system and device
CN109949062A (en) * 2017-12-20 2019-06-28 北京京东尚科信息技术有限公司 Application software Extension Software Platform confirmation method and device, storage medium, electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9130943B1 (en) * 2013-03-11 2015-09-08 Ca, Inc. Managing communications between client applications and application resources of on-premises and cloud computing nodes
CN108388655A (en) * 2018-03-02 2018-08-10 北京腾云天下科技有限公司 A kind of the channel monitoring method and computing device of application activating
CN109743358B (en) * 2018-12-13 2022-10-21 平安普惠企业管理有限公司 Asynchronous message interface fusing control method and device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107846511A (en) * 2017-10-30 2018-03-27 深圳市金立通信设备有限公司 A kind of method, terminal and computer-readable recording medium for accessing moving advertising
CN107886370A (en) * 2017-11-29 2018-04-06 四川长虹电器股份有限公司 Ad system and method and advertisement placement method based on internet-based control Android device
CN109949062A (en) * 2017-12-20 2019-06-28 北京京东尚科信息技术有限公司 Application software Extension Software Platform confirmation method and device, storage medium, electronic equipment
CN108920323A (en) * 2018-06-08 2018-11-30 广州优视网络科技有限公司 Using data statistical approach, device and mobile terminal
CN109547280A (en) * 2018-09-17 2019-03-29 微梦创科网络科技(中国)有限公司 A kind of monitoring method of data activation, system and device
CN109447691A (en) * 2018-09-30 2019-03-08 上海恺英网络科技有限公司 Tracking and equipment are launched in advertisement

Also Published As

Publication number Publication date
CN110569639A (en) 2019-12-13

Similar Documents

Publication Publication Date Title
CN106548402B (en) Resource transfer monitoring method and device
WO2019006654A1 (en) Financial self-service equipment maintenance dispatch generation method, hand-held terminal and electronic device
EP3489825A1 (en) Method, apparatus and computer readable storage medium for processing service
CN103295069A (en) Public resource appointment-making management system
CN108306776B (en) Information prompting method, device and system and computer readable storage medium
CN108366176A (en) A kind of charging method of terminal applies, apparatus and system
CN110569639B (en) Application program equipment activation method and device based on asynchronous processing
CN111382008A (en) Virtual machine data backup method, device and system
EP4293602A1 (en) Registration and execution methods and apparatuses of timed smart contract in blockchain
CN108241693B (en) Method and device for synchronizing data
CN107888690A (en) The statistical method and system of response time
CN110298001B (en) Method and device for acquiring log data packet and computer readable storage medium
CN113839978A (en) Charging method based on charging platform, electronic equipment and storage medium
CN115510035A (en) Log data processing method, device, equipment and storage medium
CN110087232A (en) A kind of call processing method based on smart machine, device and server
CN110569640B (en) Data access configuration method and device based on asynchronous processing
CN108924013B (en) Network flow accurate acquisition method and device
CN109388527B (en) Method for confirming operation validity, data processing method, device and equipment
CN111191199B (en) Voice information acquisition method and device, storage medium and electronic device
CN110555036A (en) data repetition eliminating method and device based on asynchronous processing
CN109828797A (en) Capture service processes management method and relevant device
WO2016180094A1 (en) Iptv service processing method, iptv service platform and system
CN108196903A (en) The configuration modification method and device of book self-help equipment
CN111836243B (en) Information processing method, system and equipment
CN111917633B (en) Message sending method, sending device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 200125, Room 325, 3rd Floor, Unit 2, No. 231, Shibocun Road, China (Shanghai) Pilot Free Trade Zone, Pudong New Area, Shanghai

Patentee after: Wheel interconnection technology (Shanghai) Co.,Ltd.

Address before: 200125 Room 501, 5 / F, building 3, 3601 Dongfang Road, Pudong New Area, Shanghai

Patentee before: SHANGHAI YIDIAN SPACE NETWORK Co.,Ltd.