CN111258938A - Method and equipment for processing application docking service provider to be adapted - Google Patents

Method and equipment for processing application docking service provider to be adapted Download PDF

Info

Publication number
CN111258938A
CN111258938A CN201911081470.4A CN201911081470A CN111258938A CN 111258938 A CN111258938 A CN 111258938A CN 201911081470 A CN201911081470 A CN 201911081470A CN 111258938 A CN111258938 A CN 111258938A
Authority
CN
China
Prior art keywords
application
data
target
service provider
format
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.)
Granted
Application number
CN201911081470.4A
Other languages
Chinese (zh)
Other versions
CN111258938B (en
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.)
Shenzhen Vispractice Technology Co ltd
Original Assignee
Shenzhen Vispractice 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 Shenzhen Vispractice Technology Co ltd filed Critical Shenzhen Vispractice Technology Co ltd
Priority to CN201911081470.4A priority Critical patent/CN111258938B/en
Publication of CN111258938A publication Critical patent/CN111258938A/en
Application granted granted Critical
Publication of CN111258938B publication Critical patent/CN111258938B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/387Information transfer, e.g. on bus using universal interface adapter for adaptation of different data processing systems to different peripheral devices, e.g. protocol converters for incompatible systems, open system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions
    • G06V30/153Segmentation of character regions using recognition of characters or words
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Abstract

The application is applicable to the technical field of computers, and provides a method and equipment for processing an application docking service provider to be adapted, wherein the method comprises the steps of acquiring interface parameters of the application to be adapted, which are sent by a terminal; 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, generates a data template for the application to be adapted, enables the application to be adapted to identify the picture based on the data template, and standardizes the data obtained by identifying the picture. The method and the system realize the butt joint of the service providers without modifying the system codes of the applications to be adapted, reduce the workload of developers, reduce the coupling of the applications to be adapted and facilitate the expansion of the applications to be adapted.

Description

Method and equipment for processing application docking service provider to be adapted
Technical Field
The application belongs to the technical field of computers, and particularly relates to a method and equipment for processing an application docking service provider to be adapted.
Background
Optical Character Recognition (OCR) generates a text output primarily by recognizing Optical characters displayed on a carrier. For example, after the OCR application to be adapted is docked with the service provider, the data in the picture can be scanned and recognized by the OCR application to be adapted.
However, when the conventional OCR application to be adapted is applied to the docking service provider, the system code of the OCR application to be adapted must be modified, which increases the workload of developers, increases the coupling of the OCR application to be adapted, and is not beneficial to the expansion of the OCR application to be adapted.
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.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of an implementation of a method for processing an application docking service provider to be adapted according to an embodiment of the present application;
FIG. 2 is a flowchart of an implementation of a method for processing an application docking service to be adapted according to another embodiment of the present application;
FIG. 3 is a diagram illustrating an apparatus for processing an application docking facilitator to be adapted according to an embodiment of the present application;
fig. 4 is a schematic diagram of a device for processing an application docking facilitator to be adapted according to another embodiment of the present application.
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.

Claims (10)

1. A method for handling an application docking service to be adapted, comprising:
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.
2. The method of claim 1, wherein the interface parameters further include source information of the application to be adapted; before the obtaining of the service data of the target service provider based on the target service provider identification information when the source compliance of the application to be adapted is detected, the method further includes:
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; alternatively, the first and second electrodes may be,
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.
3. The method of claim 1, wherein the obtaining service data of the target facilitator based on the target facilitator identification information upon detecting source compliance of the application to be adapted comprises:
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.
4. The method of claim 3, wherein after obtaining the target adapter interface corresponding to the target service provider identification information based on the preset correspondence between the service provider identification information and the adapter interface and before invoking the service data corresponding to the target service provider through the target adapter interface, the method further comprises:
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.
5. The method of claim 4, wherein after verifying whether the picture format meets a preset requirement based on a preset picture format, the method further comprises:
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.
6. The method of claim 1, wherein the preset template format comprises a target data format corresponding to the application to be adapted, and wherein the generating the 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 comprises:
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.
7. The method of claim 3, wherein after sending the data template to the terminal that sent the interface parameters, further comprising;
and acquiring and storing a log generated by the service data corresponding to the target service provider called by the target adaptation interface.
8. An apparatus for processing an application docking facilitator to be adapted, comprising:
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.
9. Device for handling an application docking facilitator to be adapted, comprising a memory, a processor and a computer program stored in said memory and executable on said processor, characterized in that said processor implements the method according to any of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN201911081470.4A 2019-11-07 2019-11-07 Method and equipment for processing application docking service provider to be adapted Active CN111258938B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911081470.4A CN111258938B (en) 2019-11-07 2019-11-07 Method and equipment for processing application docking service provider to be adapted

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911081470.4A CN111258938B (en) 2019-11-07 2019-11-07 Method and equipment for processing application docking service provider to be adapted

