Disclosure of Invention
In view of this, the embodiments of the present application provide a method and a device for processing an application to be adapted to a docking service provider, so as to solve the problem that when a conventional OCR application to be adapted is applied to the docking service provider, a system code of the OCR application to be adapted must be modified, thereby increasing workload of developers, increasing coupling of the OCR application to be adapted, and being not beneficial to expansion of the OCR application to be adapted.
A first aspect of an embodiment of the present application provides a method for processing an application docking service provider to be adapted, including:
acquiring interface parameters of an application to be adapted, which are sent by a terminal; the interface parameters comprise target service provider identification information of a target service provider to which the application to be adapted is to be docked;
when the source compliance of the application to be adapted is detected, acquiring service data of the target service provider based on the identification information of the target service provider;
generating a data template corresponding to the application to be adapted based on the preset template format corresponding to the application to be adapted and the service data;
sending the data template to the terminal sending the interface parameters; the data template is used for the application to be adapted to identify the picture based on the data template and standardize data obtained by identifying the picture.
Further, in order to accurately and quickly acquire service data of a target service provider, when it is detected that the source of the application to be adapted is compliant, acquiring the service data of the target service provider based on the target service provider identification information may include:
acquiring a target adaptation interface corresponding to the target service trademark identification information based on a preset corresponding relation between the service trademark identification information and the adaptation interface;
and calling the service data corresponding to the target service provider through the target adaptation interface.
Further, in order to enable the application to be adapted to successfully interface with the service provider, that is, the application to be adapted to interface with the service provider can accurately identify data in the picture to be scanned, the application may further include:
acquiring a picture format which can be identified by the application to be adapted; verifying whether the picture format meets a preset requirement or not based on a preset picture format; and when the picture format meets the preset requirement, executing the calling of the service data corresponding to the target service provider through the target adaptation interface.
Further, when the picture format recognizable by the application to be adapted does not meet the preset requirement, in order to facilitate the user to take corresponding measures in time, the method may further include:
when the picture format does not meet the preset requirement, generating prompt information; sending the prompt information to the terminal based on the terminal identification information of the terminal; the prompt information is used for prompting the user that the picture format which can be recognized by the application to be adapted does not meet the preset requirement.
Further, in order to facilitate accurate and fast image recognition of the to-be-adapted application, standardizing data obtained by image recognition, and generating the data template corresponding to the to-be-adapted application based on the preset template format corresponding to the to-be-adapted application and the service data may include:
acquiring a data format corresponding to the service data;
and converting the data format of the service data into the target data format, and generating the data template based on the service data converted into the target data format.
Further, in order to accurately detect whether the source of the application to be adapted is compliant or not and improve the security of the application to be adapted to the service provider, the method may further include:
detecting whether the source of the application to be adapted is in compliance or not based on the source information and preset application source information; when application source information matched with the source information is acquired, judging the source compliance of the application to be adapted; or when the application source information matched with the source information is not acquired, judging that the source of the application to be adapted is not in compliance.
Further, in order to facilitate the user to query and count the specific information of the application to be adapted to the docking service provider, the method may further include: and acquiring and storing a log generated by the service data corresponding to the target service provider called by the target adaptation interface.
A second aspect of an embodiment of the present invention provides an apparatus for processing an application docking service to be adapted, where the apparatus includes:
the first acquisition unit is used for acquiring the interface parameters of the application to be adapted, which are sent by the terminal; the interface parameters comprise target service provider identification information of a target service provider to which the application to be adapted is to be docked;
a second obtaining unit, configured to obtain service data of the target service provider based on the target service provider identification information when source compliance of the application to be adapted is detected;
the generating unit is used for generating a data template corresponding to the application to be adapted based on a preset template format corresponding to the application to be adapted and the service data;
a sending unit, configured to send the data template to the terminal that sends the interface parameter; the data template is used for the application to be adapted to identify the picture based on the data template and standardize data obtained by identifying the picture.
The interface parameters also include source information of the application to be adapted.
Further, the apparatus further comprises:
the detection unit is used for detecting whether the source of the application to be adapted is in compliance or not based on the source information and preset application source information;
the first judging unit is used for judging the source compliance of the application to be adapted when the application source information matched with the source information is acquired;
and the second judging unit is used for judging that the source of the application to be adapted is not in compliance when the application source information matched with the source information is not acquired.
Further, the second obtaining unit is specifically configured to:
acquiring a target adaptation interface corresponding to the target service trademark identification information based on a preset corresponding relation between the service trademark identification information and the adaptation interface;
and calling the service data corresponding to the target service provider through the target adaptation interface.
Further, the apparatus further comprises:
the third acquisition unit is used for acquiring the picture format which can be identified by the application to be adapted;
the verification unit is used for verifying whether the picture format meets the preset requirement or not based on the preset picture format;
and when the picture format meets a preset requirement, the second obtaining unit is specifically configured to execute the calling of the service data corresponding to the target service provider through the target adaptation interface.
Further, the apparatus further comprises:
the information generating unit is used for generating prompt information when the picture format does not meet the preset requirement;
an information sending unit, configured to send the prompt information to the terminal based on terminal identification information of the terminal; the prompt information is used for prompting the user that the picture format which can be recognized by the application to be adapted does not meet the preset requirement.
Further, the generating unit is specifically configured to:
acquiring a data format corresponding to the service data;
and converting the data format of the service data into the target data format, and generating the data template based on the service data converted into the target data format.
Further, the apparatus further comprises:
and the storage unit is used for acquiring and storing a log generated by the target adapter interface calling the service data corresponding to the target service provider.
A third aspect of the embodiments of the present invention provides another device, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program that supports a terminal to execute the above method, where the computer program includes program instructions, and the processor is configured to call the program instructions to perform the following steps:
acquiring interface parameters of an application to be adapted, which are sent by a terminal; the interface parameters comprise target service provider identification information of a target service provider to which the application to be adapted is to be docked;
when the source compliance of the application to be adapted is detected, acquiring service data of the target service provider based on the identification information of the target service provider;
generating a data template corresponding to the application to be adapted based on the preset template format corresponding to the application to be adapted and the service data;
sending the data template to the terminal sending the interface parameters; the data template is used for the application to be adapted to identify the picture based on the data template and standardize data obtained by identifying the picture.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of:
acquiring interface parameters of an application to be adapted, which are sent by a terminal; the interface parameters comprise target service provider identification information of a target service provider to which the application to be adapted is to be docked;
when the source compliance of the application to be adapted is detected, acquiring service data of the target service provider based on the identification information of the target service provider;
generating a data template corresponding to the application to be adapted based on the preset template format corresponding to the application to be adapted and the service data;
sending the data template to the terminal sending the interface parameters; the data template is used for the application to be adapted to identify the picture based on the data template and standardize data obtained by identifying the picture.
The method and the device for processing the application docking service provider to be adapted provided by the embodiment of the application have the following beneficial effects:
according to the embodiment of the application, the interface parameters of the application to be adapted, which are sent by the terminal, are obtained; when the source compliance of the application to be adapted is detected, acquiring service data of a target service provider based on the identification information of the target service provider; generating a data template corresponding to the application to be adapted based on a preset template format corresponding to the application to be adapted and the service data; and sending the data template to a terminal for sending the interface parameters. In the above manner, the server acquires the service data of the target service provider corresponding to the application to be adapted, and generates a data template for the application to be adapted based on the preset template format and the service data corresponding to the application to be adapted, so that the application to be adapted can identify the picture based on the data template, and standardizes the data obtained by identifying the picture. The method can be used for the docking service provider without modifying the system code of the application to be adapted, thereby reducing the workload of developers, reducing the coupling of the application to be adapted and being beneficial to the expansion of the application to be adapted.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for processing an application docking service to be adapted according to an embodiment of the present invention. The execution subject of the method for processing the application docking facilitator to be adapted in this embodiment is a device for processing the application docking facilitator to be adapted, and the device includes, but is not limited to, a server and a terminal. The method for processing the application docking service to be adapted as shown in fig. 1 may include:
s101: acquiring interface parameters of an application to be adapted, which are sent by a terminal; the interface parameters comprise target service provider identification information of a target service provider to which the application to be adapted is to be docked.
And the server acquires the interface parameters of the application to be adapted, which are sent by the terminal. Specifically, when a user wants to interface a service provider for an application to be adapted, a docking instruction may be triggered by the terminal, where the docking instruction is used to instruct the terminal to obtain interface parameters of the application to be adapted, and send the interface parameters to the server. The server receives interface parameters of the application to be adapted sent by the terminal, wherein the interface parameters include target service provider identification information of a target service provider to which the application to be adapted is to be docked, that is, the interface parameters include target service provider identification information of the target service provider to which the application to be adapted is to be docked. The target service provider identification information is used to uniquely identify the target service provider.
Further, the interface parameters further include source information of the application to be adapted. The interface parameters may also include source information of the application to be adapted, which may indicate where the application to be adapted comes from.
Further, when sending the interface parameter of the application to be adapted, the terminal may carry the terminal identification information corresponding to the terminal. For example, the application to be adapted may be an OCR application to be adapted, an OCR recognition interface adapter is arranged in the server, and the OCR recognition interface adapter receives an interface parameter of the OCR application to be adapted, which carries the terminal identification information and is sent by the terminal.
S102: and when the source compliance of the application to be adapted is detected, acquiring the service data of the target service provider based on the identification information of the target service provider.
The server receives the interface parameters of the application to be adapted sent by the terminal, detects the source of the application to be adapted, and acquires the service data of the target service provider based on the identification information of the target service provider when the source of the application to be adapted is detected to be compliant. In order to improve the security of the application to be adapted to the service provider, the server may detect whether the source of the application to be adapted is compliant according to the source information of the application to be adapted included in the interface parameter, and when the source of the application to be adapted is detected to be compliant, obtain the service data of the target service provider based on the identification information of the target service provider.
Specifically, the server may store a plurality of service identification information and service data of a service provider corresponding to each service identification information in advance; the server can search the target service trademark identification information in the plurality of service trademark identification information, and obtain the service data corresponding to the target service provider identified by the target service trademark identification information after the target service trademark identification information is searched. The server may also pre-store a plurality of service logo information and an adaptation interface corresponding to each service logo information, and acquire a target adaptation interface corresponding to target service logo information; and calling a target adaptation interface corresponding to the target service trademark identification information through the target adaptation interface.
Further, in order to accurately and quickly acquire the service data of the target service provider, S102 may include S1021-S1022, specifically as follows:
s1021: and acquiring a target adaptation interface corresponding to the target service trademark identification information based on a preset corresponding relation between the service trademark identification information and the adaptation interface.
The server is stored with a plurality of service mark identification information and an adaptive interface corresponding to each service mark identification information in advance; the user may preset a correspondence between each service identification information and the adaptation interface. The adaptation interface corresponding to each service mark identification information can be used for calling service data corresponding to the service provider identified by the service mark identification information. And the server searches a target adaptation interface corresponding to the target service trademark identification information based on the target service trademark identification information in the interface parameters and a preset corresponding relation between the service trademark identification information and the adaptation interface.
Further, in order to enable the application to be adapted to successfully interface with the service provider, that is, the application to be adapted to interface with the service provider can accurately identify data in the picture to be scanned, after S1021, it can be further determined whether the picture format that can be identified by the application to be adapted meets the preset requirement, and if so, S1022 is executed, and the specific execution process is as follows: acquiring a picture format which can be identified by the application to be adapted; and verifying whether the picture format meets the preset requirement or not based on the preset picture format.
The server obtains a picture format which can be identified by the application to be adapted. The picture format which can be identified by the application to be adapted refers to the format of the picture which can be identified by the application to be adapted; the server sends a picture format obtaining request to a terminal where the application to be adapted is located, when the terminal receives the obtaining request, the terminal obtains a picture format which can be identified by the current application to be adapted, the picture format is sent to the server, and the server receives the picture format which can be identified by the application to be adapted and sent by the terminal.
The server is pre-stored with a preset picture format, and whether the picture format of the application to be adapted meets the preset requirement can be verified through the preset picture format. Specifically, whether a preset picture format matched with the picture format recognizable by the application to be adapted exists or not is searched in the preset picture formats, and when the preset picture format matched with the picture format recognizable by the application to be adapted is searched in the preset picture formats, the picture format recognizable by the application to be adapted is judged to meet the preset requirement; and when the preset picture format matched with the picture format recognizable by the application to be adapted is not found in the preset picture formats, judging that the picture format recognizable by the application to be adapted does not meet the preset requirement.
And when the picture format meets the preset requirement, executing the calling of the service data corresponding to the target service provider through the target adaptation interface.
And when the preset picture format matched with the picture format recognizable by the application to be adapted is found in the preset picture formats, judging that the picture format recognizable by the application to be adapted meets the preset requirement. When the picture format recognizable by the application to be adapted meets the preset requirement, S1022 is executed, that is, the server calls the service data corresponding to the target service provider identified by the target service provider identification information through the target adaptation interface.
Further, when the picture format recognizable by the application to be adapted does not meet the preset requirement, in order to facilitate the user to take corresponding measures in time, after verifying whether the picture format meets the preset requirement based on the preset picture format, the method may further include: when the picture format does not meet the preset requirement, generating prompt information; sending the prompt information to the terminal based on the terminal identification information of the terminal; the prompt information is used for prompting the user that the picture format which can be recognized by the application to be adapted does not meet the preset requirement.
Specifically, when the preset picture format matched with the picture format recognizable by the application to be adapted is not found in the preset picture formats, it is determined that the picture format recognizable by the application to be adapted does not meet the preset requirement. When the picture format which can be identified by the application to be adapted does not meet the preset requirement, the server generates prompt information; the content of the prompt message is preset and adjusted by the user, which is not limited.
The terminal can carry terminal identification information of the terminal when sending the interface parameters of the application to be adapted to the server, and the server sends the prompt information to the terminal based on the terminal identification information of the terminal. After receiving the prompt information, the terminal displays the prompt information on a terminal display interface; the prompt message is used for prompting the user that the picture format recognizable by the application to be adapted does not meet the preset requirement, and when the user sees the prompt message, the user can take corresponding measures.
S1022: and calling the service data corresponding to the target service provider through the target adaptation interface.
And the server calls the service data corresponding to the target service provider through the target adaptation interface.
Specifically, after the server finds the target adaptation interface corresponding to the target service trademark identification information, the server may invoke the service data corresponding to the target service supplier identified by the target service trademark identification information through the target adaptation interface.
S103: and generating a data template corresponding to the application to be adapted based on the preset template format corresponding to the application to be adapted and the service data.
The server acquires a preset template format corresponding to the application to be adapted, and generates a data template corresponding to the application to be adapted according to the preset template format and the service data corresponding to the target service provider. Specifically, the preset template format may include a target data format corresponding to the application to be adapted, the server obtains a data format corresponding to the service data, converts the data format of the service data into the target data format, and generates the data template based on the service data converted into the target data format.
Further, when different applications to be adapted are docked with the same service provider, the preset target formats corresponding to the applications to be adapted may be the same, and the data templates generated according to the preset target formats and the service data of the service provider are also unified; the specific implementation is subject to no limitation.
Furthermore, the preset template format may further include multiple data types corresponding to the application to be adapted and different data formats corresponding to each data type, the server obtains data corresponding to each data type required by the application to be adapted from the service data, converts the data format of the data corresponding to each data type into the data format required by the application to be adapted, and generates a data template based on all the service data after the data format conversion, that is, generates the data template corresponding to the application to be adapted.
Further, the preset template format includes a target data format corresponding to the application to be adapted. The preset template format is preset by a user according to different applications to be adapted, and the preset target format may include a target data format corresponding to the applications to be adapted, which may be understood as a data format required by the applications to be adapted.
Further, when the preset template format includes a target data format corresponding to the application to be adapted, in order to facilitate accurate and fast image recognition by the application to be adapted, data obtained by image recognition is specified, and S103 may include S1031-S1032, which is specifically as follows:
s1031: and acquiring a data format corresponding to the service data.
The server acquires a data format corresponding to the service data of the target service provider. Specifically, the server may analyze the service data of the target service provider to obtain a data format corresponding to the service data; the server may pre-store data formats corresponding to the service data of different service providers, and the server searches the target service provider according to the target service provider identification information, and further searches the data format corresponding to the service data of the target service provider.
S1032: and converting the data format of the service data into the target data format, and generating the data template based on the service data converted into the target data format.
The server converts the data format of the service data into a target data format, and generates a data template based on the service data converted into the target data format. Specifically, the server converts the data format of the acquired service data, converts the data format of the service data into a target data format, stores the service data converted into the target data format, and records the service data converted into the target data format as a data template. For example, the data format of the service data of the target service provider is a, the target data format corresponding to the application to be adapted is a, the server converts the data format a of the service data of the target service provider into the target data format a, and records the service data converted into the target data format a as the data template corresponding to the application to be adapted.
S104: sending the data template to the terminal sending the interface parameters; the data template is used for the application to be adapted to identify the picture based on the data template and standardize data obtained by identifying the picture.
The server sends the data template to the terminal sending the interface parameters, namely, the server returns the data template to the terminal sending the interface parameters. The data template is used for the application to be adapted to identify the picture based on the data template and standardize data obtained by identifying the picture. For example, the target service provider is an identity card service provider, the server generates a data template corresponding to the application to be adapted based on a preset template format corresponding to the application to be adapted and service data of the identity card service provider, and sends the data template to a terminal where the application to be adapted is located; when the application to be adapted acquires the data template, the application to be adapted is equivalent to the successful connection of an identity card service provider; at this time, the application to be adapted scans the user identification card picture to identify the identification card information of the user, the data obtained by identifying the identification card picture is standard data, and the format of the data obtained by identifying the identification card picture is also the data format which can be identified by the application to be adapted. The facilitator may also be a ticket facilitator, a voucher facilitator, etc., which is only exemplary and not limiting.
According to the embodiment of the application, the interface parameters of the application to be adapted, which are sent by the terminal, are obtained; when the source compliance of the application to be adapted is detected, acquiring service data of a target service provider based on the identification information of the target service provider; generating a data template corresponding to the application to be adapted based on a preset template format corresponding to the application to be adapted and the service data; and sending the data template to a terminal for sending the interface parameters. In the above manner, the server acquires the service data of the target service provider corresponding to the application to be adapted, and generates a data template for the application to be adapted based on the preset template format and the service data corresponding to the application to be adapted, so that the application to be adapted can identify the picture based on the data template, and standardizes the data obtained by identifying the picture. The method can be used for the docking service provider without modifying the system code of the application to be adapted, thereby reducing the workload of developers, reducing the coupling of the application to be adapted and being beneficial to the expansion of the application to be adapted.
Referring to fig. 2, fig. 2 is a schematic flowchart of a method for processing an application docking service to be adapted according to another embodiment of the present invention. The execution subject of the method for processing the application docking facilitator to be adapted in this embodiment is a device for processing the application docking facilitator to be adapted, and the device includes, but is not limited to, a server and a terminal.
The difference between this embodiment and the previous embodiment is S202-S204, S208, wherein the interface parameters further include source information of the application to be adapted. In this embodiment, S201 and S205-S207 are identical to S101 and S102-S104 in the previous embodiment, and please refer to the description related to S101 and S102-S104 in the previous embodiment, which is not repeated herein. S202-S204, S208 are specifically as follows:
s202: and detecting whether the source of the application to be adapted is in compliance or not based on the source information and preset application source information.
And the server detects whether the source of the application to be adapted is in compliance or not based on the source information and the preset application source information. Specifically, the server stores a plurality of pieces of application source information in advance, and the pieces of application source information are all proper source information, which means that as long as the source information of the application to be adapted matches with the preset pieces of application source information, the source of the application to be adapted conforms to the standard. The server extracts the source information of the application to be adapted from the interface parameters, and detects whether the source of the application to be adapted is compliant or not based on the prestored application source information.
In this embodiment, when the interface parameter further includes source information of the application to be adapted, whether the source of the application to be adapted is compliant can be accurately detected through the source information in the interface parameter and preset application source information, so that the security of the application to be adapted to the service provider is improved.
When detecting that the source of the application to be adapted is compliant based on the source information and the preset application source information, S203 is executed, where S203 specifically includes:
s203: and when the application source information matched with the source information is acquired, judging the source compliance of the application to be adapted.
And when the server finds the application source information matched with the source information of the application to be adapted, judging the source compliance of the application to be adapted. Specifically, the server traverses all preset application source information, searches for application source information matched with the source information of the application to be adapted in the preset application source information, and determines the source compliance of the application to be adapted when the server searches for the application source information matched with the source information of the application to be adapted.
When it is detected that the source of the application to be adapted is not compliant based on the source information and the preset application source information, S204 is executed, where S204 is specifically as follows:
s204: and when the application source information matched with the source information is not acquired, judging that the source of the application to be adapted is not in compliance.
And when the server does not find the application source information matched with the source information of the application to be adapted, judging that the source of the application to be adapted is not in compliance. Specifically, the server traverses all preset application source information, searches for application source information matched with the source information of the application to be adapted in the preset application source information, and determines that the source of the application to be adapted is not compliant when the server does not find the application source information matched with the source information of the application to be adapted. When the source of the application to be adapted is not compliant, the server can generate prompt information and send the prompt information to the terminal where the application to be adapted is located, and the prompt information can be used for prompting a user that the source of the current application to be adapted is not compliant.
After S203 is executed, S205-S207 are executed, please refer to the descriptions of S102-S104 in the previous embodiment, which will not be described herein again.
Further, in order to facilitate the user to query and count the specific information of the application to be adapted to the docking service provider, S208 may be further included after S207, specifically as follows:
s208: and acquiring and storing a log generated by the service data corresponding to the target service provider called by the target adaptation interface.
And the server acquires and stores a log generated by calling the service data corresponding to the target service provider by the target adaptation interface. Specifically, the target adaptation interface generates a corresponding log file each time the service data corresponding to the target service provider is called, when the application to be adapted is docked with different service providers, different log files are generated correspondingly when different adaptation interfaces call the service data corresponding to the service providers, and the server acquires and stores the log files. The user can know the relevant information of the application docking service provider to be adapted by looking up the contents of the log files; such as docking time, docking object, number of docks, acquired data, etc.
According to the embodiment of the application, the interface parameters of the application to be adapted, which are sent by the terminal, are obtained; when the source compliance of the application to be adapted is detected, acquiring service data of a target service provider based on the identification information of the target service provider; generating a data template corresponding to the application to be adapted based on a preset template format corresponding to the application to be adapted and the service data; and sending the data template to a terminal for sending the interface parameters. In the above manner, the server acquires the service data of the target service provider corresponding to the application to be adapted, and generates a data template for the application to be adapted based on the preset template format and the service data corresponding to the application to be adapted, so that the application to be adapted can identify the picture based on the data template, and standardizes the data obtained by identifying the picture. The method can be used for the docking service provider without modifying the system code of the application to be adapted, thereby reducing the workload of developers, reducing the coupling of the application to be adapted and being beneficial to the expansion of the application to be adapted.
Referring to fig. 3, fig. 3 is a schematic diagram of an apparatus for processing an application docking service to be adapted according to an embodiment of the present application. The terminal includes units for executing the steps in the embodiments corresponding to fig. 1 and fig. 2. Please refer to fig. 1 and fig. 2 for the corresponding embodiments. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 3, comprising:
a first obtaining unit 310, configured to obtain an interface parameter of an application to be adapted, where the interface parameter is sent by a terminal; the interface parameters comprise target service provider identification information of a target service provider to which the application to be adapted is to be docked;
a second obtaining unit 320, configured to, when detecting that the source of the application to be adapted is compliant, obtain service data of the target service provider based on the target service provider identification information;
a generating unit 330, configured to generate a data template corresponding to the application to be adapted based on a preset template format corresponding to the application to be adapted and the service data;
a sending unit 340, configured to send the data template to the terminal that sends the interface parameter; the data template is used for the application to be adapted to identify the picture based on the data template and standardize data obtained by identifying the picture.
The interface parameters also include source information of the application to be adapted.
Further, the apparatus further comprises:
the detection unit is used for detecting whether the source of the application to be adapted is in compliance or not based on the source information and preset application source information;
the first judging unit is used for judging the source compliance of the application to be adapted when the application source information matched with the source information is acquired;
and the second judging unit is used for judging that the source of the application to be adapted is not in compliance when the application source information matched with the source information is not acquired.
Further, the second obtaining unit 320 is specifically configured to:
acquiring a target adaptation interface corresponding to the target service trademark identification information based on a preset corresponding relation between the service trademark identification information and the adaptation interface;
and calling the service data corresponding to the target service provider through the target adaptation interface.
Further, the apparatus further comprises:
the third acquisition unit is used for acquiring the picture format which can be identified by the application to be adapted;
the verification unit is used for verifying whether the picture format meets the preset requirement or not based on the preset picture format;
when the picture format meets a preset requirement, the second obtaining unit 320 is specifically configured to execute the calling of the service data corresponding to the target service provider through the target adaptation interface.
Further, the apparatus further comprises:
the information generating unit is used for generating prompt information when the picture format does not meet the preset requirement;
an information sending unit, configured to send the prompt information to the terminal based on terminal identification information of the terminal; the prompt information is used for prompting the user that the picture format which can be recognized by the application to be adapted does not meet the preset requirement.
Further, the generating unit 330 is specifically configured to:
acquiring a data format corresponding to the service data;
and converting the data format of the service data into the target data format, and generating the data template based on the service data converted into the target data format.
Further, the apparatus further comprises:
and the storage unit is used for acquiring and storing a log generated by the target adapter interface calling the service data corresponding to the target service provider.
Referring to fig. 4, fig. 4 is a schematic diagram of an apparatus for processing an application docking facilitator to be adapted according to another embodiment of the present application. As shown in fig. 4, the apparatus 4 of this embodiment includes: a processor 40, a memory 41, and computer readable instructions 42 stored in the memory 41 and executable on the processor 40. The processor 40, when executing the computer readable instructions 42, implements the steps in the above-described method embodiments in which the respective device processes the application docking facilitator to be adapted, for example, S101 to S104 shown in fig. 1. Alternatively, the processor 40, when executing the computer readable instructions 42, implements the functions of the units in the embodiments described above, such as the functions of the units 310 to 340 shown in fig. 3.
Illustratively, the computer readable instructions 42 may be divided into one or more units, which are stored in the memory 41 and executed by the processor 40 to accomplish the present application. The one or more elements may be a series of computer readable instruction segments capable of performing certain functions, which are used to describe the execution of the computer readable instructions 42 in the terminal 4. For example, the computer readable instructions 42 may be a first acquiring unit, a second acquiring unit, a generating unit and a sending unit, and the specific functions of the units are as described above.
The apparatus may include, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is merely an example of a device 4 and does not constitute a limitation of device 4 and may include more or fewer components than shown, or some components in combination, or different components, e.g., the device may also include input output devices, network access devices, buses, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the device 4, such as a hard disk or a memory of the device 4. The memory 41 may also be an external storage device of the device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the device 4. The memory 41 is used to store the computer readable instructions and other programs and data required by the device. The memory 41 may also be used to temporarily store data that has been output or is to be output.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not cause the essential features of the corresponding technical solutions to depart from the spirit scope of the technical solutions of the embodiments of the present application, and are intended to be included within the scope of the present application.