CN116017420A - Service processing method and device, storage medium and electronic equipment - Google Patents

Service processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN116017420A
CN116017420A CN202211583501.8A CN202211583501A CN116017420A CN 116017420 A CN116017420 A CN 116017420A CN 202211583501 A CN202211583501 A CN 202211583501A CN 116017420 A CN116017420 A CN 116017420A
Authority
CN
China
Prior art keywords
equipment
target
link address
local link
ipv6 local
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211583501.8A
Other languages
Chinese (zh)
Inventor
彭昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Douyin Vision Co Ltd
Original Assignee
Douyin Vision Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Douyin Vision Co Ltd filed Critical Douyin Vision Co Ltd
Priority to CN202211583501.8A priority Critical patent/CN116017420A/en
Publication of CN116017420A publication Critical patent/CN116017420A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The disclosure relates to a service processing method, a device, a storage medium and electronic equipment, so as to improve the accuracy of service processing. The service processing method comprises the following steps: after a first application program is started, an IPv6 local link address of a target network port in target equipment is obtained, the target equipment is equipment for installing the first application program, and the target network port is a network port with the IPv6 local link address unchanged after the target equipment is started; if the IPv6 local link address is acquired, determining a first equipment identifier of the target equipment according to the IPv6 local link address; and responding to the service request triggered in the first application program, and obtaining a service processing result according to the first equipment identifier.

Description