Publications (2)

Publication Number Publication Date
CN111258938A true CN111258938A (en) 2020-06-09
CN111258938B CN111258938B (en) 2021-12-17

Family

ID=70948439

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911081470.4A Active CN111258938B (en) 2019-11-07 2019-11-07 Method and equipment for processing application docking service provider to be adapted

Country Status (1)

Country Link
CN (1) CN111258938B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020035576A1 (en) * 2000-09-07 2002-03-21 Sony Corporation Information presenting apparatus, information presenting method and information presenting program recording medium
US20070237427A1 (en) * 2006-04-10 2007-10-11 Patel Nilesh V Method and system for simplified recordkeeping including transcription and voting based verification
CN101408899A (en) * 2008-11-21 2009-04-15 北京中企开源信息技术有限公司 Method and apparatus for switching website multiple data sources
CN107633201A (en) * 2017-08-07 2018-01-26 湖南诚壹文化产业有限公司 A kind of answering card intelligent identification Method and system
CN109858504A (en) * 2017-11-30 2019-06-07 阿里巴巴集团控股有限公司 A kind of image-recognizing method, device, system and calculate equipment
CN110401706A (en) * 2019-07-19 2019-11-01 北京大米科技有限公司 Service request processing method, device, storage medium and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020035576A1 (en) * 2000-09-07 2002-03-21 Sony Corporation Information presenting apparatus, information presenting method and information presenting program recording medium
US20070237427A1 (en) * 2006-04-10 2007-10-11 Patel Nilesh V Method and system for simplified recordkeeping including transcription and voting based verification
CN101408899A (en) * 2008-11-21 2009-04-15 北京中企开源信息技术有限公司 Method and apparatus for switching website multiple data sources
CN107633201A (en) * 2017-08-07 2018-01-26 湖南诚壹文化产业有限公司 A kind of answering card intelligent identification Method and system
CN109858504A (en) * 2017-11-30 2019-06-07 阿里巴巴集团控股有限公司 A kind of image-recognizing method, device, system and calculate equipment
CN110401706A (en) * 2019-07-19 2019-11-01 北京大米科技有限公司 Service request processing method, device, storage medium and terminal

Also Published As

Publication number Publication date
CN111258938B (en) 2021-12-17

Similar Documents

Publication Publication Date Title
CN107766190B (en) Interface testing method and device, computer equipment and storage medium
CN107665233B (en) Database data processing method and device, computer equipment and storage medium
CN107844421B (en) Interface testing method and device, computer equipment and storage medium
CN110347587B (en) APP compatibility testing method and device, computer equipment and storage medium
KR20120078018A (en) System and method for detecting malwares in a file based on genetic map of the file
CN113240258A (en) Industrial asset detection method, equipment and device
CN109254868B (en) File detection method and device
CN103034808A (en) Scanning method, equipment and system and cloud management method and equipment
US11550920B2 (en) Determination apparatus, determination method, and determination program
US11386499B2 (en) Car damage picture angle correction method, electronic device, and readable storage medium
CN110267215B (en) Data detection method, equipment and storage medium
CN108037989B (en) SDK component identification method and device
CN111258938B (en) Method and equipment for processing application docking service provider to be adapted
CN111061637A (en) Interface test method, interface test device and storage medium
CN106657316B (en) Message withdrawing method and device
US8218187B2 (en) Method and apparatus for automatic language switching for an imaging device
CN106055693B (en) Information processing method and terminal
EP3680842A1 (en) Automated extraction of performance segments and metadata values associated with the performance segments from contract documents
CN108875748B (en) Method, device and computer readable medium for generating wireless access point information
CN108171014B (en) Method and system for detecting RTF suspicious file and storage medium
CN109039813B (en) Method, system and equipment for detecting internet access
US20150264204A1 (en) Document management system, document managing method, and recording medium storing a document managing program
CN110580243A (en) file comparison method and device, electronic equipment and storage medium
CN113703759B (en) Code generation method, device, medium and equipment
CN117454038A (en) Page detection method and device

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
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A method and equipment for handling the application docking service providers to be adapted

Effective date of registration: 20221201

Granted publication date: 20211217

Pledgee: Shenzhen SME financing Company limited by guarantee

Pledgor: SHENZHEN VISPRACTICE TECHNOLOGY CO.,LTD.

Registration number: Y2022440020290

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Granted publication date: 20211217

Pledgee: Shenzhen SME financing Company limited by guarantee

Pledgor: SHENZHEN VISPRACTICE TECHNOLOGY CO.,LTD.

Registration number: Y2022440020290

PC01 Cancellation of the registration of the contract for pledge of patent right