CN116302051A - Application program and equipment adaptation method and device and electronic equipment - Google Patents

Application program and equipment adaptation method and device and electronic equipment Download PDF

Info

Publication number
CN116302051A
CN116302051A CN202310040146.8A CN202310040146A CN116302051A CN 116302051 A CN116302051 A CN 116302051A CN 202310040146 A CN202310040146 A CN 202310040146A CN 116302051 A CN116302051 A CN 116302051A
Authority
CN
China
Prior art keywords
user equipment
equipment
information
user
configuration information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310040146.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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202310040146.8A priority Critical patent/CN116302051A/en
Publication of CN116302051A publication Critical patent/CN116302051A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides an adaptation method and device of an application program and equipment and electronic equipment, and relates to the technical field of computers. The method comprises the following steps: acquiring first equipment information of first user equipment provided with a target application program; acquiring second equipment information of second user equipment adapted by the target application program based on version information of the target application program; judging whether the equipment type of the first user equipment is the same as the equipment type of the second user equipment or not based on the first equipment information and the second equipment information; if the equipment type of the first user equipment is different from the equipment type of the second user equipment, determining that the target application program is not matched with the first user equipment, and sending a reminding message indicating that the target application program is not matched with the first user equipment to the first user equipment so as to remind a user to install the target application program of a version matched with the first user equipment. By applying the embodiment of the invention, the user experience can be improved.

Description

