CN-121996505-A - Calling terminal detection method, device, equipment, medium and product
Abstract
The application relates to the technical field of computers and discloses a calling terminal detection method, a device, equipment, a medium and a product, wherein the method comprises the steps of responding calling terminal operation initiated by a calling terminal to a target terminal and acquiring a calling terminal triggered callback method; generating a callback method sequence corresponding to the call-end operation according to each callback method which is triggered by the call-end in turn, and determining an operation state corresponding to the call-end operation according to the callback method sequence. The application can detect the operation state after the calling terminal by analyzing the callback method sequence of the calling terminal, and can finish the detection of the calling terminal without acquiring the system layer information, namely without applying special system authority. In addition, the method only needs to monitor the callback method of the calling end, can be applied to different calling ends, can realize general detection, and is stronger in robustness.
Inventors
- YANG CHENGYONG
- CHEN JINHAI
Assignees
- 杭州网易云音乐科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20251231
Claims (10)
- 1. A method for detecting a calling end, the method comprising: responding to call-end operation initiated by a call-end to a target end, and acquiring a call-back method triggered by the call-end; generating a callback method sequence corresponding to the calling terminal operation according to each callback method which is triggered by the calling terminal in sequence; and determining an operation state corresponding to the call-end operation according to the callback method sequence.
- 2. The method of claim 1, wherein the obtaining, in response to the call-end operation initiated by the call-end to the target end, the call-end triggered callback method includes: responding to calling terminal operation initiated by the calling terminal to the target terminal, and entering a monitoring state; And monitoring a callback method triggered by the calling end in a preset time period.
- 3. The method of claim 1, wherein the determining, according to the callback method sequence, an operation state corresponding to the call-side operation includes: and under the condition that the first callback method in the callback method sequence is a pause method, determining an operation state corresponding to the calling terminal operation according to the second callback method in the callback method sequence.
- 4. The method of claim 3, wherein the determining the operation state corresponding to the call-side operation according to the second callback method in the callback method sequence comprises: Under the condition that a second callback method does not exist in the callback method sequence, determining that the operation state corresponding to the calling terminal operation is that a system popup window is displayed and is not operated; a second callback method exists in the callback method sequence, and under the condition that the second callback method is a stopping method, the operation state corresponding to the calling terminal operation is determined to be that a system popup window is displayed and allowed operation is triggered; and under the condition that a second callback method exists in the callback method sequence and the second callback method is a result return method, determining the operation state corresponding to the calling terminal operation as triggering refusal operation.
- 5. The method of claim 3, wherein in the case that the second callback method exists in the callback method sequence and the second callback method is a result return method, determining the operation state corresponding to the call-side operation is to trigger a rejection operation, including: Determining a time interval between the second callback method and the first callback method under the condition that the second callback method exists in the callback method sequence and is a result return method; If the time interval is longer than the preset duration, determining that the operation state corresponding to the calling terminal operation is that a system popup window is displayed and a refusal operation is triggered; If the time interval is smaller than the preset duration, determining that the operation state corresponding to the calling terminal operation is that a system popup window is not displayed and the refusal operation is triggered by default.
- 6. The method of claim 1, wherein the determining, according to the callback method sequence, an operation state corresponding to the call-side operation includes: and under the condition that the first callback method in the callback method sequence is a result return method, determining that the operation state corresponding to the calling terminal operation is that a system popup window is not displayed and the allowed operation is triggered by default.
- 7. A call-end detection device, the device comprising: the acquisition module is used for responding to calling terminal operation initiated by a calling terminal to a target terminal and acquiring a callback method triggered by the calling terminal; The sequence generation module is used for generating a callback method sequence corresponding to the calling terminal operation according to each callback method which is triggered by the calling terminal in sequence; and the processing module is used for determining the operation state corresponding to the calling terminal operation according to the callback method sequence.
- 8. An electronic device, comprising: A memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the evoked terminal detection method of any of claims 1-6.
- 9. A computer-readable storage medium having stored thereon computer instructions for causing a computer to perform the evoked terminal detection method of any of claims 1 to 6.
- 10. A computer program product comprising computer instructions for causing a computer to perform the method of detecting a call end as claimed in any one of claims 1 to 6.
Description
Calling terminal detection method, device, equipment, medium and product Technical Field The application relates to the technical field of computers, in particular to a calling terminal detection method, a device, equipment, a medium and a product. Background In mobile application ecology, collaborative work between applications (i.e. "application call end") is a key technology to enhance user experience and achieve functional complementation. For example, an e-commerce application may invoke a third party payment application in a payment link, a content sharing function may invoke a social media application, and so on. When application a (i.e., the calling end) needs to evoke application B (i.e., the evoked target end), the most common form is to pop up a "system pop-up window" requesting authorization from the user, which will actually evoke application B when the user allows it. For business parties (such as advertising, user pulling, cross-application diversion and other scenes), it is important to determine and master the display condition of a system popup window and the operation states of interaction behaviors and the like of the user. Disclosure of Invention In view of this, the present application provides a method, apparatus, device, medium and product for detecting a call-end, so as to be able to determine a corresponding operation state after initiating the call-end. In a first aspect, the present application provides a method for detecting a calling end, where the method includes: responding to call-end operation initiated by a call-end to a target end, and acquiring a call-back method triggered by the call-end; generating a callback method sequence corresponding to the calling terminal operation according to each callback method which is triggered by the calling terminal in sequence; and determining an operation state corresponding to the call-end operation according to the callback method sequence. In some optional embodiments, the obtaining, in response to an call-end operation initiated by a call end to a target end, a callback method triggered by the call end includes: responding to calling terminal operation initiated by the calling terminal to the target terminal, and entering a monitoring state; And monitoring a callback method triggered by the calling end in a preset time period. In some optional embodiments, the determining, according to the callback method sequence, an operation state corresponding to the call-side operation includes: and under the condition that the first callback method in the callback method sequence is a pause method, determining an operation state corresponding to the calling terminal operation according to the second callback method in the callback method sequence. In some optional embodiments, the determining, according to the second callback method in the callback method sequence, an operation state corresponding to the call-end operation includes: Under the condition that a second callback method does not exist in the callback method sequence, determining that the operation state corresponding to the calling terminal operation is that a system popup window is displayed and is not operated; a second callback method exists in the callback method sequence, and under the condition that the second callback method is a stopping method, the operation state corresponding to the calling terminal operation is determined to be that a system popup window is displayed and allowed operation is triggered; and under the condition that a second callback method exists in the callback method sequence and the second callback method is a result return method, determining the operation state corresponding to the calling terminal operation as triggering refusal operation. In some optional embodiments, in the case that the second callback method exists in the callback method sequence and the second callback method is a result return method, determining the operation state corresponding to the call end operation is to trigger a rejection operation, including: Determining a time interval between the second callback method and the first callback method under the condition that the second callback method exists in the callback method sequence and is a result return method; If the time interval is longer than the preset duration, determining that the operation state corresponding to the calling terminal operation is that a system popup window is displayed and a refusal operation is triggered; If the time interval is smaller than the preset duration, determining that the operation state corresponding to the calling terminal operation is that a system popup window is not displayed and the refusal operation is triggered by default. In some optional embodiments, the determining, according to the callback method sequence, an operation state corresponding to the call-side operation includes: and under the condition that the first callback method in the callback method sequence is a result re