Service processing method and device, storage medium and electronic equipment
Technical Field
The disclosure relates to the technical field of computers, and in particular relates to a business processing method, a business processing device, a storage medium and electronic equipment.
Background
In the business scenario of an application program, it is often required to acquire a device identifier to perform corresponding business processing, for example, in a shopping application program, it is generally limited that a user can only participate in a preferential activity, so that it is required to acquire the device identifier to determine whether the corresponding user has already participated in the preferential activity.
In the related art, the MAC (Media Access Control ) address of the Wi-Fi (wireless fidelity ) portal may be acquired as the device identification. However, each time a device connects to a different Wi-Fi hotspot, a MAC address is randomly generated, which results in that the same device may have a plurality of different MAC addresses, thereby affecting the service processing result.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In a first aspect, the present disclosure provides a service processing method, where the method includes:
after a first application program is started, an IPv6 local link address of a target network port in target equipment is obtained, the target equipment is equipment for installing the first application program, and the target network port is a network port with the IPv6 local link address unchanged after the target equipment is started;
if the IPv6 local link address is acquired, determining a first equipment identifier of the target equipment according to the IPv6 local link address;
And responding to the service request triggered in the first application program, and obtaining a service processing result according to the first equipment identifier.
In a second aspect, the present disclosure provides a service processing apparatus, the apparatus comprising:
the system comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring an IPv6 local link address of a target network port in target equipment after a first application program is started, the target equipment is equipment for installing the first application program, and the target network port is a network port of which the IPv6 local link address is unchanged after the target equipment is started;
the determining module is used for determining a first equipment identifier of the target equipment according to the IPv6 local link address when the IPv6 local link address is acquired;
and the processing module is used for responding to the service request triggered in the first application program and obtaining a service processing result according to the first equipment identifier.
In a third aspect, the present disclosure provides a non-transitory computer readable medium having stored thereon a computer program which, when executed by a processing device, implements the steps of the method described in the first aspect.
In a fourth aspect, the present disclosure provides an electronic device comprising:
a storage device having a computer program stored thereon;
Processing means for executing said computer program in said storage means to carry out the steps of the method described in the first aspect.
By the technical scheme, after the first application program is started, the IPv6 local link address of the target network port in the target equipment for installing the first application program can be obtained to determine the equipment identification, so that service processing is performed according to the equipment identification. The target network port is a network port in which an IPv6 local link address is kept unchanged after the target device is started, so that the device identification of the target device is determined through the IPv6 local link address, the stability and invariance of the device identifications acquired by the same device can be improved, the condition that different devices acquire the same device identification is reduced, the normal execution of a service processing process is ensured, and the accuracy of a service processing result is improved.
Additional features and advantages of the present disclosure will be set forth in the detailed description which follows.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale. In the drawings:
FIG. 1 is a flow chart of a business processing method according to an exemplary embodiment of the present disclosure;
FIG. 2 is a process diagram of a business processing method according to another exemplary embodiment of the present disclosure;
FIG. 3 is a block diagram of a business processing apparatus according to an exemplary embodiment of the present disclosure;
fig. 4 is a block diagram of an electronic device, according to an exemplary embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units. It is further noted that references to "one" or "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
It will be appreciated that prior to using the technical solutions disclosed in the embodiments of the present disclosure, the user should be informed and authorized of the type, usage range, usage scenario, etc. of the personal information related to the present disclosure in an appropriate manner according to the relevant legal regulations.
For example, in response to receiving an active request from a user, a prompt is sent to the user to explicitly prompt the user that the operation it is requesting to perform will require personal information to be obtained and used with the user. Thus, the user can autonomously select whether to provide personal information to software or hardware such as an electronic device, an application program, a server or a storage medium for executing the operation of the technical scheme of the present disclosure according to the prompt information.
As an alternative but non-limiting implementation, in response to receiving an active request from a user, the manner in which the prompt information is sent to the user may be, for example, a popup, in which the prompt information may be presented in a text manner. In addition, a selection control for the user to select to provide personal information to the electronic device in a 'consent' or 'disagreement' manner can be carried in the popup window.
It will be appreciated that the above-described notification and user authorization process is merely illustrative and not limiting of the implementations of the present disclosure, and that other ways of satisfying relevant legal regulations may be applied to the implementations of the present disclosure.
Meanwhile, it can be understood that the data (including but not limited to the data itself, the acquisition or the use of the data) related to the technical scheme should conform to the requirements of the corresponding laws and regulations and related regulations.
In the business scenario of an application program, it is often required to acquire a device identifier to perform corresponding business processing, for example, in a shopping application program, it is generally limited that a user can only participate in a preferential activity, so that it is required to acquire the device identifier to determine whether the corresponding user has already participated in the preferential activity.
In the related art, for an android operating system, a MAC (Media Access Control ) address of a Wi-Fi (wireless fidelity ) portal may be obtained as a device identifier. However, each time a device connects to a different Wi-Fi hotspot, a MAC address is randomly generated, which results in that the same device may have a plurality of different MAC addresses, thereby affecting the service processing result.
In addition, in the related art, the device identifier may also be determined for the android operating system by: 1) The IMEI (International Mobile Equipment Identity,) of the device is obtained as the device identifier, but in the Android operating system with version higher than Android 9, the application program is prohibited from obtaining the IMEI. 2) OAID (Open Advertising Identifier, advertisement identifier) is obtained as device identification, but this approach requires device vendor implementation, and coverage is not high in devices with operating system versions lower than Android 9. 3) The Android ID is obtained as the equipment identifier, but the mode starts to be supported in an operating system with a version higher than that of Android 8, and the values obtained by application programs of different developers in the same equipment are different, so that the service interaction capability of the cross-application program is poor. 4) A value is calculated based on the system start-up time and is used as a device identifier, but the system start-up time cannot be directly acquired in the android operating system, and the current time is required to be subtracted by the system running time to obtain the start-up time. If the on-time unit is accurate to seconds, the device identifications of the different devices may have a small probability of coincidence. If the starting time unit is accurate to millisecond, the problem of larger error occurs, and the user changes time, network time is automatically updated or the calculation thread is dormant, and the like, so that the calculated values of the same equipment in different application programs or different context environments are different, and the same equipment is further caused to obtain different equipment identifications, and the service processing result is affected.
Whereas for iOS operating systems, an IDFA (Identifier For Advertising, advertisement identifier) is typically obtained as the device identification. However, the advertisement tracking function is forbidden from the operating system with the version of iOS 10, the application program can acquire the IDFA after the user authorization, and if the user is not authorized, the IDFA cannot be acquired, so that the device identifier cannot be acquired to perform service processing, and the service processing process is affected.
In view of this, the present disclosure provides a service processing method, which determines a device identifier according to an IPv6 local link address of a stable network port in a device, improves stability and invariance of the device identifier acquired by the same device, reduces the situations that different devices acquire the same device identifier, ensures normal execution of a service processing process, and improves accuracy of a service processing result.
Fig. 1 is a flowchart illustrating a service processing method according to an exemplary embodiment of the present disclosure. Referring to fig. 1, the service processing method includes the steps of:
step 101, after the first application program is started, an IPv6 local link address of a target network port in target equipment is obtained, the target equipment is equipment for installing the first application program, and the target network port is a network port with the IPv6 local link address unchanged after the target equipment is started.
Step 102, if the IPv6 local link address is obtained, determining the first device identifier of the target device according to the IPv6 local link address.
And step 103, responding to the service request triggered in the first application program, and obtaining a service processing result according to the first equipment identifier.
For example, the target network port in the embodiment of the present disclosure is a stable IPv6 address network port, which may be a first type network port that is not turned off for restarting after the device is started, but is restarted when the device is restarted, or may be a second type network port that is not turned off for restarting after the device is started, and is not restarted when the device is restarted. It should be understood that, whether the first type network port or the second type network port, the IPv6 local link address of the network port remains unchanged after the device is started at a time. For example, a dummy 0 network port in the android operating system is not closed and restarted after the device is started, that is, the IPv6 local link address of the network port is unchanged. When the device is restarted, the portal will restart and then re-acquire the new IPv6 local link address. For another example, the network ports such as the utun0 network port, the utun1 network port, the utun2 network port and the like in the iOS operating system can keep the starting state after the equipment is started, that is, the IPv6 local link addresses of the network ports can be kept unchanged. When the device is restarted, the ports are restarted, and then new IPv6 local link addresses are reacquired. On the contrary, the SIM (Subscriber Identity Module ) card port in the device for transmitting data will also correspond to the switch as the data is moved in the device, so that the SIM card port in the device does not belong to the target port in the embodiments of the present disclosure.
Most devices generate stable network ports, such as a port of utun 0 in an iOS operating system and a port of dummy 0 in an android operating system, and the network ports randomly generate IPv6 local link addresses at the beginning of fe80, such as fe 80:54 e 7:aOff:fec2:372, when the devices are started. These addresses will not change after generation unless the device is restarted, and therefore have a higher stability. And, at least 6 bytes in the addresses are completely randomly generated, so that the conflict of IPv6 local link addresses generated by each device can be reduced. For example, 100 hundred million devices simultaneously generate the IPv6 local link address of the same stable network port, and the probability of collision is only: 10000000000X 100%/. Times. 256×256 x 256 x 256) = 0.00355%.
Therefore, in the embodiment of the disclosure, the device identifier is determined according to the IPv6 local link address of the target network port (i.e. the stable network port) in the device, so that the stability and invariance of the device identifier acquired by the same device can be improved, the situation that different devices acquire the same device identifier is reduced, and therefore, the normal execution of the service processing process can be ensured according to the device identifier, and the accuracy of the service processing result is improved.
In some embodiments, the obtaining the IPv6 local link address of the target portal in the target device may be: and determining the type of an operating system of the target equipment, determining a target network port in the network ports of the target equipment according to the type of the operating system, and acquiring the IPv6 local link address of the target network port.
For example, the device of the android operating system may be preconfigured to obtain the IPv6 local link address of the dummy 0 network port, and the device of the iOS operating system may obtain the IPv6 local link addresses of the utun0 network port and the utun1 network port. Therefore, after the first application program is started, the type of the operating system of the target device for installing the first application program can be determined, if the operating system type represents an android operating system, the target network port is determined to be a dummy 0 network port, and if the operating system type represents an iOS operating system, the target network port is determined to be a utun0 network port and a utun1 network port. And then, the IPv6 local link address of the target network port can be acquired. Therefore, the target equipment can conveniently and rapidly acquire the IPv6 local link address of the target network port without interaction with other equipment, thereby improving the service processing efficiency.
In some embodiments, the server of the first application program stores preset portal information, where the preset portal information is used to characterize a correspondence between the device type and the target portal. Correspondingly, the method for obtaining the IPv6 local link address of the target network port in the target equipment can also be as follows: the method comprises the steps of firstly determining the equipment type of target equipment, then sending the equipment type to a server, enabling the server to determine a target network port corresponding to the target equipment according to the equipment type and preset network port information, and sending information of the target network port corresponding to the target equipment. Then, the target equipment receives the information of the target network port corresponding to the target equipment, which is sent by the server, analyzes the information to obtain the target network port corresponding to the target equipment, and then obtains the IPv6 local link address of the target network port corresponding to the target equipment.
That is, the server of the first application program may configure information of the target network ports corresponding to different device types, that is, preset network port information. For example, after the first application is started, the device type of the target device may be determined first, and the device type may be sent to the server of the first application. Correspondingly, the server can inquire a target portal corresponding to the target device in preset portal information according to the device type, and return the inquired target portal information to the target device. Then, the target device receives the information, and can determine the corresponding target network port by analyzing the information, thereby obtaining the IPv6 local link address of the target network port.
It should be understood that, the network ports of which different device types can obtain the IPv6 local link address may be different, and in the embodiment of the present disclosure, by configuring the target network ports corresponding to the different device types by using the server, different target network ports may be determined for different devices, so that the situation that the IPv6 local link address cannot be obtained due to the same network port being set is reduced, and normal execution of the service processing process is ensured.
Further, if the IPv6 local link address of the target network port is obtained, the first device identifier of the target device may be determined according to the IPv6 local link address.
In some embodiments, the IPv6 local link address may be used as the first device identification of the target device; alternatively, the IPv6 local link address may be sent to the server of the first application, so that the server generates the first device identifier of the target device according to the IPv6 local link address, and sends the first device identifier to the target device, and then the target device receives the first device identifier sent by the server.
For example, the server may perform a hash calculation according to the IPv6 local link address, and then use the hash calculation result as the first device identifier of the target device, which is not limited by the embodiments of the present disclosure.
By adopting the mode, the IPv6 local link address is used as the first equipment identifier of the target equipment, and the interaction between the target equipment and other equipment is not needed, so that the service processing efficiency can be improved. And a first device identifier is generated through a server of the first application program, and when the device is restarted, if the IPv6 local link address changes, the same device can be determined through the first device identifier, so that the accuracy of service processing is improved.
In some embodiments, the boot time of the target device may also be determined and sent to the server, so that the server generates the first device identifier of the target device according to the boot time and the IPv6 local link address.
For example, the determination manner of the start-up time may be: the method comprises the steps of firstly determining the current time and the running time of equipment, and then subtracting the running time of the equipment on the basis of the current time to obtain the starting time. In the embodiment of the disclosure, after the first application program is started, when the IPv6 local link address is acquired, the start-up time of the target device may be determined synchronously. If the IPv6 local link address of the target network port is obtained, the starting time and the IPv6 local link address can be packaged and sent to the server of the first application program. Accordingly, the server may generate a first device identification of the target device based on the boot time and the IPv6 local link address. Therefore, the condition that different devices acquire the same device identifier can be further reduced by combining the starting time and the IPv6 local link address, normal execution of a service processing process is ensured, and accuracy of a service processing result is improved.
In some embodiments, the first device identifier sent by the server may also be stored in a disk of the target device, and the obtained IPv6 local link address may be stored as a historical IPv6 local link address in the disk. After the target device is restarted, the IPv6 local link address of the target network port in the target device can be obtained again, the first device identifier and the historical IPv6 local link address are read from the disk, and then the first device identifier, the historical IPv6 local link address and the obtained IPv6 local link address are sent to the server, so that the server can store the historical IPv6 local link address and the obtained IPv6 local link address according to the first device identifier.
It should be understood that in the scenario of generating the first device identifier based on the IPv6 local link address, the first device identifier is stored in the disk of the target device, so that after the device is restarted, the same device identifier can be read from the disk and sent to the server, so that the server performs service processing according to the device identifier read from the disk, instead of regenerating the device identifier, and further service processing efficiency and accuracy are improved.
After the first device identifier and the historical IPv6 local link address are stored in the disk of the target device, if the target device is restarted, the IPv6 local link address of the target network port in the target device may be obtained again after the target device is restarted, and the first device identifier and the historical IPv6 local link address are read from the disk. And then, the first equipment identifier, the historical IPv6 local link address and the re-acquired IPv6 local link address are sent to a server of the first application program, so that the server stores the historical IPv6 local link address and the re-acquired IPv6 local link address according to the first equipment identifier.
Therefore, if the service processing is required to be performed according to the first equipment identifier by the server, the server can compare the received first equipment identifier with the first equipment identifier generated by the server based on the IPv6 local link address in the history process, and if the comparison is consistent, the equipment in the current service processing process and the equipment in the history service processing process can be determined to be the same equipment, so that a corresponding service processing result is generated. For example, in a business scenario in which only one time of preferential activity is participated, it may be determined that the device has participated in the preferential activity, so that preferential information is not issued to the device any more. If the comparison is inconsistent, the comparison can be performed based on the historical IPv6 local link address and the re-acquired IPv6 local link address, and a corresponding service processing result can be generated. For example, in the process of service interaction across application programs, the historical IPv6 local link address may be compared with the historical IPv6 local link address received by another application program server, and the re-acquired IPv6 local link address may be compared with the re-acquired IPv6 local link address of another application program. The historical IPv6 local link address corresponding to another application program may be determined by referring to the above manner, and the IPv6 local link address obtained by the other application program again may also be determined by referring to the above manner, which is not described herein again.
Through the mode, the IPv6 local link address and the equipment identifier generated based on the IPv6 local link address in each service processing process can be stored through the disk and the server, the condition that the same equipment is determined to be different equipment after the equipment is restarted is reduced, and the stability of the equipment identifier is improved, so that the accuracy of service processing is improved.
After determining the first equipment identifier of the target equipment according to the IPv6 local link address in any mode, responding to the service request triggered in the first application program, and obtaining a service processing result according to the first equipment identifier.
For example, the service request is a service request for participating in a preferential activity in the first application program, and correspondingly, according to the first device identifier, the service processing result may be: and comparing the first equipment identifier with the equipment identifier marked as the equipment which participates in the preferential activity in the first application program through the first application program, and if the first equipment identifier is compared in the equipment identifier marked as the equipment which participates in the preferential activity, determining that the target equipment participates in the preferential activity, so that preferential information is not displayed to the target equipment any more.
Therefore, the device identification is determined according to the IPv6 local link address of the target network port, the uniqueness of the device identification can be ensured, and further, the service processing is performed according to the device identification, so that the condition that the same device is determined to be different devices can be reduced, and the accuracy of the service processing is improved.
In some embodiments, the service request is a service request between the first application program and a second application program installed in the target device, and after the second application program is started, the IPv6 local link address of the target network port in the target device may be obtained again, and if the IPv6 local link address is obtained again, the second device identifier may be determined according to the obtained IPv6 local link address again. Correspondingly, the first equipment identifier and the second equipment identifier can be compared, and a service processing result is obtained according to the comparison result.
It should be understood that in practical applications, different applications have business interactions, such as the B application placing an advertisement in the a application, and when the user clicks on the advertisement in the a application, the user can jump from the a application to the B application. Under the scene, the application A and the application B need to acquire the equipment identification, the application A can send the equipment identification to the application B after acquiring the equipment identification, and then the application B compares the equipment identification sent by the application A with the equipment identification acquired by the application A, so that the advertisement attribution analysis is completed. The process may be performed at the target device where the a application and the B application are installed.
In the embodiment of the present disclosure, if the service request is a service request between the first application program and the second application program installed in the target device, the target device may acquire the IPv6 local link address of the target network port again after the second application program is started, and if the IPv6 local link address is acquired again, the target device may determine the second device identifier according to the acquired IPv6 local link address again. And the target equipment compares the first equipment identifier with the second equipment identifier through the second application program, and obtains a service processing result according to the comparison result. Therefore, in a business scene of the cross-application program, business processing can be performed through the IPv6 local link address, and the accuracy of the business processing is improved.
In some embodiments, when the first device identifier is the same as the second device identifier, a service processing result characterizing that the first application program and the second application program correspond to the same device may be obtained. When the first equipment identifier is different from the second equipment identifier, the IPv6 local link address obtained after the first application program is started and the IPv6 local link address obtained after the second application program is started can be compared, and when the IPv6 local link address obtained after the first application program is started and the IPv6 local link address obtained after the second application program is started are the same, a service processing result representing that the first application program and the second application program correspond to the same equipment is obtained.
That is, the device identifier may be matched first, and if the device identifier matches, it may be determined that the first application program and the second application program correspond to the same device. If the device identification is inconsistent in matching, the IPv6 local link address can be further compared, and if the device identification is inconsistent, the first application program and the second application program can be determined to correspond to the same device. If the target network ports are multiple, it may be determined that the first application program and the second application program correspond to the same device when at least one IPv6 local link address obtained by the first application program is consistent with the IPv6 local link address obtained by the second application program.
In some embodiments, if the IPv6 local link address is not obtained, the boot time and device information of the target device may be determined, and then the first device identifier of the target device may be determined according to the boot time and device information of the target device.
By way of example, the device information may include vendor information, operating system version information, etc. of the target device, which is not limited by the disclosed embodiments. According to the starting time and the equipment information of the target equipment, the first equipment identification of the target equipment can be determined by carrying out hash calculation according to the starting time and the equipment information of the target equipment, and then taking a hash calculation result as the first equipment identification of the target equipment. Alternatively, the first device identifier of the target device may be determined according to the start-up time and the device information of the target device by other character conversion methods in the related art, which is not limited in the embodiments of the present disclosure.
It should be understood that, in practical applications, the device proportion of the IPv6 local link address of the stable network port (i.e., the target network port) cannot be obtained is low, so that the unit of the boot time in the embodiment of the present disclosure may be accurate to seconds. Therefore, the accuracy of the starting time can be ensured, the condition that the equipment identifiers of different equipment are the same is reduced, and the accuracy of service processing is ensured.
The business processing method provided by the present disclosure is described below by taking a business scenario across application programs as an example.
Referring to fig. 2, an a application and a B application are installed in the same target device, and after the a application is started, model information of the target device is transmitted to an a' server to query a stable portal list. The server A' is a server corresponding to the application program A. And then, the A' server returns a stable portal list corresponding to the target device to the A application program in the target device. And the target equipment acquires the corresponding IPv6 local link address according to the received stable network port list, and determines the starting time of the target equipment. If the IPv6 local link address is obtained, the target device sends the starting time and the IPv6 local link address to the A' server through the A application program. The A' Server can generate a device identification Server ID according to the starting time and the IPv6 local link address, and return the Server ID to the target device. After receiving the Server ID, the target device may store the Server ID in the disk. If the IPv6 local link address is not acquired, the device information of the target device can be acquired, and then the device information and the starting time are sent to the A' server. And the A' Server generates a Server ID according to the equipment information and the startup time and sends the Server ID to the target equipment. After receiving the Server ID, the target device may store the Server ID in the disk.
If the target equipment is restarted, after the application program A is started, the IPv6 local link address is obtained again in the mode, and the Server ID before restarting is read from the disk. And then, the target equipment sends the Server ID read from the disk and the re-acquired IPv6 local link address to the A' Server. The A' Server can store the IPv6 local link address received at this time and the IPv6 local link address received before the target device is restarted according to the Server ID. The server B' is a server corresponding to the application B, and the execution process of the application B is similar to that of the application A, and is not repeated here.
When the application A and the application B interact, if the IPv6 local link address is acquired, the application A can transmit the Server ID and the IPv6 local link address acquired in a history to the application B. Then, the application program B first tries to match whether the Server IDs corresponding to the application program A and the application program B are consistent. If the IPv6 local link address transmitted by the application program A is inconsistent with the IPv6 local link address acquired by the application program B, matching the IPv6 local link address transmitted by the application program A with the IPv6 local link address acquired by the application program B to determine whether the application program A and the application program B correspond to the same device or not. If the IPv6 local link address is not acquired, the Server ID, the historical acquired startup time and other information can be transmitted to the application program B. The B application may then first attempt to match whether the Server IDs are consistent. If the information is inconsistent with the information, the information such as the starting time transmitted by the application program A is matched with the information such as the starting time acquired by the application program B, so that whether the application program A and the application program B correspond to the same device or not is determined.
By the method, the equipment identification can be determined according to the IPv6 local link address of the stable network port in the equipment, so that the stability and invariance of the equipment identification acquired by the same equipment are improved, the situation that different equipment acquires the same equipment identification is reduced, and the service accuracy of the cross-application program is improved.
Based on the same conception, the embodiment of the disclosure also provides a service processing device, which can be part or all of the electronic equipment by means of software, hardware or a combination of the two. Referring to fig. 3, the service processing apparatus 300 may include:
the obtaining module 301 is configured to obtain, after the first application is started, an IPv6 local link address of a target network port in a target device, where the target device is a device for installing the first application, and the target network port is a network port where the IPv6 local link address remains unchanged after the target device is started;
a determining module 302, configured to determine, when the IPv6 local link address is obtained, a first device identifier of the target device according to the IPv6 local link address;
and the processing module 303 is configured to respond to a service request triggered in the first application program, and obtain a service processing result according to the first device identifier.
Optionally, the acquiring module 301 is configured to:
determining the type of an operating system of the target device;
determining a target network port in the network ports of the target equipment according to the type of the operating system;
and acquiring the IPv6 local link address of the target network port.
Optionally, the server of the first application program stores preset portal information, where the preset portal information is used to characterize a corresponding relationship between a device type and a target portal, and the obtaining module 301 is configured to:
determining a device type of the target device;
the equipment type is sent to a server, so that the server determines a target network port corresponding to the target equipment according to the equipment type and the preset network port information, and sends the information of the target network port corresponding to the target equipment;
receiving information of a target network port corresponding to the target equipment, and analyzing the information to obtain the target network port corresponding to the target equipment;
and acquiring the IPv6 local link address of the target network port corresponding to the target equipment.
Optionally, the determining module 302 is configured to:
the IPv6 local link address is used as a first equipment identifier of the target equipment; or alternatively
The IPv6 local link address is sent to a server of the first application program, so that the server generates a first equipment identifier of the target equipment according to the IPv6 local link address, and the first equipment identifier is sent to the target equipment;
and receiving the first equipment identifier sent by the server.
Optionally, the apparatus 300 further includes:
and the sending module is used for determining the starting time of the target equipment and sending the starting time to the server so that the server generates a first equipment identifier of the target equipment according to the starting time and the IPv6 local link address.
Optionally, the apparatus 300 further includes:
the first storage module is used for storing the first equipment identifier sent by the server into a disk of the target equipment and storing the IPv6 local link address as a historical IPv6 local link address into the disk;
the first execution module is used for re-acquiring the IPv6 local link address of the target network port in the target equipment after the target equipment is restarted, and reading the first equipment identifier and the historical IPv6 local link address from the disk;
And the second storage module is used for sending the first equipment identifier, the historical IPv6 local link address and the re-acquired IPv6 local link address to the server so that the server stores the historical IPv6 local link address and the re-acquired IPv6 local link address according to the first equipment identifier.
Optionally, the service request is a service request between the first application program and a second application program installed by the target device, and the apparatus 300 further includes:
the second execution module is used for acquiring the IPv6 local link address of the target network port in the target device again after the second application program is started, and if the IPv6 local link address is acquired again, determining a second device identifier according to the acquired IPv6 local link address again;
the processing module 303 is configured to:
and comparing the first equipment identifier with the second equipment identifier, and obtaining a service processing result according to the comparison result.
Optionally, the processing module 303 is configured to:
when the first equipment identifier is the same as the second equipment identifier, obtaining a service processing result representing that the first application program and the second application program correspond to the same equipment;
And when the first equipment identifier is different from the second equipment identifier, comparing the IPv6 local link address acquired after the first application program is started with the IPv6 local link address acquired after the second application program is started, and when the IPv6 local link address acquired after the first application program is started is the same as the IPv6 local link address acquired after the second application program is started, obtaining a service processing result representing that the first application program and the second application program correspond to the same equipment.
Optionally, the apparatus 300 further includes:
and the third execution module is used for determining the starting time and the equipment information of the target equipment when the IPv6 local link address is not acquired, and determining the first equipment identification of the target equipment according to the starting time and the equipment information of the target equipment.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Based on the same inventive concept, the embodiments of the present disclosure also provide a computer readable medium having stored thereon a computer program which, when executed by a processing device, implements the steps of any of the above-mentioned business processing methods.
Based on the same inventive concept, the embodiments of the present disclosure further provide an electronic device, including:
a storage device having a computer program stored thereon;
processing means for executing said computer program in said storage means to implement the steps of any of the above-mentioned business processing methods.
Referring now to fig. 4, a schematic diagram of an electronic device 400 suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 4 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 4, the electronic device 400 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 401, which may perform various suitable actions and processes according to a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage means 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the electronic device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
In general, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, magnetic tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. While fig. 4 shows an electronic device 400 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communications device 409, or from storage 408, or from ROM 402. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 401.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, communications may be made using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: after a first application program is started, an IPv6 local link address of a target network port in target equipment is obtained, the target equipment is equipment for installing the first application program, and the target network port is a network port with the IPv6 local link address unchanged after the target equipment is started; if the IPv6 local link address is acquired, determining a first equipment identifier of the target equipment according to the IPv6 local link address; and responding to the service request triggered in the first application program, and obtaining a service processing result according to the first equipment identifier.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented in software or hardware. The name of a module does not in some cases define the module itself.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims. The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.

