CN112085490A - Asynchronous charging method, device, equipment and computer readable storage medium - Google Patents
Asynchronous charging method, device, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN112085490A CN112085490A CN201910510215.0A CN201910510215A CN112085490A CN 112085490 A CN112085490 A CN 112085490A CN 201910510215 A CN201910510215 A CN 201910510215A CN 112085490 A CN112085490 A CN 112085490A
- Authority
- CN
- China
- Prior art keywords
- charging
- asynchronous
- charging request
- request
- request information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/14—Payment architectures specially adapted for billing systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0241—Advertisements
- G06Q30/0273—Determination of fees for advertising
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Economics (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Game Theory and Decision Science (AREA)
- Marketing (AREA)
- Entrepreneurship & Innovation (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides an asynchronous charging method, an asynchronous charging device, asynchronous charging equipment and a computer readable storage medium. In the method, by responding to an access request for a target material on a retrieval page, front-end equipment sends an asynchronous charging request to a charging system corresponding to the target material in an asynchronous mode and stores charging request information of the asynchronous charging request into a local storage space; if the asynchronous charging request is failed to be sent, the front-end equipment sends the asynchronous charging request to the charging system again according to the charging request information stored in the local storage space until the asynchronous charging request is successfully sent, so that the situation that the charging fails due to the failure of the asynchronous charging is avoided, the charging leakage is avoided, and the charging accuracy is improved.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an asynchronous charging method, an asynchronous charging device, an asynchronous charging apparatus, and a computer-readable storage medium.
Background
When a user clicks an advertisement link on a search engine page, the user charges through a charging system first, and then the search engine is directed to a landing page, wherein an intermediate link of interaction with the charging system exists.
At present, if a user clicks an advertisement link, a search engine needs to interact with a charging system first in a scene that the local service needs to be called or the materials in a landing page are long, and after charging is successful, the local service needs to be called or the material data in the landing page is obtained, so that long time delay exists, and the waiting time of the user is long. For example, a search engine provides a telephone dialing service, and in a scenario where the network speed is relatively slow, a user interacts with a billing system first after clicking a telephone, and then calls up a telephone dial by calling a local service, which may cause a delay of several seconds, resulting in long waiting time and poor experience for the user. Therefore, in the prior art, an asynchronous mode is mostly adopted to request charging, when a user clicks an advertisement link, a search engine calls a local service or obtains logistics data in a landing page, and an asynchronous mode is adopted to send an asynchronous charging request to a charging system.
However, in some wireless scenarios, after the local service is called or the material data in the landing page is acquired, if the asynchronous charging request is not successfully sent, the execution of calling the local service or acquiring the material data in the landing page may cause the asynchronous charging request to be unsuccessfully sent, thereby causing the charging failure and the occurrence of the condition of missed charging.
Disclosure of Invention
The invention provides an asynchronous charging method, an asynchronous charging device, asynchronous charging equipment and a computer readable storage medium, which are used for solving the problems that in the prior art, an asynchronous mode is adopted to request charging, and in some wireless scenes, after a local service is called or material data in a landing page is acquired, if the asynchronous charging request is not successfully sent, the execution of calling the local service or acquiring the material data in the landing page can cause the asynchronous charging request to be sent unsuccessfully, so that the charging fails, and the charging missing condition occurs.
In one aspect, the present invention provides an asynchronous charging method, including:
responding to an access request for a target material on a retrieval page, sending an asynchronous charging request to a charging system corresponding to the target material, and storing charging request information of the asynchronous charging request to a local storage space;
and if the asynchronous charging request is failed to be sent, the asynchronous charging request is sent to the charging system again according to the charging request information stored in the local storage space until the asynchronous charging request is successfully sent.
In another aspect, the present invention provides an asynchronous charging device, including:
the charging request processing module is used for responding to an access request of a target material on a retrieval page and sending an asynchronous charging request to a charging system corresponding to the target material;
the charging request information storage module is used for sending an asynchronous charging request to a charging system corresponding to the target material and storing the charging request information of the asynchronous charging request into a local storage space;
the charging request processing module is further configured to, if the asynchronous charging request is unsuccessfully sent, resend the asynchronous charging request to the charging system according to the charging request information stored in the local storage space until the asynchronous charging request is successfully sent.
In another aspect, the present invention provides an asynchronous charging device, including:
a memory, a processor, and a computer program stored on the memory and executable on the processor;
wherein, the processor realizes the asynchronous charging method when running the computer program.
In another aspect, the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the asynchronous charging method described above.
The asynchronous charging method, the device, the equipment and the computer readable storage medium provided by the invention respond to the access request of the target material on the retrieval page, and the front-end equipment transmits the asynchronous charging request to the charging system corresponding to the target material in an asynchronous mode and stores the charging request information of the asynchronous charging request to a local storage space; if the asynchronous charging request is failed to be sent, the front-end equipment sends the asynchronous charging request to the charging system again according to the charging request information stored in the local storage space until the asynchronous charging request is successfully sent, so that the situation that the charging fails due to the failure of the asynchronous charging is avoided, the charging leakage is avoided, and the charging accuracy is improved.
Drawings
Fig. 1 is a flowchart of an asynchronous charging method according to an embodiment of the present invention;
fig. 2 is a flowchart of an asynchronous charging method according to a second embodiment of the present invention;
fig. 3 is a flowchart of an asynchronous charging method according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an asynchronous charging apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an asynchronous charging apparatus according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an asynchronous charging device according to a seventh embodiment of the present invention.
With the above figures, certain embodiments of the invention have been illustrated and described in more detail below. The drawings and the description are not intended to limit the scope of the inventive concept in any way, but rather to illustrate it by those skilled in the art with reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The terms "first", "second", etc. referred to in the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. In the description of the following examples, "plurality" means two or more unless specifically limited otherwise.
The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Example one
Fig. 1 is a flowchart of an asynchronous charging method according to an embodiment of the present invention. The embodiment of the invention provides an asynchronous charging method aiming at the problems that in the prior art, an asynchronous mode is adopted to request charging, and in some wireless scenes, after a local service is called or material data in a landing page is acquired, if the asynchronous charging request is not sent successfully, the execution of calling the local service or acquiring the material data in the landing page can cause the sending failure of the asynchronous charging request, thereby causing the charging failure and the charging missing condition.
The method in the embodiment of the invention is applied to the front-end equipment of the retrieval system, and the retrieval system comprises the front-end equipment and the server-end equipment. The front-end device may be a computer device installed with a browser and used for providing a user interaction interface. The server device may be a server such as a search engine, and is configured to perform retrieval according to a retrieval request of a user and return a retrieval result. The front-end device can be a mobile terminal such as a smart phone and a tablet computer, and can also be a fixed terminal.
As shown in fig. 1, the method comprises the following specific steps:
step S101, responding to the access request of the target material on the retrieval page, sending an asynchronous charging request to a charging system corresponding to the target material, and simultaneously storing the charging request information of the asynchronous charging request to a local storage space.
In practical application, the retrieval system comprises front-end equipment and server-end equipment. The front-end device may be a computer device installed with a browser and used for providing a user interaction interface. The server device may be a server such as a search engine, and is configured to perform retrieval according to a retrieval request of a user and return a retrieval result.
A user can submit a retrieval request to the server-side equipment through an interactive interface provided by the front-end equipment; the server-side equipment carries out retrieval according to the retrieval request to obtain retrieval result data and feeds the retrieval result data back to the front-end equipment; and the front-end equipment displays the retrieval result data on a retrieval interface.
If the retrieval result data displayed in the retrieval interface contains target materials which are interested by the user, for example, a telephone material used for calling a telephone dial in the advertisement material data, or a link material used for requesting a larger video and/or audio resource in the advertisement material data, and the like, the user can submit an access request for the target materials to the front-end equipment by clicking the target materials and the like.
After receiving the access request for the target material on the retrieval page, the front-end device can asynchronously perform the operations of executing response processing on the access request and sending the asynchronous charging request to the corresponding charging system.
In this embodiment, after receiving an access request for a target material on a retrieval page, a front-end device sends an asynchronous charging request to a charging system corresponding to the target material, and stores charging request information of the asynchronous charging request in a local storage space.
According to the charging request information of the asynchronous charging request, the front-end device can acquire all information required for sending the asynchronous charging request, such as a communication address of a charging system corresponding to the asynchronous charging request.
Illustratively, the charging request information of the asynchronous charging request may include all information required to send the asynchronous charging request.
The local storage space is a local storage space (localstorage) of the front-end device, and data stored in the local storage space is permanently stored in the local storage space unless cleared by the front-end device.
Step S102, if the asynchronous charging request is failed to be sent, the asynchronous charging request is sent to the charging system again according to the charging request information stored in the local storage space until the asynchronous charging request is successfully sent.
After sending the asynchronous charging request to the charging system corresponding to the target material, if the asynchronous charging request fails to be sent, because the charging request information of the asynchronous charging request is already stored in the local storage space, the front-end device may obtain the charging request information of the asynchronous charging request from the local storage space, and resend the asynchronous charging request according to the charging request information.
If the retransmitted asynchronous charging request still fails to be transmitted, the front-end device may obtain the charging request information from the local storage space again, and retransmit the asynchronous charging request according to the charging request information until the asynchronous charging request corresponding to the charging request information is successfully transmitted.
In addition, when the execution opportunity of sending the asynchronous charging request is lost, the front-end equipment does not send the asynchronous charging request any more, and the stored charging request information is reserved in the local storage space. When the front-end device obtains the execution opportunity for sending the asynchronous charging request again, the front-end device can still keep the stored charging request information in the local storage space, and send the asynchronous charging request until the asynchronous charging request corresponding to the charging request information is successfully sent.
When the initialization operation of the retrieval system is executed, for example, when a user executes the operation of submitting a retrieval request or refreshing a current retrieval page, the front-end equipment obtains the execution opportunity of sending an asynchronous charging request. When the user performs an operation of exiting the retrieval, for example, entering a search engine homepage, opening other applications, and the like, jumping to other interfaces, and losing the execution opportunity of sending the asynchronous charging request.
Step S103, if the asynchronous charging request is successfully sent, the charging request information of the asynchronous charging request is deleted from the local storage space.
After sending the asynchronous charging request to the charging system corresponding to the target material, if the asynchronous charging request is successfully sent, the front-end device deletes the charging request information of the asynchronous charging request from the local storage space, so as to avoid repeated charging of access to the target material.
In the embodiment of the invention, by responding to the access request of the target material on the retrieval page, the front-end equipment transmits the asynchronous charging request to the charging system corresponding to the target material in an asynchronous mode and simultaneously stores the charging request information of the asynchronous charging request into the local storage space; if the asynchronous charging request is failed to be sent, the front-end equipment sends the asynchronous charging request to the charging system again according to the charging request information stored in the local storage space until the asynchronous charging request is successfully sent, so that the situation that the charging fails due to the failure of the asynchronous charging is avoided, the charging leakage is avoided, and the charging accuracy is improved.
Example two
Fig. 2 is a flowchart of an asynchronous charging method according to a second embodiment of the present invention. On the basis of the first embodiment, as shown in fig. 2, in this embodiment, the method specifically includes the following steps:
step S201, sending a retrieval request comprising a retrieval word to a server.
In practical application, the retrieval system comprises front-end equipment and server-end equipment. The front-end device may be a computer device installed with a browser and used for providing a user interaction interface. The server device may be a server such as a search engine, and is configured to perform retrieval according to a retrieval request of a user and return a retrieval result. The user can submit a retrieval request to the server-side equipment through an interactive interface provided by the front-end equipment.
And the server-side equipment carries out retrieval according to the retrieval request to obtain retrieval result data, and feeds the retrieval result data back to the front-end equipment. Specifically, the server side extracts and summarizes the information according to the search terms, and feeds the advertisement material data including the target material back to the front-end equipment as a search result through the search back-end database.
And S202, receiving advertisement material data including the target material fed back by the server.
And step S203, binding the asynchronous charging strategy corresponding to the target material.
And after receiving the advertisement material data including the target material fed back by the server, the front-end equipment binds the asynchronous charging strategy corresponding to the target material, so that after receiving the access request of the target material on the retrieval page, the front-end equipment executes the asynchronous charging method of the steps S206-S210 according to the asynchronous charging strategy.
The asynchronous charging policy includes configuration information for the front-end device to execute the asynchronous charging method, and includes: for which target materials access requests, the response operation to the access request and the operation of sending the asynchronous charging request need to be executed asynchronously, and so on.
For example, for advertisement material including telephone material displayed on the retrieval page, where the telephone material is the target material, the asynchronous charging policy corresponding to the binding of the telephone material by the front-end device may be implemented by the asynchronous charging policy of the binding of the telephone component, so that when the dial is called by the telephone component, the asynchronous charging method is executed.
And S204, rendering the advertisement material data, and displaying the advertisement material data on the retrieval page.
The front-end equipment renders the advertisement material data after receiving the advertisement material data including the target material fed back by the server, displays the advertisement material data on the retrieval page, enables a user to check the advertisement material data on the retrieval page, and submits an access request for the target material to the front-end equipment through operations such as clicking the target material.
It should be noted that, in this embodiment, the execution sequence of step S203 and step S204 may be exchanged, or step S203 and step S204 may be performed in parallel, and this embodiment is not limited in detail here.
And step S205, receiving an access request for the target material on the retrieval page.
In this embodiment, after receiving the access request for the target material on the retrieval page, the front-end device performs the processing procedures of step S206 and steps S207 to S210 in an asynchronous manner according to the bound asynchronous charging policy.
And S206, responding to the access request of the target material, and executing response operation of the access request.
In this embodiment, the operation of responding to the access request may be an operation of invoking a local service, or may be an operation of acquiring material data in the landing page, which is not specifically limited in this embodiment.
For example, if the target material is a telephone material in the advertisement material displayed on the search page, the user may submit an access request for the telephone material to the front-end device by clicking the telephone material on the search page if the user is interested in the advertisement material. The response operation to the access request performed by the front-end device may be an operation to call a telephone dial for telephone material.
Step S207, responding to the access request for the target material, sending an asynchronous charging request to the charging system corresponding to the target material, and storing the charging request information of the asynchronous charging request in the local storage space.
Step S208, whether the asynchronous charging request is successfully sent is determined.
In this embodiment, the step may be specifically implemented as follows:
determining whether a receiving success message fed back by a charging system is received within a preset time length; if receiving a successful receiving message fed back by the charging system within a preset time length, determining that the asynchronous charging request is successfully sent; and if the charging success message fed back by the charging system is not received in the preset time length, determining that the asynchronous charging request is failed to be sent.
The preset duration may be set by a technician according to actual needs and empirical values, and this embodiment is not specifically limited herein.
Step S209, if the asynchronous charging request fails to be sent, sending the asynchronous charging request to the charging system again according to the charging request information stored in the local storage space.
After the asynchronous charging request is retransmitted to the charging system, step S208 is performed to determine whether a reception success message fed back by the charging system is received within a preset time period.
In this embodiment, if the sending of the asynchronous charging request fails, the asynchronous charging request is sent to the charging system again according to the charging request information stored in the local storage space until the asynchronous charging request is sent successfully.
Specifically, after sending an asynchronous charging request to a charging system corresponding to a target material, if the asynchronous charging request fails to be sent, because the charging request information of the asynchronous charging request is already stored in the local storage space, the front-end device may obtain the charging request information of the asynchronous charging request from the local storage space, and resend the asynchronous charging request according to the charging request information.
If the retransmitted asynchronous charging request still fails to be transmitted, the front-end device may obtain the charging request information from the local storage space again, and retransmit the asynchronous charging request according to the charging request information until the asynchronous charging request corresponding to the charging request information is successfully transmitted.
In addition, when the execution opportunity of sending the asynchronous charging request is lost, the front-end equipment does not send the asynchronous charging request any more, and the stored charging request information is reserved in the local storage space. When the front-end device obtains the execution opportunity for sending the asynchronous charging request again, the front-end device can still keep the stored charging request information in the local storage space, and send the asynchronous charging request until the asynchronous charging request corresponding to the charging request information is successfully sent.
When the initialization operation of the retrieval system is executed, for example, when a user executes the operation of submitting a retrieval request or refreshing a current retrieval page, the front-end equipment obtains the execution opportunity of sending an asynchronous charging request. When the user performs an operation of exiting the retrieval, for example, entering a search engine homepage, opening other applications, and the like, jumping to other interfaces, and losing the execution opportunity of sending the asynchronous charging request.
Step S210, if the asynchronous charging request is successfully sent, deleting the charging request information of the asynchronous charging request from the local storage space.
After sending the asynchronous charging request to the charging system corresponding to the target material, if the asynchronous charging request is successfully sent, the front-end device deletes the charging request information of the asynchronous charging request from the local storage space, so as to avoid repeated charging of access to the target material.
The embodiment of the invention provides a detailed flow of an asynchronous charging method, wherein in response to an access request for a target material on a retrieval page, front-end equipment transmits an asynchronous charging request to a charging system corresponding to the target material in an asynchronous mode and stores charging request information of the asynchronous charging request to a local storage space; if the asynchronous charging request is failed to be sent, the front-end equipment sends the asynchronous charging request to the charging system again according to the charging request information stored in the local storage space until the asynchronous charging request is successfully sent, so that the situation that the charging fails due to the failure of the asynchronous charging is avoided, the charging leakage is avoided, and the charging accuracy is improved.
EXAMPLE III
Fig. 3 is a flowchart of an asynchronous charging method according to a third embodiment of the present invention. On the basis of the first embodiment or the second embodiment, in this embodiment, when the execution opportunity of sending the asynchronous charging request is lost, the front-end device does not send the asynchronous charging request any more, and the stored charging request information is retained in the local storage space, so as to avoid the occurrence of a missed charging situation, after the retrieval initialization operation is performed, the front-end device sends the asynchronous charging request to the corresponding charging system for all the charging request information stored in the local storage space until the asynchronous charging request corresponding to all the charging request information is successfully sent. As shown in fig. 3, the method comprises the following specific steps:
step S301, after the search initialization operation is performed, obtains the charging request information stored in the local storage space.
The retrieval initialization operation may be an operation of submitting a retrieval request, refreshing a current retrieval page, and restarting and starting retrieval. When a retrieval initialization operation is performed, for example, a user performs an operation of submitting a retrieval request or refreshing a current retrieval page, the front-end device obtains an execution opportunity of sending an asynchronous charging request.
In this embodiment, after the front-end device executes the retrieval initialization operation, it obtains an execution opportunity to send an asynchronous charging request, obtains all charging request information stored in the local storage space, and sends an asynchronous charging request to each charging request information through subsequent steps S302 to S304.
Step S302, an asynchronous charging request corresponding to the charging request information is sent to a charging system corresponding to the charging request information.
In this embodiment, according to the charging request information of the asynchronous charging request, the front-end device may obtain all information required for sending the asynchronous charging request, for example, a communication address of a charging system corresponding to the asynchronous charging request.
Illustratively, the charging request information of the asynchronous charging request may include all information required to send the asynchronous charging request.
In this step, the front-end device obtains, for each piece of charging request information obtained from the local storage space, a communication address of a charging system corresponding to the charging request information and other information required to generate an asynchronous charging request, and sends the asynchronous charging request corresponding to the charging request information to the charging system corresponding to the charging request information.
Step S303, determining whether the asynchronous charging request corresponding to the charging request information is successfully sent.
If the asynchronous charging request corresponding to the charging request information is successfully sent, step S304 is executed to delete the charging request information from the local storage space, so as to avoid repeated charging.
If the asynchronous charging request corresponding to the charging request information fails to be sent, the step S302 is executed, and the asynchronous charging request corresponding to the charging request information is sent to the corresponding charging system again according to the charging request information until the asynchronous charging request corresponding to the charging request information is successfully sent or the execution opportunity for sending the asynchronous charging request is lost.
Step S304, if the asynchronous charging request corresponding to the charging request information is successfully sent, deleting the charging request information from the local storage space.
After sending the asynchronous charging request corresponding to the charging request information to the charging system corresponding to the charging request information, if the asynchronous charging request corresponding to the charging request information is successfully sent, the front-end device deletes the charging request information from the local storage space to avoid repeated charging.
In addition, in this embodiment, when the execution opportunity of sending the asynchronous charging request is lost, the front-end device stops sending the asynchronous charging request to the charging system.
When the execution opportunity of sending the asynchronous charging request is lost, the front-end equipment does not send the asynchronous charging request any more, and the stored charging request information is reserved in the local storage space. When the front-end device obtains the execution opportunity for sending the asynchronous charging request again, the front-end device can still keep the stored charging request information in the local storage space, and send the asynchronous charging request until the asynchronous charging request corresponding to the charging request information is successfully sent.
When a retrieval initialization operation is performed, for example, a user performs an operation of submitting a retrieval request or refreshing a current retrieval page, the front-end device obtains an execution opportunity of sending an asynchronous charging request. When the user performs an operation of exiting the retrieval, for example, entering a search engine homepage, opening other applications, and the like, jumping to other interfaces, and losing the execution opportunity of sending the asynchronous charging request.
After the retrieval initialization operation is executed, the front-end equipment sends an asynchronous charging request corresponding to the charging request information to a charging system corresponding to the charging request information according to the charging request information stored in the local storage space; if the asynchronous charging request corresponding to the charging request information is successfully sent, deleting the charging request information from the local storage space; if the asynchronous charging request corresponding to the charging request information fails to be sent, the asynchronous charging request corresponding to the charging request information is sent to the corresponding charging system again according to the charging request information until the asynchronous charging request corresponding to the charging request information is successfully sent, so that the situation of charging failure caused by the asynchronous charging sending failure can be avoided, the charging leakage can be avoided, and the charging accuracy is improved.
Example four
Fig. 4 is a schematic structural diagram of an asynchronous charging apparatus according to a fourth embodiment of the present invention. The asynchronous charging device provided by the embodiment of the invention can execute the processing flow provided by the asynchronous charging method embodiment. As shown in fig. 4, the asynchronous charging device 40 includes: a charging request processing module 401 and a charging request information storage module 402.
Specifically, the charging request processing module 401 is configured to send an asynchronous charging request to a charging system corresponding to a target material in response to an access request for the target material on a retrieval page.
The charging request information storage module 402 is configured to store the charging request information of the asynchronous charging request in the local storage space while sending the asynchronous charging request to the charging system corresponding to the target material.
The charging request processing module 401 is further configured to, if the asynchronous charging request is failed to be sent, send the asynchronous charging request to the charging system again according to the charging request information stored in the local storage space until the asynchronous charging request is successfully sent.
Optionally, the charging request information storage module 402 is further configured to:
and if the asynchronous charging request is successfully sent, deleting the charging request information of the asynchronous charging request from the local storage space.
The apparatus provided in the embodiment of the present invention may be specifically configured to execute the method embodiment provided in the first embodiment, and specific functions are not described herein again.
In the embodiment of the invention, by responding to the access request of the target material on the retrieval page, the front-end equipment transmits the asynchronous charging request to the charging system corresponding to the target material in an asynchronous mode and simultaneously stores the charging request information of the asynchronous charging request into the local storage space; if the asynchronous charging request is failed to be sent, the front-end equipment sends the asynchronous charging request to the charging system again according to the charging request information stored in the local storage space until the asynchronous charging request is successfully sent, so that the situation that the charging fails due to the failure of the asynchronous charging is avoided, the charging leakage is avoided, and the charging accuracy is improved.
EXAMPLE five
Fig. 5 is a schematic structural diagram of an asynchronous charging apparatus according to a fifth embodiment of the present invention. On the basis of the fourth embodiment, in this embodiment, as shown in fig. 5, the asynchronous charging device 40 further includes: a retrieval processing module 403.
Specifically, the retrieval processing module 403 is configured to:
sending a retrieval request comprising a retrieval word to a server; receiving advertisement material data including target materials fed back by a server; rendering the advertisement material data and displaying the advertisement material data on the retrieval page.
Optionally, the retrieval processing module 403 is further configured to:
and binding the asynchronous charging strategy corresponding to the target material.
Optionally, the asynchronous charging device 40 further includes: a response processing module 404.
The response processing module 404 is configured to:
and responding to the access request of the target material, and executing response operation of the access request.
Optionally, the charging request processing module 401 is further configured to:
determining whether a receiving success message fed back by a charging system is received within a preset time length; if receiving a successful receiving message fed back by the charging system within a preset time length, determining that the asynchronous charging request is successfully sent; and if the charging success message fed back by the charging system is not received in the preset time length, determining that the asynchronous charging request is failed to be sent.
The apparatus provided in the embodiment of the present invention may be specifically configured to execute the method embodiment provided in the second embodiment, and specific functions are not described herein again.
In the embodiment of the invention, by responding to the access request of the target material on the retrieval page, the front-end equipment transmits the asynchronous charging request to the charging system corresponding to the target material in an asynchronous mode and simultaneously stores the charging request information of the asynchronous charging request into the local storage space; if the asynchronous charging request is failed to be sent, the front-end equipment sends the asynchronous charging request to the charging system again according to the charging request information stored in the local storage space until the asynchronous charging request is successfully sent, so that the situation that the charging fails due to the failure of the asynchronous charging is avoided, the charging leakage is avoided, and the charging accuracy is improved.
EXAMPLE six
On the basis of the fourth embodiment or the fifth embodiment, in this embodiment, the charging request processing module 401 is further configured to:
after the retrieval initialization operation is executed, according to the charging request information stored in the local storage space, an asynchronous charging request corresponding to the charging request information is sent to a charging system corresponding to the charging request information;
and if the asynchronous charging request corresponding to the charging request information fails to be sent, the asynchronous charging request corresponding to the charging request information is sent to the corresponding charging system again according to the charging request information until the asynchronous charging request corresponding to the charging request information is successfully sent.
Accordingly, the charging request information storage module 402 is further configured to:
and if the asynchronous charging request corresponding to the charging request information is successfully sent, deleting the charging request information from the local storage space.
Optionally, the charging request processing module 401 is further configured to:
and when the execution opportunity for sending the asynchronous charging request is lost, stopping sending the asynchronous charging request to the charging system.
The apparatus provided in the embodiment of the present invention may be specifically configured to execute the method embodiment provided in the third embodiment, and specific functions are not described herein again.
After the retrieval initialization operation is executed, the front-end equipment sends an asynchronous charging request corresponding to the charging request information to a charging system corresponding to the charging request information according to the charging request information stored in the local storage space; if the asynchronous charging request corresponding to the charging request information is successfully sent, deleting the charging request information from the local storage space; if the asynchronous charging request corresponding to the charging request information fails to be sent, the asynchronous charging request corresponding to the charging request information is sent to the corresponding charging system again according to the charging request information until the asynchronous charging request corresponding to the charging request information is successfully sent, so that the situation of charging failure caused by the asynchronous charging sending failure can be avoided, the charging leakage can be avoided, and the charging accuracy is improved.
EXAMPLE seven
Fig. 6 is a schematic structural diagram of an asynchronous charging device according to a seventh embodiment of the present invention. As shown in fig. 6, the asynchronous charging apparatus includes: a processor 601, a memory 602, and computer programs stored on the memory 602 and executable by the processor 601.
The processor 601, when executing the computer program stored on the memory 602, implements the asynchronous charging method provided by any of the method embodiments described above.
In the embodiment of the invention, by responding to the access request of the target material on the retrieval page, the front-end equipment transmits the asynchronous charging request to the charging system corresponding to the target material in an asynchronous mode and simultaneously stores the charging request information of the asynchronous charging request into the local storage space; if the asynchronous charging request is failed to be sent, the front-end equipment sends the asynchronous charging request to the charging system again according to the charging request information stored in the local storage space until the asynchronous charging request is successfully sent, so that the situation that the charging fails due to the failure of the asynchronous charging is avoided, the charging leakage is avoided, and the charging accuracy is improved.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the asynchronous charging method provided in any of the above method embodiments is implemented.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (11)
1. An asynchronous charging method, comprising:
responding to an access request for a target material on a retrieval page, sending an asynchronous charging request to a charging system corresponding to the target material, and storing charging request information of the asynchronous charging request to a local storage space;
and if the asynchronous charging request is failed to be sent, the asynchronous charging request is sent to the charging system again according to the charging request information stored in the local storage space until the asynchronous charging request is successfully sent.
2. The method of claim 1, wherein after sending the asynchronous charging request to the charging system, further comprising:
and if the asynchronous charging request is successfully sent, deleting the charging request information of the asynchronous charging request from a local storage space.
3. The method of claim 2, wherein after sending the asynchronous charging request to the charging system, further comprising:
determining whether a receiving success message fed back by the charging system is received within a preset time length;
if receiving a successful receiving message fed back by the charging system within a preset time length, determining that the asynchronous charging request is successfully sent;
and if the charging success message fed back by the charging system is not received in the preset time length, determining that the asynchronous charging request is failed to be sent.
4. The method of claim 2, further comprising:
after the retrieval initialization operation is executed, sending an asynchronous charging request corresponding to the charging request information to a charging system corresponding to the charging request information according to the charging request information stored in the local storage space;
if the asynchronous charging request corresponding to the charging request information is successfully sent, deleting the charging request information from the local storage space;
and if the asynchronous charging request corresponding to the charging request information fails to be sent, sending the asynchronous charging request corresponding to the charging request information to a corresponding charging system again according to the charging request information until the asynchronous charging request corresponding to the charging request information is successfully sent.
5. The method according to any one of claims 1-4, further comprising:
and when the execution opportunity for sending the asynchronous charging request is lost, stopping sending the asynchronous charging request to the charging system.
6. The method of claim 1, further comprising:
responding to the access request of the target material, and executing response operation of the access request.
7. The method of claim 1, further comprising:
sending a retrieval request comprising a retrieval word to a server;
receiving advertisement material data including the target material fed back by the server;
rendering the advertisement material data, and displaying the advertisement material data on the retrieval page.
8. The method according to claim 7, wherein after receiving the advertisement material data including the target material fed back by the server, further comprising:
and binding the asynchronous charging strategy corresponding to the target material.
9. An asynchronous charging apparatus, comprising:
the charging request processing module is used for responding to an access request of a target material on a retrieval page and sending an asynchronous charging request to a charging system corresponding to the target material;
the charging request information storage module is used for sending an asynchronous charging request to a charging system corresponding to the target material and storing the charging request information of the asynchronous charging request into a local storage space;
the charging request processing module is further configured to, if the asynchronous charging request is unsuccessfully sent, resend the asynchronous charging request to the charging system according to the charging request information stored in the local storage space until the asynchronous charging request is successfully sent.
10. An asynchronous charging device, comprising:
a memory, a processor, and a computer program stored on the memory and executable on the processor;
wherein the processor, when executing the computer program, implements the method of any of claims 1 to 8.
11. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910510215.0A CN112085490A (en) | 2019-06-13 | 2019-06-13 | Asynchronous charging method, device, equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910510215.0A CN112085490A (en) | 2019-06-13 | 2019-06-13 | Asynchronous charging method, device, equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112085490A true CN112085490A (en) | 2020-12-15 |
Family
ID=73733240
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910510215.0A Pending CN112085490A (en) | 2019-06-13 | 2019-06-13 | Asynchronous charging method, device, equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112085490A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20010002929A (en) * | 1999-06-18 | 2001-01-15 | 김영환 | demand method for pay of asynchronous data call |
CN106204136A (en) * | 2016-07-08 | 2016-12-07 | 合网络技术(北京)有限公司 | A kind of advertisement delivery system and advertisement placement method |
CN106294719A (en) * | 2016-08-08 | 2017-01-04 | 百度在线网络技术(北京)有限公司 | Information display method and device |
CN107040563A (en) * | 2016-02-04 | 2017-08-11 | 阿里巴巴集团控股有限公司 | Asynchronous service processing method and server |
CN107729559A (en) * | 2017-11-08 | 2018-02-23 | 携程旅游网络技术(上海)有限公司 | Method, system, equipment and the storage medium of data base read-write asynchronous access |
-
2019
- 2019-06-13 CN CN201910510215.0A patent/CN112085490A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20010002929A (en) * | 1999-06-18 | 2001-01-15 | 김영환 | demand method for pay of asynchronous data call |
CN107040563A (en) * | 2016-02-04 | 2017-08-11 | 阿里巴巴集团控股有限公司 | Asynchronous service processing method and server |
CN106204136A (en) * | 2016-07-08 | 2016-12-07 | 合网络技术(北京)有限公司 | A kind of advertisement delivery system and advertisement placement method |
CN106294719A (en) * | 2016-08-08 | 2017-01-04 | 百度在线网络技术(北京)有限公司 | Information display method and device |
CN107729559A (en) * | 2017-11-08 | 2018-02-23 | 携程旅游网络技术(上海)有限公司 | Method, system, equipment and the storage medium of data base read-write asynchronous access |
Non-Patent Citations (1)
Title |
---|
杨泽凡;龙琼;文其仁;: "一种基于JSR172的无线异步Web服务", 湘潭大学自然科学学报, no. 04, pages 28 - 33 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106649640B (en) | Instant search method and device | |
CN109582655B (en) | Method and device for positioning system log and computer readable storage medium | |
CN109002249B (en) | Method, storage medium, device and system for realizing continuous shooting of gifts through long-press gesture | |
CN110971757B (en) | Method, device, equipment and medium for adding WeChat friends from telephone application | |
CN108122124B (en) | Information pushing method, platform and system | |
CN111010527A (en) | Method and related device for establishing video call through short message link | |
CN112818336A (en) | Data access method, data access device and computer readable storage medium | |
CN111666199B (en) | Debugging method executed on intelligent terminal and software debugger | |
CN108959393B (en) | Dynamic picture processing method, device and storage medium | |
CN113328821A (en) | Instruction synchronization method, server and system | |
CN104320766A (en) | Spam short message identification method, device and equipment | |
CN109218272A (en) | Media content method for pushing, device, server, system and storage medium | |
CN110858238B (en) | Data processing method and device | |
CN112085490A (en) | Asynchronous charging method, device, equipment and computer readable storage medium | |
CN113541981A (en) | Member management method and system for network slices | |
CN110708386A (en) | Page display method, terminal device and server | |
EP2869544A1 (en) | Call processing method and device | |
CN107562469B (en) | Title bar data display method and system | |
CN109618307A (en) | Weather information display method, device, system, terminal and readable storage medium | |
CN112115518B (en) | Service data verification method and device | |
CN107220818B (en) | Online payment method and device | |
CN104346228A (en) | Application program sharing method and terminal | |
CN111784427B (en) | Product information processing method and device based on electronic shelf and storage medium | |
KR20130082937A (en) | System for providing push service to developer's application and method thereof | |
CN108347403B (en) | Method and device for distributing intermediate communication identification |
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 |