CN114666399A - Service request verification method, device, equipment and storage medium - Google Patents

Service request verification method, device, equipment and storage medium Download PDF

Info

Publication number
CN114666399A
CN114666399A CN202210228823.4A CN202210228823A CN114666399A CN 114666399 A CN114666399 A CN 114666399A CN 202210228823 A CN202210228823 A CN 202210228823A CN 114666399 A CN114666399 A CN 114666399A
Authority
CN
China
Prior art keywords
data check
data
service
service request
verifying
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210228823.4A
Other languages
Chinese (zh)
Inventor
徐天赐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202210228823.4A priority Critical patent/CN114666399A/en
Publication of CN114666399A publication Critical patent/CN114666399A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • G06Q30/0637Approvals

Abstract

The application provides a method, a device, equipment and a storage medium for verifying a service request, and relates to the technical field of data verification. The method comprises the following steps: the method comprises the steps of receiving a service request from a client, wherein the service request is used for requesting to execute a target service, verifying a plurality of data check items associated with the service request to obtain a data check result, and returning a service response to the client, wherein the service response comprises the data check result, and the data check result is used for indicating whether the target service is executed successfully or not. Wherein the checking sequence of the plurality of data checking items comprises at least one of sequential checking and parallel checking. Based on the verification scheme, the efficiency of verifying the service request data can be improved.

Description