Application program and equipment adaptation method and device and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for adapting an application program to a device, and an electronic device.
Background
With the development of computer technology, the functions provided by clients for users are increasing. The user may install clients providing different functions in the user device used by the user. For example, different APPs (applications) may be installed in a mobile phone or a computer used by a user. Then, the user may input an operation instruction to the application program, and the application program may respond to the operation instruction input by the user. For example, the application program may be a video playing application program, the user may click an operation button for playing a video in a display interface of the application program, and the application program may play the video after detecting a click operation of the operation button by the user.
In the related art, because the running environments of different user devices are different, different versions of application programs need to be installed in different user devices so as to realize the adaptation of the application programs to the user devices. When a user installs an application program in a user device, the user may perform an erroneous operation, and an application program that is not adapted to the user device is installed in the user device. For example, a user installs an application adapted to a cell phone in a television.
However, the application program is not adapted to the user equipment, so that problems such as blocking, flashing and abnormal display of the application program occur in the running process, and user experience is reduced.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for adapting an application program to equipment and electronic equipment so as to improve user experience. The specific technical scheme is as follows:
in a first aspect of the present invention, there is provided a method for adapting an application program to a device, the method being applied to a server, the method comprising:
acquiring first equipment information of first user equipment provided with a target application program;
acquiring second equipment information of second user equipment adapted by the target application program based on the version information of the target application program; the version information of the target application program is as follows: for determining an identity of a user equipment to which the target application is adapted;
judging whether the equipment type of the first user equipment is the same as the equipment type of the second user equipment or not based on the first equipment information and the second equipment information;
if the equipment type of the first user equipment is different from the equipment type of the second user equipment, determining that the target application program is not matched with the first user equipment, and sending a reminding message indicating that the target application program is not matched with the first user equipment to the first user equipment so as to remind a user to install the target application program of a version matched with the first user equipment.
Optionally, the device information of a user device includes hardware configuration information and software configuration information of the user device;
the determining, based on the first device information and the second device information, whether the device type of the first user device is the same as the device type of the second user device includes:
aiming at each piece of hardware configuration information of the first user equipment, acquiring an evaluation result corresponding to the hardware configuration information; wherein, the evaluation result corresponding to the hardware configuration information represents: based on the hardware configuration information, the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment;
aiming at each piece of software configuration information of the first user equipment, acquiring an evaluation result corresponding to the software configuration information; wherein, the evaluation result corresponding to the software configuration information represents: based on the software configuration information, the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment;
calculating the sum of the evaluation results corresponding to the hardware configuration information and the evaluation results corresponding to the software configuration information to obtain the evaluation result of the first user equipment;
If the evaluation result of the first user equipment is larger than a first preset threshold value, determining that the equipment type of the first user equipment is different from the equipment type of the second user equipment;
and if the evaluation result of the first user equipment is not greater than a first preset threshold value, determining that the equipment type of the first user equipment is the same as the equipment type of the second user equipment.
Optionally, the obtaining, for each piece of hardware configuration information of the first user equipment, an evaluation result corresponding to the piece of hardware configuration information includes:
aiming at each piece of hardware configuration information of the first user equipment, acquiring an evaluation result corresponding to the hardware configuration information from a first corresponding relation between preset hardware configuration information and the evaluation result;
the obtaining, for each piece of software configuration information of the first user equipment, an evaluation result corresponding to the piece of software configuration information includes:
and aiming at each piece of software configuration information of the first user equipment, acquiring an evaluation result corresponding to the software configuration information from a second corresponding relation between the preset software configuration information and the evaluation result.
Optionally, the evaluation result in the first correspondence is: obtaining based on a first device type prediction model; inputting sample hardware configuration information of sample equipment and an evaluation result corresponding to the sample hardware configuration information into the first equipment type prediction model, wherein the output of the first equipment type prediction model is the sample equipment type of the sample equipment;
The evaluation result in the second corresponding relation is as follows: obtaining based on a second device type prediction model; and inputting sample software configuration information of sample equipment and an evaluation result corresponding to the sample software configuration information into the second equipment type prediction model, wherein the output of the second equipment type prediction model is the sample equipment type of the sample equipment.
Optionally, before the obtaining the first device information of the first user device installed with the target application program, the method further includes:
receiving a resource acquisition request sent by the first user equipment and used for acquiring a target network resource; the resource acquisition request carries the first equipment information;
the obtaining the first device information of the first user device installed with the target application program includes:
and if the evaluation information for recording whether the target application program is matched with the first user equipment is not stored locally in the server, acquiring the first equipment information from the resource acquisition request.
Optionally, after the determining, based on the first device information and the second device information, whether the device type of the first user device is the same as the device type of the second user device, the method further includes:
And if the equipment type of the first user equipment is the same as the equipment type of the second user equipment, determining that the target application program is matched with the first user equipment, and sending the target network resource requested by the first user equipment to the first user equipment so that the first user equipment receives the target network resource.
Optionally, the acquiring the first device information from the resource acquisition request includes:
acquiring target data carried in a resource acquisition request sent by the first user equipment; wherein the target data includes: data obtained by compressing and encrypting the first equipment information;
and decrypting and decompressing the target data to obtain the first equipment information.
Optionally, after receiving the resource acquisition request sent by the first user equipment for acquiring the target network resource, the method further includes:
if the local storage of the server records evaluation information of whether the target application program is matched with the first user equipment, inquiring the evaluation information stored locally by the server;
if the target application program is not matched with the first user equipment in the evaluation information, sending the reminding message to the first user equipment so as to remind a user to install a version of the target application program matched with the first user equipment;
And if the target application program is matched with the first user equipment in the evaluation information, sending the target network resource requested by the first user equipment to the first user equipment so that the first user equipment receives the target network resource.
In a second aspect of the present invention, there is provided an adapting apparatus for an application and a device, the apparatus being applied to a server, the apparatus comprising:
the first equipment information acquisition module is used for acquiring first equipment information of first user equipment provided with a target application program;
the second equipment information acquisition module is used for acquiring second equipment information of second user equipment adapted by the target application program based on the version information of the target application program; the version information of the target application program is as follows: for determining an identity of a user equipment to which the target application is adapted;
the judging module is used for judging whether the equipment type of the first user equipment is the same as the equipment type of the second user equipment or not based on the first equipment information and the second equipment information;
and the reminding message sending module is used for determining that the target application program is not matched with the first user equipment if the equipment type of the first user equipment is different from the equipment type of the second user equipment, and sending a reminding message indicating that the target application program is not matched with the first user equipment to the first user equipment so as to remind a user to install the target application program of a version matched with the first user equipment.
Optionally, the device information of a user device includes hardware configuration information and software configuration information of the user device;
the judging module is specifically configured to:
aiming at each piece of hardware configuration information of the first user equipment, acquiring an evaluation result corresponding to the hardware configuration information; wherein, the evaluation result corresponding to the hardware configuration information represents: based on the hardware configuration information, the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment;
aiming at each piece of software configuration information of the first user equipment, acquiring an evaluation result corresponding to the software configuration information; wherein, the evaluation result corresponding to the software configuration information represents: based on the software configuration information, the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment;
calculating the sum of the evaluation results corresponding to the hardware configuration information and the evaluation results corresponding to the software configuration information to obtain the evaluation result of the first user equipment;
if the evaluation result of the first user equipment is larger than a first preset threshold value, determining that the equipment type of the first user equipment is different from the equipment type of the second user equipment;
And if the evaluation result of the first user equipment is not greater than a first preset threshold value, determining that the equipment type of the first user equipment is the same as the equipment type of the second user equipment.
Optionally, the judging module is specifically configured to:
aiming at each piece of hardware configuration information of the first user equipment, acquiring an evaluation result corresponding to the hardware configuration information from a first corresponding relation between preset hardware configuration information and the evaluation result;
the judging module is specifically configured to:
and aiming at each piece of software configuration information of the first user equipment, acquiring an evaluation result corresponding to the software configuration information from a second corresponding relation between the preset software configuration information and the evaluation result.
Optionally, the evaluation result in the first correspondence is: obtaining based on a first device type prediction model; inputting sample hardware configuration information of sample equipment and an evaluation result corresponding to the sample hardware configuration information into the first equipment type prediction model, wherein the output of the first equipment type prediction model is the sample equipment type of the sample equipment;
the evaluation result in the second corresponding relation is as follows: obtaining based on a second device type prediction model; and inputting sample software configuration information of sample equipment and an evaluation result corresponding to the sample software configuration information into the second equipment type prediction model, wherein the output of the second equipment type prediction model is the sample equipment type of the sample equipment.
Optionally, the apparatus further includes:
the resource acquisition request receiving module is used for receiving a resource acquisition request sent by the first user equipment and used for acquiring target network resources before the first equipment information acquisition module executes the first equipment information of the first user equipment provided with the target application program; the resource acquisition request carries the first equipment information;
the first device information obtaining module is specifically configured to:
and if the evaluation information for recording whether the target application program is matched with the first user equipment is not stored locally in the server, acquiring the first equipment information from the resource acquisition request.
Optionally, the apparatus further includes:
and the target network resource sending module is used for determining that the target application program is matched with the first user equipment after the judging module executes the judgment on whether the equipment type of the first user equipment is the same as the equipment type of the second user equipment based on the first equipment information and the second equipment information, and sending the target network resource requested by the first user equipment to the first user equipment so that the first user equipment receives the target network resource.
Optionally, the first device information obtaining module is specifically configured to:
acquiring target data carried in a resource acquisition request sent by the first user equipment; wherein the target data includes: data obtained by compressing and encrypting the first equipment information;
and decrypting and decompressing the target data to obtain the first equipment information.
Optionally, the apparatus further includes:
the evaluation information inquiry module is used for executing evaluation information which is stored locally by the server if the local storage of the server records whether the target application program is matched with the first user equipment or not after the resource acquisition request receiving module executes the resource acquisition request which is sent by the first user equipment and is used for acquiring target network resources;
the query result processing module is used for sending the reminding message to the first user equipment to remind a user to install the target application program of a version adapted to the first user equipment if the target application program is recorded to be not adapted to the first user equipment in the evaluation information;
and if the target application program is matched with the first user equipment in the evaluation information, sending the target network resource requested by the first user equipment to the first user equipment so that the first user equipment receives the target network resource.
In a third aspect of the present invention, there is also provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of the adaptation method of the application program and the equipment in any one of the first aspect when executing the program stored in the memory.
In a fourth aspect of the present invention, there is also provided a computer readable storage medium having a computer program stored therein, the computer program when executed by a processor implementing the steps of the adaptation method of the application program and the device of any of the first aspects.
In yet another aspect of the invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method of adapting an application to a device as described in any of the above.
According to the adaptation method of the application program and the equipment, a server obtains first equipment information of first user equipment provided with a target application program; acquiring second equipment information of second user equipment adapted by the target application program based on version information of the target application program; the version information of the target application program is as follows: for determining an identity of a user equipment to which the target application is adapted; judging whether the equipment type of the first user equipment is the same as the equipment type of the second user equipment or not based on the first equipment information and the second equipment information; if the equipment type of the first user equipment is different from the equipment type of the second user equipment, determining that the target application program is not matched with the first user equipment, and sending a reminding message indicating that the target application program is not matched with the first user equipment to the first user equipment so as to remind a user to install the target application program of a version matched with the first user equipment.
Based on the above processing, the server may determine, according to the first device information of the first user device and the second device information of the second user device adapted by the target application, whether the device type of the first user device is the same as the device type of the second user device. When the equipment type of the first user equipment is different from the equipment type of the second user equipment, the server determines that the target application program is not matched with the first user equipment, and sends a reminding message indicating that the target application program is not matched with the first user equipment to the first user equipment, so that a user can be reminded of installing the target application program of a version matched with the first user equipment. Subsequently, the user can install the target application program of the version adapted to the first user equipment, so that the problems of blocking, flashing, abnormal display and the like of the target application program caused by the fact that the target application program is not adapted to the first user equipment can be avoided, and further user experience can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a first flowchart of an adaptation method of an application program and a device according to an embodiment of the present invention;
FIG. 2 is a second flowchart of an adaptation method of an application program and a device according to an embodiment of the present invention;
FIG. 3 is a third flowchart of an adaptation method of an application program and a device according to an embodiment of the present invention;
FIG. 4 is a fourth flowchart of a method for adapting an application to a device according to an embodiment of the present invention;
FIG. 5 is a fifth flowchart of an adaptation method of an application program and a device according to an embodiment of the present invention;
FIG. 6 is a sixth flowchart of a method for adapting an application to a device according to an embodiment of the present invention;
FIG. 7 is a block diagram of an adaptation apparatus for an application and a device according to an embodiment of the present invention;
fig. 8 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.
Because the running environments of different user devices are different, when a user installs an application program in the user device, the user device may be wrongly operated, and the application program which is not adapted to the user device is installed in the user device. Therefore, when the application program is not matched with the user equipment, the problems of blocking, flashing, abnormal display and the like of the application program in the running process can be caused, and the user experience is further reduced. For example, the display screen of a mobile phone is generally a vertical screen, and the display screen of a television is generally a horizontal screen. When a user installs an application program adapted to a mobile phone in a television, a problem of abnormal display may occur due to a display screen of the television being different from that of the mobile phone, resulting in reduced user experience.
In order to solve the above-mentioned problems, referring to fig. 1, fig. 1 is a first flowchart of a method for adapting an application program to a device according to an embodiment of the present invention, where the method may be applied to a server. The method may comprise the steps of:
s101: first device information of a first user device on which a target application is installed is obtained.
S102: and acquiring second equipment information of second user equipment adapted by the target application program based on the version information of the target application program.
The version information of the target application program is as follows: for determining the identity of the user equipment to which the target application is adapted.
S103: based on the first device information and the second device information, whether the device type of the first user device is the same as the device type of the second user device is judged.
S104: if the equipment type of the first user equipment is different from the equipment type of the second user equipment, determining that the target application program is not matched with the first user equipment, and sending a reminding message indicating that the target application program is not matched with the first user equipment to the first user equipment so as to remind a user to install the target application program of a version matched with the first user equipment.
Based on the adaptation method of the application program and the device provided by the embodiment of the invention, the server can judge whether the device type of the first user device is the same as the device type of the second user device according to the first device information of the first user device and the second device information of the second user device adapted by the target application program. When the equipment type of the first user equipment is different from the equipment type of the second user equipment, the server determines that the target application program is not matched with the first user equipment, and sends a reminding message indicating that the target application program is not matched with the first user equipment to the first user equipment, so that a user can be reminded of installing the target application program of a version matched with the first user equipment. Subsequently, the user can install the target application program of the version adapted to the first user equipment, so that the problems of blocking, flashing, abnormal display and the like of the target application program caused by the fact that the target application program is not adapted to the first user equipment can be avoided, and further user experience can be improved.
In this embodiment, the first user device may be a mobile phone, a computer, a television, or other devices, and the user may install a plurality of application programs in the first user device. The target application may be any application installed in the first user device. The server may be a server that provides services to the user through the target application. For example, the target application program is a video playing application program, when the user needs to browse videos, the target application program can acquire the videos needed to browse by the user from the server, and play the videos acquired from the server for the user in the target application program for browsing by the user.
For step S101, the first device information of the first user device may represent a device type of the first user device. The device information of one user equipment includes hardware configuration information and software configuration information. The hardware configuration information includes: a battery configuration of the user device, a sensor configuration of the user device; the SIM (Subscriber Identity Module ) card slot of the user equipment is configured; the height, width, etc. of the display screen of the user equipment are not particularly limited; wherein the sensor comprises at least one of: acceleration sensor, magnetic force sensor, gyroscope sensor. The software configuration information of the user equipment includes: the name of the user equipment; the name of the input method of the user equipment; a maximum value of the volume value of the user equipment; the screen-off time of the user equipment and the like are not particularly limited.
For example, if the name of the first user equipment includes an identifier of a Television, such as a TV (Television) character, the equipment type of the first user equipment is a Television; if the first user equipment comprises a battery, the equipment type of the first user equipment is a mobile phone.
In some embodiments, in order to improve security of the first device information and avoid disclosure of the first device information, the first user device requests authorization of the user before obtaining the first device information, and obtains the first device information after obtaining the authorization of the user. The first device information may be pre-stored by the technician to the first user device.
In one implementation manner, when receiving a start instruction of a user for a target application program, the first user equipment may acquire first device information of the first user equipment, and then directly send the first device information to the server. Correspondingly, the server may receive the first device information sent by the first user device.
In another implementation manner, the first user equipment may acquire first equipment information of the first user equipment when a preset period is reached, and then send the first equipment information to the server. Correspondingly, the server may receive the first device information sent by the first user device. The preset period may be 10 minutes, but is not limited thereto.
In another implementation manner, the first user equipment may also obtain the first device information of the first user equipment when requesting the target network resource from the server. Accordingly, on the basis of fig. 1, referring to fig. 2, before step S101, the method may further include the steps of:
s105: and receiving a resource acquisition request which is sent by the first user equipment and used for acquiring the target network resource.
The resource acquisition request carries first equipment information.
Correspondingly, step S101 includes the steps of:
s1011: and if the evaluation information for recording whether the target application program is matched with the first user equipment is not stored locally in the server, acquiring the first equipment information from the resource acquisition request.
When the user needs to acquire the target network resource, an acquisition instruction (which may be referred to as a target acquisition instruction) for the target network resource may be input to a target application program running in the first user equipment. After the first user equipment detects the target acquisition instruction, the first equipment information of the first user equipment can be acquired, and a resource acquisition request for acquiring the target network resource and carrying the first equipment information is sent to the server. For example, the target application may be a video playing application, the user may click an operation button for playing a video, and when the first user device detects a click operation, a resource acquisition request for acquiring the video may be sent to the server. The resource acquisition request may carry an identifier of the target network resource. The identification of the target network resource may be the name of the target network resource.
After receiving the resource acquisition request sent by the first user equipment, the server indicates that the first user equipment needs to acquire the target network resource indicated by the resource acquisition request. In order to avoid the problems of blocking, flashing back, abnormal display and the like of a target application program installed in first user equipment in the running process when the first user equipment loads target network resources, a server can acquire evaluation information for recording whether the target application program is adapted to the first user equipment.
If the server does not store the evaluation information for recording whether the target application program is adapted to the first user equipment locally, the server may acquire the first equipment information of the first user equipment. Subsequently, the server may determine, according to the method provided by the embodiment of the present invention, whether the target application is adapted to the first user equipment based on the first device information.
Application adaptation with user equipment means: the target application program of the appointed version is installed in the user equipment of the appointed equipment type. For example, a mobile phone version of an application program is installed in a mobile phone, and a television version of the application program is installed in a television.
Application and user equipment disagreement refers to: the target application program of the specified version is installed in the user equipment of other equipment types. For example, a mobile phone version of an application is installed in a television, and a television version of the application is installed in a mobile phone.
In one implementation manner, if the resource acquisition request sent by the first user equipment carries the first device information, the server may directly extract the first device information from the received resource acquisition request.
In another implementation manner, in order to improve efficiency of sending the resource acquisition request to the server and improve security of the first device information, the first user device may send the resource acquisition request carrying the first device information to the server in the following manner.
In the first mode, the first user equipment can encrypt the first equipment information through an encryption algorithm to obtain target data, and sends a resource acquisition request carrying the target data to the server. Correspondingly, the server can decrypt the target data to obtain the first device information.
For example, the encryption algorithm may be an AES (Advanced Encryption Standard ) algorithm, or may be an RSA (Ron Rivest, adi Shamir, leonard Adleman, ronard levister, aldi samer, lunrad adman) algorithm.
In the second mode, the first user equipment can compress the first equipment information through a compression algorithm to obtain target data, and sends a resource acquisition request carrying the target data to the server. Correspondingly, the server can decompress the target data to obtain the first device information.
For example, the compression algorithm may be an RLE (Run-Length Encoding) algorithm.
In a third mode, the first user equipment can compress and encrypt the first equipment information through a compression algorithm and an encryption algorithm to obtain target data, and sends a resource acquisition request carrying the target data to the server. Accordingly, referring to fig. 3 on the basis of fig. 2, step S1011 includes the steps of:
s10111: and acquiring target data carried in a resource acquisition request sent by the first user equipment.
Wherein the target data includes: and compressing and encrypting the obtained data of the first device information.
S10112: and decrypting and decompressing the target data to obtain the first equipment information.
After receiving the resource acquisition request carrying the target data sent by the first user equipment, the server can decrypt and decompress the target data carried in the resource acquisition request to obtain the first equipment information of the first user equipment.
Based on the above processing, the first user equipment may send a resource acquisition request carrying the first device information to the server when the user needs to acquire the target network resource. Correspondingly, after the server receives the resource acquisition request, when the evaluation information is not stored locally in the server, the first device information can be directly acquired from the resource acquisition request, so that whether the target application program is matched with the first user equipment or not is judged, the first device information is not required to be sent to the server by the first user equipment, and the efficiency of resource acquisition can be improved.
For step S102, the server obtains the version information of the target application program, and obtains the device information (i.e., the second device information) of the user device (i.e., the second user device) adapted by the target application program according to the version information of the target application program.
The version information of the target application program is: for determining the identity of the user equipment to which the target application is adapted. The electronic device may determine, based on version information of the target application, a device type of the user device to which the target application of the version is adapted. For example, the version information may be a version number, and the server locally records a correspondence between the version number and the device type. After the server obtains the version number of the target application program, the device type corresponding to the version number of the target application program, that is, the device type of the second user device adapted by the target application program, can be determined in the corresponding relation between the version number and the device type.
Further, the server may obtain second device information of the second user device. For example, the second user equipment is a mobile phone, and the hardware configuration information of the second user equipment includes: the second user device comprises a battery, the second user device comprising a sensor; the second user equipment comprises a SIM card slot; the height of the display screen of the second user device is greater than the width. The software configuration information of the second user equipment includes: the name of the second user device does not include a television identification; the name of the input method of the second user equipment does not comprise a television identifier; the maximum value of the volume value of the second user equipment is not more than 80 decibels; the off-screen time of the second user device is no more than 120 minutes.
For step S103, in one implementation, the device information of the first user device includes hardware configuration information and software configuration information of the first user device. The second device information of the second user device includes hardware configuration information and software configuration information. For each piece of hardware configuration information of the first user equipment, the electronic equipment can judge whether the piece of hardware configuration information is the same as the piece of hardware configuration information corresponding to the second user equipment, and for each piece of software configuration information of the first user equipment, the electronic equipment can judge whether the piece of software configuration information is the same as the piece of software configuration information corresponding to the second user equipment.
If at least one item of the first equipment information is different from the second equipment information, the equipment type of the first user equipment is different from the equipment type of the second user equipment. If the first device information is the same as the second device information, the device type of the first user device is the same as the device type of the second user device.
For example, if the second user equipment is a mobile phone, the second device information of the second user equipment includes: the second user device includes a SIM card slot and the name of the second user device does not include a television identification.
If the first device information of the first user device includes: the first user equipment does not include a SIM card slot, and the name of the first user equipment does not include a television identification. The first device information is different from the second device information, and the server determines that the device type of the first user device is different from the device type of the second user device.
If the first device information of the first user device includes: the first user equipment comprises a SIM card slot, and the name of the first user equipment does not comprise a television identification. The first device information is identical to the second device information, and the server determines that the device type of the first user device is identical to the device type of the second user device.
In another implementation manner, the server may determine, according to each piece of hardware configuration information and each piece of software configuration information in the first user equipment, whether the device type of the first user equipment is the same as the device type of the second user equipment. Accordingly, referring to fig. 4 on the basis of fig. 1, step S103 includes the steps of:
s1031: and aiming at each piece of hardware configuration information of the first user equipment, acquiring an evaluation result corresponding to the hardware configuration information.
Wherein, the evaluation result corresponding to the hardware configuration information represents: based on the hardware configuration information, a probability that the device type of the first user device is different from the device type of the second user device.
S1032: and aiming at each piece of software configuration information of the first user equipment, acquiring an evaluation result corresponding to the software configuration information.
Wherein, the evaluation result corresponding to the software configuration information represents: based on the software configuration information, a probability that the device type of the first user device is different from the device type of the second user device.
S1033: and calculating the sum of the evaluation results corresponding to the hardware configuration information and the evaluation results corresponding to the software configuration information to obtain the evaluation result of the first user equipment.
S1034: if the evaluation result of the first user equipment is larger than a first preset threshold value, determining that the equipment type of the first user equipment is different from the equipment type of the second user equipment; and if the evaluation result of the first user equipment is not greater than the first preset threshold value, determining that the equipment type of the first user equipment is the same as the equipment type of the second user equipment.
In one implementation manner, for each piece of hardware configuration information of the first user equipment, the server may obtain an evaluation result corresponding to the hardware configuration information according to the hardware configuration information corresponding to the second user equipment. The evaluation result corresponding to the hardware configuration information represents: based on the hardware configuration information, a probability that the device type of the first user device is different from the device type of the second user device. The evaluation result corresponding to the hardware configuration information is represented by the height: the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment is high or low. The higher the evaluation result corresponding to the hardware configuration information is, the higher the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment is; the lower the evaluation result corresponding to the hardware configuration information is, the lower the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment is.
Aiming at each piece of hardware configuration information of the first user equipment, the server judges the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment based on the hardware configuration information, and an evaluation result corresponding to the hardware configuration information is obtained.
The second user equipment is a mobile phone, and the hardware configuration information of the second user equipment includes: the second user device comprises a battery. If the hardware configuration information of the first user equipment includes: the first user equipment does not comprise a battery, the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment is high, and the electronic equipment marks an evaluation result corresponding to the hardware configuration information of the first user equipment as 1.
The hardware configuration information of the second user equipment includes: the second user device includes a SIM card slot. If the hardware configuration information of the first user equipment includes: the first user equipment comprises a SIM card slot, the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment is low, and the electronic equipment marks the evaluation result corresponding to the hardware configuration information of the first user equipment as 0.
For each piece of software configuration information of the first user equipment, the server can acquire an evaluation result corresponding to the software configuration information according to the software configuration information corresponding to the second user equipment. The evaluation result of one piece of software configuration information represents: based on the software configuration information, a probability that the device type of the first user device is different from the device type of the second user device. The evaluation result corresponding to the software configuration information is represented by the following steps: the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment is high or low. The higher the evaluation result corresponding to the software configuration information is, the higher the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment is; the lower the evaluation result corresponding to the software configuration information is, the lower the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment is.
For each piece of software configuration information of the first user equipment, the server judges the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment based on the software configuration information, and an evaluation result corresponding to the software configuration information is obtained.
The second user equipment is a mobile phone, and the software configuration information of the second user equipment includes: the maximum value of the volume value of the second user device is 80 db. If the software configuration information of the first user equipment includes: the maximum value of the sound volume value of the first user equipment is 120 db, which indicates that the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment is higher, and the electronic equipment marks the evaluation result corresponding to the software configuration information of the first user equipment as 1.
The software configuration information of the second user equipment includes: the name of the second user device does not include TV characters. If the software configuration information of the first user equipment includes: the name of the first user equipment does not comprise a TV character, which indicates that the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment is low, and the electronic equipment marks an evaluation result corresponding to the software configuration information of the first user equipment as 0.
Further, the server calculates the sum of the evaluation result corresponding to each piece of hardware configuration information and the evaluation result corresponding to each piece of software configuration information, and the evaluation result of the first user equipment is obtained. That is, in the statistics of each piece of hardware configuration information of the first user equipment, the corresponding evaluation result indicates: the number of hardware configuration information (may be referred to as a first number) with a higher probability that the device type of the first user device is different from the device type of the second user device, and corresponding evaluation results in each piece of software configuration information of the first user device represent: the number of software configuration information (which may be referred to as a second number) with a higher probability that the device type of the first user device is different from the device type of the second user device, and calculating the sum of the first number and the second number as an evaluation result of the first user device.
Accordingly, since the evaluation result corresponding to each hardware configuration information can represent: based on the hardware configuration information, a probability that the device type of the first user device is different from the device type of the second user device; the evaluation result corresponding to each piece of software configuration information can be represented as follows: based on the software configuration information, a probability that the device type of the first user device is different from the device type of the second user device. Therefore, the sum of the evaluation result corresponding to each piece of hardware configuration information and the evaluation result corresponding to each piece of software configuration information, that is, the evaluation result of the first user equipment, can represent the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment. The higher the evaluation result of the first user equipment is, the higher the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment is; the lower the evaluation result of the first user equipment, the lower the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment.
In another implementation, step S1031 may include the steps of: and aiming at each piece of hardware configuration information of the first user equipment, acquiring an evaluation result corresponding to the hardware configuration information from a first corresponding relation between the preset hardware configuration information and the evaluation result.
Accordingly, step S1032 may include the steps of: and aiming at each piece of software configuration information of the first user equipment, acquiring an evaluation result corresponding to the software configuration information from a second corresponding relation between the preset software configuration information and the evaluation result.
In the first corresponding relation, the higher the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment based on one piece of hardware configuration information, the higher the evaluation result corresponding to the hardware configuration information; the lower the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment based on one piece of hardware configuration information, the lower the evaluation result corresponding to the hardware configuration information.
For example, if the second user equipment is a mobile phone, the first correspondence relationship includes: the hardware configuration information does not contain a battery, and the corresponding evaluation result is 20; the hardware configuration information does not contain a sensor, and the corresponding evaluation result is 10; the hardware configuration information does not contain the SIM card slot, and the corresponding evaluation result is 15.
The value of the evaluation result corresponding to the hardware configuration information may be set by a technician.
If the second user equipment is a mobile phone, since the mobile phone basically includes a battery, and other devices, such as a television, do not include a battery, according to the battery configuration of the first user equipment, whether the device type of the first user equipment is the same as the device type of the second user equipment can be accurately determined, and in the first corresponding relationship, an evaluation result corresponding to the battery configuration of the first user equipment can be set to a larger value, such as 20. Correspondingly, the first correspondence relationship includes: if the first ue does not include a battery, the corresponding evaluation result is 20.
If the second user equipment is a mobile phone, since the mobile phone basically includes the sensor, and other devices, such as a television, are stationary, that is, do not include the sensor, according to the sensor configuration of the first user equipment, it can be more accurately determined whether the device type of the first user equipment is the same as the device type of the second user equipment, and in the first corresponding relationship, the evaluation result corresponding to the battery configuration of the first user equipment can be set to a larger value, such as 10. Correspondingly, the first correspondence relationship includes: if the first user equipment does not contain a sensor, the corresponding evaluation result is 10.
If the second user equipment is a mobile phone, since the mobile phone basically includes the SIM card slot, but other devices, such as a television, do not necessarily include the SIM card slot, according to the SIM card slot configuration of the first user equipment, it can be more accurately determined whether the device type of the first user equipment is the same as the device type of the second user equipment, and in the first corresponding relationship, the evaluation result corresponding to the SIM card slot configuration of the first user equipment may be set to a larger value, for example, 15. Correspondingly, the first correspondence relationship includes: if the first user equipment does not include the SIM card slot, the corresponding evaluation result is 15.
If the second user equipment is a mobile phone, since the display screen of the mobile phone is generally a vertical screen, that is, the height of the display screen of the mobile phone is greater than the width, and other devices, such as a television, are horizontal screens, that is, the width of the display screen of the television is greater than the height, according to the height and the width of the display screen of the first user equipment, whether the device type of the first user equipment is the same as the device type of the second user equipment can be judged, and in the first corresponding relation, the evaluation result corresponding to the height and the width of the display screen of the first user equipment can be set to be smaller values, such as 5. Correspondingly, the first correspondence relationship includes: if the height of the display screen of the first user equipment is not greater than the width, the corresponding evaluation result is 5.
In some embodiments, the evaluation result in the first correspondence may be obtained based on the first device type prediction model. The method comprises the steps of inputting sample hardware configuration information of sample equipment and an evaluation result corresponding to the sample hardware configuration information into a first equipment type prediction model, wherein the output of the first equipment type prediction model is the sample equipment type of the sample equipment.
For example, the electronic device may acquire an initial evaluation result corresponding to each sample hardware configuration information, where the initial evaluation result is 20 if the sample hardware configuration information is that the battery is not included; the sample hardware configuration information is that the sensor is not included, the corresponding initial evaluation result is 10, and the sample equipment type is a television.
After the sample hardware configuration information of the sample device and the initial evaluation result corresponding to the sample hardware configuration information are input into the first device type prediction model, if the type of the sample device output by the first device type prediction model is television, that is, the type of the sample device output is correct, the initial evaluation result corresponding to the sample hardware configuration information at the moment can be used as the evaluation result in the first corresponding relation. That is, the first correspondence at this time includes: the hardware configuration information does not include a battery, the corresponding evaluation result is 20, the hardware configuration information does not include a sensor, and the corresponding evaluation result is 10.
If the type of the sample device output by the first device type prediction model is a mobile phone, that is, the type of the sample device is wrong, an initial evaluation result corresponding to the sample hardware configuration information may be adjusted, for example, the initial evaluation result may be adjusted as follows: the sample hardware configuration information does not comprise a battery, and the corresponding evaluation result is 25; the sample hardware configuration information is not including a sensor, and the corresponding evaluation result is 15.
And then, according to the evaluation result corresponding to the adjusted sample hardware configuration information, continuing to output the sample equipment type by using the first equipment type prediction model, and the like until the sample equipment type output by the first equipment type prediction model is correct. Accordingly, the evaluation result corresponding to the sample hardware configuration information at this time may be used as the evaluation result in the first correspondence.
If the initial evaluation result corresponding to the sample hardware configuration information is adjusted to be: the sample hardware configuration information does not comprise a battery, and the corresponding evaluation result is 25; the sample hardware configuration information is that the sensor is not included, the corresponding evaluation result is 15, the type of the sample equipment output by the first equipment type prediction model is television, the type of the sample equipment output is correct, and at the moment, the first corresponding relation comprises: the hardware configuration information does not include a battery, the corresponding evaluation result is 25, the hardware configuration information does not include a sensor, and the corresponding evaluation result is 15.
In the second corresponding relation, the higher the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment based on one piece of software configuration information, the higher the evaluation result corresponding to the software configuration information; the lower the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment based on one piece of software configuration information, the lower the evaluation result corresponding to the software configuration information.
Exemplary, if the second user equipment is a mobile phone, the second correspondence relationship includes: the software configuration information is a name comprising the identification of the television, and the corresponding evaluation result is 15; the name of the software configuration information which is the input method comprises the identification of the television, and the corresponding evaluation result is 5; the software configuration information is that the maximum value of the volume value is larger than 80 db, and the corresponding evaluation result is 5.
The value of the evaluation result corresponding to the software configuration information may be set by a technician.
If the second user equipment is a mobile phone, the name of the mobile phone does not include the identifier of the television, the name of the television includes the identifier of the television, and according to the name of the first user equipment, whether the equipment type of the first user equipment is the same as the equipment type of the second user equipment can be accurately judged, and in the second corresponding relation, an evaluation result corresponding to the name of the first user equipment can be set to be a larger value, such as 15. Correspondingly, the second correspondence relationship includes: if the name of the first user equipment includes the identification of the television, the corresponding evaluation result is 15.
If the second user equipment is a mobile phone, the name of the input method of the mobile phone may not include the identifier of the television, and the name of the input method of the television may include the identifier of the television, according to the name of the input method of the first user equipment, whether the equipment type of the first user equipment is the same as the equipment type of the second user equipment can be judged, and in the second corresponding relationship, the evaluation result corresponding to the name of the input method of the first user equipment can be set to a smaller value, such as 5. Correspondingly, the second correspondence relationship includes: if the name of the input method of the first user equipment comprises the identification of the television, the corresponding evaluation result is 5.
If the second user equipment is a mobile phone, since the maximum value of the volume value of the mobile phone is generally smaller, for example 80 db, and the maximum value of the volume value of the television is generally larger, for example 120 db, according to the maximum value of the volume value of the first user equipment, whether the equipment type of the first user equipment is the same as the equipment type of the second user equipment can be determined, and in the second corresponding relationship, the evaluation result corresponding to the maximum value of the volume value of the first user equipment can be set to a smaller value, for example 5. Correspondingly, the second correspondence relationship includes: if the maximum value of the sound volume value of the first user equipment is greater than 80 db, the corresponding evaluation result is 5.
If the second user equipment is a mobile phone, since the mobile phone basically sets the screen-off time, the television basically does not set the screen-off time, whether the equipment type of the first user equipment is the same as the equipment type of the second user equipment can be judged according to the screen-off time of the first user equipment, and in the second corresponding relation, the evaluation result corresponding to the screen-off time of the first user equipment can be set to be a smaller value, for example, 5. Correspondingly, the second correspondence relationship includes: if the screen-off time of the first user equipment is greater than 120 minutes, the corresponding evaluation result is 5.
In some embodiments, the evaluation result in the second correspondence may be obtained based on the second device type prediction model. And inputting the sample software configuration information of the sample equipment and an evaluation result corresponding to the sample software configuration information into a second equipment type prediction model, wherein the output of the second equipment type prediction model is the sample equipment type of the sample equipment.
For example, the electronic device may obtain an initial evaluation result corresponding to each piece of preset sample software configuration information, where if the sample software configuration information is a name including an identifier of the television, the corresponding initial evaluation result is 15; the name of the sample software configuration information which is the input method comprises the identification of the television, the corresponding initial evaluation result is 5, and the type of the sample equipment is the television.
After the sample software configuration information of the sample device and the initial evaluation result corresponding to the sample software configuration information are input into the second device type prediction model, if the type of the sample device output by the second device type prediction model is television, that is, the type of the sample device output is correct, the initial evaluation result corresponding to the sample software configuration information at the moment can be used as the evaluation result in the second corresponding relation. That is, the second correspondence at this time includes: the software configuration information is that the name comprises the identification of the television, the corresponding evaluation result is 15, the software configuration information is that the name of the input method comprises the identification of the television, and the corresponding evaluation result is 5.
If the type of the sample device output by the second device type prediction model is a mobile phone, that is, the type of the sample device is wrong, an initial evaluation result corresponding to the sample software configuration information may be adjusted, for example, the initial evaluation result may be adjusted as follows: the sample software configuration information is the name comprising the identification of the television, and the corresponding evaluation result is 20; the sample software configuration information is the name of the input method and comprises the identification of the television, and the corresponding evaluation result is 10.
And then, according to the evaluation result corresponding to the adjusted sample software configuration information, continuously using the second equipment type prediction model to output the sample equipment type, and so on until the sample equipment type output by the second equipment type prediction model is correct. Accordingly, the evaluation result corresponding to the sample software configuration information at this time can be used as the evaluation result in the second correspondence.
If the initial evaluation result corresponding to the sample software configuration information is adjusted to be: the sample software configuration information is the name comprising the identification of the television, and the corresponding evaluation result is 20; the name of the sample software configuration information which is the input method comprises the identification of the television, the corresponding evaluation result is 10, the type of the sample equipment which is output by the second equipment type prediction model is the television, the type of the sample equipment which is output is correct, and the second corresponding relation at the moment comprises: the software configuration information is that the name comprises the identification of the television, the corresponding evaluation result is 20, the software configuration information is that the name of the input method comprises the identification of the television, and the corresponding evaluation result is 10.
And aiming at each piece of hardware configuration information of the first user equipment, acquiring an evaluation result corresponding to the hardware configuration information from a first corresponding relation between the preset hardware configuration information and the evaluation result.
Exemplary, if the second user equipment is a mobile phone, the second device information includes: the second user device comprises a SIM card slot. If the hardware configuration information of the first user equipment is: the first user equipment comprises an SIM card slot, the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment is low, and the electronic equipment marks an evaluation result corresponding to the SIM card slot configuration of the first user equipment as 0.
If the hardware configuration information of the first user equipment is: the first user equipment does not contain a SIM card slot, which indicates that the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment is higher, and the server determines an evaluation result corresponding to the hardware configuration information from the first corresponding relation. For example, for the first correspondence in the foregoing embodiment, the evaluation result corresponding to the SIM card slot configuration of the first user equipment is 15.
If the second user equipment is a mobile phone, the second equipment information includes: the second user device comprises a battery. If the hardware configuration information of the first user equipment is: the first user equipment comprises a battery, the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment is low, and the electronic equipment marks an evaluation result corresponding to the battery configuration of the first user equipment as 0.
If the hardware configuration information of the first user equipment is: the first user equipment does not contain a battery, and the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment is high is indicated, and the server determines an evaluation result corresponding to the hardware configuration information from the first corresponding relation. For example, for the first correspondence in the above embodiment, the evaluation result corresponding to the battery configuration of the first user equipment is 20.
And aiming at each piece of software configuration information of the first user equipment, acquiring an evaluation result corresponding to the software configuration information from a second corresponding relation between the preset software configuration information and the evaluation result.
Exemplary, if the second user equipment is a mobile phone, the second device information includes: the maximum value of the volume value of the second user device is 80 db. If the software configuration information of the first user equipment is: the maximum value of the volume value of the first user equipment is 80 db, which indicates that the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment is low, and the electronic equipment marks the evaluation result corresponding to the maximum value of the volume value of the first user equipment as 0.
If the software configuration information of the first user equipment is: the maximum value of the volume value of the first user equipment is 120 db, which indicates that the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment is higher, and the server may determine, from the second correspondence, an evaluation result corresponding to the maximum value of the volume value of the first user equipment, for example, for the second correspondence in the above embodiment, the evaluation result corresponding to the maximum value of the volume value of the first user equipment is 5.
If the second user equipment is a mobile phone, the second equipment information includes: the off screen time of the second user device is less than 120 minutes. If the software configuration information of the first user equipment is: the screen-off time of the first user equipment is 120 minutes, which indicates that the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment is low, and the electronic equipment marks an evaluation result corresponding to the screen-off time of the first user equipment as 0.
If the software configuration information of the first user equipment is: the screen-off time of the first user equipment is greater than 120 minutes, which indicates that the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment is higher, and the server can determine an evaluation result corresponding to the screen-off time of the first user equipment from the second corresponding relation. For example, for the second correspondence in the foregoing embodiment, the evaluation result corresponding to the screen-off time of the first user equipment is 5.
After the server obtains the evaluation results corresponding to the hardware configuration information of the first user equipment and the evaluation results corresponding to the software configuration information of the first user equipment, the sum of the evaluation results corresponding to the hardware configuration information and the evaluation results corresponding to the software configuration information can be calculated to obtain the evaluation results of the first user equipment. The higher the evaluation result of the first user equipment is, the higher the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment is; the lower the evaluation result of the first user equipment, the lower the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment.
Furthermore, the server may determine whether the evaluation result of the first user equipment is greater than a first preset threshold. If the evaluation result of the first user equipment is larger than a first preset threshold value, the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment is higher; if the evaluation result of the first user equipment is not greater than the first preset threshold, the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment is lower. The first preset threshold may be set by a technician. For example, when determining the evaluation result of the first user equipment based on the first correspondence and the second correspondence, the first preset threshold may be 30.
Based on the above processing, if the server determines, based on only one item of first device information of the first user device, whether the device type of the first user device is the same as the device type of the second user device, the accuracy of the determination result is low, for example, the first user device may be a mobile phone with a detachable battery, and after the battery is removed, the first user device may be normally used when the charging device is connected. At this time, since the first user equipment does not include a battery, the server may determine that the first user equipment is a television based on the battery configuration of the first user equipment, that is, the accuracy of the determination result may be low. Therefore, the server can integrate the hardware configuration information and the software configuration information included in the first device information to judge whether the device type of the first user device is the same as the device type of the second user device, and accuracy of the judging result can be improved.
In some embodiments, the server may store, locally to the server, evaluation information that records whether the evaluation result of the first user device is greater than a first preset threshold. Subsequently, when the resource acquisition request sent by the first user equipment is received again, the server can directly acquire the stored evaluation information of the first user equipment from the server, perform subsequent processing according to the judgment result recorded in the evaluation information, and not need to acquire the first equipment information of the first user equipment, judge whether the equipment type of the first user equipment is the same as the equipment type of the second user equipment according to the first equipment information, so that the resource acquisition efficiency can be improved.
In some embodiments, the first device information sent by the first user device may carry an identifier of the first user device. Correspondingly, the server can correspondingly store the identification of the first user equipment and the evaluation information of the first user equipment. Subsequently, the server may directly obtain the evaluation information corresponding to the identifier of the first user equipment from the locally stored evaluation information of the server. The identifier of the first user equipment may be a DFP (Datas Forward Protocol, data forwarding protocol) string.
For step S104, if the device type of the first user device is different from the device type of the second user device, it is determined that the target application program is not adapted to the first user device, which indicates that when the first user device continues to operate the target application program, the problem that the target application program is blocked, flashed back, abnormal display and the like may occur in the operation process, resulting in reduced user experience. Thus, the server may send a reminder message to the first user device indicating that the target application is not adapted to the first user device. After the first user equipment receives the reminding message, the reminding message can be displayed. Correspondingly, the user can know that the target application program is not matched with the first user equipment through the reminding message displayed by the first user equipment, and subsequently, the user can install the target application program with the version matched with the first user equipment in the first user equipment. Further, the user may run the target application in the first user device in a version adapted to the first user device.
The reminding message may be a text for reminding the user that the target application program is not adapted to the first user equipment, for example, "the APP of the current version is not adapted to the user equipment, please download the APP of the correct version", or may be a download address of the target application program of the version adapted to the first user equipment.
In some embodiments, based on fig. 2, referring to fig. 5, after step S103, the method may further include the steps of:
s106: if the equipment type of the first user equipment is the same as the equipment type of the second user equipment, determining that the target application program is matched with the first user equipment, and sending the target network resource requested by the first user equipment to the first user equipment so that the first user equipment receives the target network resource.
If the server determines that the equipment type of the first user equipment is the same as the equipment type of the second user equipment based on the first equipment information, and determines that the target application program is matched with the first user equipment, the target application program continues to run in the first user equipment, the problems of blocking, flashing back, abnormal display and the like of the target application program in the running process are not caused, and the user experience is not reduced. Therefore, the server may send the target network resource requested by the first user equipment to the first user equipment, and the first user equipment may receive the target network resource and display the target network resource to the user for browsing by the user after receiving the target network resource. For example, if the target network resource is a video, the video may be played in the first user device for browsing by the user.
Based on the above processing, the server may send the target network resource requested by the first user equipment to the first user equipment when the target application is adapted to the first user equipment, so as to satisfy the user demand.
In some embodiments, after step S1011, the method further comprises the steps of:
step 1: and if the local storage of the server records the evaluation information of whether the target application program is matched with the first user equipment, inquiring the evaluation information stored locally by the server.
Step 2: if the target application program is recorded in the evaluation information and is not matched with the first user equipment, a reminding message is sent to the first user equipment so as to remind a user to install the target application program of a version matched with the first user equipment; and if the record target application program in the evaluation information is matched with the first user equipment, sending the target network resource requested by the first user equipment to the first user equipment so that the first user equipment receives the target network resource.
If the server locally stores evaluation information recording whether the target application is adapted to the first user equipment, the server may directly query the evaluation information locally stored in the server to determine whether the target application is adapted to the first user equipment.
The evaluation information stored locally in the server may be stored when the server first determines whether the target application is matched with the first user equipment, or may be stored when the server last receives a resource acquisition request sent by the first user equipment, and determines whether the target application is matched with the first user equipment.
If the evaluation information stored locally in the server is not suitable for the target application program and the first user equipment, the problem that the target application program is blocked, flashed back, abnormal in display and the like in the running process possibly occurs when the target application program continues to run in the first user equipment is indicated, and the user experience is reduced. Thus, the server may send a reminder message to the first user device. After the first user equipment receives the reminding message, the reminding message can be displayed. Correspondingly, the user can know that the target application program is not matched with the first user equipment through the reminding message displayed by the first user equipment, and the follow-up user can install the target application program with the version matched with the first user equipment in the first user equipment. Further, the user may run the target application in the first user device in a version adapted to the first user device.
If the evaluation information stored locally in the server records that the target application program is adapted to the first user equipment, it indicates that when the first user equipment continues to operate the target application program, the problems of blocking, flashing back, abnormal display and the like of the target application program in the operation process are not caused, and the user experience is not reduced. Therefore, the server may send the target network resource requested by the first user equipment to the first user equipment, and the first user equipment may receive the target network resource and display the target network resource to the user for browsing by the user after receiving the target network resource.
Based on the above processing, if the local storage of the server has the evaluation information for recording whether the target application program is adapted to the first user equipment, the server may directly use the evaluation information stored locally in the server and perform subsequent processing according to the determination result recorded in the evaluation information, without acquiring the first device information of the first user equipment, or without determining whether the target application program is adapted to the first user equipment according to the first device information, so that the efficiency of the method for adapting the application program to the device may be improved.
In some embodiments, referring to fig. 6, fig. 6 is a sixth flowchart of a method for adapting an application to a device according to an embodiment of the present invention, where the method may include the following steps:
s601: the first user device performs device information gathering (battery status, name, input method, volume, sensor, SIM (subscriber identity module) card slot, screen size, off-screen time).
The first user equipment is operated with a client, and the client is the target application program in the foregoing embodiment. After the target application program is started in the first user equipment, the first user equipment can acquire first equipment information of the first user equipment. The first device information includes hardware configuration information and software configuration information of the first user device. The hardware configuration information of the first user equipment includes: the method comprises the steps of configuring a battery of first user equipment, and configuring a sensor of the first user equipment; configuring a SIM card slot of the first user equipment; the height, width, etc. of the display screen of the first user equipment are not particularly limited; wherein the sensor comprises at least one of: acceleration sensor, magnetic force sensor, gyroscope sensor. The software configuration information of the first user equipment includes: a name of the first user device; the name of the input method of the first user equipment; a maximum value of the volume value of the first user equipment; the screen-off time of the first user equipment, etc., are not particularly limited.
S602: the first user equipment performs data encryption and compression transmission.
After the first user equipment obtains the first equipment information, in order to improve the efficiency of the first user equipment sending the first equipment information to the server and improve the security of the first equipment information, the first user equipment can compress and encrypt the first equipment information to obtain target data. The first user device may then send target data carrying the identity of the first user device to the server. The identifier of the first user equipment may be a DFP string.
S603: the server performs data decryption, decompression and reception.
After receiving the target data sent by the first user equipment, the server can perform corresponding decryption and decompression on the target data to obtain first equipment information.
S604: the server performs the calculation of whether it is a cross-end installation using a scoring algorithm.
After the server obtains the first device information, a scoring algorithm may be used to determine whether the target application is installed across ends. The server judges whether the equipment type of the first user equipment is the same as the equipment type of the second user equipment according to the first equipment information and the second equipment information of the second user equipment matched with the target application program, and further judges whether the target application program is matched with the first user equipment, namely the server can obtain the evaluation information of the first user equipment. If the target application program is matched with the first user equipment, namely the target application program is not installed across ends; if the target application program is not matched with the first user equipment, namely the target application program is installed in a cross-terminal mode.
S605: the server executes to store the result in a disk and a memory, so that the next extraction is convenient.
After the server obtains the evaluation information of the first user equipment, the identification of the first user equipment and the evaluation information of the first user equipment are correspondingly stored in a disk or a memory of the server, namely the identification of the first user equipment and the evaluation information of the first user equipment are correspondingly stored in the local of the server. Subsequently, the server may obtain, from the locally stored evaluation information of the server, evaluation information corresponding to the identifier of the first user equipment.
S606: the first user equipment executes a scene which needs to judge whether the client is matched with the first user equipment, such as entering a playing video.
When a user enters a scene in which whether the target application program is matched with the first user equipment or not needs to be judged, a target acquisition instruction for acquiring target network resources can be input to the first user equipment. For example, the scene may be that the user needs to browse the video, and the user may click an operation button for playing the video.
S607: the first user device performs a query as to whether the server can play.
After the first user equipment detects a target acquisition instruction input by a user, a resource acquisition request carrying an identification of the first user equipment and target data can be sent to a server.
S608: the server performs data decryption, decompression and reception.
After receiving the resource acquisition request sent by the first user equipment, the server can perform corresponding decryption and decompression on the target data to obtain the first equipment information.
S609: the server executes the judgment whether the disk and the memory contain the cross-terminal information of the user.
After the server obtains the first device information, the server may query whether the server locally stores the evaluation information corresponding to the identifier of the first user device according to the identifier of the first user device carried in the resource obtaining request. If the server locally stores the evaluation information of the first user equipment, the server can directly obtain a judging result of whether the target application program is adapted to the first user equipment according to the evaluation information. If the server does not locally store the evaluation information of the first user equipment, the server may determine, according to the first equipment information, whether the target application program is adapted to the first user equipment.
S610: and returning the execution result of the server.
If the server determines that the target application program is not matched with the first user equipment, the server sends a reminding message to the first user equipment. If the server determines that the target application program is matched with the first user equipment, the server sends target network resources requested by the first user equipment to the first user equipment.
S611: the first user equipment performs video playing or outputs a reminding message.
After the first user equipment receives the reminding message, displaying the reminding message to remind the user to install the target application program of the version matched with the first user equipment; after the first user equipment receives the target network resource, the target network resource can be displayed to the user.
Based on the above processing, the server may determine whether the target application is adapted to the first user device according to the first device information of the first user device and the second device information of the second user device to which the target application is adapted. When the target application program is not matched with the first user equipment, the server sends a reminding message which indicates that the target application program is not matched with the first user equipment to the first user equipment. After the first user equipment receives the reminding message, the reminding message can be displayed to remind the user to install the target application program of the version matched with the first user equipment, and subsequently, the user can install the target application program of the version matched with the first user equipment, so that the problems that the target application program is blocked, bounces, abnormal in display and the like due to the fact that the target application program is not matched with the first user equipment can be avoided, and further user experience can be improved.
And because the first equipment information is sent by the first user equipment every time when the first user equipment sends the resource acquisition request to the server, after the server receives the resource acquisition request sent by the first user equipment every time, when the evaluation information for recording whether the target application program is matched with the first user equipment is not stored in the local area of the server, the server can directly acquire the first equipment information carried in the resource acquisition request, and judge whether the target application program is matched with the first user equipment according to the first equipment information, namely the first equipment information is prevented from being tampered, and the accuracy of a judgment result can be improved.
Based on the same inventive concept as the adaptation method of the application program and the device, the embodiment of the invention also provides an adaptation device of the application program and the device, which is applied to a server, and referring to fig. 7, the device comprises:
a first device information obtaining module 701, configured to obtain first device information of a first user device on which a target application program is installed;
a second device information obtaining module 702, configured to obtain second device information of a second user device adapted to the target application program based on version information of the target application program; the version information of the target application program is as follows: for determining an identity of a user equipment to which the target application is adapted;
A judging module 703, configured to judge, based on the first device information and the second device information, whether a device type of the first user device is the same as a device type of the second user device;
and a reminding message sending module 704, configured to determine that the target application is not adapted to the first user equipment if the equipment type of the first user equipment is different from the equipment type of the second user equipment, and send a reminding message indicating that the target application is not adapted to the first user equipment, so as to remind a user to install a version of the target application adapted to the first user equipment.
Optionally, the device information of a user device includes hardware configuration information and software configuration information of the user device;
the judging module 703 is specifically configured to:
aiming at each piece of hardware configuration information of the first user equipment, acquiring an evaluation result corresponding to the hardware configuration information; wherein, the evaluation result corresponding to the hardware configuration information represents: based on the hardware configuration information, the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment;
Aiming at each piece of software configuration information of the first user equipment, acquiring an evaluation result corresponding to the software configuration information; wherein, the evaluation result corresponding to the software configuration information represents: based on the software configuration information, the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment;
calculating the sum of the evaluation results corresponding to the hardware configuration information and the evaluation results corresponding to the software configuration information to obtain the evaluation result of the first user equipment;
if the evaluation result of the first user equipment is larger than a first preset threshold value, determining that the equipment type of the first user equipment is different from the equipment type of the second user equipment;
and if the evaluation result of the first user equipment is not greater than a first preset threshold value, determining that the equipment type of the first user equipment is the same as the equipment type of the second user equipment.
Optionally, the determining module 703 is specifically configured to:
aiming at each piece of hardware configuration information of the first user equipment, acquiring an evaluation result corresponding to the hardware configuration information from a first corresponding relation between preset hardware configuration information and the evaluation result;
The judging module 703 is specifically configured to:
and aiming at each piece of software configuration information of the first user equipment, acquiring an evaluation result corresponding to the software configuration information from a second corresponding relation between the preset software configuration information and the evaluation result.
Optionally, the evaluation result in the first correspondence is: obtaining based on a first device type prediction model; inputting sample hardware configuration information of sample equipment and an evaluation result corresponding to the sample hardware configuration information into the first equipment type prediction model, wherein the output of the first equipment type prediction model is the sample equipment type of the sample equipment;
the evaluation result in the second corresponding relation is as follows: obtaining based on a second device type prediction model; and inputting sample software configuration information of sample equipment and an evaluation result corresponding to the sample software configuration information into the second equipment type prediction model, wherein the output of the second equipment type prediction model is the sample equipment type of the sample equipment.
Optionally, the apparatus further includes:
a resource acquisition request receiving module, configured to perform receiving a resource acquisition request sent by the first user equipment to acquire a target network resource before the first device information acquiring module 701 performs the acquisition of the first device information of the first user equipment installed with the target application program; the resource acquisition request carries the first equipment information;
The first device information obtaining module 701 is specifically configured to:
and if the evaluation information for recording whether the target application program is matched with the first user equipment is not stored locally in the server, acquiring the first equipment information from the resource acquisition request.
Optionally, the apparatus further includes:
and a target network resource sending module, configured to, after the determining module 703 performs the determining that the device type of the first user device is the same as the device type of the second user device based on the first device information and the second device information, determine that the target application is adapted to the first user device if the device type of the first user device is the same as the device type of the second user device, and send the target network resource requested by the first user device to the first user device, so that the first user device receives the target network resource.
Optionally, the first device information obtaining module 701 is specifically configured to:
acquiring target data carried in a resource acquisition request sent by the first user equipment; wherein the target data includes: data obtained by compressing and encrypting the first equipment information;
And decrypting and decompressing the target data to obtain the first equipment information.
Optionally, the apparatus further includes:
the evaluation information inquiry module is used for executing evaluation information which is stored locally by the server if the local storage of the server records whether the target application program is matched with the first user equipment or not after the resource acquisition request receiving module executes the resource acquisition request which is sent by the first user equipment and is used for acquiring target network resources;
the query result processing module is used for sending the reminding message to the first user equipment to remind a user to install the target application program of a version adapted to the first user equipment if the target application program is recorded to be not adapted to the first user equipment in the evaluation information;
and if the target application program is matched with the first user equipment in the evaluation information, sending the target network resource requested by the first user equipment to the first user equipment so that the first user equipment receives the target network resource.
Based on the adapting device of the application program and the device provided by the embodiment of the invention, the server can judge whether the device type of the first user device is the same as the device type of the second user device according to the first device information of the first user device and the second device information of the second user device adapted by the target application program. When the equipment type of the first user equipment is different from the equipment type of the second user equipment, the server determines that the target application program is not matched with the first user equipment, and sends a reminding message indicating that the target application program is not matched with the first user equipment to the first user equipment, so that a user can be reminded of installing the target application program of a version matched with the first user equipment. Subsequently, the user can install the target application program of the version adapted to the first user equipment, so that the problems of blocking, flashing, abnormal display and the like of the target application program caused by the fact that the target application program is not adapted to the first user equipment can be avoided, and further user experience can be improved.
The embodiment of the present invention further provides an electronic device, as shown in fig. 8, including a processor 801, a communication interface 802, a memory 803, and a communication bus 804, where the processor 801, the communication interface 802, and the memory 803 complete communication with each other through the communication bus 804,
a memory 803 for storing a computer program;
the processor 801 is configured to implement the steps of the adaptation method of any application program and the device in the above embodiments when executing the program stored in the memory 803.
The communication bus mentioned by the above electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, or the like. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processor, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, a computer readable storage medium is provided, where a computer program is stored, where the computer program, when executed by a processor, implements a method for adapting an application program to a device according to any of the foregoing embodiments.
In a further embodiment of the present invention, a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of adapting an application to a device as described in any of the above embodiments is also provided.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for an apparatus, an electronic device, a computer readable storage medium, a computer program product embodiment, the description is relatively simple, as it is substantially similar to the method embodiment, as relevant see the partial description of the method embodiment.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (11)

