CN113762698A - Method, device and system for processing service information - Google Patents
Method, device and system for processing service information Download PDFInfo
- Publication number
- CN113762698A CN113762698A CN202110083542.XA CN202110083542A CN113762698A CN 113762698 A CN113762698 A CN 113762698A CN 202110083542 A CN202110083542 A CN 202110083542A CN 113762698 A CN113762698 A CN 113762698A
- Authority
- CN
- China
- Prior art keywords
- service
- authorization
- request
- processing
- transaction
- 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
Links
- 238000012545 processing Methods 0.000 title claims abstract description 134
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000013475 authorization Methods 0.000 claims abstract description 162
- 238000004590 computer program Methods 0.000 claims description 11
- 230000010365 information processing Effects 0.000 claims description 8
- 239000000126 substance Substances 0.000 claims description 7
- 230000002159 abnormal effect Effects 0.000 claims description 4
- 238000012795 verification Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 230000004044 response Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- PCHJSUWPFVWCPO-UHFFFAOYSA-N gold Chemical compound [Au] PCHJSUWPFVWCPO-UHFFFAOYSA-N 0.000 description 2
- 239000010931 gold Substances 0.000 description 2
- 229910052737 gold Inorganic materials 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 239000013256 coordination polymer Substances 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0637—Strategic management or analysis, e.g. setting a goal or target of an organisation; Planning actions based on goals; Analysis or evaluation of effectiveness of goals
- G06Q10/06375—Prediction of business process outcome or impact based on a proposed change
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/401—Transaction verification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Human Resources & Organizations (AREA)
- Theoretical Computer Science (AREA)
- Accounting & Taxation (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Economics (AREA)
- Finance (AREA)
- General Business, Economics & Management (AREA)
- Marketing (AREA)
- Databases & Information Systems (AREA)
- Development Economics (AREA)
- Entrepreneurship & Innovation (AREA)
- Educational Administration (AREA)
- Computer Security & Cryptography (AREA)
- Game Theory and Decision Science (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- Technology Law (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a method, a device and a system for processing service information, and relates to the technical field of computers. One embodiment of the method comprises: the corresponding authorization identifier can be generated based on different member transaction types, when a service processing request is received, the member transaction service corresponding to the member transaction type is processed under the condition that the authorization identifier passes verification, the authorization identifier is utilized to distinguish transaction information of each service type in a data source, a universal interface is provided for the member transaction services of a plurality of service types, the universality and flexibility of the member transaction service are improved, and the expansibility for processing the member transaction service is improved by automatically integrating the self-defined member transaction service.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, and a system for processing service information.
Background
In the present day where the internet application is popularized, the internet application generally provides a member service to increase liveness and stickiness of a member user, and at the same time, is advantageous to provide a personalized service to the member user, and generally, a user can become a paid member of a specific service type by purchasing the member service to enjoy the corresponding member service.
At present, a service module of a purchasing paid member in internet application is usually developed in a customized manner for a specific service scene, and the service module of the purchasing paid member is usually used as a part of an internet application system, and has strong coupling with other service modules, so that the service module of member transaction lacks universality, flexibility and expansibility.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for processing service information, which can generate corresponding authorization identifiers based on different member service types, process a member transaction service corresponding to the member service type when a service processing request is received and the authorization identifier passes, differentiate transaction information of each service type in a data source by using the authorization identifier, provide a common interface for member transaction services of multiple service types, improve generality and flexibility of the member transaction service, and improve extensibility of processing the member transaction service by automatically integrating a customized member transaction service.
In order to achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method for processing service information, including:
receiving a service processing request, wherein the service processing request comprises a service type and an authorization identifier corresponding to the service type; and responding to the authorization identifier, acquiring a user identifier from the service processing request, processing the transaction service based on the user identifier and the service type, and generating transaction information matched with the service type for the user identifier.
Optionally, the method for processing the service information is further characterized by:
receiving an authorization request sent by at least one middle layer, wherein the authorization request comprises corresponding service types, and one service type corresponds to one middle layer;
responding to an authorization request meeting authorization conditions in the at least one authorization request, generating a corresponding authorization identifier for the service type corresponding to the authorization request meeting the authorization conditions, and providing the authorization identifier to a preset middle layer corresponding to the service type, so that the middle layer sends a service processing request based on the service type.
Optionally, the method for processing service information, where the receiving a service processing request includes: the intermediate layer receives a member acquisition request sent by a client; and the intermediate layer adds the authorization identifier to the member acquisition request to obtain a service processing request and sends the service processing request.
Optionally, the method for processing the service information is further characterized by:
and storing the transaction information corresponding to various service types based on the authorization identifier so as to distinguish the stored transaction information of different service types through the authorization identifier.
Optionally, the method for processing the service information is characterized in that the step of storing transaction information corresponding to each service type includes: storing the transaction information corresponding to each service type in a database; and/or sending the transaction information corresponding to various service types to any one or more data sources in a data cache and a message queue.
Optionally, the method for processing the service information is further characterized by: receiving a service expansion request sent by the middle layer, wherein the service expansion request comprises a user-defined service interface; processing a transaction, comprising: and responding to the service type included in the service processing request and belonging to the service type corresponding to the user-defined service interface, and processing the transaction service by using the user-defined service interface.
Optionally, the method for processing the service information is characterized in that, in response to the authorization identifier not being authorized, an abnormal result is sent to the middle layer.
In order to achieve the above object, according to a second aspect of the embodiments of the present invention, there is provided an apparatus for processing service information, including: a request receiving module and a transaction executing module; wherein the content of the first and second substances,
the request receiving module is used for receiving a service processing request, wherein the service processing request comprises a service type and an authorization identifier corresponding to the service type;
and the transaction execution module is used for responding to the authorization identifier, acquiring a user identifier from the service processing request, processing transaction service based on the user identifier and the service type, and generating transaction information matched with the service type for the user identifier.
Optionally, the apparatus for processing service information is further characterized in that: a service authorization module; wherein the content of the first and second substances,
the service authorization module is used for receiving an authorization request sent by at least one middle layer, wherein the authorization request comprises corresponding service types, and one service type corresponds to one middle layer; responding to an authorization request meeting authorization conditions in the at least one authorization request, generating a corresponding authorization identifier for the service type corresponding to the authorization request meeting the authorization conditions, and providing the authorization identifier to a preset middle layer corresponding to the service type, so that the middle layer sends a service processing request based on the service type.
To achieve the above object, according to a third aspect of the embodiments of the present invention, there is provided a system for processing service information, including: a plurality of intermediate layers and the apparatus for service information processing of claim 8 or 9, wherein,
each intermediate layer corresponds to at least one service type, and the service types corresponding to every two intermediate layers are different; the middle layer is used for sending a service processing request, and the service processing request comprises a service type and an authorization identifier corresponding to the service type; the business information processing device is used for receiving a business processing request, responding to the authorization identification which is authorized, acquiring a user identification from the business processing request, processing a transaction business based on the user identification and the business type, and generating transaction information matched with the business type for the user identification.
Optionally, the system for processing service information is further characterized by comprising: the client is used for sending a member acquisition request to the middle layer matched with the service type included in the member acquisition request;
in order to achieve the above object, according to a fourth aspect of the embodiments of the present invention, there is provided an electronic device for processing service information, including: one or more processors; a storage device, configured to store one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the method according to any one of the above methods for processing service information.
To achieve the above object, according to a fifth aspect of the embodiments of the present invention, there is provided a computer readable medium having a computer program stored thereon, wherein the program is configured to implement, when executed by a processor, any one of the above methods of service information processing.
One embodiment of the above invention has the following advantages or benefits: by providing a common interface for the member transaction services of a plurality of service types, the universality and the flexibility of the member transaction services are improved, and the expansibility for processing the member transaction services is improved by automatically integrating the self-defined member transaction services.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic flowchart of a method for processing service information according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a service information processing method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for processing service information according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a system for processing service information according to an embodiment of the present invention;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 6 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
As shown in fig. 1, an embodiment of the present invention provides a method for processing service information, where the method may include the following steps:
step S101: receiving a service processing request, wherein the service processing request comprises a service type and an authorization identifier corresponding to the service type.
Specifically, the service processing request may be a request for a member transaction service (e.g., a member purchasing a black card, a member purchasing a discount money saving card, etc.), and the service type may be one or more types, such as: black card members, gold card members, purchasing discounted province money card members, etc.; the authorization identifier is used for verifying whether a sender of the service processing request has authority, the sender is an intermediate layer, one or more intermediate layers can belong to a server side or a client side, and the intermediate layer is used for calling an external interface provided by the method of the invention based on the service processing request after receiving the service processing request sent by the client side so as to realize member transaction service and returning a result corresponding to the request to the client side. Namely, the intermediate layer receives a member acquisition request sent by a client; and the intermediate layer adds the authorization identifier to the member acquisition request to obtain a service processing request and sends the service processing request.
Further, receiving an authorization request sent by at least one middle layer, wherein the authorization request comprises corresponding service types, and one service type corresponds to one middle layer; responding to an authorization request meeting authorization conditions in the at least one authorization request, generating a corresponding authorization identifier for the service type corresponding to the authorization request meeting the authorization conditions, and providing the authorization identifier to a preset middle layer corresponding to the service type, so that the middle layer sends a service processing request based on the service type.
Preferably, the code implemented by the method provides an interface for the middle layer to call; authorization to call the interface needs to be obtained before calling. Specifically, the middle layer sends an authorization request, where the authorization request includes a corresponding service type and may further include other information required by the authorization request, for example: applicant identification, applicant name, application name of the application, for example: the service application is member transaction service of a plurality of service categories of the electronic shopping mall, such as: the applicant a is a developer of a department a, the name of the applied application is ABC mall, and the applied service type A is 'black card member'; the applicant B is a developer of the department B, the applied application name is ABC mall, and the applied service type B is 'discounted provincial card member'; an authorization request meeting authorization conditions exists in the authorization requests, and corresponding authorization identifiers are generated for the service types corresponding to the authorization requests meeting the authorization conditions; and returns an authorization identifier to a corresponding middle layer sending an authorization request, for example: for the authorization request of service type a, the returned authorization identifier key1 is a character string encrypted by MD5, for example: 1637bd01f95423ff506b24f6a18a55 cc; similarly, for the authorization request of service type B, the returned authorization identifier key2 is a character string encrypted by MD5, for example: 1111bd01f95423ff999b24f6a18a66 zz; the method for determining that the authorization request meeting the authorization condition exists can be determined by inquiring whether any multiple data in the applicant identification, the applicant name, the applied application name and the applied service type code are matched with the information in the preset authorization information data source or not, wherein one embodiment of the authorization condition is that the service type code matched with the service type code is found from the data source and is the authorization request meeting the authorization condition, and it can be understood that the security of processing the member transaction service is improved by verifying and authorizing the provider of the member transaction service through the authorization step.
Therefore, each intermediate layer can obtain the authorization identifier based on different service types through the method for processing the authorization request provided by the invention, and can process different types of member transaction services (such as black card purchasing members, discount money saving card purchasing members and gold card purchasing members) through calling the interface provided by the invention, and each development layer can be independently developed and respectively call the universal interface provided by the invention to decouple the member transaction from the service module of the platform.
Step S102: and responding to the authorization identifier, acquiring a user identifier from the service processing request, processing the transaction service based on the user identifier and the service type, and generating transaction information matched with the service type for the user identifier.
Specifically, after determining that the received authorization identifier is authorized, the member identifier included in the service request is acquired, for example: the member identifier is an identifier "abcde" of the user using the electronic mall ABC, and the request for the member transaction service is a request sent by the user "abcde" to purchase the member of the electronic mall ABC, wherein the service type of the member transaction service is a "black card member", and it can be understood that the user can purchase goods at a preferential price by purchasing the member, thereby obtaining personalized service.
Further, based on the user identification and the service type, transaction services are processed such as: purchase (purchase i.e. transaction) of "black card members" (i.e. type of service) by calling an interface, for example: the interface method is pMembership (parameter 1, parameter 2, parameter 3, … parameter n); wherein, the parameter 1 may be an authorization identifier; parameter 2 may be a user identification, parameter 3 may be a purchase quantity, parameter 4 may be a price, etc.; after receiving the values of the parameters sent by the intermediate layer, first verifying the validity of the corresponding values of the parameters, for example: judging whether the authorization identifier can be found in a data source storing the existing authorization identifier, if so, determining that the authorization is obtained, otherwise, if not, returning a corresponding error and terminating the member transaction service; namely, responding to the unauthorized authorization identification, and sending an abnormal result to the middle layer. It will be appreciated that through the steps of authorization and authentication, the security of the membership transaction is improved and requests and invocations from various parties are more easily handled. Further, after parameter verification, transaction traffic is processed.
Further, receiving a service expansion request sent by the middle layer, wherein the service expansion request comprises a custom service interface; processing a transaction, comprising: and responding to the service type included in the service processing request and belonging to the service type corresponding to the user-defined service interface, and processing the transaction service by using the user-defined service interface.
Specifically, when the parameters provided by pMembership (parameter 1, parameter 2, parameter 3, and parameter … n) are not consistent with the parameters required by the member transaction service, the interface provided by the present invention may be expanded to form a custom service interface, and the custom interface may be obtained through a service discovery model, for example: the applicant C needs to develop a service of service type C "parent-specific member" (paid member purchased by a child to a parent), and then, a developer developing service type C can implement the interface again based on the extended interface provided by the present invention to implement customization of the service to complete extension of different service types, for example: the expanded method is qmemerhip (parameter 1, parameter 2 … parameter n); when the transaction service corresponding to the service type C is executed, qmamerhip (parameter 1, parameter 2 … parameter n) is located and operated through the service discovery model, that is, in response to that the service type included in the service processing request belongs to the service type corresponding to the customized service interface, the customized service interface is used for processing the transaction service.
Further, based on the authorization identifier, transaction information corresponding to various service types is stored, so that the stored transaction information of different service types can be distinguished through the authorization identifier. Specifically, after the member transaction service is executed, corresponding transaction information is stored to a data source; based on the authorization identifier, storing transaction information corresponding to each service type to a data source, wherein the authorization identifier is used for distinguishing the transaction information corresponding to each service type; i.e. to distinguish between stored transaction information of different traffic types by said authorization identifier. Specifically, for example, the data source is a structured database, which contains fields of authorization identifiers, and as exemplified by the exemplary data in table 1, the data in table 1 can distinguish transaction information of different service types based on the authorization identifiers (indicated as corresponding service types, for example, a represents a black card member, and B represents a saving and discount card member); the transaction information corresponding to the member identifier further includes the member identifier and order information of member transaction (for example, member price, quantity, order number, order time, etc.), and it can be understood that table 1 only includes partial field information, and the invention does not limit the form of data source and the specific field quantity and name. When the member transaction data query or operation is carried out, the provider and the developer of the service type and the corresponding user update information are distinguished through the authorization identification. Therefore, the deployment and the expansion of the system are facilitated, and the storage resources are saved.
TABLE 1
Further, storing transaction information corresponding to various service types in a database; and/or sending the transaction information corresponding to various service types to any one or more data sources in a data cache and a message queue. Specifically, after the transaction information corresponding to the member identification is stored in a database (for example, a relational database, a non-relational database, etc.), the transaction information can also be sent to one or more of a data cache (for example, a Redis cache), a message queue (for example, ActiveMQ, RabbitMQ, rocktmq, Kafka, etc.), so as to improve the query response efficiency of the transaction information.
Further, after processing the service request (member transaction service) (including executing the service logic), the intermediate layer sends a return result of the member transaction service to the intermediate layer, wherein the return result indicates "transaction success" or "transaction failure" or the like, so that the intermediate layer returns the obtained return result to the client.
As shown in fig. 2, an embodiment of the present invention provides a method for processing service information, where the method may include the following steps:
step S201: receiving an authorization request sent by at least one middle layer, wherein the authorization request comprises corresponding service types, and one service type corresponds to one middle layer; responding to an authorization request meeting authorization conditions in the at least one authorization request, generating a corresponding authorization identifier for the service type corresponding to the authorization request meeting the authorization conditions, and providing the authorization identifier to a preset middle layer corresponding to the service type, so that the middle layer sends a service processing request based on the service type.
Specifically, the detailed description about processing the authorization request is consistent with the description of step S101, and is not repeated here.
Step S202: receiving a service processing request, wherein the service processing request comprises a service type and an authorization identifier corresponding to the service type.
Specifically, the description of the service processing request and the authorization identifier is consistent with the description of step S101, and is not repeated here.
Step S203: and judging whether the authorization identifier is authorized.
Specifically, it is determined whether the authorization identifier included in the service request is authorized, and the description of step S101 is consistent with that of the specific description of the authorization identifier, which is not described herein again.
Further, if the authorization identifier is authorized according to the judgment, step S204 is executed; otherwise, step S206 is executed.
Step S204: and responding to the authorization identifier, acquiring a user identifier from the service processing request, processing the transaction service based on the user identifier and the service type, and generating transaction information matched with the service type for the user identifier.
Specifically, the detailed description about processing the transaction service is consistent with the description of step S102, and is not repeated here.
Step S205: and storing the transaction information corresponding to various service types based on the authorization identifier so as to distinguish the stored transaction information of different service types through the authorization identifier.
Specifically, the detailed description about storing the transaction information is consistent with the description of step S102, and is not repeated herein.
Step S206: and responding to the unauthorized authorization identification, and sending an abnormal result to the middle layer.
Specifically, the detailed description about the unauthorized acquisition is consistent with the description of step S102, and is not repeated here.
As shown in fig. 3, an embodiment of the present invention provides an apparatus 300 for processing service information, where the apparatus includes: a request receiving module 301 and a transaction executing module 302; wherein the content of the first and second substances,
the request receiving module 301 is configured to receive a service processing request, where the service processing request includes a service type and an authorization identifier corresponding to the service type;
the transaction execution module 302 is configured to, in response to the authorization identifier being authorized, obtain a user identifier from the service processing request, process a transaction service based on the user identifier and the service type, and generate transaction information matching the service type for the user identifier.
Optionally, the apparatus 300 for processing service information further includes: a service authorization module 303; wherein the content of the first and second substances,
the service authorization module 303 is configured to receive an authorization request sent by at least one middle layer, where the authorization request includes corresponding service types, and one service type corresponds to one middle layer; responding to an authorization request meeting authorization conditions in the at least one authorization request, generating a corresponding authorization identifier for the service type corresponding to the authorization request meeting the authorization conditions, and providing the authorization identifier to a preset middle layer corresponding to the service type, so that the middle layer sends a service processing request based on the service type.
As shown in fig. 4, an embodiment of the present invention provides a system 400 for processing service information, where the system 400 includes: the device 300 for processing the service information, the middle layer 401 and the client 402; wherein the content of the first and second substances,
the apparatus 300 for processing service information includes: a request receiving module 301 and a transaction executing module 302; the request receiving module 301 is configured to receive a service processing request, where the service processing request includes a service type and an authorization identifier corresponding to the service type; the transaction execution module 302 is configured to, in response to the authorization identifier being authorized, obtain a user identifier from the service processing request, process a transaction service based on the user identifier and the service type, and generate transaction information matching the service type for the user identifier.
The middle layer 401 is configured to send a service processing request, where the service processing request includes a service type and an authorization identifier corresponding to the service type; the business information processing device is used for receiving a business processing request, responding to the authorization identification which is authorized, acquiring a user identification from the business processing request, processing a transaction business based on the user identification and the business type, and generating transaction information matched with the business type for the user identification.
The system 400 for processing the service information comprises one or more middle layers 401, each middle layer 401 corresponds to at least one service type, and the service types corresponding to every two middle layers are different;
the client 402 is configured to send a member acquisition request to an intermediate layer matched with a service type included in the member acquisition request.
An embodiment of the present invention further provides an electronic device for processing service information, including: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the method provided by any one of the above embodiments.
Embodiments of the present invention further provide a computer-readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method provided in any of the above embodiments.
Fig. 5 shows an exemplary system architecture 500 of a method or apparatus for business information processing to which an embodiment of the present invention may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 505 serves as a medium for providing communication links between terminal devices 501, 502, 503 and the server 505. Network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 501, 502, 503 to interact with a server 505 over a network 504 to receive or send messages or the like. The terminal devices 501, 502, 503 may have various client applications installed thereon, such as an e-mall client application, a web browser application, a search-type application, an instant messaging tool, a mailbox client, and the like.
The terminal devices 501, 502, 503 may be various electronic devices having display screens and supporting various client applications, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 505 may be a server providing various services, such as a background management server providing support for client applications used by users with the terminal devices 501, 502, 503. The background management server can process the received member transaction service request and send the return result of the processed member transaction service to the terminal equipment.
It should be noted that the method for processing service information provided by the embodiment of the present invention is generally executed by the server 505, and accordingly, the apparatus for processing service information is generally disposed in the server 505, and the system for processing service information generally includes the terminal devices 501, 502, 503 and the server 505.
It should be understood that the number of terminal devices, networks, and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, a block diagram of a computer system 600 suitable for use with a terminal device implementing an embodiment of the invention is shown. The terminal device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the system of the present invention when executed by the central processing unit (CP U) 601.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules and/or units described in the embodiments of the present invention may be implemented by software, and may also be implemented by hardware. The described modules and/or units may also be provided in a processor, and may be described as: a processor includes a request receiving module and a transaction processing module. The names of these modules do not in some cases constitute a limitation on the module itself, for example, the request receiving module may also be described as a "module receiving a service request".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: receiving a service processing request, wherein the service processing request comprises a service type and an authorization identifier corresponding to the service type; and responding to the authorization identifier, acquiring a user identifier from the service processing request, processing the transaction service based on the user identifier and the service type, and generating transaction information matched with the service type for the user identifier.
The method can generate corresponding authorization identifiers for different member transaction types, when a service processing request is received, under the condition that the authorization identifiers pass verification, the member transaction service corresponding to the member transaction type is executed, the authorization identifiers are used for distinguishing transaction information of each service type in a data source layer, a universal interface is provided for the member transaction services of a plurality of service types, the universality and flexibility of the member transaction service are improved, the user-defined member transaction service can be automatically integrated, and the expansibility for processing the member transaction service is improved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (13)
1. A method for processing service information is characterized by comprising the following steps:
receiving a service processing request, wherein the service processing request comprises a service type and an authorization identifier corresponding to the service type;
and responding to the authorization identifier, acquiring a user identifier from the service processing request, processing the transaction service based on the user identifier and the service type, and generating transaction information matched with the service type for the user identifier.
2. The method of claim 1, further comprising:
receiving an authorization request sent by at least one middle layer, wherein the authorization request comprises corresponding service types, and one service type corresponds to one middle layer;
responding to an authorization request meeting authorization conditions in the at least one authorization request, generating a corresponding authorization identifier for the service type corresponding to the authorization request meeting the authorization conditions, and providing the authorization identifier to a preset middle layer corresponding to the service type, so that the middle layer sends a service processing request based on the service type.
3. The method of claim 2, wherein receiving the service processing request comprises:
the intermediate layer receives a member acquisition request sent by a client;
and the intermediate layer adds the authorization identifier to the member acquisition request to obtain a service processing request and sends the service processing request.
4. The method of claim 1, further comprising:
and storing the transaction information corresponding to various service types based on the authorization identifier so as to distinguish the stored transaction information of different service types through the authorization identifier.
5. The method of claim 4, wherein storing transaction information corresponding to each of the service types comprises:
storing the transaction information corresponding to each service type in a database;
and/or the presence of a gas in the gas,
and sending the transaction information corresponding to various service types to any one or more data sources in a data cache and a message queue.
6. The method of claim 2,
further comprising: receiving a service expansion request sent by the middle layer, wherein the service expansion request comprises a user-defined service interface;
processing a transaction, comprising:
and responding to the service type included in the service processing request and belonging to the service type corresponding to the user-defined service interface, and processing the transaction service by using the user-defined service interface.
7. The method of claim 2,
and responding to the unauthorized authorization identification, and sending an abnormal result to the middle layer.
8. An apparatus for processing service information, comprising: a request receiving module and a transaction executing module; wherein the content of the first and second substances,
the request receiving module is used for receiving a service processing request, wherein the service processing request comprises a service type and an authorization identifier corresponding to the service type;
and the transaction execution module is used for responding to the authorization identifier, acquiring a user identifier from the service processing request, processing transaction service based on the user identifier and the service type, and generating transaction information matched with the service type for the user identifier.
9. The apparatus of claim 8, further comprising: a service authorization module; wherein the content of the first and second substances,
the service authorization module is used for receiving an authorization request sent by at least one middle layer, wherein the authorization request comprises corresponding service types, and one service type corresponds to one middle layer; responding to an authorization request meeting authorization conditions in the at least one authorization request, generating a corresponding authorization identifier for the service type corresponding to the authorization request meeting the authorization conditions, and providing the authorization identifier to a preset middle layer corresponding to the service type, so that the middle layer sends a service processing request based on the service type.
10. A system for processing service information, comprising: a plurality of intermediate layers and the apparatus for service information processing of claim 8 or 9, wherein,
each intermediate layer corresponds to at least one service type, and the service types corresponding to every two intermediate layers are different;
the middle layer is used for sending a service processing request, and the service processing request comprises a service type and an authorization identifier corresponding to the service type;
the business information processing device is used for receiving a business processing request, responding to the authorization identification which is authorized, acquiring a user identification from the business processing request, processing a transaction business based on the user identification and the business type, and generating transaction information matched with the business type for the user identification.
11. The system of claim 10, further comprising: a client, wherein,
the client is used for sending a member acquisition request to the intermediate layer matched with the service type included in the member acquisition request;
and the intermediate layer is used for adding the authorization identifier to the member acquisition request after receiving the member acquisition request sent by the client to obtain a service processing request and sending the service processing request.
12. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
13. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110083542.XA CN113762698A (en) | 2021-01-21 | 2021-01-21 | Method, device and system for processing service information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110083542.XA CN113762698A (en) | 2021-01-21 | 2021-01-21 | Method, device and system for processing service information |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113762698A true CN113762698A (en) | 2021-12-07 |
Family
ID=78786438
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110083542.XA Pending CN113762698A (en) | 2021-01-21 | 2021-01-21 | Method, device and system for processing service information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113762698A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101458797A (en) * | 2008-12-22 | 2009-06-17 | 腾讯科技(深圳)有限公司 | Transaction system and method |
KR20170068955A (en) * | 2015-12-10 | 2017-06-20 | 알플러스코리아 주식회사 | Real estate transactions pluralistic information system between companies |
CN109711893A (en) * | 2018-12-28 | 2019-05-03 | 广州酷狗计算机科技有限公司 | Member's business handles method, apparatus and system |
CN111212075A (en) * | 2020-01-02 | 2020-05-29 | 腾讯云计算(北京)有限责任公司 | Service request processing method and device, electronic equipment and computer storage medium |
CN111460129A (en) * | 2020-03-27 | 2020-07-28 | 泰康保险集团股份有限公司 | Method and device for generating identification, electronic equipment and storage medium |
-
2021
- 2021-01-21 CN CN202110083542.XA patent/CN113762698A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101458797A (en) * | 2008-12-22 | 2009-06-17 | 腾讯科技(深圳)有限公司 | Transaction system and method |
KR20170068955A (en) * | 2015-12-10 | 2017-06-20 | 알플러스코리아 주식회사 | Real estate transactions pluralistic information system between companies |
CN109711893A (en) * | 2018-12-28 | 2019-05-03 | 广州酷狗计算机科技有限公司 | Member's business handles method, apparatus and system |
CN111212075A (en) * | 2020-01-02 | 2020-05-29 | 腾讯云计算(北京)有限责任公司 | Service request processing method and device, electronic equipment and computer storage medium |
CN111460129A (en) * | 2020-03-27 | 2020-07-28 | 泰康保险集团股份有限公司 | Method and device for generating identification, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9100814B2 (en) | Federated download of digital content to wireless devices | |
WO2009018717A1 (en) | Use method and system for electronic member card based on mobile phone information | |
CN110473036B (en) | Method and device for generating order number | |
CN109831501B (en) | Information distribution method and system based on block chain | |
CN110839004A (en) | Method and device for access authentication | |
CN114500093B (en) | Safe interaction method and system for message information | |
CN113177822A (en) | Cross-border e-commerce multi-channel order management method, system and equipment | |
CN113076153A (en) | Interface calling method and device | |
CN113011907A (en) | Data processing method, device, storage medium and equipment | |
CN110795741A (en) | Method and device for carrying out security processing on data | |
CN113572763B (en) | Data processing method and device, electronic equipment and storage medium | |
EP2798601A1 (en) | Method and system for bulk purchase negotiating using an ad hoc online group | |
CN110865797A (en) | Method and device for processing dynamic attributes of services | |
US20120101943A1 (en) | E-wallet service method based on a waiting screen application | |
CN113362061A (en) | Method, system, device, storage medium and electronic equipment for responding to user request | |
CN113762698A (en) | Method, device and system for processing service information | |
CN111815381A (en) | Information generation method and device | |
CN111801696A (en) | Payment page management method, payment page management device, payment system and storage medium | |
CN113379019A (en) | Verification and cancellation code generation method and device, storage medium and electronic equipment | |
CN112905970A (en) | Authority verification method and device, computer readable storage medium and electronic equipment | |
CN112884427A (en) | Process management method and device supporting multiple service sources | |
CN111291038B (en) | Data query method and device | |
CN111401840B (en) | Method, apparatus, device and computer readable medium for generating guarantor information | |
CN116579726A (en) | Business approval method, device, electronic equipment and computer readable medium | |
CN113282887A (en) | Method and device for authorizing user information |
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 |