Order payment equipment determination method and device, equipment and medium
By obtaining the payment time of ToB orders and the login information of related devices, determining the target device information for paying ToB orders, the problem that media platforms cannot obtain payment device information is solved, and more effective operation strategies and advertising delivery are achieved.
Patent Information
- Application Number
- CN202411491486.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-24
- Publication Date
- 2025-03-18
AI Technical Summary
When the purchase of ToB orders occurs outside the media platform, the media platform cannot obtain information about the payment device, resulting in the inability to effectively formulate operational strategies and advertising.
By responding to the activation operation of the ToB order, the order payment time is obtained, and the login information of multiple devices logged into the target platform account before and after that time is obtained. Based on the time distance between the login time and the order payment time, the target device information for paying the ToB order is determined from the multiple device information.
It realizes that when ToB order payment behavior occurs, the information of the payment device is accurately determined, thereby helping the media platform to formulate more effective operational strategies and advertising.
Smart Images

Figure CN119648321A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method, apparatus, device and medium for determining a payment device for an order. Background Art
[0002] In common purchases such as movie memberships, information about payment devices is very important for user growth and advertising. Device information can be used to better formulate and adjust operational strategies. As ToB (Business to Business) business gradually becomes the mainstream of development, more and more users tend to purchase ToB orders. However, the purchase of ToB orders occurs outside the media platform, and the media platform cannot obtain the information of the payment device. Therefore, it is very important for the media platform to determine the information of the payment device corresponding to the ToB order. Summary of the invention
[0003] In order to solve the above technical problems, the present disclosure provides a method, apparatus, device and medium for determining a payment device for an order.
[0004] According to one aspect of the present disclosure, a method for determining a payment device for an order is provided, comprising:
[0005] In response to an activation operation of a ToB order corresponding to a target platform account, an order payment time of the ToB order is obtained; wherein the ToB order is an order generated when a non-target platform initiates a payment behavior for the target platform account;
[0006] Obtaining login information of multiple devices that logged into the target platform account before and after the order payment time; wherein the login information includes: login device information and login time of each device;
[0007] Based on the time distance between the login time and the order payment time, the target device information for paying the ToB order is determined from the multiple login device information.
[0008] According to another aspect of the present disclosure, there is also provided a device for determining a payment device for an order, including:
[0009] A time acquisition module, for obtaining the order payment time of the ToB order in response to the activation operation of the ToB order corresponding to the target platform account; wherein the ToB order is an order generated when a non-target platform initiates a payment behavior for the target platform account;
[0010] A login information acquisition module, used to acquire login information of multiple devices that logged into the target platform account before the order payment time and after the order payment time; wherein the login information includes: login device information and login time of each device;
[0011] The target device determination module is used to determine the target device information for paying the ToB order from the multiple login device information based on the time distance between the login time and the order payment time.
[0012] According to another aspect of the present disclosure, an electronic device is provided, the electronic device comprising:
[0013] processor;
[0014] a memory for storing instructions executable by the processor;
[0015] The processor is used to read the executable instructions from the memory and execute the instructions to implement the method for determining the payment device for the above order.
[0016] According to another aspect of the present disclosure, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is used to execute the method for determining the payment device of the above order.
[0017] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:
[0018] The technical solution provided by the embodiment of the present disclosure takes into account that the target device where the payment behavior of the ToB order occurs is related to the order payment time in time. Based on this, the present disclosure first obtains the order payment time of the ToB order by responding to the activation operation of the ToB order corresponding to the target platform account; then, using the order payment time, obtains the login information of multiple devices that log in to the target platform account before the order payment time and after the order payment time, and the login information at least includes: the login device information and login time of each device; then, based on the time distance between the login time and the order payment time, the target device information for paying the ToB order is determined from the multiple login device information. This solution can combine the order payment time of the ToB order with the login information of the target platform account on multiple devices, and reasonably and accurately determine the information of the target terminal device for paying the ToB order. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0021] Figure 1 A flow chart of a method for determining a payment device for an order provided in an embodiment of the present disclosure;
[0022] Figure 2 A flow chart of a method for determining target device information provided by an embodiment of the present disclosure;
[0023] Figure 3 A structural block diagram of a device for determining a payment device for an order provided in an embodiment of the present disclosure;
[0024] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0026] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0027] Considering that ToB orders occur outside the media platform, the media platform cannot obtain the information of the payment device, but the device information is very important for the media platform to carry out advertising and operation strategies. Based on this, the embodiments of the present disclosure provide a method, device, equipment and medium for determining the payment device of an order. The scheme can use the order payment time and the login information of the target platform account to determine the target device information for paying the ToB order. For ease of understanding, the embodiments of the present disclosure are described in detail below.
[0028] Figure 1A flowchart of a method for determining a payment device for an order provided in an embodiment of the present disclosure, the method can be executed by a device for determining a payment device for an order, and the device can be implemented in software and / or hardware; specifically, for example, an electronic device or a server. Among them, the electronic device may include devices with communication functions such as tablet computers, desktop computers, laptop computers and smart phones. The server can be a cloud server or a server cluster and other devices with storage and computing functions. Exemplarily, the method for determining a payment device for an order provided in this embodiment can be applied to a server on the side of a media platform, which is responsible for providing data processing services for the media platform, such as processing order data, recording login information, identifying device information and advertising delivery, etc.; the above-mentioned media platforms are such as video platforms, game platforms, music platforms and e-commerce platforms.
[0029] Reference Figure 1 The method for determining the payment device of an order provided in this embodiment may include the following steps:
[0030] S102, in response to the activation operation of the ToB order corresponding to the target platform account, obtain the order payment time of the ToB order; wherein the ToB order is an order generated when a non-target platform initiates a payment behavior for the target platform account.
[0031] In this embodiment, the target platform account is a personal account of the user on a target platform such as a video platform or a game platform. When the user needs to recharge, purchase membership, or activate services for the target platform account, the user can purchase the relevant services or products of the target platform on a third-party platform other than the target platform (i.e., a non-target platform), which is a common ToB business. For example, a user purchases membership of a target platform account on a video platform through his terminal device on a third-party platform such as Taobao or JD.com.
[0032] During the above-mentioned ToB business, the user will initiate payment for the target platform account on the non-target platform to purchase related services or products of the target platform. After the payment is successful, a ToB order corresponding to the target platform account will be generated.
[0033] After that, when the user activates the ToB order on the target platform, the server can receive the user's activation operation for the ToB order corresponding to the target platform account, respond to the activation operation, and obtain the order information of the ToB order. The above order information includes: order payment time and purchased services or products, etc. Among them, the server activates the services or products purchased in the ToB order so that the user can enjoy the services or products on the target platform.
[0034] The order payment time can be extracted to determine the payment device of the ToB order. The reason why the order payment time is used to determine the payment device of the ToB order in this embodiment can be referred to as follows.
[0035] In one scenario, taking the target platform as an example, users often purchase memberships of personal accounts on the video platform, and multiple people such as family members or friends use this account to watch movies together; the personal account on the aforementioned video platform is the target platform account. When purchasing membership of a target platform account, you can use the user's device to initiate payment for the target platform account on non-target platforms such as Taobao and JD.com to purchase membership of the video platform and generate a ToB order. The ToB order occurs on a non-target platform, that is, outside the video platform. The video platform and its corresponding server cannot obtain information about the target terminal device that pays the ToB order.
[0036] However, considering that in actual scenarios, users often initiate payment actions for the target platform account through the device only when they have a need to use the target platform account; this means that in the time range before and after the order payment time of the ToB order, there is usually a login event of the target platform account on the device, and among the multiple devices that log in to the same target platform account, there must be a target device for paying the ToB order. Based on this, the target device for paying the ToB order has a temporal relationship with the order payment time, and further, this embodiment can use the order payment time to determine the target device information for paying the ToB order.
[0037] Although the server corresponding to the target platform cannot directly obtain the target device information through the ToB order, the server can obtain the order payment time of the ToB order when the user activates the ToB order. Therefore, this embodiment can first obtain the order payment time of the ToB order corresponding to the target platform account, and then use the order payment time to track the information of multiple devices that log in to the target platform account within the time range before and after it, so as to determine the target device information for paying the ToB order.
[0038] S104, obtaining login information of multiple devices that log in to the target platform account before and after the order payment time; wherein the login information includes: login device information and login time of each device.
[0039] In this embodiment, when a user logs in to a target platform account on a target platform, a log file recording the user login event will be generated on the server, and the log file includes multiple login information such as the target platform account, account password, login device information, login time, logout identifier, login IP address, etc. The above-mentioned login device information is the information of the device (referred to as the login device) that logs in to the target platform account on the target platform, such as the device ID (Identity document), device model, etc. The above-mentioned logout identifier is the identifier generated when the target platform account logs out of the login device; illustratively, after the login device A logs in to the target platform account on the target platform, it logs out of the target platform account according to the logout operation, and a logout identifier is generated at this time; or, after the login device A logs in to the target platform account on the target platform, the login device B logs in to the target platform account on the target platform, causing the target platform account to log out on the login device A, and a logout identifier is generated at this time.
[0040] In this embodiment, the login information of multiple devices that logged into the target platform account before and after the order payment time can be extracted from the above log file. In order to extract the login information within a more reasonable time range, an active time window before and after the order payment time can be set, and the login information within the preset active time window can be extracted based on the log file.
[0041] S106, based on the time distance between the login time and the order payment time, determine the target device information for paying the ToB order from multiple login device information.
[0042] In a common scenario, when a user has a need to use the target platform account, he will initiate a payment behavior for the target platform account. Based on this, the time when the use demand is generated and the order payment time can be considered to be the same time. Usually, the use demand will only arise when the user has logged in to the target platform account on the device or needs to log in to the target platform account in a short period of time; that is, in a short period of time before or after the order payment time, there will be a login time generated by the device logging in to the target platform account. The login time corresponds to the login device, and the order payment time corresponds to the device that pays the ToB order (i.e., the payment device). In a short period of time, users generally do not switch different devices to log in and pay separately. Therefore, the closer the time distance between the login time of the login device and the order payment time, the higher the possibility that the login device is a payment device.
[0043] Based on the above situation, this embodiment utilizes the corresponding relationship between the payment device and the order payment time in time, especially the negative correlation between the time distance between the login time and the order payment time. Furthermore, from the time dimension, based on the time distance between the login time and the order payment time, the target device information for paying the ToB order can be determined from multiple login device information.
[0044] In some embodiments, the first N target login times that are closest to the order payment time can be determined from multiple login times; where N≥1; and the target device information for paying the ToB order can be determined from the login device information corresponding to the target login time.
[0045] Exemplarily, when N is 1, the login device information corresponding to the first target login time that is closest to the order payment time can be determined as the target device information for paying the ToB order.
[0046] Alternatively, when N is at least 2, this example can set filtering conditions, which include, for example: the number of logins and login duration of the target platform account on each device, whether the two login device information before and after the order payment time is consistent, the logout mark generated by the target platform account when the device logs out, etc. According to the above filtering conditions, the target device information for paying the ToB order is determined from the login device information corresponding to multiple target login times.
[0047] The method for determining the payment device of an order provided by the embodiment of the present disclosure takes into account that the target device for the payment behavior of the ToB order is related to the order payment time in time. Based on this, the present disclosure first obtains the order payment time of the ToB order corresponding to the target platform account by responding to the activation operation of the ToB order corresponding to the target platform account, and uses the order payment time to obtain the login information of multiple devices that log in to the target platform account before the order payment time and after the order payment time, and the login information at least includes: the login device information and login time of each device; and then, it also uses the negative correlation relationship that the closer the time distance between the login time of the device and the order payment time, the higher the possibility that the device is a payment device, and determines the target device information for paying the ToB order from multiple login device information based on the time distance between the login time and the order payment time. This solution can combine the order payment time of the ToB order with the login information of the target platform account on multiple devices, and use the time distance between the login time and the order payment time to reasonably and accurately determine the target device information for paying the ToB order.
[0048] In order to better understand the solution, the method for determining the payment device for an order is further described below.
[0049] With respect to step S104, in order to obtain login information within a reasonable time range, this embodiment may also provide the following method:
[0050] A first time within a first preset time range before the order payment time and ending with the order payment time is determined as a first active time window; a second time within a second preset time range after the order payment time and starting with the order payment time is determined as a second active time window. Then, login information of multiple devices that log in to the target platform account within the first active time window and the second active time window can be obtained.
[0051] As a specific example, the first active time window can be set to the order payment time and the 7-day range before it, expressed as m=[order payment time-7 days, order payment time]. The second active time window can be set to the order payment time and the 7-day range after it, expressed as n=[order payment time, order payment time+7 days]. The above 7-day range is only an example of the first preset time range and the second preset time range. Any time range can be set according to actual needs, and the first preset time range and the second preset time range can be the same or different.
[0052] Based on the above embodiment, the process of obtaining login information of multiple devices that log in to the target platform account within the first active time window and the second active time window may include:
[0053] Get the log file used to record user login events. It is easy to understand that each login time corresponds to its own login device information, and if a logout event occurs after the target platform account logs in, a logout mark will be generated after the login time. Based on this, in the log file, login information such as login time, login device information, and logout mark can be associated and recorded from the time dimension.
[0054] Based on the log file, extract the login time of the target platform account on multiple devices in the first active time window and the second active time window. Extract the login device information of the device that logged into the target platform account corresponding to the multiple login times; since the same target platform account is shared by different devices, different login times correspond to the same or different login device information.
[0055] And, extract the logout identifier generated by the target platform account when the device logs out within the first active time window.
[0056] Compared with users who pay for ToB orders, other users who share a target platform account will log out more often after logging into the target platform account, and a logout mark will be generated when logging out; in other words, logout marks are less likely to be generated on the devices of users who pay for ToB orders. Therefore, the logout mark can be used as a valuable login information to determine the target device information for paying a ToB order from multiple login device information. It is understandable that the logout event must occur after the login event, so the logout mark is generated after the login time and has a corresponding relationship with the login time.
[0057] In the actual video watching scenario, the payment behavior of the ToB order will only be generated when there is a member purchase demand of the target platform account. Therefore, the activity information such as login and logout in the first active time window before the order payment time of the ToB order has a greater influence weight than the activity information such as login and logout in the second active time window after the order payment time. In this case, this embodiment can only extract the logout mark corresponding to the login time in the first active time window from the log file, which can reduce the amount of data extraction and improve the processing efficiency of subsequent login information.
[0058] After extracting multiple login times, login device information within the first active time window and the second active time window, and logout identifiers within the first active time window according to the aforementioned embodiment, the above login times, login device information and logout identifiers can be determined as login information.
[0059] According to the above embodiment, the login information may include: login device information, login time, and a logout identifier generated by the target platform account when the device logs out. Figure 2 With respect to step S106, this embodiment may provide the following method for determining target device information for paying a ToB order.
[0060] S201, among multiple login times, determine the first N target login times that are closest to the order payment time. When N is at least 2, refer to the following steps S202-S205 to determine the target device information for paying the ToB order.
[0061] S202: Determine a first login time closest to the order payment time among the target login times before the order payment time.
[0062] Exemplarily, in this embodiment, multiple login times before the order payment time may be sorted in reverse order, and the login time ranked first is determined as the first login time closest to the order payment time. Specifically, multiple login times within the first active time window m may be sorted in reverse order, and the login time ranked first is the first login time closest to the order payment time.
[0063] S203, determine whether there is a logout mark between the first login time and the second login time; wherein the second login time is the login time adjacent to the first login time. If there is no logout mark between the first login time and the second login time, it means that the first login time and the second login time correspond to the same device continuously logging into the target platform account, and the device has a high probability of being the target device for paying the ToB order, so execute the following step S204. If there is a logout mark between the first login time and the second login time, it means that the device corresponding to the first login time that logs into the target platform account is unstable, and the probability of being the target device for paying the ToB order is low, so execute the following step S205.
[0064] S204: If it does not exist, the login device information corresponding to the first login time is determined as the target device information for paying the ToB order.
[0065] S205: If it exists, determine the target device information for paying the ToB order from the login device information corresponding to the target login time after the order payment time.
[0066] In the specific implementation of this step, the third login time closest to the order payment time can be determined from the target login time after the order payment time; for example, multiple login times within the second active time window n are sorted in ascending order, and the login time ranked first is the third login time closest to the order payment time. Then the login device information corresponding to the third login time is determined as the target device information for paying the ToB order.
[0067] This embodiment first determines the first login time that is closest to the order payment time among the multiple login times before the order payment time with a greater impact weight; the first login time is closest to the order payment time, and the login device information corresponding to the first login time and the target device information corresponding to the order payment time are theoretically most likely to be the same device. In this case, further combined with the logout mark, if there is no corresponding logout mark for the first login time, it means that the login device information corresponding to the first login time continuously and stably logs in to the target platform account, and it can be more accurately determined that the login device information corresponding to the first login time and the target device information corresponding to the order payment time are the same.
[0068] On the contrary, if there is a logout mark corresponding to the first login time, it means that the login device information corresponding to the first login time is not stable, and the possibility of it being the target device information for paying the ToB order is low. Therefore, the target device information for paying the ToB order is determined from the login device information corresponding to multiple login times after the order payment time. In this process, since the user will use the services or products (such as VIP membership) of the target platform account immediately within a short period of time after paying the ToB order in most cases, the third login time closest to the order payment time can be determined, and the login device information corresponding to the third login time can be determined as the target device information for paying the ToB order.
[0069] In this embodiment, with respect to step S106, another method for determining target device information for paying a ToB order may be provided, including the following (1)-(4):
[0070] (1) Based on the time distance between the login time and the order payment time, a first score is determined for the login device information corresponding to each login time; wherein the first score of the login device information is negatively correlated with the time distance.
[0071] In a specific example, the login device information corresponding to each login time can be sorted from near to far according to the time distance between the login time and the order payment time; different first scores are determined for the login device information corresponding to each login time according to the preset correspondence between the sorting sequence number and the score; the correspondence between the above-mentioned sorting sequence number and the score is, for example: the first login device information with the closest time distance has a first score of 100 points, the second login device information with the second closest time distance has a first score of 90 points, and so on, the closer the time distance, the higher the first score of the login device information.
[0072] (2) Counting the account usage information of the target platform account in each login device information; wherein the account usage information includes at least one of the following: the number of single logins, the number of consecutive logins, and the total login duration.
[0073] In some embodiments, the user who has logged into the target platform account the most times and for the longest time is usually also the user who pays the ToB order. Based on this, this embodiment can count the number of single logins, continuous logins and total login time of the target platform account in each login device information, determine the login device information with the most logins and / or the longest total login time from multiple login device information, and determine it as the target device information for paying the ToB order.
[0074] The above-mentioned single login times and total login duration can reflect the usage frequency of the target platform account on different devices in terms of quantity and time respectively. The continuous login times can reflect the stable usage of the target platform account on different devices.
[0075] The total login time is easy to understand, so I won't explain it in detail here. The explanations for single logins and continuous logins are as follows. Assume that over a period of time, in chronological order, the target platform account's login status on each device is: device A, device B, device B, device B, device A, device C, device C, device B, device C. The target platform account has 2 single logins on device A, and 0 continuous logins; the target platform account has 4 single logins on device B, 3 of which are continuous logins, so the continuous logins are recorded as 3; the target platform account has 3 single logins on device C, 2 of which are continuous logins, so the continuous logins are recorded as 2. It can be clearly seen from this example that the target platform account is used frequently and stably on device B.
[0076] (3) Determine a second score for each login device information based on the account usage information; wherein the second score of the login device information is positively correlated with the account usage information.
[0077] Specifically, a first single score can be determined for each login device information based on the number of consecutive logins; wherein, the more consecutive logins there are, the higher the first single score is; similarly, a second single score can be determined for each login device information based on the number of single logins, and a third single score can be determined for each login device information based on the total login time; the weighted sum of the first single score, the second single score and the third single score is determined as the second score for each login device information.
[0078] (4) Determine the target device information for payment of the ToB order from the plurality of login device information according to the weighted sum of the first score and the second score. For example, according to the weighted sum of the first score and the second score, determine the login device information with the highest final score as the target device information for payment of the ToB order.
[0079] Based on the above account usage information, other methods of determining the target device information for payment of ToB orders can also be improved. As some examples, the login device information with the most single login times can be determined from multiple login device information, and it can be determined as the target device information for payment of ToB orders; or, the login device information with the most consecutive login times can be determined from multiple login device information, and it can be determined as the target device information for payment of ToB orders; or, the top K (such as the top 2) candidate login device information with the most consecutive login times can be determined from multiple login device information, and then the login device information with the longest total login time can be determined from the K candidate login device information, and it can be determined as the target device information for payment of ToB orders.
[0080] Based on the relationship between the time distance between the login time and the order payment time and the target device information, this embodiment further combines the account usage information as a factor. By counting the account usage information, it is possible to flexibly use at least one item of account usage information when determining the target device information, providing a more flexible and diverse way to determine the target device information. At the same time, the account usage information can truly reflect the activeness of different terminal devices using the target platform account. Therefore, the accuracy of determining the target device information can be improved based on the account usage information.
[0081] In addition, in some other embodiments, it can be determined whether the two login device information before and after the order payment time is consistent. If they are consistent, the login device information is determined to be the target device information for paying the ToB order. In a specific example, a user logs in to the target platform account on the device to watch a video. During this process, the membership expires or the subsequent content of the video requires a paid membership to be viewed. Therefore, the user pays a ToB order to open a membership for the target platform account, and then continues to use the target platform account to watch the video. Usually, the user will purchase a ToB order directly on the device currently being used, and will not switch to other terminal devices to pay for the ToB order. In other words, the target device for paying the ToB order is the same device as the device that logs in to the target platform account before and after the order payment time, and there is no change. Based on this, this embodiment can determine that the login device information is the target device information for paying the ToB order when it is determined that the two login device information before and after the order payment time are consistent.
[0082] In addition, if the two login device information before and after the order payment time are inconsistent, you can refer to the aforementioned embodiments and determine the target device information for paying the ToB order from multiple login device information based on factors such as login time, logout identification, and account usage information.
[0083] It should be noted that the above embodiments are merely examples for determining target device information for payment of a ToB order and should not be construed as limitations.
[0084] After determining the target device information for paying a ToB order according to the above embodiments, the operation strategy can be formulated and adjusted in a targeted manner according to the target device information, such as recommending matching advertising resources and service content to the target device information. Alternatively, the target device information can be combined with other dimensional information such as user information to construct a user portrait, and then the matching degree between the resources in the preset resource library and the user portrait is calculated, and personalized resource recommendation results are generated based on the matching degree. Of course, the determined target device information can also be applied to other scenarios, which is not limited here.
[0085] In summary, the method for determining the payment device of an order provided in this embodiment combines the order payment time of a ToB order with the login information, and through multi-dimensional information such as the login time before and after the order payment time, login device information, logout identification, and account usage information, it is possible to reasonably and accurately determine the target device information for paying the ToB order; furthermore, the determined target device information can be used to accurately implement the operation strategy.
[0086] Figure 3 This is a structural block diagram of a device for determining a payment device for an order provided in an embodiment of the present disclosure. The device can be implemented by software and / or hardware, can generally be integrated in an electronic device, and can be used to execute a method for determining a payment device for an order. Figure 3 As shown, the device comprises:
[0087] The time acquisition module 310 is used to obtain the order payment time of the ToB order in response to the activation operation of the ToB order corresponding to the target platform account; wherein the ToB order is an order generated when the non-target platform initiates a payment behavior for the target platform account;
[0088] The login information acquisition module 320 is used to acquire the login information of multiple devices that log in to the target platform account before the order payment time and after the order payment time; wherein the login information includes: the login device information and login time of each device;
[0089] The target device determination module 330 is used to determine the target device information for paying the ToB order from the multiple login device information based on the time distance between the login time and the order payment time.
[0090] In one embodiment, the target device determination module 330 is further configured to:
[0091] Among the multiple login times, determine the top N target login times that are closest to the order payment time; wherein N≥1;
[0092] The target device information for paying the ToB order is determined from the login device information corresponding to the target login time.
[0093] In one embodiment, the login information further includes: a logout identifier generated by the target platform account when the device logs out; the target device determination module 330 is further configured to:
[0094] Determine a first login time closest to the order payment time among the target login times before the order payment time;
[0095] Determine whether the logout identifier exists between the first login time and the second login time; wherein the second login time is a login time adjacent to the first login time;
[0096] If not, determining the login device information corresponding to the first login time as the target device information for paying the ToB order;
[0097] If it exists, the target device information for paying the ToB order is determined from the login device information corresponding to the target login time after the order payment time.
[0098] In one embodiment, the target device determination module 330 is further configured to:
[0099] Determine, among the target login times after the order payment time, a third login time that is closest to the order payment time;
[0100] The login device information corresponding to the third login time is determined as the target device information for paying the ToB order.
[0101] In one embodiment, the login information acquisition module 320 is further used to:
[0102] Determine a first time within a first preset time range before the order payment time and ending at the order payment time as a first active time window;
[0103] Determine a second time within a second preset time range after the order payment time and starting from the order payment time as a second active time window;
[0104] Obtain login information of multiple devices that log in to the target platform account within the first active time window and the second active time window.
[0105] In one embodiment, the login information acquisition module 320 is further used to:
[0106] Get the log file used to record user login events;
[0107] Extracting, based on the log file, multiple login times of the target platform account on multiple devices within the first active time window and the second active time window;
[0108] Extracting login device information of devices that log in to the target platform account corresponding to the plurality of login times;
[0109] Extracting a logout identifier generated by the target platform account when the device logs out during the first active time window;
[0110] The login time, the login device information and the logout identifier are determined as the login information.
[0111] In one embodiment, the target device determination module 330 is further configured to:
[0112] Based on the time distance between the login time and the order payment time, determining a first score for the login device information corresponding to each login time; wherein the first score of the login device information is negatively correlated with the time distance;
[0113] Counting the account usage information of the target platform account in each of the login device information; wherein the account usage information includes at least one of the following: the number of single logins, the number of consecutive logins, and the total login duration;
[0114] Determine a second score for each of the login device information according to the account usage information; wherein the second score of the login device information is positively correlated with the account usage information;
[0115] According to the weighted sum of the first score and the second score, target device information for paying the ToB order is determined from the plurality of login device information.
[0116] The implementation principle and technical effects of the device provided in this embodiment are the same as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0117] Figure 4 The structure diagram of an electronic device provided by the embodiment of the present disclosure is shown in FIG. Figure 4 As shown, the electronic device 400 includes one or more processors 401 and a memory 402 .
[0118] The processor 401 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 400 to perform desired functions.
[0119] The memory 402 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 401 may run the program instructions to implement the method for determining the payment device of the order of the embodiment of the present disclosure described above and / or other desired functions. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.
[0120] In one example, the electronic device 400 may further include: an input device 403 and an output device 404, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0121] In addition, the input device 403 may also include, for example, a keyboard, a mouse, and the like.
[0122] The output device 404 can output various information to the outside, including the determined distance information, direction information, etc. The output device 404 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.
[0123] Of course, to simplify, Figure 4 Only some of the components related to the present disclosure in the electronic device 400 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 400 may also include any other appropriate components.
[0124] Furthermore, this embodiment also provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the method for determining the payment device of the above order.
[0125] The embodiments of the present disclosure provide a method for determining a payment device for an order, an apparatus, an electronic device, and a computer program product for a medium, including a computer-readable storage medium storing a program code. The instructions included in the program code can be used to execute the method described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.
[0126] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0127] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for determining a payment device for an order, characterized in that: include: In response to an activation operation of a ToB order corresponding to a target platform account, an order payment time of the ToB order is obtained; wherein the ToB order is an order generated when a non-target platform initiates a payment behavior for the target platform account; Obtaining login information of multiple devices that logged into the target platform account before and after the order payment time; wherein the login information includes: login device information and login time of each device; Based on the time distance between the login time and the order payment time, the target device information for paying the ToB order is determined from the multiple login device information.
2. The method according to claim 1, characterized in that: The determining, based on the time distance between the login time and the order payment time, target device information for paying the ToB order from the plurality of login device information includes: Among the multiple login times, determine the top N target login times that are closest to the order payment time; wherein N≥1; The target device information for paying the ToB order is determined from the login device information corresponding to the target login time.
3. The method according to claim 2, characterized in that The login information also includes: a logout identifier generated by the target platform account when the device logs out; and determining the target device information for paying the ToB order from the login device information corresponding to the target login time includes: Determine a first login time closest to the order payment time among the target login times before the order payment time; Determine whether the logout identifier exists between the first login time and the second login time; wherein the second login time is a login time adjacent to the first login time; If not, determining the login device information corresponding to the first login time as the target device information for paying the ToB order; If it exists, the target device information for paying the ToB order is determined from the login device information corresponding to the target login time after the order payment time.
4. The method according to claim 3, characterized in that The step of determining target device information for paying the ToB order from the login device information corresponding to the target login time after the order payment time includes: Determine, among the target login times after the order payment time, a third login time that is closest to the order payment time; The login device information corresponding to the third login time is determined as the target device information for paying the ToB order.
5. The method according to claim 1, characterized in that The acquiring login information of multiple devices that log in to the target platform account before and after the order payment time includes: Determine a first time within a first preset time range before the order payment time and ending at the order payment time as a first active time window; Determine a second time within a second preset time range after the order payment time and starting from the order payment time as a second active time window; Obtain login information of multiple devices that log in to the target platform account within the first active time window and the second active time window.
6. The method according to claim 5, characterized in that The acquiring login information of multiple devices that log in to the target platform account within the first active time window and the second active time window includes: Get the log file used to record user login events; Extracting, based on the log file, multiple login times of the target platform account on multiple devices within the first active time window and the second active time window; Extracting login device information of devices that log in to the target platform account corresponding to the plurality of login times; Extracting a logout identifier generated by the target platform account when the device logs out during the first active time window; The login time, the login device information and the logout identifier are determined as the login information.
7. The method according to claim 1, characterized in that The determining, based on the time distance between the login time and the order payment time, target device information for paying the ToB order from the plurality of login device information includes: Based on the time distance between the login time and the order payment time, determining a first score for the login device information corresponding to each login time; wherein the first score of the login device information is negatively correlated with the time distance; Counting the account usage information of the target platform account in each of the login device information; wherein the account usage information includes at least one of the following: the number of single logins, the number of consecutive logins, and the total login duration; Determine a second score for each of the login device information according to the account usage information; wherein the second score of the login device information is positively correlated with the account usage information; According to the weighted sum of the first score and the second score, target device information for paying the ToB order is determined from the plurality of login device information.
8. A device for determining a payment device for an order, characterized in that: include: A time acquisition module, for obtaining the order payment time of the ToB order in response to the activation operation of the ToB order corresponding to the target platform account; wherein the ToB order is an order generated when a non-target platform initiates a payment behavior for the target platform account; A login information acquisition module, used to acquire login information of multiple devices that logged into the target platform account before the order payment time and after the order payment time; wherein the login information includes: login device information and login time of each device; The target device determination module is used to determine the target device information for paying the ToB order from the multiple login device information based on the time distance between the login time and the order payment time.
9. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device implements the method according to any one of claims 1 to 7.