1. A method for adapting an application to a device, the method being applied to a server, the method comprising:
acquiring first equipment information of first user equipment provided with a target application program;
acquiring second equipment information of second user equipment adapted by the target application program based on the version information of the target application program; the version information of the target application program is as follows: for determining an identity of a user equipment to which the target application is adapted;
judging whether the equipment type of the first user equipment is the same as the equipment type of the second user equipment or not based on the first equipment information and the second equipment information;
if the equipment type of the first user equipment is different from the equipment type of the second user equipment, determining that the target application program is not matched with the first user equipment, and sending a reminding message indicating that the target application program is not matched with the first user equipment to the first user equipment so as to remind a user to install the target application program of a version matched with the first user equipment.
2. The method of claim 1, wherein the device information of a user device includes hardware configuration information and software configuration information of the user device;
the determining, based on the first device information and the second device information, whether the device type of the first user device is the same as the device type of the second user device includes:
aiming at each piece of hardware configuration information of the first user equipment, acquiring an evaluation result corresponding to the hardware configuration information; wherein, the evaluation result corresponding to the hardware configuration information represents: based on the hardware configuration information, the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment;
aiming at each piece of software configuration information of the first user equipment, acquiring an evaluation result corresponding to the software configuration information; wherein, the evaluation result corresponding to the software configuration information represents: based on the software configuration information, the probability that the equipment type of the first user equipment is different from the equipment type of the second user equipment;
calculating the sum of the evaluation results corresponding to the hardware configuration information and the evaluation results corresponding to the software configuration information to obtain the evaluation result of the first user equipment;
If the evaluation result of the first user equipment is larger than a first preset threshold value, determining that the equipment type of the first user equipment is different from the equipment type of the second user equipment;
and if the evaluation result of the first user equipment is not greater than a first preset threshold value, determining that the equipment type of the first user equipment is the same as the equipment type of the second user equipment.
3. The method of claim 2, wherein the obtaining, for each piece of hardware configuration information of the first user equipment, an evaluation result corresponding to the piece of hardware configuration information includes:
aiming at each piece of hardware configuration information of the first user equipment, acquiring an evaluation result corresponding to the hardware configuration information from a first corresponding relation between preset hardware configuration information and the evaluation result;
the obtaining, for each piece of software configuration information of the first user equipment, an evaluation result corresponding to the piece of software configuration information includes:
and aiming at each piece of software configuration information of the first user equipment, acquiring an evaluation result corresponding to the software configuration information from a second corresponding relation between the preset software configuration information and the evaluation result.
4. A method according to claim 3, wherein the evaluation result in the first correspondence is: obtaining based on a first device type prediction model; inputting sample hardware configuration information of sample equipment and an evaluation result corresponding to the sample hardware configuration information into the first equipment type prediction model, wherein the output of the first equipment type prediction model is the sample equipment type of the sample equipment;
The evaluation result in the second corresponding relation is as follows: obtaining based on a second device type prediction model; and inputting sample software configuration information of sample equipment and an evaluation result corresponding to the sample software configuration information into the second equipment type prediction model, wherein the output of the second equipment type prediction model is the sample equipment type of the sample equipment.
5. The method of claim 1, wherein prior to the obtaining the first device information for the first user device installed with the target application, the method further comprises:
receiving a resource acquisition request sent by the first user equipment and used for acquiring a target network resource; the resource acquisition request carries the first equipment information;
the obtaining the first device information of the first user device installed with the target application program includes:
and if the evaluation information for recording whether the target application program is matched with the first user equipment is not stored locally in the server, acquiring the first equipment information from the resource acquisition request.
6. The method of claim 5, wherein after said determining whether the device type of the first user device is the same as the device type of the second user device based on the first device information and the second device information, the method further comprises:
And if the equipment type of the first user equipment is the same as the equipment type of the second user equipment, determining that the target application program is matched with the first user equipment, and sending the target network resource requested by the first user equipment to the first user equipment so that the first user equipment receives the target network resource.
7. The method of claim 5, wherein the obtaining the first device information from the resource obtaining request comprises:
acquiring target data carried in a resource acquisition request sent by the first user equipment; wherein the target data includes: data obtained by compressing and encrypting the first equipment information;
and decrypting and decompressing the target data to obtain the first equipment information.
8. The method of claim 5, wherein after receiving the resource acquisition request sent by the first user device for acquiring the target network resource, the method further comprises:
if the local storage of the server records evaluation information of whether the target application program is matched with the first user equipment, inquiring the evaluation information stored locally by the server;
If the target application program is not matched with the first user equipment in the evaluation information, sending the reminding message to the first user equipment so as to remind a user to install a version of the target application program matched with the first user equipment;
and if the target application program is matched with the first user equipment in the evaluation information, sending the target network resource requested by the first user equipment to the first user equipment so that the first user equipment receives the target network resource.
9. An apparatus for adapting an application to a device, the apparatus being applied to a server, the apparatus comprising:
the first equipment information acquisition module is used for acquiring first equipment information of first user equipment provided with a target application program;
the second equipment information acquisition module is used for acquiring second equipment information of second user equipment adapted by the target application program based on the version information of the target application program; the version information of the target application program is as follows: for determining an identity of a user equipment to which the target application is adapted;
the judging module is used for judging whether the equipment type of the first user equipment is the same as the equipment type of the second user equipment or not based on the first equipment information and the second equipment information;
And the reminding message sending module is used for determining that the target application program is not matched with the first user equipment if the equipment type of the first user equipment is different from the equipment type of the second user equipment, and sending a reminding message indicating that the target application program is not matched with the first user equipment to the first user equipment so as to remind a user to install the target application program of a version matched with the first user equipment.
10. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-8 when executing a program stored on a memory.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-8.
CN202310040146.8A 2023-01-12 2023-01-12 Application program and equipment adaptation method and device and electronic equipment Pending CN116302051A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310040146.8A CN116302051A (en) 2023-01-12 2023-01-12 Application program and equipment adaptation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310040146.8A CN116302051A (en) 2023-01-12 2023-01-12 Application program and equipment adaptation method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN116302051A true CN116302051A (en) 2023-06-23