Service request verification method, device, equipment and storage medium
Technical Field
The present application relates to the field of data verification technologies, and in particular, to a method, an apparatus, a device, and a storage medium for verifying a service request.
Background
The data checking method is a data processing method commonly used by the current data platform and is used for checking whether each service data of the data platform is abnormal or not. Taking the e-commerce platform as an example, a user performs a payment operation, and payment service data related to the payment operation, such as payment amount, may be tampered in a transmission process, resulting in abnormal service data, so that the platform needs to perform data verification on the payment service data related to the payment operation, and ensure that the service is normally executed. When there is more service data related to a certain service operation, all service data need to be checked, resulting in lower data checking efficiency.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a storage medium for verifying a service request, and improves the data verification efficiency of the service request.
A first aspect of an embodiment of the present application provides a method for verifying a service request, including:
receiving a service request from a client, wherein the service request is used for requesting to execute a target service;
verifying a plurality of data verification items associated with the service request to obtain a data verification result, wherein the data verification result is used for indicating whether the target service is successfully executed; the checking sequence of the plurality of data checking items comprises at least one of sequential checking and parallel checking;
and returning a service response to the client, wherein the service response comprises the data verification result.
In an optional embodiment of the first aspect of the present application, the service request includes a service identifier; the verifying the plurality of data check items associated with the service request comprises:
acquiring a plurality of data check interfaces corresponding to the service identifier according to the service identifier in the service request, wherein each data check interface corresponds to one data check item;
and verifying the plurality of data check items by calling the plurality of data check interfaces.
In an optional embodiment of the first aspect of the present application, the verifying the plurality of data check items by invoking the plurality of data check interfaces includes:
calling the plurality of data check interfaces through a pre-configured interface calling sequence to verify the plurality of data check items; the interface calling sequence comprises at least one of sequential calling and parallel calling.
In an optional embodiment of the first aspect of the present application, the plurality of data check items include a first data check item and a second data check item which are checked sequentially; the verifying a plurality of data check items associated with the service request to obtain a data check result includes:
verifying the first data check item, and if the first data check item is normal, generating a data check result by verifying the second data check item; or
And verifying the first data check item, and if the first data check item is abnormal, directly generating a first data check result, wherein the first data check result is used for indicating the first data check item which fails to execute the target service and has abnormality.
In an optional embodiment of the first aspect of the present application, the generating the data verification result by verifying the second data verification item includes:
if the second data check item is normal, obtaining a second data check result, wherein the second data check result is used for indicating that the target service is successfully executed; or
And if the second data check item is abnormal, obtaining a third data check result, wherein the third data check result is used for indicating that the target service fails to be executed and the abnormal second data check item exists.
In an optional embodiment of the first aspect of the present application, the plurality of data check items include a third data check item and a fourth data check item which are checked in parallel; the verifying a plurality of data check items associated with the service request to obtain a data check result includes:
verifying the third data check item and the fourth data check item in parallel;
if the third data check item and the fourth data check item are both normal, generating a fourth data check result, wherein the fourth data check result is used for indicating that the target service is successfully executed; or
If any one of the third data check item and the fourth data check item is abnormal, a fifth data check result is generated, and the fifth data check result is used for indicating the data check item which fails to execute the target service and has the abnormality.
A second aspect of the embodiments of the present application provides a device for verifying a service request, including:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a service request from a client, and the service request is used for requesting to execute a target service;
the processing module is used for verifying a plurality of data verification items associated with the service request to obtain a data verification result, and the data verification result is used for indicating whether the target service is successfully executed; the checking sequence of the plurality of data checking items comprises at least one of sequential checking and parallel checking;
and the sending module is used for returning a service response to the client, wherein the service response comprises the data verification result.
In an optional embodiment of the second aspect of the present application, the service request includes a service identifier; the processing module is configured to:
acquiring a plurality of data check interfaces corresponding to the service identifier according to the service identifier in the service request, wherein each data check interface corresponds to one data check item;
and verifying the plurality of data check items by calling the plurality of data check interfaces.
In an optional embodiment of the second aspect of the present application, the processing module is configured to:
calling the plurality of data check interfaces through a pre-configured interface calling sequence to verify the plurality of data check items; the interface calling sequence comprises at least one of sequential calling and parallel calling.
In an optional embodiment of the second aspect of the present application, the plurality of data check items include a first data check item and a second data check item which are checked sequentially; the processing module is configured to:
verifying the first data check item, and if the first data check item is normal, generating a data check result by verifying the second data check item; or
And verifying the first data check item, and if the first data check item is abnormal, directly generating a first data check result, wherein the first data check result is used for indicating the first data check item which fails to execute the target service and has abnormality.
In an optional embodiment of the second aspect of the present application, the processing module is configured to:
if the second data check item is normal, obtaining a second data check result, wherein the second data check result is used for indicating that the target service is successfully executed; or
And if the second data check item is abnormal, obtaining a third data check result, wherein the third data check result is used for indicating that the target service fails to be executed and the abnormal second data check item exists.
In an optional embodiment of the second aspect of the present application, the plurality of data check items include a third data check item and a fourth data check item which are checked in parallel;
the processing module is configured to:
verifying the third data check item and the fourth data check item in parallel;
if the third data check item and the fourth data check item are both normal, generating a fourth data check result, wherein the fourth data check result is used for indicating that the target service is successfully executed; or alternatively
If any one of the third data check item and the fourth data check item is abnormal, a fifth data check result is generated, and the fifth data check result is used for indicating the target service execution failure and the abnormal data check item.
A third aspect of embodiments of the present application provides an electronic device, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any of the first aspects.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium having stored thereon a computer program for execution by a processor to perform the method according to any one of the first aspect.
A fifth aspect of embodiments of the present application provides a computer program product comprising a computer program that, when executed by a processor, implements the method of any one of the first aspects.
The embodiment of the application provides a method, a device, equipment and a storage medium for verifying a service request, and relates to the technical field of data verification. The method comprises the following steps: the method comprises the steps of receiving a service request from a client, wherein the service request is used for requesting to execute a target service, verifying a plurality of data check items associated with the service request to obtain a data check result, and returning a service response to the client, wherein the service response comprises the data check result, and the data check result is used for indicating whether the target service is executed successfully or not. Wherein the checking sequence of the plurality of data checking items comprises at least one of sequential checking and parallel checking. Based on the verification scheme, the efficiency of verifying the service request data can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic view of a scenario of a service request verification method according to an embodiment of the present application;
fig. 2 is a schematic configuration diagram of a data verification function provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of a method for verifying a service request according to an embodiment of the present application;
fig. 4 is a schematic diagram of data verification of an ordering service according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a verification apparatus for a service request provided in an application embodiment;
fig. 6 is a hardware structure diagram of an electronic device according to an embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and in the claims, and in the drawings, of the embodiments of the application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in other sequences than described or illustrated herein.
It will be understood that the terms "comprises" and "comprising," and any variations thereof, as used herein, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the description of the embodiments of the present application, the term "correspond" may indicate that there is a direct correspondence or an indirect correspondence between the two, may also indicate that there is an association between the two, and may also indicate and be indicated, configure and configured, and so on.
Before introducing the service request verification method provided by the present application, an application scenario of the verification method is briefly introduced first.
Fig. 1 is a scene schematic diagram of a service request verification method provided in an embodiment of the present application. As shown in fig. 1, the scenario includes a client 11 and a server 12, and the client 11 is in communication connection with the server 12. As an example, the client 11 initiates a service request to the server 12, and the server 12 performs service data verification on the service request and returns a data verification result to the client 11.
In this embodiment, the server 12 may be a server of various data platforms such as an e-commerce platform, a social platform, and a short video platform, and the client 11 may be a client of a user on various data platforms.
In a possible scenario, a user of the e-commerce platform initiates an order placing request at a client, the order placing request includes data to be verified related to an order placing service, such as a user identification ID, an order placing article ID, and the like, the e-commerce platform verifies the data to be verified related to the order placing request, and returns an order placing success or failure result to the user client.
In a possible scenario, a user of a social platform initiates a text-text uploading request at a client of the user, where the request includes user ID, text information, and picture information to-be-checked data, the social platform verifies the requested to-be-checked data, such as verifying the size and size of a picture, verifying whether the text contains sensitive words, and returns a result of success or failure of text-text uploading to the client of the user.
In a possible scenario, a video blogger of a short video platform initiates a video uploading request at a client of the video blogger, the request includes a video blogger ID, a video type, and specific content to-be-checked data of a video, the short video platform verifies the to-be-checked data of the request, for example, whether the video content is legal or not is verified, and a result of successful or failed video uploading is returned to the client of the video blogger.
It should be noted that the above application scenario is only used as an example, and other similar data verification scenarios all belong to the protection scope of the technical solution of the present application.
In view of the problem of low data verification efficiency in the current data verification scheme, an embodiment of the present application provides a method for verifying a service request, which is used for improving the data verification efficiency of the service request. In the process of solving the above problems, the inventor finds that a plurality of items of data to be verified associated with a service request, some items of data have an association therebetween, and some items of data have no association therebetween, and considers that a platform pre-configures a verification sequence of the plurality of items of data to be verified in the service request based on the above characteristics of the data to be verified, and performs the verification sequence on the associated data sequentially and performs the verification sequence on the data without the association concurrently, thereby improving the verification efficiency of the plurality of items of data to be verified, and thus realizing a quick response to the service request.
Before introducing the technical solution of the embodiment of the present application, a configuration process of a data checking function of each service request in a server is first described in detail.
Fig. 2 is a schematic configuration diagram of a data verification function provided in an embodiment of the present application. As shown in fig. 2, a developer configures a data verification pipeline corresponding to each service request based on the unified rule verification platform, and the data verification pipeline may be understood as a verification execution line for data to be verified in the service request.
For example, the data check pipeline 1 corresponding to the service request 1 in fig. 2 includes checking 5 data to be checked, where the 5 data to be checked are respectively marked as data a, b, c, d, and e, where data a and data b have a relationship therebetween, data d and data a and c both have a relationship therebetween, data e and data a and c both have a relationship therebetween, and data d and e do not have a relationship therebetween. Based on the data verification pipeline 1, the verification of the data b is performed first, then the verification of the data a is performed, then the verification of the data d and e is performed in parallel, and finally the verification of the data c is performed.
As an example, the checking of each item of data may be performed by calling a checking rule of each item of data in the data checking library.
In this embodiment, the unified rule checking platform includes a data checking base, where the data checking base includes a public checking rule of data to be checked, such as common data checking rules 1 to n in fig. 2, and a private checking rule of data to be checked, such as private data checking rules 1 to m in fig. 2. Wherein n and m are positive integers. The check rules are check codes, and each check rule provides an external interface.
It should be understood that the public data to be verified is data that needs to be verified in a plurality of service requests, and the private data to be verified is data that needs to be verified in a certain service request.
For example, taking the above 5 data to be checked as an example, the data b and c in the data checking pipeline 1 are common data to be checked, and the data a, d, and e are private data to be checked. And verifying each item of data by calling an interface of a verification rule of each item of data in the data verification library.
Based on the unified rule checking platform, when configuring a data checking rule of a new service request, a developer can directly obtain a common checking rule of data to be checked from a data checking library, only the private checking rule of the data to be checked needs to be configured for the new service request, and in addition, the checking sequence of each item of data to be checked in the new service request needs to be preconfigured, so that the rapid verification of the new service request is improved.
In some embodiments, the unified rule checking platform is a platform independent from the server shown in fig. 1, and after completing data check configuration of a certain service request in the unified rule checking platform, a developer may store an identifier of the service request, interfaces of the check rule of each item of data in the service request (i.e., data check interfaces corresponding to each item of data), and a pre-configured interface calling sequence in the server. When the service end receives the service request, the service end obtains the data verification interfaces and the execution sequence corresponding to each item of data in the service request according to the service request identification, sequentially calls the data verification interfaces of each item of data, and executes the service request data verification.
The technical solutions provided in the embodiments of the present application are described in detail below with specific embodiments.
It should be noted that the technical solutions provided in the embodiments of the present application may include part or all of the following contents, and these specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 3 is a flowchart illustrating a method for verifying a service request according to an embodiment of the present application. The service request verification method provided in this embodiment can be applied to the server shown in fig. 1, as shown in fig. 3, the method includes the following steps:
step 101, the client sends a service request to the server.
In this embodiment, the service request is used to request execution of a target service. The service request received by the server side at least comprises a service identification.
Illustratively, the order service of the e-commerce platform, the image-text publishing service of the social platform, the video publishing service of the short video platform, and the like.
Optionally, the service request further includes service data of the target service.
Illustratively, the service data of the ordering service includes an ordering user identifier, an ordering article identifier, an ordering amount, a shop identifier, and the like. The service data of the image-text publishing service comprises user identification, image data, text data and the like for publishing the image-text. The service data of the video distribution service of the short video platform comprises a user identification for publishing the video, a video type, video data and the like.
Step 102, the server side verifies a plurality of data verification items associated with the service request to obtain a data verification result, and the data verification result is used for indicating whether the target service is successfully executed.
And 103, the server side sends a service response to the client side, wherein the service response comprises a data verification result.
In this embodiment, the check sequence of the plurality of data check items includes at least one of sequential check and parallel check. The check order of the plurality of data check items is preconfigured, and the preconfigured process refers to the above embodiment.
Illustratively, the data check items associated with the order service request include: the method comprises the steps of ordering user identification, ordering article identification, ordering amount and shop identification, namely verifying user authenticity, ordering article authenticity, ordering amount authenticity and shop authenticity.
Illustratively, the data check item of the teletext service request includes: and issuing the user identification, the picture content and the text content of the pictures and texts, namely verifying the authenticity of the user and the legality of the issued picture and text content.
Illustratively, the data check item of the video distribution service request includes: and (4) issuing the user identification and the video content of the video, namely verifying the authenticity of the user and the legality of the issued video content.
In an optional embodiment of this embodiment, the server obtains a plurality of data check interfaces corresponding to the service identifier, and verifies the plurality of data check items by calling the plurality of data check interfaces. Each data check interface corresponds to one data check item.
As an example, the server side calls the multiple data check interfaces in sequence through the preconfigured interfaces, and verifies the multiple data check items. The interface calling sequence comprises at least one of sequential calling and parallel calling.
It should be understood that the preconfigured interface call order is consistent with the check order of the data check entries described above. As shown in fig. 2, the data check entry of the service request 1 includes: data a to e, the checking sequence of the data checking items is as follows: verifying data b, verifying data a, verifying data d and e in parallel, and verifying data c. Correspondingly, the interface calling sequence is as follows: and calling the verification interface of the data b, then calling the verification interface of the data a, then calling the verification interfaces of the data d and e in parallel, and finally calling the verification interface of the data c.
In order to facilitate understanding of the checking logic of the multiple data check items of the service request, the multiple data check items are simplified into two data check items, and a checking process is described based on the two data check items.
In one possible embodiment, the plurality of data check items includes: and sequentially checking the first data check item and the second data check item, namely checking the first data check item and then checking the second data check item.
In a possible case, the server side verifies the first data check item, and generates a first data check result if the first data check item is abnormal, wherein the first data check result is used for indicating that the target service fails to be executed and the abnormal first data check item exists. In this case, if the first data check item is abnormal, the second data check item is not verified.
In a possible case, the server side verifies the first data check item, and if the first data check item is normal, the server side verifies the second data check item to generate a data check result. In this case, if the first data check item is normal, the second data check item continues to be verified.
Specifically, if the second data check item is normal, a second data check result is obtained, and the second data check result is used for indicating that the target service is successfully executed. And if the second data check item is abnormal, obtaining a third data check result, wherein the third data check result is used for indicating that the target service execution fails and the abnormal second data check item exists.
In one possible embodiment, the plurality of data check items includes: and checking the third data check item and the fourth data check item in parallel, namely simultaneously performing verification on the third data check item and the fourth data check item.
Specifically, if the third data check item and the fourth data check item are both normal, a fourth data check result is generated, and the fourth data check result is used for indicating that the target service is successfully executed. And if any one of the third data check item and the fourth data check item is abnormal, generating a fifth data check result, wherein the fifth data check result is used for indicating that the target service fails to be executed and the abnormal data check item exists.
Based on the above embodiments, the data verification process is described below by a specific example.
Taking the service request as a ordering service of the E-commerce platform, and data check items related to the service: the method comprises the following steps of ordering article identification, ordering article amount, ordering user identification, ordering user receiving address, contact information and the like, namely ordering business needs to be checked: the method comprises the following steps of ordering, checking the authenticity of an order, the authenticity of an amount of an article, the authenticity of an ordering user, the authenticity of a receiving address of the ordering user, the authenticity of a contact way and the like.
Fig. 4 is a schematic diagram of data verification of an ordering service provided in the embodiment of the present application. Fig. 4 shows a data verification pipeline corresponding to the ordering service of the e-commerce platform, and as shown in fig. 4, the authenticity of the ordering user is verified firstly, the authenticity of the ordering item and the amount of the ordering item are sequentially verified, and finally, the authenticity of the order receiving address of the ordering user and the authenticity of the contact way are verified in parallel.
In this embodiment, if the order placing user is abnormal (if the user does not have the purchasing authority), it is not necessary to check other data after the data on the pipeline. If the order item is abnormal (if not in stock), there is no need to check other data following the data on the pipeline. The execution logic can improve the data verification efficiency of the ordering service request and reduce unnecessary data verification.
In this embodiment, since there is no necessary link between the shipping address and the contact address of the ordering user, the two data check items can be executed in parallel. The execution logic can also improve the data checking efficiency of the ordering service request.
In the verification method for the service request shown in this embodiment, a service request is received from a client, the service request is used to request execution of a target service, multiple data verification items associated with the service request are verified to obtain a data verification result, and a service response is returned to the client, where the service response includes the data verification result, and the data verification result is used to indicate whether execution of the target service is successful. Wherein the checking sequence of the plurality of data checking items comprises at least one of sequential checking and parallel checking. Based on the verification scheme, the efficiency of verifying the service request data can be improved.
The service request verification method provided in the embodiment of the present application is described above, and a service request verification apparatus provided in the embodiment of the present application is described below.
In the embodiment of the present application, the functional modules of the verification apparatus for a service request may be divided according to the method embodiment, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a form of hardware or a form of a software functional module.
It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation. The following description will be given by taking an example in which each functional module is divided by using a corresponding function.
Fig. 5 is a schematic structural diagram of a service request verification apparatus according to an embodiment of the present application. As shown in fig. 5, the apparatus 200 for verifying a service request provided in this embodiment includes: a receiving module 201, a processing module 202 and a sending module 203.
A receiving module 201, configured to receive a service request from a client, where the service request is used to request execution of a target service;
a processing module 202, configured to verify a plurality of data check items associated with the service request to obtain a data check result, where the data check result is used to indicate whether the target service is successfully executed; the checking sequence of the plurality of data checking items comprises at least one of sequential checking and parallel checking;
a sending module 203, configured to return a service response to the client, where the service response includes the data check result.
In an optional embodiment of this embodiment, the service request includes a service identifier; the processing module 202 is configured to:
acquiring a plurality of data check interfaces corresponding to the service identifier according to the service identifier in the service request, wherein each data check interface corresponds to one data check item;
and verifying the plurality of data check items by calling the plurality of data check interfaces.
In an optional embodiment of this embodiment, the processing module 202 is configured to:
calling the plurality of data checking interfaces through a pre-configured interface calling sequence, and verifying the plurality of data checking items; the interface calling sequence comprises at least one of sequential calling and parallel calling.
In an optional embodiment of this embodiment, the plurality of data check items include a first data check item and a second data check item which are checked sequentially; the processing module 202 is configured to:
verifying the first data check item, and if the first data check item is normal, generating a data check result by verifying the second data check item; or
And verifying the first data check item, and if the first data check item is abnormal, directly generating a first data check result, wherein the first data check result is used for indicating the first data check item which fails to execute the target service and has abnormality.
In an optional embodiment of this embodiment, the processing module 202 is configured to:
if the second data check item is normal, obtaining a second data check result, wherein the second data check result is used for indicating that the target service is successfully executed; or
And if the second data check item is abnormal, obtaining a third data check result, wherein the third data check result is used for indicating that the target service fails to be executed and the abnormal second data check item exists.
In an optional embodiment of this embodiment, the plurality of data check items include a third data check item and a fourth data check item which are checked in parallel;
the processing module 202 is configured to:
verifying the third data check item and the fourth data check item in parallel;
if the third data check item and the fourth data check item are both normal, generating a fourth data check result, wherein the fourth data check result is used for indicating that the target service is successfully executed; or
If any one of the third data check item and the fourth data check item is abnormal, a fifth data check result is generated, and the fifth data check result is used for indicating the target service execution failure and the abnormal data check item.
The verification apparatus for service request provided in this embodiment may execute the technical solution of any of the above method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 6 is a hardware structure diagram of an electronic device according to an embodiment of the present application. As shown in fig. 6, the electronic device 300 provided in this embodiment includes:
a memory 301;
a processor 302; and
a computer program;
the computer program is stored in the memory 301 and configured to be executed by the processor 302 to implement the technical solution of any one of the above method embodiments, and the implementation principle and the technical effect are similar and will not be described herein again.
Alternatively, the memory 301 may be separate or integrated with the processor 302. When the memory 301 is a separate device from the processor 302, the electronic device 300 further comprises: a bus 303 for connecting the memory 301 and the processor 302.
The present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by the processor 302 to implement the technical solution of any one of the foregoing method embodiments.
An embodiment of the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the technical solutions of any of the foregoing method embodiments.
An embodiment of the present application further provides a chip, including: a processing module and a communication interface, the processing module being capable of performing the solution of any of the method embodiments described above.
Further, the chip further includes a storage module (e.g., a memory), where the storage module is configured to store instructions, and the processing module is configured to execute the instructions stored in the storage module, and the execution of the instructions stored in the storage module causes the processing module to execute the technical solution of any one of the foregoing method embodiments.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of hardware and software modules.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile and non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the storage medium may reside as discrete components in an electronic device.
Finally, it should be noted that: the above 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 or all of the technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure as defined by the appended claims.