Claims (12)

1. A method of service processing, the method comprising:
after a first application program is started, an IPv6 local link address of a target network port in target equipment is obtained, the target equipment is equipment for installing the first application program, and the target network port is a network port with the IPv6 local link address unchanged after the target equipment is started;
if the IPv6 local link address is acquired, determining a first equipment identifier of the target equipment according to the IPv6 local link address;
and responding to the service request triggered in the first application program, and obtaining a service processing result according to the first equipment identifier.
2. The method of claim 1, wherein the obtaining the IPv6 local link address of the target portal in the target device comprises:
determining the type of an operating system of the target device;
determining a target network port in the network ports of the target equipment according to the type of the operating system;
and acquiring the IPv6 local link address of the target network port.
3. The method of claim 1, wherein the server of the first application program stores preset portal information, the preset portal information is used for characterizing a correspondence between a device type and a target portal, and the obtaining the IPv6 local link address of the target device includes:
determining a device type of the target device;
the equipment type is sent to a server, so that the server determines a target network port corresponding to the target equipment according to the equipment type and the preset network port information, and sends the information of the target network port corresponding to the target equipment;
receiving information of a target network port corresponding to the target equipment, and analyzing the information to obtain the target network port corresponding to the target equipment;
and acquiring the IPv6 local link address of the target network port corresponding to the target equipment.
4. A method according to any one of claims 1-3, wherein said determining a first device identification of said target device based on said IPv6 local link address comprises:
the IPv6 local link address is used as a first equipment identifier of the target equipment; or alternatively
The IPv6 local link address is sent to a server of the first application program, so that the server generates a first equipment identifier of the target equipment according to the IPv6 local link address, and the first equipment identifier is sent to the target equipment;
and receiving the first equipment identifier sent by the server.
5. The method according to claim 4, wherein the method further comprises:
and determining the starting time of the target equipment, and sending the starting time to the server so that the server generates a first equipment identifier of the target equipment according to the starting time and the IPv6 local link address.
6. The method according to claim 4, wherein the method further comprises:
storing the first equipment identifier sent by the server into a disk of the target equipment, and storing the IPv6 local link address as a historical IPv6 local link address into the disk;
After the target equipment is restarted, re-acquiring an IPv6 local link address of a target network port in the target equipment, and reading the first equipment identifier and the historical IPv6 local link address from the disk;
and sending the first equipment identifier, the historical IPv6 local link address and the re-acquired IPv6 local link address to the server, so that the server stores the historical IPv6 local link address and the re-acquired IPv6 local link address according to the first equipment identifier.
7. A method according to any of claims 1-3, wherein the service request is a service request between the first application and a second application installed by the target device, the method further comprising:
after the second application program is started, acquiring the IPv6 local link address of the target network port in the target equipment again, and if the IPv6 local link address is acquired again, determining a second equipment identifier according to the acquired IPv6 local link address again;
the obtaining the service processing result according to the first equipment identifier includes:
and comparing the first equipment identifier with the second equipment identifier, and obtaining a service processing result according to the comparison result.
8. The method of claim 7, wherein the performing service processing according to the comparison result to obtain a service processing result comprises:
when the first equipment identifier is the same as the second equipment identifier, obtaining a service processing result representing that the first application program and the second application program correspond to the same equipment;
and when the first equipment identifier is different from the second equipment identifier, comparing the IPv6 local link address acquired after the first application program is started with the IPv6 local link address acquired after the second application program is started, and when the IPv6 local link address acquired after the first application program is started is the same as the IPv6 local link address acquired after the second application program is started, obtaining a service processing result representing that the first application program and the second application program correspond to the same equipment.
9. A method according to any one of claims 1-3, wherein the method further comprises:
if the IPv6 local link address is not acquired, determining the starting time and the equipment information of the target equipment;
and determining a first equipment identifier of the target equipment according to the starting time and the equipment information of the target equipment.
10. A service processing apparatus, the apparatus comprising:
the system comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring an IPv6 local link address of a target network port in target equipment after a first application program is started, the target equipment is equipment for installing the first application program, and the target network port is a network port of which the IPv6 local link address is unchanged after the target equipment is started;
the determining module is used for determining a first equipment identifier of the target equipment according to the IPv6 local link address when the IPv6 local link address is acquired;
and the processing module is used for responding to the service request triggered in the first application program and obtaining a service processing result according to the first equipment identifier.
11. A non-transitory computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processing device, implements the steps of the method according to any one of claims 1-9.
12. An electronic device, comprising:
a storage device having a computer program stored thereon;
processing means for executing said computer program in said storage means to carry out the steps of the method according to any one of claims 1-9.
CN202211583501.8A 2022-12-09 2022-12-09 Service processing method and device, storage medium and electronic equipment Pending CN116017420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211583501.8A CN116017420A (en) 2022-12-09 2022-12-09 Service processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211583501.8A CN116017420A (en) 2022-12-09 2022-12-09 Service processing method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN116017420A true CN116017420A (en) 2023-04-25