Family

ID=86831359

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310040146.8A Pending CN116302051A (en) 2023-01-12 2023-01-12 Application program and equipment adaptation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116302051A (en)

Similar Documents

Publication Publication Date Title
US11659220B2 (en) System and method for surveying broadcasting ratings
KR102379313B1 (en) Electronic device for displaying application andoperating method thereof
CN107733968B (en) Application information pushing method and device, computer equipment and storage medium
CN109714415B (en) Data processing method and device
CN112188277B (en) Screen projection control method and device, electronic equipment and computer program medium
CN104580019A (en) Network service supplying method and device
CN111198859A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN104811776A (en) Multimedia playing method and device
CN108933968B (en) Message format conversion method and device, storage medium and android terminal
CN105553770B (en) Data acquisition control method and device
CN105205153A (en) File storage method and device
CN115622963A (en) Message detection method, device, equipment and medium based on industrial switch
US9648086B2 (en) System, method, and computer program product for providing test logic to user devices
JP6356857B1 (en) Log recording apparatus, log recording method, and log recording program
CN112788090B (en) Network resource transmission method, device and system
CN106776847B (en) Method and device for deleting media file and mobile terminal
CN110990743A (en) Method and device for determining uninstalling rate of application program and electronic equipment
CN110020166B (en) Data analysis method and related equipment
CN116302051A (en) Application program and equipment adaptation method and device and electronic equipment
CN114510305B (en) Model training method and device, storage medium and electronic equipment
CN111930736B (en) Data verification method and device
CN113420205B (en) Method and device for determining shared source account, terminal equipment and server
CN107256151A (en) Processing method, device and the terminal of page rendering
CN113656091A (en) Method for realizing independent broadcasting process, related device and equipment
CN108234216B (en) Method and device for downloading data message

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