Claims (10)

1. A method for verifying a service request, comprising:
receiving a service request from a client, wherein the service request is used for requesting to execute a target service;
verifying a plurality of data verification items associated with the service request to obtain a data verification result, wherein the data verification result is used for indicating whether the target service is successfully executed; the checking sequence of the plurality of data checking items comprises at least one of sequential checking and parallel checking;
and returning a service response to the client, wherein the service response comprises the data verification result.
2. The method of claim 1, wherein the service request comprises a service identification; the verifying the plurality of data check items associated with the service request comprises:
acquiring a plurality of data check interfaces corresponding to the service identifier according to the service identifier in the service request, wherein each data check interface corresponds to one data check item;
and verifying the plurality of data check items by calling the plurality of data check interfaces.
3. The method of claim 2, wherein verifying the plurality of data check items by invoking the plurality of data check interfaces comprises:
calling the plurality of data check interfaces through a pre-configured interface calling sequence to verify the plurality of data check items; the interface calling sequence comprises at least one of sequential calling and parallel calling.
4. The method of claim 1, wherein the plurality of data check entries includes a first data check entry and a second data check entry that are checked sequentially; the verifying a plurality of data check items associated with the service request to obtain a data check result includes:
verifying the first data check item, and if the first data check item is normal, generating a data check result by verifying the second data check item; or
And verifying the first data check item, and if the first data check item is abnormal, directly generating a first data check result, wherein the first data check result is used for indicating the first data check item which fails to execute the target service and has abnormality.
5. The method of claim 4, wherein generating the data check result by verifying the second data check item comprises:
if the second data check item is normal, obtaining a second data check result, wherein the second data check result is used for indicating that the target service is successfully executed; or
And if the second data check item is abnormal, obtaining a third data check result, wherein the third data check result is used for indicating that the target service fails to be executed and the abnormal second data check item exists.
6. The method of claim 1, wherein the plurality of data check entries includes a third data check entry and a fourth data check entry that are checked in parallel; the verifying a plurality of data check items associated with the service request to obtain a data check result includes:
verifying the third data check item and the fourth data check item in parallel;
if the third data check item and the fourth data check item are both normal, generating a fourth data check result, wherein the fourth data check result is used for indicating that the target service is successfully executed; or
If any one of the third data check item and the fourth data check item is abnormal, a fifth data check result is generated, and the fifth data check result is used for indicating the target service execution failure and the abnormal data check item.
7. A device for verifying a service request, comprising:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a service request from a client, and the service request is used for requesting to execute a target service;
the processing module is used for verifying a plurality of data verification items associated with the service request to obtain a data verification result, and the data verification result is used for indicating whether the target service is successfully executed; the checking sequence of the plurality of data checking items comprises at least one of sequential checking and parallel checking;
and the sending module is used for returning a service response to the client, wherein the service response comprises the data verification result.
8. An electronic device, comprising:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any one of claims 1-6.
9. A computer-readable storage medium, having stored thereon a computer program for execution by a processor to perform the method of any one of claims 1-6.
10. A computer program product, characterized in that it comprises a computer program which, when being executed by a processor, carries out the method of any one of claims 1-6.
CN202210228823.4A 2022-03-08 2022-03-08 Service request verification method, device, equipment and storage medium Pending CN114666399A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210228823.4A CN114666399A (en) 2022-03-08 2022-03-08 Service request verification method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210228823.4A CN114666399A (en) 2022-03-08 2022-03-08 Service request verification method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114666399A true CN114666399A (en) 2022-06-24