Family

ID=86027734

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211583501.8A Pending CN116017420A (en) 2022-12-09 2022-12-09 Service processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116017420A (en)

Similar Documents

Publication Publication Date Title
WO2020207454A1 (en) Information pushing method and device
CN113507517A (en) Screen projection equipment discovery method and device, electronic equipment and storage medium
CN111432001B (en) Method, apparatus, electronic device and computer readable medium for jumping scenes
CN110377440B (en) Information processing method and device
CN111625422B (en) Thread monitoring method, thread monitoring device, electronic equipment and computer readable storage medium
CN112214408A (en) Dependency conflict detection method and device, electronic equipment and computer readable medium
CN110597602B (en) Transaction processing method and device, computer equipment and storage medium
CN110674481B (en) Account registration method, device, equipment and storage medium of application program
CN114422436B (en) Gateway, gateway control method, gateway control device, electronic equipment and storage medium
CN114938395A (en) Service response method, device, equipment and storage medium
CN110865846A (en) Application management method, device, terminal, system and storage medium
CN112306685A (en) Task isolation method and device, electronic equipment and computer readable medium
CN112217880A (en) Attribution method, attribution device, attribution medium and electronic equipment for application program activation
CN115587860A (en) Service processing method, device, storage medium and electronic equipment
CN116017420A (en) Service processing method and device, storage medium and electronic equipment
CN115373998A (en) Application program optimization method, device, equipment and medium
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN109669679B (en) Service detection and processing method and device and electronic equipment
CN111800779B (en) Device source identification method and apparatus, computer system, and readable storage medium
CN115543409B (en) Application installation source determining method and device, readable medium and electronic equipment
CN112559394B (en) System library access method and device and electronic equipment
CN111291199B (en) Information query method and device
CN110855767B (en) Method, device, equipment and storage medium for responding operation request
CN109005084B (en) Method, electronic device, and computer-readable medium for verifying network connection
CN112235333B (en) Function package management method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination