Ride code plug-in management method, device, server, terminal equipment and medium
By calculating the correlation parameter values in user behavior data, only the ride code plug-in for the ride area that users use most frequently is solved, the problem of excessive resource utilization of terminal equipment is improved and operating performance and reliability are improved.
Patent Information
- Application Number
- CN202010681786.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-15
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2040-07-15
AI Technical Summary
In multi-city ride scenarios, user terminal devices need to store a large amount of ride code payment system data from different cities, resulting in excessive equipment resource utilization and reduced operating performance.
By calculating the correlation parameter values in user behavior data, select the N ride code plug-in of the ride code area that users most frequently use for download, reducing the resource occupation of ride code clients in terminal devices and improving equipment performance.
It effectively reduces the resource usage of the riding code client in the terminal device, avoids equipment operation lag, improves the operating performance of the terminal device, and reduces the possibility of download and update failure.
Smart Images

Figure CN111932243B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of electronic information technology, and in particular, relates to a method, device, server, terminal device and medium for managing a ride code plug-in. Background Art
[0002] With the development of electronic information technology, the application field of electronic payment is becoming wider and wider. The ride code is a QR code used to pay for transportation. Due to the convenience and speed of the ride code, using the ride code to pay for transportation has become a major development trend. For example, when users take the subway, bus and other transportation, they can use the ride code to scan and pay.
[0003] At present, the ride code payment service has covered multiple cities. The operators of various transportation tools in various cities manage their own ride code payment systems. When taking a ride in different cities, you need to use the ride code payment systems of different city transportation tools to make payments. Correspondingly, users need to download the relevant data of the ride code payment systems of various city transportation tools. In the case of a large number of cities, the user's terminal device needs to store a large amount of data related to the ride code payment system, which occupies a large amount of resources in the terminal device and reduces the operating performance of the terminal device. Summary of the invention
[0004] The embodiments of the present application provide a method, device, server, terminal device and medium for managing a ride code plug-in, which can improve the operating performance of the terminal device on the basis of meeting the user's requirements for the ride code payment boarding area.
[0005] In the first aspect, an embodiment of the present application provides a method for managing a boarding code plug-in, which is applied to a server, and the server stores regional boarding code plug-ins for M boarding areas, where M is a positive integer greater than 1. The method includes: obtaining user behavior data of the user; using the user behavior data to calculate the association parameter value between the user and each boarding area; selecting the regional boarding code plug-ins for the N boarding areas with the highest association parameter values as the regional boarding code plug-ins downloaded by the user's terminal device, where N is a positive integer and N<M.
[0006] In the second aspect, an embodiment of the present application provides a method for managing a boarding code plug-in, which is applied to a terminal device. The method includes: uploading the user behavior data of the user to a server, the server storing regional boarding code plug-ins for M boarding areas, where M is a positive integer greater than 1; downloading the regional boarding code plug-ins for the N boarding areas with the highest association parameter values with the user from the server, the association parameter value is calculated based on the user behavior data, N is a positive integer and N<M.
[0007] In a third aspect, an embodiment of the present application provides a boarding code plug-in management device, which stores regional boarding code plug-ins for M boarding areas, where M is a positive integer greater than 1, and the device includes: an acquisition module for acquiring user behavior data of a user; a calculation module for calculating the association parameter value between the user and each boarding area using the user behavior data; and a screening module for selecting the regional boarding code plug-ins for the N boarding areas with the highest association parameter values as the regional boarding code plug-ins downloaded by the user's terminal device, where N is a positive integer and N<M.
[0008] In a fourth aspect, an embodiment of the present application provides a boarding code plug-in management device, comprising: an upload module for uploading user behavior data of users to a server, the server storing regional boarding code plug-ins for M boarding areas, where M is a positive integer greater than 1; a download module for downloading regional boarding code plug-ins for N boarding areas with the highest correlation parameter values with the user from the server, the correlation parameter value is calculated based on the user behavior data, N is a positive integer and N<M.
[0009] In the fifth aspect, an embodiment of the present application provides a server, including a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, the method for managing the boarding code plug-in in the technical solution of the first aspect is implemented.
[0010] In the sixth aspect, an embodiment of the present application provides a terminal device, including a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, the boarding code plug-in management method in the technical solution of the second aspect is implemented.
[0011] In the seventh aspect, an embodiment of the present application provides a boarding code plug-in management system, including the server in the technical solution of the fifth aspect and the terminal device in the technical solution of the sixth aspect.
[0012] In an eighth aspect, an embodiment of the present application provides a machine-readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the boarding code plug-in management method in the technical solution of the first aspect or the boarding code plug-in management method in the technical solution of the second aspect is implemented.
[0013] The embodiments of the present application provide a method, device, server, terminal device and medium for managing a boarding code plug-in, which calculates the association parameter value between the user and each boarding area based on user behavior data that can characterize the user's behavior habits. The higher the association parameter value between the user and the boarding area, the longer the user stays in the boarding area or the higher the frequency of the stay. The regional boarding code plug-ins for the N boarding areas with the highest association parameter values are selected as the regional boarding code plug-ins downloaded by the user's terminal device. Even if the terminal device pre-downloads the regional boarding code plug-ins for the N boarding areas where the user has stayed the longest or has the highest frequency, on the basis of meeting the user's boarding code payment requirements, the resources occupied by the boarding code client in the terminal device are reduced, the terminal device is prevented from freezing and other phenomena during operation, and the terminal device's operating performance is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The present application can be better understood from the following description of the specific implementation of the present application in conjunction with the accompanying drawings, wherein the same or similar reference numerals represent the same or similar features.
[0015] Figure 1 A schematic diagram of the structure of the boarding code plug-in management system provided in an embodiment of the present application;
[0016] Figure 2 A flowchart of a method for managing a ride code plug-in applied to a server provided in an embodiment of the present application;
[0017] Figure 3 A flowchart of a method for managing a ride code plug-in applied to a server provided in another embodiment of the present application;
[0018] Figure 4 A flowchart of a method for managing a ride code plug-in applied to a server provided in another embodiment of the present application;
[0019] Figure 5 A flowchart of a method for managing a ride code plug-in applied to a server provided in yet another embodiment of the present application;
[0020] Figure 6 A flowchart of a method for managing a boarding code plug-in applied to a terminal device provided in one embodiment of the present application;
[0021] Figure 7 A flowchart of a method for managing a boarding code plug-in applied to a terminal device provided in another embodiment of the present application;
[0022] Figure 8 A flowchart of a method for managing a boarding code plug-in applied to a terminal device provided in another embodiment of the present application;
[0023] Fig. 9A flowchart of a method for managing a boarding code plug-in applied to a terminal device provided in yet another embodiment of the present application;
[0024] Fig.10 A schematic diagram of the structure of a boarding code plug-in management device provided in one embodiment of the present application;
[0025] Fig.11 A schematic diagram of the structure of a boarding code plug-in management device provided in another embodiment of the present application;
[0026] Fig.12 A schematic diagram of the structure of a boarding code plug-in management device provided in another embodiment of the present application;
[0027] Fig.13 A schematic diagram of the structure of a boarding code plug-in management device provided in one embodiment of the present application;
[0028] Fig.14 A schematic diagram of the structure of a boarding code plug-in management device provided in another embodiment of the present application;
[0029] Fig.15 A schematic diagram of the structure of a boarding code plug-in management device provided in another embodiment of the present application;
[0030] Fig.16 A schematic diagram of the structure of a boarding code plug-in management device provided in yet another embodiment of the present application;
[0031] Fig.17 A schematic diagram of the structure of a server provided in an embodiment of the present application;
[0032] Fig.18 A schematic diagram of the structure of a terminal device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0033] The features and exemplary embodiments of various aspects of the application will be described in detail below. In the detailed description below, many specific details are proposed to provide a comprehensive understanding of the application. However, it is obvious to those skilled in the art that the application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the application by illustrating the example of the application. The application is by no means limited to any specific configuration and algorithm proposed below, but covers any modification, replacement and improvement of elements, parts and algorithms without departing from the spirit of the application. In the accompanying drawings and the following description, known structures and technologies are not shown to avoid causing unnecessary ambiguity to the application.
[0034] In the field of transportation payment, using ride code payment has become a major development trend. In different ride areas, such as different cities, the ride code payment system is different. Multiple ride code clients need to be installed in the user's terminal device, and different ride code clients need to be switched in different ride areas, which increases the inconvenience of user operation. Alternatively, the secure ride code client in the user's terminal device needs to download the ride code program and ride code resources corresponding to all ride areas, so that the user can use one ride code client to realize the ride code payment in different ride areas. However, a large number of ride code programs and ride code resources in the ride code client will occupy a large amount of resources in the terminal device, resulting in problems such as terminal device operation jams, reducing the operating performance of the terminal device. Moreover, the terminal device needs to download the installation package of the ride code client to install the ride code client. Since the installation package of the ride code client corresponds to the ride code program and ride code resources corresponding to all ride areas, the size of the installation package will be very large, increasing the possibility of download failure and update failure.
[0035] The embodiments of the present application provide a method, device, server, terminal device and medium for managing a boarding code plug-in, which can be applied to the scenario of boarding code payment. The regional boarding code plug-ins for M boarding areas can be stored on the server, that is, the regional boarding code plug-ins for all boarding areas are stored, and M is a positive integer greater than 1. The regional boarding code plug-in may include functional codes and resource data for implementing the boarding code function for the boarding area. In order to distinguish different regional boarding code plug-ins, the regional boarding code plug-in may also include a boarding area identification, plug-in version information and verification information, etc., which are not limited here. The regional boarding code plug-in can realize the generation, display, dynamic refresh, transportation route query, user boarding record query and other functions of the boarding code in the corresponding boarding area, which are not limited here.
[0036] In the embodiment of the present application, the server can provide the regional boarding code plug-ins of the N boarding areas with the highest correlation with the user to the terminal device for download through the user's user behavior data, where N is a positive integer and N < M. Only one boarding code client needs to be installed in the user's terminal device, and only the regional boarding code plug-ins of the N boarding areas are downloaded in the boarding code client, thereby reducing the resources occupied by the boarding code client in the terminal device, avoiding the phenomenon of freezing when the terminal device is running, and improving the running performance of the terminal device.
[0037] Figure 1 This is a schematic diagram of the structure of the boarding code plug-in management system provided in the embodiment of the present application. Figure 1As shown, the boarding code plug-in system may include a server 100 and a terminal device 200. The server 100 and the terminal device 200 may communicate with each other. One server 100 may provide a regional boarding code plug-in for multiple terminal devices 200. The terminal device 200 may upload the collected data to the server 100. The terminal device 200 may be a mobile phone, a tablet computer, or a wearable device, etc., which is not limited here.
[0038] An embodiment of the present application provides a method for managing a ride code plug-in, which can be applied to a server. Figure 2 This is a flow chart of a method for managing a ride code plug-in applied to a server according to an embodiment of the present application. Figure 2 The boarding code plug-in management method may include steps S301 to S303.
[0039] In step S301, user behavior data of the user is obtained.
[0040] User behavior data is data that characterizes the user's habitual behavior, which can be obtained from the user's historical data. Based on the user behavior data, the riding area where the user stays the longest or most frequently can be determined. It should be noted that the "user" here refers to the user account of the riding code client. Different users refer to different user accounts of the riding code client. Different user accounts logged in on the same terminal device are regarded as different users.
[0041] In some examples, user behavior data includes, but is not limited to, one or more of the following: user terminal location information, user network address information, user transaction address information, and user card binding institution address information.
[0042] The user terminal positioning information is used to locate the location of the user's terminal device. The user terminal positioning information can specifically be global positioning system (GPS) positioning information, base station positioning information, wireless fidelity (WiFi) positioning information, etc., which is not limited here. The user network address information is used to characterize the network address used by the user when communicating and interacting with other devices, which is not limited here. For example, the user network address information can be an Internet Protocol (IP) address. The user transaction address information can be information related to the transaction address of the user or the address for receiving the items obtained from the transaction, which is not limited here. For example, the user transaction address information can include the frequency of use of the user transaction address and the time between the last use of the user transaction address and the current time. The user transaction address can be the place where the user's transaction occurs, or it can be the user's delivery address, which is not limited here. The user binding card institution address information is used to characterize the address of the issuing institution of the payment card bound by the user and the ride code client, which is not limited here. For example, the binding card institution address information can be the address of the issuing bank of the bank card bound by the user and the ride code client.
[0043] In step S302, the user behavior data is used to calculate the association parameter value between the user and each riding area.
[0044] The boarding area can be divided according to the regions that adopt different boarding code payment systems. Different boarding code payment systems correspond to different regional boarding code plug-ins. That is, the boarding area corresponds to the regional boarding code plug-in. Different boarding areas correspond to different regional boarding codes. Specifically, the boarding area can be a city, but it is not limited here.
[0045] User behavior data can reflect the location where the user's habitual behavior occurs. Using user behavior data, the correlation between the user and each boarding area can be obtained. The correlation parameter value is used to characterize the correlation between the user and the boarding area, and the size of the correlation parameter value is positively correlated with the correlation. The longer the user stays in a boarding area and the higher the frequency of staying in the boarding area, the higher the correlation between the user and the boarding area, and correspondingly, the higher the correlation parameter value between the user and the boarding area.
[0046] In step S303, the regional boarding code plug-ins of the N boarding areas with the highest correlation parameter values are selected as the regional boarding code plug-ins downloaded by the user's terminal device.
[0047] The regional boarding code plug-ins of the N boarding areas with the highest correlation parameter values are integrated into a boarding code client in the terminal device. The higher the correlation parameter value between the user and the boarding area, the longer the user stays in the boarding area or the higher the frequency of the user's stay in the boarding area. Correspondingly, the frequency of use of the regional boarding code plug-ins of the N boarding areas with the highest correlation parameter values should also be the highest. Therefore, the regional boarding code plug-ins of the N boarding areas with the highest correlation parameter values are provided to the terminal device so that the terminal device can download the regional boarding code plug-ins of these N boarding areas. In some examples, the server may directly send the regional boarding code plug-ins of the N boarding areas with the highest correlation parameter values to the terminal device. In other examples, the server may also first send the download address of the regional boarding code plug-ins of the N boarding areas with the highest correlation parameter values to the terminal device, so that the terminal device can download the regional boarding code plug-ins of the N boarding areas with the highest correlation parameter values according to the download address. The specific value of N can be set according to the specific work scenario and work requirements, and is not limited here. For example, N can be 3.
[0048] In an embodiment of the present application, the association parameter value between the user and each boarding area is calculated based on the user behavior data that can characterize the user's behavior habits. The higher the association parameter value between the user and the boarding area, the longer the user stays in the boarding area or the higher the frequency of the stay. The regional boarding code plug-ins of the N boarding areas with the highest association parameter values are selected as the regional boarding code plug-ins downloaded by the user's terminal device. Even if the terminal device pre-downloads the regional boarding code plug-ins of the N boarding areas where the user has stayed the longest or has the highest frequency, on the basis of meeting the user's boarding code payment requirements, the resources occupied by the boarding code client in the terminal device are reduced, the terminal device is prevented from being stuck during operation, and the operating performance of the terminal device is improved. The regional boarding code plug-ins of the N boarding areas with the highest association parameter values are integrated into a boarding code client in the terminal device, which can reduce the size of the installation package of the boarding code client and reduce the possibility of download failure and update failure.
[0049] Moreover, compared with the technical solution developed using JS and H5 and rendering the user interface (UI) through the browser x5 kernel, the regional boarding code plug-in in the embodiment of the present application is a native code, which is more secure and has a better UI rendering effect, making the operation and interaction of the boarding code client more streamlined and able to support scenario applications with higher business logic load.
[0050] Figure 3 A flowchart of a method for managing a ride code plug-in applied to a server provided in accordance with another embodiment of the present application. Figure 3 and Figure 2 The difference is that Figure 2Step S302 in the above example can be specifically broken down into Figure 3 Steps S3021 to S3024 in .
[0051] In step S3021, determine the target boarding area to which the location located by the user terminal positioning information belongs.
[0052] In the case where the user behavior data includes user terminal location information, the location of the location can be determined according to the user terminal location information. According to the location of the location, the boarding area to which the location belongs, ie, the target boarding area, is determined among the M boarding areas.
[0053] In step S3022, the parameter value of the association degree between the user and the target boarding area is set to the maximum value.
[0054] The target boarding area is the area where the user's terminal device is located. The correlation parameter value between the user and the target boarding area among the M boarding areas is set to the maximum value to ensure that the regional boarding code plug-in of the target boarding area is used as the regional boarding code plug-in downloaded by the user's terminal device. For example, if the correlation parameter value ranges from [0, 100], the correlation parameter value between the user and the target boarding area can be set to 100.
[0055] In the case where the user behavior data only includes the user terminal positioning information, the association parameter value between the user and other boarding areas except the target boarding area can be set to the minimum value. In the case where the user behavior data does not only include the user terminal positioning information, other user behavior data except the user terminal positioning information can be used to calculate the association parameter value between the user and other boarding areas except the target boarding area.
[0056] In step S3023, the intermediate correlation parameter value corresponding to each user behavior data and each riding area is calculated.
[0057] In the case where the user behavior data includes at least one of the user network address information, the user transaction address information, and the user card binding institution address information, for a user, an intermediate correlation parameter value can be calculated correspondingly for one user behavior data and one riding area.
[0058] In step S3024, based on the intermediate correlation parameter value corresponding to each item of user behavior data and each boarding area, and the preset weight value corresponding to each item of user behavior data, the correlation parameter value between the user and each boarding area is calculated.
[0059] By using each of the user behavior data of a user and each intermediate correlation parameter value corresponding to a boarding area, the correlation parameter value between the user and the boarding area can be calculated. Correspondingly, by using each of the user behavior data of a user and the intermediate correlation parameter value corresponding to each boarding area, the correlation parameter value between the user and each boarding area can be calculated. Specifically, a weight value can be preset corresponding to each of the user behavior data. By using the intermediate correlation parameter value and the preset weight value, the correlation parameter value can be calculated.
[0060] In some examples, when the user behavior data includes more than just the user terminal location information, other items of user behavior data except the user terminal location information can be used to calculate intermediate correlation parameter values corresponding to the other items of user behavior data except the user terminal location information and each riding area, and the intermediate correlation parameter values and preset weight values can be used to calculate the correlation parameter values between the user and other riding areas except the target riding area.
[0061] For example, the range of the correlation parameter value is [0, 100]. User behavior data includes user terminal location information, user network address information, user transaction address information, and user card binding institution address information. The calculation of the correlation parameter value can be shown in the following formula (1):
[0062]
[0063] Wherein, E is the correlation parameter value, λ=1 indicates that the boarding area is the target boarding area, λ=0 indicates that the boarding area is other boarding areas except the target boarding area, e1 is the intermediate correlation parameter value corresponding to the user behavior data of the user network address information and the boarding area, e2 is the intermediate correlation parameter value corresponding to the user behavior data of the user transaction address information and the boarding area, e3 is the intermediate correlation parameter value corresponding to the user behavior data of the user binding card institution address information and the boarding area, α is the weight value corresponding to the user behavior data of the user network address information, β is the weight value corresponding to the user behavior data of the user transaction address information, and γ is the weight value corresponding to the user behavior data of the user binding card institution address information. α+β+γ=1 and α, β and γ are all greater than or equal to 0. e1∈[0,100], e2∈[0,100], e3∈[0,100].
[0064] In some examples, the user behavior data includes user network address information. Specifically, step S3023 can be refined as follows: using the user network address information corresponding to at least one network request recently sent by the user's terminal device and the first calculation model corresponding to each riding area, calculate the intermediate correlation parameter value corresponding to the user network address information and each riding area.
[0065] The network request issued by the terminal device can be a network request between the terminal device and the server storing the regional boarding code plug-in, or a network request between the terminal device and other servers, which is not limited here. The number of network requests can also be set according to specific work scenarios and work requirements, which is not limited here. Each boarding area has a corresponding first calculation model. The input of the first calculation model of the boarding area is the user network address information corresponding to at least one network request recently issued by the user's terminal device, and the output is the intermediate correlation parameter value corresponding to the user network address information and the boarding area. The first calculation model can be obtained through machine learning training using a large amount of training data including user network address information and intermediate correlation parameter values. The user's user network address information can be input into the first calculation model corresponding to each boarding area to obtain the user network address information output by each first calculation model and the intermediate correlation parameter value corresponding to each boarding area.
[0066] For example, the calculation of the intermediate correlation parameter value corresponding to the user network address information and the boarding area C can be shown in the following formulas (2), (3) and (4):
[0067]
[0068]
[0069] I=[i1,i2,…,i n ] (4)
[0070] Wherein, e1 is the intermediate correlation parameter value between the user network address information and the boarding area C, f(I) is the analysis function corresponding to the first calculation model, I is the sequence of the user network address information corresponding to the n network requests recently issued by the terminal device, i k is the user network address information corresponding to the kth network request recently issued by the terminal device, i k ∈C indicates that the location associated with the user network address information corresponding to the k-th network request recently sent by the terminal device belongs to the boarding area C, and else indicates that the location associated with the user network address information corresponding to the k-th network request recently sent by the terminal device does not belong to the boarding area C.
[0071] In other examples, the user behavior data includes user transaction address information. The user transaction address information includes the frequency of use of the user transaction address and the time between the last use of the user transaction address and the current moment. Specifically, the above step S3023 can be refined as follows: the intermediate correlation parameter value corresponding to the user transaction address information and each boarding area can be calculated by using the frequency of use of the user transaction address, the time between the last use of the user transaction address and the current moment, and the second calculation model corresponding to each boarding area.
[0072] Each boarding area has a corresponding second calculation model. The input of the second calculation model of the boarding area is the user transaction address information including the frequency of use of the user transaction address and the duration between the last use of the user transaction address and the current time, and the output is the intermediate correlation parameter value corresponding to the user transaction address information and the boarding area. The second calculation model can be obtained by machine learning training using a large amount of training data including user transaction address information and intermediate correlation parameter values. The user's user transaction address information can be input into the second calculation model corresponding to each boarding area to obtain the intermediate correlation parameter value corresponding to the user transaction address information output by each second calculation model and each boarding area.
[0073] For example, the calculation of the intermediate correlation parameter value corresponding to the user transaction address information and the boarding area C can be shown as the following formulas (5), (6), (7) and (8):
[0074]
[0075]
[0076] D=[d1,d2,…,d n ] (7)
[0077] dt=[dt1,dt2,…,dt n ] (8)
[0078] Among them, e2 is the intermediate correlation parameter value corresponding to the user transaction address information and the boarding area C, g(D,dt) is the analysis function corresponding to the second calculation model, d k is the usage frequency of the transaction address of the kth user, dt k is the time between the last use of the kth user transaction address and the current time, D is the sequence of the usage frequencies of multiple user transaction addresses, dt is the sequence of the time between the last use of multiple user transaction addresses and the current time, d k ∈C indicates that the place associated with the usage frequency of the k-th user transaction address belongs to the boarding area C, and else indicates that the place associated with the usage frequency of the k-th user transaction address does not belong to the boarding area C.
[0079] In some other examples, the user behavior data includes the address information of the user-bound card institution. Specifically, the above step S3023 can be refined as follows: the user-bound card institution address information and the third calculation model corresponding to each boarding area can be used to calculate the intermediate correlation parameter value corresponding to the user-bound card institution address information and each boarding area.
[0080] Each boarding area has a corresponding third calculation model. The input of the third calculation model of the boarding area is the user transaction address information including the user binding card institution address information, and the output is the intermediate correlation parameter value corresponding to the user binding card institution address information and the boarding area. The third calculation model can be obtained by machine learning training using a large amount of training data including the user binding card institution address information and the intermediate correlation parameter value. The user binding card institution address information of the user can be input into the third calculation model corresponding to each boarding area, and the intermediate correlation parameter value corresponding to the user binding card institution address information and each boarding area output by each third calculation model can be obtained.
[0081] For example, the calculation of the intermediate correlation parameter value corresponding to the user-bound card institution address information and the boarding area C can be shown in the following formulas (9), (10) and (11):
[0082]
[0083]
[0084] B=[b1,b2,…,b m ] (11)
[0085] Among them, e3 is the intermediate correlation parameter value corresponding to the user's card institution address information and the boarding area C, h(B) is the analysis function corresponding to the third calculation model, and b k is the address information of the card institution bound by the kth user, B is the Thunder of multiple users binding the address information of the card institution, b k ∈C indicates that the place associated with the address information of the institution bound to the card of the kth user belongs to the boarding area C, and else indicates that the place associated with the address information of the institution bound to the card of the kth user does not belong to the boarding area C.
[0086] Figure 4 A flowchart of a method for managing a ride code plug-in applied to a server provided in accordance with another embodiment of the present application. Figure 4 and Figure 2 The difference is that Figure 4 The ride code plug-in management method shown may also include step S304 and step S305.
[0087] In step S304, a first update request sent by the terminal device is received.
[0088] In some cases, if the regional boarding code plug-in stored in the terminal device does not contain the regional boarding code plug-in for the boarding area currently required by the boarding code client, the terminal device needs to update the stored regional boarding code plug-in and send a first update request to the server. The first update request includes a first identifier. The first identifier is used to identify the updated boarding area.
[0089] In step S305, in response to the first update request, first update plug-in parameter information is sent to the terminal device.
[0090] The server may generate first update plug-in parameter information according to the first update request, and send the first update plug-in parameter information to the terminal device. The first update plug-in parameter information includes a first download address and a first verification information. The first download address is a download address of the first regional boarding code plug-in. The first verification information is verification information of the first regional boarding code plug-in. The verification information is used to verify the legitimacy of the regional boarding code plug-in. The first regional boarding code plug-in is a regional boarding code plug-in corresponding to the updated boarding area.
[0091] When the terminal device receives the first update plug-in parameter information, it can download the first regional boarding code plug-in according to the first update plug-in parameter information to update the stored regional boarding code plug-in.
[0092] In some examples, the first update plug-in parameter information may not include the first verification information. After the terminal device responds to the first update plug-in parameter information and downloads the first area boarding code plug-in, the verification information corresponding to the first area boarding code plug-in is sent to the server. The server receives the verification information sent by the terminal device, and can use the verification information to verify the legitimacy of the first area boarding code plug-in, and send the legitimacy verification result to the terminal device.
[0093] Figure 5 A flowchart of a method for managing a ride code plug-in applied to a server provided in yet another embodiment of the present application. Figure 5 and Figure 2 The difference is that Figure 5 The ride code plug-in management method shown may also include step S306 and step S307.
[0094] In step S306, a second update request sent by the terminal device is received.
[0095] In some cases, the regional boarding code plug-in stored in the terminal device may have defects that need to be repaired, or the resource data in the regional boarding code plug-in stored in the terminal device needs to be updated, then the regional boarding code plug-in stored in the terminal device needs to be dynamically updated. The terminal device can dynamically update the regional boarding code plug-in stored in the terminal device by sending a second update request to the server. The second update request includes a second identifier and first version information. The second identifier is used to identify the second regional boarding code plug-in. The first version information is the version information of the second regional boarding code plug-in in the terminal device. The version information can specifically be a version number, which is not limited here.
[0096] In step S307, in response to the second update request, second update plug-in parameter information is sent to the terminal device.
[0097] Among them, the second update plug-in parameter information includes the second version information, the second download address and the second verification information. The second version information is the version information of the second area boarding code plug-in in the server. The second download address is the download address of the differential update package of the second area boarding code plug-in corresponding to the second version information. The second verification information is the verification information of the second area boarding code plug-in corresponding to the second version information. The differential update package includes different data between the second area boarding code plug-in corresponding to the second version information and the second area boarding code plug-in corresponding to the first version information. The differential update package is merged with the second area boarding code plug-in represented by the first version information stored in the terminal device to obtain a complete second area boarding code plug-in corresponding to the second version information. The use of differential update packages can reduce the pressure on bandwidth caused by update downloads, reduce the possibility of download failures, and improve the reliability of updates.
[0098] In some examples, the server receives the second update request and can determine whether there is a second area boarding code plug-in with a version higher than the version represented by the first version information in the server based on the first version information in the second update request. If there is a second area boarding code plug-in with a version higher than the version represented by the first version information in the server, the server sends the second update plug-in parameter information to the terminal.
[0099] In other examples, the server receives a second update request, responds to the second update request, uses the version information of the latest version of the second area boarding code plug-in in the server as the second version information, and sends the second update plug-in parameter information to the terminal device.
[0100] The terminal device receives the second update plug-in parameter information and can download the differential update package according to the second update plug-in parameter information to update the old version of the second area boarding code plug-in stored in the terminal device to the second area boarding code plug-in corresponding to the second version information.
[0101] In some examples, the second update plug-in parameter information may not include the second verification information. After the terminal device responds to the second update plug-in parameter information and downloads the differential update package, the verification information corresponding to the updated second area boarding code plug-in is sent to the server. The server receives the verification information sent by the terminal device, and can use the verification information to verify the legitimacy of the updated second area boarding code plug-in, and send the legitimacy verification result to the terminal device.
[0102] The download address in the above embodiment may be a Uniform Resource Locator (URL), which is not limited here. The verification information may be a hash value (ie, Hash), which is not limited here.
[0103] In the above embodiment, only the regional boarding code plug-in needs to be updated, and there is no need to update the boarding code client in the terminal device, thereby avoiding operational failures that may be caused by the update of the boarding code client and improving the reliability of the boarding code client in the terminal device.
[0104] An embodiment of the present application also provides a method for managing a boarding code plug-in, which is applied to a terminal device. Figure 6 This is a flow chart of a method for managing a boarding code plug-in applied to a terminal device according to an embodiment of the present application. Figure 6 As shown, the boarding code plug-in management method may include step S401 and step S402.
[0105] In step S401, the user behavior data of the user is uploaded to the server.
[0106] The terminal device can collect the user behavior data of the user and upload the user behavior data to the server, so that the server can determine the regional boarding code plug-in that the terminal device should download according to the user behavior data. Specifically, the server stores the regional boarding code plug-ins of M boarding areas. The terminal device downloads the regional boarding code plug-ins of N boarding areas with the highest user association parameter values from the regional boarding code plug-ins of the M boarding areas.
[0107] In some examples, user behavior data includes one or more of the following: user terminal location information, user network address information, user transaction address information, and user card binding institution address information. For the specific content of user behavior data, please refer to the relevant content in the above embodiment, which will not be repeated here.
[0108] In step S402, the regional boarding code plug-ins of the N boarding areas with the highest correlation parameter values with the user are downloaded from the server.
[0109] The correlation parameter value is calculated by the server according to the user behavior data. For details, please refer to the relevant description in the above embodiment, which will not be repeated here.
[0110] In some examples, the server may directly send the regional boarding code plug-ins of the N boarding areas with the highest correlation parameter values with the user to the terminal device. In other examples, the server may send the download address of the regional boarding code plug-ins of the N boarding areas with the highest correlation parameter values with the user to the terminal device. The terminal device may download the regional boarding code plug-ins of the N boarding areas with the highest correlation parameter values with the user according to the download address. The downloaded regional boarding code plug-ins may be stored in the local cache of the terminal device for subsequent use.
[0111] In an embodiment of the present application, the terminal device uploads the user's user behavior data to the server so that the server can use the user behavior data to calculate the correlation parameter value between the user and the M boarding areas stored in the server. The terminal device downloads the regional boarding code plug-ins of the N boarding areas with the highest correlation parameter values of the user from the server, and does not need to download all the regional boarding code plug-ins of the M boarding areas. On the basis of meeting the user's boarding code payment requirements, it can reduce the resources occupied by the boarding code client in the terminal device, avoid the phenomenon of freezing when the terminal device is running, and improve the operating performance of the terminal device. The regional boarding code plug-ins of the N boarding areas with the highest correlation parameter values are integrated into a boarding code client in the terminal device, which can also reduce the size of the installation package of the boarding code client and reduce the possibility of download failure and update failure.
[0112] Moreover, compared with the technical solution developed using JS and H5 and rendering the user interface (UI) through the browser x5 kernel, the regional boarding code plug-in in the embodiment of the present application is a native code, which is more secure and has a better UI rendering effect, making the operation and interaction of the boarding code client more streamlined and able to support scenario applications with higher business logic load.
[0113] Figure 7 A flowchart of a method for managing a boarding code plug-in applied to a terminal device provided in another embodiment of the present application. Figure 7 and Figure 6 The difference is that Figure 7 The shown boarding code plug-in management method may also include steps S403 to S411.
[0114] In step S403, current positioning information is obtained.
[0115] In some examples, the terminal device may periodically obtain the current location information. In other examples, the terminal device may also obtain the current location information when receiving the user's input operation on the ride code client, such as obtaining the latitude and longitude information of the terminal device.
[0116] In step S404, the current riding area is determined based on the current positioning information.
[0117] According to the current positioning information, the location of the terminal device can be determined, and the boarding area to which the location of the terminal device belongs is determined as the current boarding area. The boarding area can be represented by a boarding area identifier.
[0118] In step S405, when the boarding area corresponding to the regional boarding code plug-in stored in the terminal device includes the current boarding area, the regional boarding code plug-in of the current boarding area is loaded.
[0119] The terminal device detects whether the boarding area corresponding to the stored regional boarding code plug-in includes the current boarding area. If the boarding area corresponding to the regional boarding code plug-in stored in the terminal device includes the current boarding area, it means that the storage device stores the regional boarding code plug-in of the current boarding area, and loads the regional boarding code plug-in of the current boarding area to realize the function of paying for transportation in the current boarding area.
[0120] In step S406, when the boarding area corresponding to the regional boarding code plug-in in the terminal device does not include the current boarding area, a first update request is sent to the server.
[0121] If the boarding area corresponding to the regional boarding code plug-in stored in the terminal device does not include the current boarding area, it means that the storage device does not store the regional boarding code plug-in of the current boarding area, and it is necessary to send a first update request to the server to update the stored regional boarding code plug-in. The first update request includes a first identifier. The first identifier is used to identify the current boarding area. For example, if the boarding area is a city, the first identifier can be a city code.
[0122] Specifically, the regional boarding code plug-in may include the boarding area identification of the corresponding boarding area, and the boarding area identification in the regional boarding code plug-in in the terminal device may be detected to determine whether there is the boarding area identification of the current boarding area. If there is, it is determined that the boarding area corresponding to the regional boarding code plug-in stored in the terminal device includes the current boarding area; if not, it is determined that the boarding area corresponding to the regional boarding code plug-in stored in the terminal device does not include the current boarding area.
[0123] In step S407, first update plug-in parameter information sent by the server is received.
[0124] The first update plug-in parameter information includes a first download address and first verification information. The first download address is the download address of the first area boarding code plug-in. The first verification information is the verification information of the first area boarding code plug-in. The first area boarding code plug-in is the area boarding code plug-in of the current boarding area.
[0125] In step S408, the first area boarding code plug-in is downloaded according to the first download address.
[0126] In step S409, the first verification information is used to verify the legitimacy of the downloaded first-area boarding code plug-in.
[0127] In some examples, the legitimacy verification may also be performed by the server. Specifically, the first update plug-in parameter information may include the first download address, but not the first verification information. After downloading the first area boarding code plug-in, the terminal device may obtain verification information based on the first area boarding code plug-in and send the verification information to the server. The server performs legitimacy verification on the first area boarding code plug-in using the received verification information, obtains a legitimacy verification result, and sends the legitimacy verification result to the terminal device. The terminal device receives the legitimacy verification result and may determine whether the legitimacy verification succeeds or fails based on the legitimacy verification result.
[0128] In step S410, when the legality verification is successful, the first area boarding code plug-in is loaded.
[0129] In the event that the first area boarding code plug-in fails to load, return to step S406, resend the first update request to the server, and execute subsequent steps until the first area boarding code plug-in corresponding to the resent first update request is loaded successfully, or until the number of times the first update request is resent reaches a first preset number threshold.
[0130] In step S411, when the number of times the first update request is resent reaches a first preset number threshold, the first area boarding code plug-in is deleted.
[0131] When the number of times the first update request is resent reaches the first preset number threshold, no attempt is made to load the first area boarding code plug-in. In some examples, a prompt message for indicating a loading failure may be issued. The first preset number threshold may be set according to specific work scenarios and work requirements, and is not limited here.
[0132] Figure 8 A flowchart of a method for managing a boarding code plug-in applied to a terminal device provided in accordance with another embodiment of the present application. Figure 8 and Figure 6 The difference is that Figure 8 The ride code plug-in management method shown may also include steps S412 to S418.
[0133] In step S412, a second update request is sent to the server.
[0134] In some cases, the regional boarding code plug-in stored in the terminal device may have defects that need to be repaired, or the resource data in the regional boarding code plug-in stored in the terminal device needs to be updated, and the regional boarding code plug-in stored in the terminal device can be updated through a second update request. In some examples, the terminal device can periodically send the second update request. In other examples, the terminal device can also send the second update request to the server when receiving the user's input operation on the boarding code client.
[0135] The second update request includes a second identifier and first version information. The second identifier is used to identify the second regional boarding code plug-in. The second regional boarding code plug-in is at least part of the regional boarding code plug-in stored in the terminal device. The first version information is the version information of the second regional boarding code plug-in in the terminal device. The version information is used to identify the version of the regional boarding code plug-in, which can be a version number, which is not limited here.
[0136] In step S413, the second update plug-in parameter information sent by the server is received.
[0137] The second update plug-in parameter information includes the second version information, the second download address and the second verification information. The second version information is the version information of the second area boarding code plug-in in the server. The second download address is the download address of the differential update package of the second area boarding code plug-in corresponding to the second version information. The second verification information is the verification information of the second area boarding code plug-in corresponding to the second version information. The differential update package includes the data that is different between the second area boarding code plug-in corresponding to the second version information and the second area boarding code plug-in corresponding to the first version information.
[0138] In step S414, the differential update package is downloaded according to the second download address.
[0139] Whether to block the UI thread can be determined based on the setting information of the terminal device.
[0140] If the UI thread is not blocked, a new process can be created in the background to download the differential update package, and the terminal device can load the second area boarding code plug-in represented by the first version information stored in the terminal device, ensuring that the boarding code client can run using the second area boarding code plug-in represented by the first version information stored in the terminal device. In other words, the differential update package can be downloaded according to the second download address while the second area boarding code plug-in in the terminal device is loaded and running. The second area boarding code plug-in updated with the differential update package can be loaded when the boarding code client runs next time.
[0141] If the UI thread is blocked, the terminal device stops loading and running the second area boarding code plug-in in the terminal device, and downloads the differential update package according to the second download address. During the process of downloading the differential update package, a prompt message for prompting the user to wait may be issued. After the differential update package is downloaded and the second area boarding code plug-in is updated in the terminal device, the terminal device loads the updated second area boarding code plug-in.
[0142] In step S415, the second area boarding code plug-in and the differential update package in the terminal device are merged to obtain an updated second area boarding code plug-in.
[0143] The differential update package is merged with the second area boarding code plug-in represented by the first version information stored in the terminal device to obtain a complete second area boarding code plug-in corresponding to the second version information. Specifically, the BSDiff algorithm, Xdelta3 algorithm or Courgette algorithm can be used to realize the merger of the differential update package and the second area boarding code plug-in represented by the first version information, which is not limited here. The use of differential update packages can reduce the pressure on bandwidth caused by update downloads, reduce the possibility of download failures, and improve the reliability of updates.
[0144] In step S416, the second verification information is used to verify the legitimacy of the updated second-area boarding code plug-in.
[0145] In some examples, the legitimacy verification may also be performed by the server. Specifically, the second update plug-in parameter information may include the second version information and the second download address, but does not include the second verification information. After the terminal device downloads the differential update package and uses the differential update package to obtain the updated second area boarding code plug-in, it can obtain verification information based on the updated second area boarding code plug-in and send the verification information to the server. The server uses the received verification information to perform legitimacy verification on the updated second area boarding code plug-in, obtains a legitimacy verification result, and sends the legitimacy verification result to the terminal device. The terminal device receives the legitimacy verification result and can determine whether the legitimacy verification succeeds or fails based on the legitimacy verification result.
[0146] In step S417, if the legality verification is successful, the updated second area boarding code is loaded.
[0147] In the event that the updated second-area boarding code plug-in fails to load, return to step S413, resend the second update request to the server, and execute subsequent steps until the updated second-area boarding code plug-in corresponding to the resent second update request is loaded successfully, or until the number of times the second update request is resent reaches a second preset number threshold.
[0148] In step S418, when the number of times the second update request is resent reaches the second preset number threshold, the updated second area boarding code plug-in is deleted, and the second area boarding code plug-in before the update stored in the terminal device is loaded.
[0149] When the number of times the second update request is resent reaches the second preset number threshold, no attempt is made to load the updated second area boarding code plug-in. The updated second area boarding code plug-in is deleted, and the second area boarding code plug-in before the update stored in the terminal device is loaded, that is, the version of the second area boarding code plug-in is rolled back to the version represented by the first version information.
[0150] The download address in the above embodiment may be a Uniform Resource Locator (URL), which is not limited here. The verification information may be a hash value (ie, Hash), which is not limited here.
[0151] In the above embodiment, only the regional boarding code plug-in needs to be updated, and there is no need to update the boarding code client in the terminal device, thereby avoiding operational failures that may be caused by the update of the boarding code client and improving the reliability of the boarding code client in the terminal device.
[0152] Fig. 9 A flowchart of a method for managing a boarding code plug-in applied to a terminal device provided in yet another embodiment of the present application. Fig. 9 and Figure 6 The difference is that Fig. 9 The shown boarding code plug-in management method may also include step S419 and step S420, and / or, include step S421.
[0153] In step S419, the version information of the stored regional boarding code plug-in for each boarding area is detected.
[0154] The regional boarding code plug-in stored in the terminal device may carry the version information of the regional boarding code plug-in.
[0155] In step S420, when the version information indicates that there are more than a first preset threshold number of regional boarding code plug-ins corresponding to the same boarding area, the first preset threshold number of regional boarding code plug-ins with the latest versions for the same boarding area are retained.
[0156] In order to reduce the storage resources occupied by the regional boarding code plug-in in the terminal device and optimize the storage space of the terminal device, for a boarding area, the number of versions of the regional boarding code plug-in corresponding to the boarding area is limited to a first preset threshold. The first preset threshold can be set according to specific work scenarios and work requirements, and is not limited here.
[0157] Specifically, according to the version information of each regional boarding code, the number of versions of the regional boarding code plug-in corresponding to each boarding area can be determined. If the same boarding area corresponds to a regional boarding code plug-in with more than the first preset threshold number of versions, the first preset threshold number of regional boarding code plug-ins with the latest version are retained for the boarding area, and other versions of the regional boarding code plug-ins for the boarding area are deleted. For example, for city A, three versions of regional boarding code plug-ins are stored in the terminal device, which are, in order from old to new, version 1.0 of the regional boarding code plug-in, version 1.1 of the regional boarding code plug-in, and version 1.2 of the regional boarding code plug-in. If the first preset threshold is 2, version 1.1 of the regional boarding code plug-in and version 1.2 of the regional boarding code plug-in are retained, and version 1.0 of the regional boarding code plug-in is deleted.
[0158] In step S421, when the number of boarding areas corresponding to the stored regional boarding code plug-ins exceeds the second preset threshold, the regional boarding code plug-ins of the second preset threshold boarding areas that were most frequently used in the recent period of time are retained.
[0159] In order to reduce the storage resources occupied by the regional boarding code plug-in in the terminal device and optimize the storage space of the terminal device, the number of boarding areas corresponding to the regional boarding code plug-in in the terminal device can be limited to a second preset threshold. The second preset threshold can be set according to specific work scenarios and work requirements, and is not limited here.
[0160] Specifically, the regional boarding code plug-in may carry a boarding area identification. According to the boarding area identification, the number of boarding areas corresponding to the regional boarding code plug-in in the terminal device can be determined. If the number of boarding areas corresponding to the regional boarding code plug-in stored in the terminal device exceeds the second preset threshold, the regional boarding code plug-ins of the second preset threshold boarding areas that are most frequently used in the recent period of time are retained, and the regional boarding code plug-ins of other boarding areas stored in the terminal device are deleted. The least recently used (Least Recently Used, LRU) algorithm can be used to determine the regional boarding code plug-ins of the boarding areas retained by the terminal device. For example, the terminal device stores regional boarding code plug-ins for eight cities from A1 to A8, and the second preset threshold is 5. Using the LRU algorithm, it is determined that the five cities where the regional boarding code plug-ins are most frequently used in the recent period are A1, A3, A4, A5 and A8. Then the regional boarding code plug-ins of city A1, city A3, city A4, city A5 and city A8 are retained, and the regional boarding code plug-ins of city A2, city A6 and city A7 are deleted.
[0161] The present application also provides a boarding code plug-in management device, which can execute the boarding code plug-in management method applied to the server in the above embodiment. The boarding code plug-in management device stores regional boarding code plug-ins of M boarding areas, where M is a positive integer greater than 1. Fig.10 This is a schematic diagram of the structure of the boarding code plug-in management device provided in one embodiment of the present application. Fig.10 As shown, the boarding code plug-in management device 500 may include an acquisition module 501, a calculation module 502 and a screening module 503.
[0162] The acquisition module 501 may be used to acquire user behavior data of a user.
[0163] The calculation module 502 may be used to calculate the correlation parameter value between the user and each riding area using the user behavior data.
[0164] The screening module 503 may be used to select the regional boarding code plug-ins for the N boarding areas with the highest correlation parameter values as the regional boarding code plug-ins downloaded by the user's terminal device.
[0165] Wherein, N is a positive integer and N<M.
[0166] In an embodiment of the present application, the association parameter value between the user and each boarding area is calculated based on the user behavior data that can characterize the user's behavior habits. The higher the association parameter value between the user and the boarding area, the longer the user stays in the boarding area or the higher the frequency of the stay. The regional boarding code plug-ins of the N boarding areas with the highest association parameter values are selected as the regional boarding code plug-ins downloaded by the user's terminal device. Even if the terminal device pre-downloads the regional boarding code plug-ins of the N boarding areas where the user has stayed the longest or has the highest frequency, on the basis of meeting the user's boarding code payment requirements, the resources occupied by the boarding code client in the terminal device are reduced, the terminal device is prevented from being stuck during operation, and the operating performance of the terminal device is improved. The regional boarding code plug-ins of the N boarding areas with the highest association parameter values are integrated into a boarding code client in the terminal device, which can reduce the size of the installation package of the boarding code client and reduce the possibility of download failure and update failure.
[0167] Moreover, compared with the technical solution developed using JS and H5 and rendering the user interface (UI) through the browser x5 kernel, the regional boarding code plug-in in the embodiment of the present application is a native code, which is more secure and has a better UI rendering effect, making the operation and interaction of the boarding code client more streamlined and able to support scenario applications with higher business logic load.
[0168] In the above embodiment, the user behavior data includes the user terminal location information. The calculation module 502 can be specifically used to: determine the target boarding area to which the location located by the user terminal location information belongs; and set the correlation parameter value between the user and the target boarding area to the maximum value.
[0169] In the above embodiment, the user behavior data includes at least one of the user network address information, the user transaction address information and the user binding card institution address information. The calculation module 502 can be specifically used to: calculate the intermediate correlation parameter value corresponding to each user behavior data and each riding area; based on the intermediate correlation parameter value corresponding to each user behavior data and each riding area, and the preset weight value corresponding to each user behavior data, calculate the correlation parameter value between the user and each riding area.
[0170] In some examples, the user behavior data includes user network address information. The calculation module 502 can be specifically used to calculate the intermediate correlation parameter value corresponding to the user network address information and each riding area using the user network address information corresponding to at least one network request recently sent by the user's terminal device and the first calculation model corresponding to each riding area.
[0171] In other examples, the user behavior data includes user transaction address information, and the user transaction address information includes the frequency of use of the user transaction address and the time between the last use of the user transaction address and the current time. The calculation module 502 can be specifically used to calculate the intermediate correlation parameter value corresponding to the user transaction address information and each boarding area using the frequency of use of the user transaction address, the time between the last use of the user transaction address and the current time, and the second calculation model corresponding to each boarding area.
[0172] In some other examples, the user behavior data includes the address information of the user-bound card institution. The calculation module 502 can be specifically used to calculate the intermediate correlation parameter value corresponding to the user-bound card institution address information and each boarding area using the user-bound card institution address information and the third calculation model corresponding to each boarding area.
[0173] Fig.11 A schematic diagram of the structure of a boarding code plug-in management device provided in another embodiment of the present application. Fig.11 and Fig.10 The difference is that Fig.11 The boarding code plug-in management device 500 shown may also include a first receiving module 504 and a first sending module 505.
[0174] The first receiving module 504 may be configured to receive a first update request sent by a terminal device of a user.
[0175] The first update request includes a first identifier, which is used to identify the updated boarding area.
[0176] The first sending module 505 may be configured to respond to a first update request and send first update plug-in parameter information to the terminal device.
[0177] The first update plug-in parameter information includes a first download address and first verification information. The first download address is the download address of the first area boarding code plug-in. The first verification information is the verification information of the first area boarding code plug-in. The first area boarding code plug-in is the area boarding code plug-in of the updated boarding area.
[0178] Fig.12 A schematic diagram of the structure of a boarding code plug-in management device provided in yet another embodiment of the present application. Fig.12 and Fig.10 The difference is that Fig.12 The boarding code plug-in management device 500 shown may also include a second receiving module 506 and a second sending module 507.
[0179] The second receiving module 506 may be configured to receive a second update request sent by a terminal device.
[0180] The second update request includes a second identifier and first version information. The second identifier is used to identify the second area boarding code plug-in. The first version information is the version information of the second area boarding code plug-in in the terminal device.
[0181] The second sending module 507 may be configured to respond to the second update request and send second update plug-in parameter information to the terminal device.
[0182] The second update plug-in parameter information includes the second version information, the second download address and the second verification information. The second version information is the version information of the second area boarding code plug-in in the server. The second download address is the download address of the differential update package of the second area boarding code plug-in corresponding to the second version information. The second verification information is the verification information of the second area boarding code plug-in corresponding to the second version information.
[0183] The present application also provides a boarding code plug-in management device, which can execute the boarding code plug-in management method applied to the terminal device in the above embodiment. Fig.13 This is a schematic diagram of the structure of the boarding code plug-in management device provided in one embodiment of the present application. Fig.13 As shown, the boarding code plug-in management device 600 may include an upload module 601 and a download module 602.
[0184] The upload module 601 may be used to upload the user behavior data of the user to the server.
[0185] Among them, the server stores regional boarding code plug-ins for M boarding areas, where M is a positive integer greater than 1.
[0186] The download module 602 may be used to download from the server the regional boarding code plug-ins of the N boarding areas with the highest correlation parameter values with the user.
[0187] The correlation parameter value is calculated based on the user behavior data. N is a positive integer and N<M.
[0188] In an embodiment of the present application, the terminal device uploads the user's user behavior data to the server so that the server can use the user behavior data to calculate the correlation parameter value between the user and the M boarding areas stored in the server. The terminal device downloads the regional boarding code plug-ins of the N boarding areas with the highest correlation parameter values of the user from the server, and does not need to download all the regional boarding code plug-ins of the M boarding areas. On the basis of meeting the user's boarding code payment requirements, it can reduce the resources occupied by the boarding code client in the terminal device, avoid the phenomenon of freezing when the terminal device is running, and improve the operating performance of the terminal device. The regional boarding code plug-ins of the N boarding areas with the highest correlation parameter values are integrated into a boarding code client in the terminal device, which can also reduce the size of the installation package of the boarding code client and reduce the possibility of download failure and update failure.
[0189] Moreover, compared with the technical solution developed using JS and H5 and rendering the user interface (UI) through the browser x5 kernel, the regional boarding code plug-in in the embodiment of the present application is a native code, which is more secure and has a better UI rendering effect, making the operation and interaction of the boarding code client more streamlined and able to support scenario applications with higher business logic load.
[0190] In some examples, the user behavior data includes one or more of the following: user terminal location information, user network address information, user transaction address information, and user card binding institution address information.
[0191] Fig.14 A schematic diagram of the structure of a boarding code plug-in management device provided in another embodiment of the present application. Fig.14 and Fig.13 The difference is that Fig.14 The boarding code plug-in management device 600 shown may also include a positioning module 603, a first loading module 604, a first sending module 605, a first receiving module 606, a first verification module 607 and a first processing module 608.
[0192] The positioning module 603 may be used to obtain current positioning information and determine the current riding area based on the current positioning information.
[0193] The first loading module 604 can be used to load the regional boarding code plug-in corresponding to the current boarding area when the boarding area corresponding to the regional boarding code plug-in stored in the terminal device includes the current boarding area.
[0194] The first sending module 605 can be used to send a first update request to the server when the boarding area corresponding to the regional boarding code plug-in in the terminal device does not include the current boarding area.
[0195] The first update request includes a first identifier, which is used to identify the current boarding area.
[0196] The first receiving module 606 may be configured to receive first update plug-in parameter information sent by the server.
[0197] The first update plug-in parameter information includes a first download address and first verification information. The first download address is the download address of the first area boarding code plug-in. The first verification information is the verification information of the first area boarding code plug-in. The first area boarding code plug-in is the area boarding code plug-in of the current boarding area.
[0198] The download module 602 can also be used to download the first area boarding code plug-in according to the first download address.
[0199] The first verification module 607 can be used to use the first verification information to verify the legitimacy of the downloaded first-area boarding code plug-in.
[0200] The first loading module 604 can also be used to load the first area boarding code plug-in when the legality verification is successful.
[0201] The first sending module 605 can also be used to resend the first update request to the server when the first area boarding code plug-in fails to load, until the first area boarding code plug-in corresponding to the resent first update request is loaded successfully, or until the number of times the first update request is resent reaches a first preset number threshold.
[0202] The first processing module 608 can be used to delete the first area boarding code plug-in when the number of times the first update request is resent reaches a first preset number threshold.
[0203] Fig.15 A schematic diagram of the structure of a boarding code plug-in management device provided in yet another embodiment of the present application. Fig.15 and Fig.13 The difference is that Fig.15 The boarding code plug-in management device 600 shown may also include a second sending module 609, a second receiving module 610, a merging module 611, a second verification module 612, a second loading module 613 and a second processing module 614.
[0204] The second sending module 609 may be configured to send a second update request to the server.
[0205] The second update request includes a second identifier and first version information. The second identifier is used to identify the second area boarding code plug-in. The first version information is the version information of the second area boarding code plug-in in the terminal device.
[0206] The second receiving module 610 may be configured to receive second update plug-in parameter information sent by the server.
[0207] The second update plug-in parameter information includes the second version information, the second download address and the second verification information. The second version information is the version information of the second area boarding code plug-in in the server. The second download address is the download address of the differential update package of the second area boarding code plug-in corresponding to the second version information. The second verification information is the verification information of the second area boarding code plug-in corresponding to the second version information.
[0208] The download module 602 may also be configured to download a differential update package according to the second download address.
[0209] The merging module 611 can be used to merge the second area boarding code plug-in in the terminal device with the differential update package to obtain an updated second area boarding code plug-in.
[0210] The second verification module 612 can be used to use the second verification information to verify the legitimacy of the updated second area boarding code plug-in.
[0211] The second loading module 613 can be used to load the updated second area boarding code when the legality verification is successful.
[0212] The second sending module 609 can also be used to resend a second update request to the server if the updated second-area boarding code plug-in fails to load, until the updated second-area boarding code plug-in corresponding to the resent second update request is loaded successfully, or until the number of times the second update request is resent reaches a second preset number threshold.
[0213] The second processing module 614 can be used to delete the updated second area boarding code plug-in and load the second area boarding code plug-in before the update stored in the terminal device when the number of times the second update request is resent reaches a second preset number threshold.
[0214] In some examples, the download module 602 can be specifically used to download the differential update package according to the second download address when the second area boarding code plug-in is loaded and running in the terminal device.
[0215] In other examples, the download module 602 can be specifically used to stop the loading and running of the second area boarding code plug-in in the terminal device, and download the differential update package according to the second download address.
[0216] Fig.16 A schematic diagram of the structure of a boarding code plug-in management device provided in yet another embodiment of the present application. Fig.16 and Fig.13 The difference is that Fig.16 The ride code plug-in management device shown may also include a version detection module 615, a first optimization module 616 and a second optimization module 617.
[0217] The version detection module 615 can be used to detect the version information of the regional boarding code plug-in stored in each boarding area.
[0218] The first optimization module 616 can be used to retain the latest first preset threshold number of regional boarding code plug-ins for the same boarding area when the version information indicates that there are more than a first preset threshold number of versions of regional boarding code plug-ins for the same boarding area.
[0219] The second optimization module 617 can be used to retain the regional boarding code plug-ins of the second preset threshold number of boarding areas that were most frequently used in the recent period of time when the number of boarding areas corresponding to the stored regional boarding code plug-ins exceeds the second preset threshold.
[0220] Fig.17 This is a schematic diagram of the structure of a server provided in an embodiment of the present application. Fig.17 As shown, the server 100 includes a memory 101 , a processor 102 , and a computer program stored in the memory 101 and executable on the processor 102 .
[0221] In an example, the processor 102 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0222] The memory 101 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 101 may include a HDD, a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In appropriate cases, the memory 101 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 101 may be inside or outside the terminal hotspot to open the server 100. In a specific embodiment, the memory 101 is a non-volatile solid-state memory. In a specific embodiment, the memory 101 includes a read-only memory (ROM). In appropriate cases, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory, or a combination of two or more of these.
[0223] The processor 102 runs a computer program corresponding to the executable program code by reading the executable program code stored in the memory 101, so as to implement the boarding code plug-in management method applied to the server in the above-mentioned embodiment.
[0224] In one example, the server 100 may further include a communication interface 103 and a bus 104. Fig.17 As shown, the memory 101, the processor 102, and the communication interface 103 are connected via a bus 104 and communicate with each other.
[0225] The communication interface 103 is mainly used to realize the communication between the modules, devices, units and / or equipment in the embodiment of the present application. The communication interface 103 can also be used to access input devices and / or output devices.
[0226] The bus 104 includes hardware, software or both, coupling the components of the server 100 to each other. For example and not limitation, the bus 104 may include an accelerated graphics port (AGP) or other graphics bus, an enhanced industry standard architecture (EISA) bus, a front-side bus (FSB), a hypertransport (HT) interconnect, an industry standard architecture (ISA) bus, an infinite bandwidth interconnect, a low pin count (LPC) bus, a memory bus, a microchannel architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standard association local (VLB) bus or other suitable bus or a combination of two or more of these. Where appropriate, the bus 104 may include one or more buses. Although the present application embodiment describes and illustrates a specific bus, the present application considers any suitable bus or interconnect.
[0227] Fig.18 This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. Fig.18 As shown, the terminal device 200 includes a memory 201 , a processor 202 , and a computer program stored in the memory 201 and executable on the processor 202 .
[0228] In an example, the processor 202 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0229] The memory 201 may include a large capacity memory for data or instructions. For example, but not limitation, the memory 201 may include a HDD, a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 201 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 201 may be inside or outside the terminal device 200 at the terminal hotspot. In a specific embodiment, the memory 201 is a non-volatile solid-state memory. In a specific embodiment, the memory 201 includes a read-only memory (ROM). In appropriate cases, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.
[0230] The processor 202 runs a computer program corresponding to the executable program code by reading the executable program code stored in the memory 201, so as to implement the boarding code plug-in management method applied to the terminal device in the above embodiment.
[0231] In one example, the terminal device 200 may further include a communication interface 203 and a bus 204. Fig.18 As shown, the memory 201, the processor 202, and the communication interface 203 are connected via a bus 204 and communicate with each other.
[0232] The communication interface 203 is mainly used to realize the communication between the modules, devices, units and / or equipment in the embodiment of the present application. The communication interface 203 can also be used to access input devices and / or output devices.
[0233] The bus 204 includes hardware, software or both, coupling the components of the server 200 to each other. For example, but not limitation, the bus 204 may include an accelerated graphics port (AGP) or other graphics bus, an enhanced industrial standard architecture (EISA) bus, a front-side bus (FSB), a hypertransport (HT) interconnect, an industrial standard architecture (ISA) bus, an infinite bandwidth interconnect, a low pin count (LPC) bus, a memory bus, a microchannel architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standard association local (VLB) bus or other suitable bus or a combination of two or more of these. Where appropriate, the bus 204 may include one or more buses. Although the present application embodiment describes and illustrates a specific bus, the present application considers any suitable bus or interconnect.
[0234] The present application also provides a boarding code plug-in management system, such as Figure 1 As shown, the boarding code plug-in management system includes the server 100 and the terminal device 200 in the above-mentioned embodiment.
[0235] The embodiment of the present application also provides a machine-readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the boarding code plug-in management method applied to the server in the above embodiment or the boarding code plug-in management method applied to the terminal device in the above embodiment can be implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here. Among them, the above-mentioned machine-readable storage medium may include a read-only memory (Read-Only Memory, referred to as ROM), a random access memory (Random Access Memory, referred to as RAM), a disk or an optical disk, etc., which is not limited here.
[0236] It should be clear that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. For device embodiments, server embodiments, terminal device embodiments, system embodiments, and machine-readable storage medium embodiments, the relevant parts can refer to the description part of the method embodiment. The present application is not limited to the specific steps and structures described above and shown in the figures. Those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application. In addition, for the sake of brevity, a detailed description of known method technologies is omitted here.
[0237] Those skilled in the art should understand that the above embodiments are exemplary rather than restrictive. Different technical features appearing in different embodiments can be combined to achieve beneficial effects. Based on the study of the drawings, the specification and the claims, those skilled in the art should be able to understand and implement other variations of the disclosed embodiments. In the claims, the term "comprising" does not exclude other devices or steps; the quantifier "one" does not exclude multiple; the terms "first" and "second" are used to indicate names rather than to indicate any specific order. Any figure marks in the claims should not be understood as limiting the scope of protection. The functions of multiple parts appearing in the claims can be implemented by a single hardware or software module. The appearance of certain technical features in different dependent claims does not mean that these technical features cannot be combined to achieve beneficial effects.
Claims
1. A method for managing a ride code plug-in, characterized in that: Applied to a server, the server stores regional boarding code plug-ins of M boarding areas, where M is a positive integer greater than 1, and the method comprises: Obtain user behavior data of users; Utilizing the user behavior data, calculating the correlation parameter value between the user and each of the boarding areas, wherein the boarding areas are divided according to regions using different boarding code payment systems; Selecting the regional boarding code plug-ins of the N boarding areas with the highest association parameter values as the regional boarding code plug-ins downloaded by the user's terminal device, where N is a positive integer greater than 1 and N<M, and the regional boarding code plug-ins include functional codes and resource data for realizing the boarding code function of the boarding area; The user behavior data includes user terminal location information, and the calculation of the association parameter value between the user and each of the riding areas using the user behavior data includes: Determine a target boarding area to which the location located by the user terminal positioning information belongs; Setting the parameter value of the association between the user and the target boarding area to a maximum value; The user behavior data includes at least one of user network address information, user transaction address information, and user card binding institution address information. The calculation of the association parameter value between the user and each of the riding areas using the user behavior data includes: Calculating the intermediate correlation parameter value corresponding to each item of the user behavior data and each of the riding areas; Based on the intermediate correlation parameter value corresponding to each item of the user behavior data and each of the boarding areas, and the preset weight value corresponding to each item of the user behavior data, the correlation parameter value between the user and each of the boarding areas is calculated.
2. The method according to claim 1, characterized in that The user behavior data includes the user network address information; The calculating of the intermediate correlation parameter value corresponding to each item of the user behavior data and each riding area includes: The intermediate correlation parameter value between the user network address information and each of the boarding areas is calculated by using the user network address information corresponding to at least one network request recently sent by the user's terminal device and the first calculation model corresponding to each of the boarding areas.
3. The method according to claim 1, characterized in that The user behavior data includes the user transaction address information, and the user transaction address information includes the usage frequency of the user transaction address and the time between the last use of the user transaction address and the current time; The calculating of the intermediate correlation parameter value corresponding to each item of the user behavior data and each riding area includes: The intermediate correlation parameter value corresponding to the user transaction address information and each of the boarding areas is calculated by utilizing the frequency of use of the user transaction address, the time between the last use of the user transaction address and the current moment, and the second calculation model corresponding to each of the boarding areas.
4. The method according to claim 1, characterized in that The user behavior data includes the address information of the card institution bound to the user; The calculating of the intermediate correlation parameter value corresponding to each item of the user behavior data and each riding area includes: The intermediate correlation parameter value corresponding to the user-bound card institution address information and each of the boarding areas is calculated by using the third calculation model corresponding to each of the boarding areas.
5. The method according to claim 1, characterized in that Also includes: receiving a first update request sent by the terminal device, wherein the first update request includes a first identifier, and the first identifier is used to identify an updated boarding area; In response to the first update request, first update plug-in parameter information is sent to the terminal device, the first update plug-in parameter information including a first download address and first verification information, the first download address is the download address of the first area boarding code plug-in, the first verification information is the verification information of the first area boarding code plug-in, and the first area boarding code plug-in is the area boarding code plug-in of the updated boarding area.
6. The method according to claim 1, characterized in that Also includes: Receive a second update request sent by the terminal device, the second update request includes a second identifier and first version information, the second identifier is used to identify the second area boarding code plug-in, and the first version information is the version information of the second area boarding code plug-in in the terminal device; In response to the second update request, second update plug-in parameter information is sent to the terminal device, the second update plug-in parameter information including second version information, a second download address and second verification information, the second version information is the version information of the second area boarding code plug-in in the server, the second download address is the download address of the differential update package of the second area boarding code plug-in corresponding to the second version information, and the second verification information is the verification information of the second area boarding code plug-in corresponding to the second version information.
7. A method for managing a ride code plug-in, characterized in that: Applied to a terminal device, the method comprises: Upload the user behavior data of the user to the server, wherein the server stores the regional boarding code plug-ins of M boarding areas, where M is a positive integer greater than 1; Downloading from the server the regional boarding code plug-ins of the N boarding areas with the highest correlation parameter values with the user, wherein the correlation parameter values are calculated based on the user behavior data, N is a positive integer greater than 1 and N<M, wherein the boarding areas are divided according to regions using different boarding code payment systems, and the regional boarding code plug-ins include functional codes and resource data for implementing the boarding code function of the boarding area; The user behavior data includes user terminal positioning information, the association parameter value between the user and the target boarding area is set to a maximum value, and the target boarding area is the boarding area to which the location located by the user terminal positioning information belongs; The user behavior data includes one or more of the user's network address information, the user's transaction address information, and the user's card binding institution address information. The association parameter value between the user and each of the boarding areas is calculated based on the intermediate association parameter value corresponding to each item of the user behavior data and each of the boarding areas, and the preset weight value corresponding to each item of the user behavior data.
8. The method according to claim 7, characterized in that Also includes: Get current location information; Determine the current riding area according to the current positioning information; When the boarding area corresponding to the regional boarding code plug-in stored in the terminal device includes the current boarding area, the regional boarding code plug-in corresponding to the current boarding area is loaded.
9. The method according to claim 8, characterized in that After determining the current riding area, the method further includes: When the boarding area corresponding to the regional boarding code plug-in in the terminal device does not include the current boarding area, sending a first update request to the server, wherein the first update request includes a first identifier, and the first identifier is used to identify the current boarding area; Receive first update plug-in parameter information sent by the server, the first update plug-in parameter information includes a first download address and first verification information, the first download address is the download address of the first regional boarding code plug-in, the first verification information is the verification information of the first regional boarding code plug-in, and the first regional boarding code plug-in is the regional boarding code plug-in of the current boarding area; Download the first area boarding code plug-in according to the first download address; Using the first verification information, verify the legitimacy of the downloaded first area boarding code plug-in; When the legality verification is successful, the first area boarding code plug-in is loaded.
10. The method according to claim 9, characterized in that After the first area ride code plug-in is loaded, the method further includes: In the case where the first area boarding code plug-in fails to load, resending the first update request to the server until the first area boarding code plug-in corresponding to the resent first update request is successfully loaded, or until the number of times the first update request is resent reaches a first preset number threshold; When the number of times the first update request is resent reaches a first preset number threshold, the first area boarding code plug-in is deleted.
11. The method according to claim 7, characterized in that Also includes: Sending a second update request to the server, the second update request including a second identifier and first version information, the second identifier is used to identify the second area boarding code plug-in, and the first version information is the version information of the second area boarding code plug-in in the terminal device; Receive the second update plug-in parameter information sent by the server, the second update plug-in parameter information includes second version information, a second download address and second verification information, the second version information is the version information of the second area boarding code plug-in in the server, the second download address is the download address of the differential update package of the second area boarding code plug-in corresponding to the second version information, and the second verification information is the verification information of the second area boarding code plug-in corresponding to the second version information; Downloading the differential update package according to the second download address; Merging the second area boarding code plug-in in the terminal device with the difference update package to obtain an updated second area boarding code plug-in; Using the second verification information, verify the legitimacy of the updated second-area boarding code plug-in; If the legality verification is successful, load the updated second area boarding code.
12. The method according to claim 11, characterized in that After the updated second area boarding code is loaded, the method further includes: In the case that the updated second-area boarding code plug-in fails to load, resending the second update request to the server until the updated second-area boarding code plug-in corresponding to the resent second update request is successfully loaded, or until the number of times the second update request is resent reaches a second preset number threshold; When the number of times the second update request is resent reaches the second preset number threshold, the updated second area boarding code plug-in is deleted, and the second area boarding code plug-in before the update stored in the terminal device is loaded.
13. The method according to claim 11, characterized in that The downloading of the differential update package according to the second download address includes: When the second area boarding code plug-in is loaded and run in the terminal device, the difference update package is downloaded according to the second download address; or, Stop loading and running the second area boarding code plug-in in the terminal device, and download the differential update package according to the second download address.
14. The method according to claim 10, characterized in that Also includes: Detecting the version information of the regional boarding code plug-in stored in each boarding area; When the version information indicates that there are more than a first preset threshold number of regional boarding code plug-ins corresponding to the same boarding area, the first preset threshold number of regional boarding code plug-ins with the latest version for the same boarding area are retained.
15. The method according to claim 10, characterized in that Also includes: When the number of the boarding areas corresponding to the stored regional boarding code plug-ins exceeds a second preset threshold, the regional boarding code plug-ins of the second preset threshold number of the boarding areas that are most frequently used in the recent period of time are retained.
16. A boarding code plug-in management device, characterized in that: The device stores regional boarding code plug-ins of M boarding areas, where M is a positive integer greater than 1, and the device includes: An acquisition module is used to acquire user behavior data of users; A calculation module, used to calculate the association parameter value between the user and each of the boarding areas by using the user behavior data, wherein the boarding areas are divided according to regions using different boarding code payment systems; A screening module is used to select the regional boarding code plug-ins of the N boarding areas with the highest correlation parameter values as the regional boarding code plug-ins downloaded by the user's terminal device, N is a positive integer greater than 1 and N<M, and the regional boarding code plug-in includes a functional code and resource data that realizes the boarding code function of the boarding area The user behavior data includes user terminal location information, and the calculation module is specifically used to: determine the target boarding area to which the location located by the user terminal location information belongs; set the association parameter value between the user and the target boarding area to the maximum value; The user behavior data includes at least one of the user's network address information, the user's transaction address information and the user's card binding institution address information. The calculation module is specifically used to: calculate the intermediate correlation parameter value corresponding to each item of the user behavior data and each of the boarding areas; based on the intermediate correlation parameter value corresponding to each item of the user behavior data and each of the boarding areas, and the preset weight value corresponding to each item of the user behavior data, calculate the correlation parameter value between the user and each of the boarding areas.
17. A boarding code plug-in management device, characterized in that: include: An upload module, used to upload the user behavior data of the user to a server, wherein the server stores regional boarding code plug-ins of M boarding areas, where M is a positive integer greater than 1; A download module, used for downloading the regional boarding code plug-ins of the N boarding areas with the highest correlation parameter values with the user from the server, wherein the correlation parameter values are calculated according to the user behavior data, N is a positive integer greater than 1 and N<M, wherein the boarding areas are divided according to regions adopting different boarding code payment systems, and the regional boarding code plug-ins include functional codes and resource data for realizing the boarding code function of the boarding area; The user behavior data includes user terminal positioning information, the association parameter value between the user and the target boarding area is set to a maximum value, and the target boarding area is the boarding area to which the location located by the user terminal positioning information belongs; The user behavior data includes one or more of the user's network address information, the user's transaction address information, and the user's card binding institution address information. The association parameter value between the user and each of the boarding areas is calculated based on the intermediate association parameter value corresponding to each item of the user behavior data and each of the boarding areas, and the preset weight value corresponding to each item of the user behavior data.
18. A server, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or the instruction is executed by the processor, the boarding code plug-in management method as described in any one of claims 1 to 6 is implemented.
19. A terminal device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or the instruction is executed by the processor, the boarding code plug-in management method as described in any one of claims 7 to 15 is implemented.
20. A boarding code plug-in management system, characterized in that: It comprises the server as claimed in claim 18 and the terminal device as claimed in claim 19.
21. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores programs or instructions, and when the programs or instructions are executed by the processor, the boarding code plug-in management method as described in any one of claims 1 to 6 or the boarding code plug-in management method as described in any one of claims 7 to 15 is implemented.
Citation Information
Patent Citations
Plug-in upgrading method and device
CN107239299A
Sorting method, mobile terminal and storage device
CN107948423A
Mobile satation with function of operating applicationon lacation based and method thereof
KR1020060012390A
Systems and methods for location-based application installation
US20150355893A1