Family

ID=82029782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210228823.4A Pending CN114666399A (en) 2022-03-08 2022-03-08 Service request verification method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114666399A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109377393A (en) * 2018-10-18 2019-02-22 阳光人寿保险股份有限公司 Regular method of calibration and device
WO2019061628A1 (en) * 2017-09-26 2019-04-04 武汉斗鱼网络科技有限公司 Data verification method, and server
CN110502363A (en) * 2019-08-05 2019-11-26 苏州浪潮智能科技有限公司 A kind of method of calibration of business rule, equipment and readable medium
CN112637222A (en) * 2020-12-26 2021-04-09 中国农业银行股份有限公司 Request processing method and device
CN113051008A (en) * 2021-04-01 2021-06-29 金蝶软件(中国)有限公司 Interface request processing method and device, computer equipment and storage medium
CN113627913A (en) * 2021-08-17 2021-11-09 未鲲(上海)科技服务有限公司 Client-side cash registering method, device, equipment and storage medium
CN113672894A (en) * 2021-07-30 2021-11-19 北京达佳互联信息技术有限公司 Data processing method, device and equipment for identifying code request and storage medium
EP3933625A1 (en) * 2020-07-03 2022-01-05 Alipay (Hangzhou) Information Technology Co., Ltd. Information verification method, apparatus, and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019061628A1 (en) * 2017-09-26 2019-04-04 武汉斗鱼网络科技有限公司 Data verification method, and server
CN109377393A (en) * 2018-10-18 2019-02-22 阳光人寿保险股份有限公司 Regular method of calibration and device
CN110502363A (en) * 2019-08-05 2019-11-26 苏州浪潮智能科技有限公司 A kind of method of calibration of business rule, equipment and readable medium
EP3933625A1 (en) * 2020-07-03 2022-01-05 Alipay (Hangzhou) Information Technology Co., Ltd. Information verification method, apparatus, and device
CN112637222A (en) * 2020-12-26 2021-04-09 中国农业银行股份有限公司 Request processing method and device
CN113051008A (en) * 2021-04-01 2021-06-29 金蝶软件(中国)有限公司 Interface request processing method and device, computer equipment and storage medium
CN113672894A (en) * 2021-07-30 2021-11-19 北京达佳互联信息技术有限公司 Data processing method, device and equipment for identifying code request and storage medium
CN113627913A (en) * 2021-08-17 2021-11-09 未鲲(上海)科技服务有限公司 Client-side cash registering method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
任开银;孔震;林峰;: "数据交换系统中数据处理技术研究与应用", 电力信息化, no. 01 *

Similar Documents

Publication Publication Date Title
CN108520454B (en) Method and system for calling back orders in real time
CN109298926B (en) Method and device for entering resource transfer party into resource transfer platform and electronic equipment
CN113641940B (en) Page jump method, device, system, equipment and storage medium
US20140244451A1 (en) E-commerce transaction verification system and method
CN111639279A (en) Graphic code generation method, target page loading method and device
CN110601880A (en) Cloud platform, service processing method, command interface and computer equipment
US10536606B2 (en) Server system and non-transitory computer-readable medium storing computer-readable instructions for server system
CN114257551A (en) Distributed current limiting method and system and storage medium
CN111079095A (en) ID generation method and system
CN113923144A (en) Service test system, method, electronic device and storage medium
CN112818270A (en) Data cross-domain transfer method and device and computer equipment
KR20200000595A (en) Blockchain based certificate management method and device, server and system thereof
CN110634063B (en) Credit guarantee loan service processing method and device and electronic equipment
CN110111188B (en) Business handling method and equipment
CN110175915B (en) Service execution result obtaining method and system based on block chain
CN110889073A (en) Page request response method, server and computer storage medium
CN114666399A (en) Service request verification method, device, equipment and storage medium
CN113395326B (en) Network service-based login method, device and computer-readable storage medium
CN113590352A (en) Data calling method, device, equipment and readable storage medium
CN109905446B (en) Service processing method, server and computer storage medium
CN114185602B (en) Starting method, device and terminal of operating system
CN111611507A (en) Modularization-based in-application page jump method and computing device
CN111191202A (en) Single sign-on method, device and system for mobile application
CN111383025B (en) Method and device for forwarding wind control data and electronic equipment
CN113079110B (en) Message processing method, device, equipment and storage medium

Legal Events

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