CN107196917B - Service response method and middleware thereof - Google Patents

Service response method and middleware thereof Download PDF

Info

Publication number
CN107196917B
CN107196917B CN201710286520.7A CN201710286520A CN107196917B CN 107196917 B CN107196917 B CN 107196917B CN 201710286520 A CN201710286520 A CN 201710286520A CN 107196917 B CN107196917 B CN 107196917B
Authority
CN
China
Prior art keywords
service
user
service request
information
interactive
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.)
Active
Application number
CN201710286520.7A
Other languages
Chinese (zh)
Other versions
CN107196917A (en
Inventor
鲜丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weifutong Technology Co Ltd
Original Assignee
Weifutong 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 Weifutong Technology Co Ltd filed Critical Weifutong Technology Co Ltd
Priority to CN201710286520.7A priority Critical patent/CN107196917B/en
Publication of CN107196917A publication Critical patent/CN107196917A/en
Priority to PCT/CN2018/083860 priority patent/WO2018196686A1/en
Application granted granted Critical
Publication of CN107196917B publication Critical patent/CN107196917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1073Registration or de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/53Network services using third party service providers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Abstract

The invention is suitable for the technical field of networks, and provides a service response method and a middleware thereof, wherein the method comprises the following steps: receiving registration information sent by a user; adding the additional service to a responsive service list corresponding to the third-party service platform by the user according to the identification and the login information; wherein the additional service is other services outside the responsive service list; receiving a service request sent by a user, and judging whether the service type corresponding to the service request is an extra service; and if the service type is the additional service, responding to the service request through the middleware. According to the invention, the user can register in the middleware to obtain the additional service authority of the third-party platform, the third-party service platform is used for initiating the corresponding additional service request, and the third-party service platform is delivered to the middleware for responding after receiving the additional service request, so that more services are provided for the user, and the problems that the existing third-party service platform cannot meet a large number of service requests of the user and the user experience is low are solved.

Description

Service response method and middleware thereof
Technical Field
The invention belongs to the technical field of networks, and particularly relates to a service response method and middleware thereof.
Background
With the increasing variety of network services, users often need to obtain corresponding network services through a third-party service platform. However, since the third-party service platform has a long development period and a high updating cost, the service type of the platform cannot be updated in time.
For example, when the third-party service platform is a wechat public number platform, the user can only select the required service from the service keys provided by the platform, such as general services for mass texting of image-text information, answering of fan questions and the like, but the user cannot respond to additional services such as personalized services or special services and the like, for example, the number of fan of the user is gradually increased, fan information in the wechat public number needs to be managed and related fan analysis needs to be performed, the user can only manually obtain fan information and complete the fan information through manual or other software, and the operation cannot be directly performed through the wechat public number platform. Therefore, the existing third-party service platform cannot meet various service requests of users, and the user experience is low.
Disclosure of Invention
The embodiment of the invention aims to provide a service response method based on a middleware and the middleware thereof, and aims to solve the problems that the existing third-party service platform cannot meet a large number of service requests of users and the user experience is low.
In a first aspect, an embodiment of the present invention provides a service response method, where the service response method includes:
receiving registration information sent by a user; the registration information comprises an identifier of a third-party service platform and login information of the user for logging in the third-party service platform;
adding additional services to a responsive service list corresponding to the third-party service platform of the user according to the identification and the login information; wherein the additional service is another service outside the responsive service list;
receiving a service request sent by the user, and judging whether a service type corresponding to the service request is the extra service;
and if the service type is the additional service, responding the service request through the middleware.
In a second aspect, an embodiment of the present invention provides an middleware, including:
the registration information receiving unit is used for receiving registration information sent by a user; the registration information comprises an identifier of a third-party service platform and login information of the user for logging in the third-party service platform;
an additional service adding unit, configured to add an additional service to a responsive service list corresponding to the third-party service platform by the user according to the identifier and the login information; wherein the additional service is another service outside the responsive service list;
a service receiving unit, configured to receive a service request sent by the user, and determine whether a service type corresponding to the service request is the additional service;
and the service response unit is used for responding the service request through the middleware if the service type is the additional service.
The implementation of the service response method and the middleware thereof provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the user registers in the middleware to obtain the additional service authority of the third-party platform, and the third-party service platform is utilized to initiate the corresponding additional service request, and the third-party service platform receives the additional service request and then delivers the additional service request to the middleware to respond, thereby providing more services for the user. Therefore, in the embodiment of the invention, the user does not need to install or use a new third-party service platform, only needs to perform related registration operation, and can perform various service requests through the original third-party service platform, thereby improving the user experience. On the other hand, the middleware is more flexible in service updating and adding, so that the service requirements of the user can be used in time, and the updating efficiency and the user experience of the third-party service platform are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of a service response method according to an embodiment of the present invention;
fig. 2 is a flowchart of a service response method according to another embodiment of the present invention;
fig. 3a is a schematic diagram illustrating an implementation of S207 in a service response method according to another embodiment of the present invention;
fig. 3b is an interaction flowchart of a middleware responding to an interactive service request in a service response method according to another embodiment of the present invention;
fig. 4a is a schematic diagram illustrating an implementation of S207 in a service response method according to another embodiment of the present invention;
FIG. 4b is an interaction flowchart of a middleware responding to an external link access service request in a service response method according to another embodiment of the present invention;
fig. 5a is a schematic diagram illustrating an implementation of S104 in a service response method according to another embodiment of the present invention;
fig. 5b is an interaction flowchart of pushing a service request by a middleware response message in a service response method according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of an intermediate part according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the embodiment of the invention, the user registers in the middleware to obtain the extra service authority of the third-party platform, and the third-party service platform is used for initiating the corresponding extra service request, and the third-party service platform receives the extra service request and then delivers the extra service request to the middleware for response, so that more services are provided for the user, and the problems that the existing third-party service platform cannot meet a large number of service requests of the user and the user experience is low are solved.
In the embodiment of the present invention, the execution subject of the flow is middleware. The middleware can be deployed in a communication network of a user and a third-party server as an independent network device provided with a related service program, such as a server or a network service platform for example; or as system software or service programs in third party servers or in the user's terminal equipment. Fig. 1 shows a flowchart of an implementation of a service response method according to an embodiment of the present invention, which is detailed as follows:
in S101, receiving registration information sent by a user; the registration information comprises an identifier of a third-party service platform and login information of the user for logging in the third-party service platform.
In this embodiment, the user sends a registration message to the middleware through the communication network, and after receiving the registration message, the middleware extracts the identifier of the third-party service platform included in the registration information and the login information of the user logging in the third-party service platform.
In this embodiment, since the middleware needs to provide an additional service for the user in the third-party service platform, the third-party service platform to which the user needs to add the service needs to be determined according to the identifier of the third-party service platform, and the relevant service addition operation is performed according to the login information of the user corresponding to the third-party service platform. For example, if the middleware can provide additional services on three third-party service platforms, namely, WeChat, Paibao and microblog, the registration information sent by the user indicates the third-party service platform which needs to be subjected to service expansion, such as WeChat, and provides the registration information for logging in the WeChat.
Optionally, in this embodiment, an extensible service list is stored in the memory of the middleware, and the extensible service list records an identifier of a third-party service platform to which the middleware is authorized to add an additional service. After receiving the registration information sent by the user, the middleware extracts the identifier of the third-party service platform contained in the registration information and inquires whether the extensible service list contains the identifier in the registration information. If the expandable service list contains the identifier, executing the relevant steps of S102; otherwise, if the extensible service list does not contain the identifier, the non-support information is returned to the user or forwarded to other middleware capable of supporting the third-party service platform corresponding to the identifier, and the registration information can be directly ignored without responding.
In this embodiment, the middleware may be connected to a third party server or a terminal device of the user. If the middleware is deployed in the third-party server, the user sends the registration information to the middleware server, the middleware server sends the registration information to the corresponding middleware in the third-party server according to the third-party server platform identification in the registration information, and the middleware receives the registration information sent by the user through the middleware server and executes related service response operation. If the middleware is deployed in the terminal equipment of the user, the registration information sent by the user is received directly through a communication channel in the terminal equipment of the user.
In this embodiment, if the middleware is an independent network device deployed in the communication network between the user and the third-party server, the user may directly send registration information to the middleware based on a network address of the middleware or a registration platform of the middleware; optionally, in this case, the user does not need to input the identifier of the third-party service platform when generating the registration information, and after receiving the registration information, the third-party service platform adds the identifier corresponding to the third-party service platform to the registration information sent by the user, and forwards the information to the middleware.
In S102, adding additional services to a responsive service list corresponding to the third-party service platform of the user according to the identification and the login information; wherein the additional service is another service outside the responsive service list.
In this embodiment, after acquiring the registration information sent by the user, the middleware extracts the identifier of the third-party service platform and the corresponding login information in the registration information, determines the third-party service platform requiring extended service according to the identifier, and determines the account information of the user corresponding to the third-party platform according to the login information of the user.
In this embodiment, the middleware determines a responsive service list of the user on the third-party service platform according to the identifier of the third-party platform, and determines a corresponding additional service item according to the responsive service list. For example, the middleware may provide 5 services. The WeChat service platform can only provide the first service and the second service, and for the WeChat service platform, the additional services of the middleware are a third service, a fourth service and a fifth service; the pay service platform can provide the first to third services, and the additional services of the middleware are a fourth service and a fifth service. It can be seen that, since the service types provided by each third-party service platform are not consistent, and the content of the service items included in the additional services will be directly affected, the middleware needs to determine the platform of the extended service required by the user through the identification of the third-party service platform, and also needs to determine the service items included in the additional services according to the responsive service list.
In this embodiment, a user needs to use a third-party service platform to perform related service operations, and should have a corresponding personal account, and each account corresponds to a responsive service list, where the responsive service list is used to indicate a service request type that the third-party service platform can respond to. Optionally, the responsive service list corresponds to its account permissions. For example, if the account authority of the user is the administrator authority, the third-party service platform will respond to all kinds of service requests initiated by the user; if the account authority of the user is not verified, the third-party service platform only responds to the service request of the basic function to the user, such as the service requests of receiving information in the WeChat, searching historical records and the like.
In this embodiment, since the middleware is used to provide additional service content for the third-party service platform, and the additional service content is that the user cannot operate within the account authority corresponding to the user, in order to enable the third-party service platform to process the relevant service request and submit the corresponding service request to the middleware for response operation, the additional service is added to the responsive service list of the user.
For example, in the present embodiment, the additional services include, but are not limited to: the method comprises the steps of fan behavior analysis, user detailed information report, information mass sending, user-defined two-dimensional code generation, mall setting, user-defined card ticket generation, scanning service, shaking service, intelligent WIFI connection service and the like.
In S103, a service request sent by the user is received, and it is determined whether a service type corresponding to the service request is the additional service.
In this embodiment, after obtaining the usage right of the additional service, the user may perform a corresponding additional service operation in the third-party service platform. Therefore, the service types initiated by the user in the third-party service platform include both normal services in the originally-responded service list and newly-added additional services, wherein the normal services are specifically services that the user already enjoys before registering on the middleware.
In this embodiment, after receiving a service request sent by a user, the middleware determines whether the service request belongs to an additional service, if so, executes the relevant operation of S104, and if not, does not respond, and delivers the service request to a third-party service platform to directly perform a relevant service response. The user can initiate a relevant service request through the third-party service platform, or can send the service request to the middleware through other modes, such as direct communication to the middleware or through other third-party service platforms.
Optionally, in this embodiment, the service request of the user may be synchronously sent to the third-party service platform and the middleware through the third-party service platform. After receiving the service request, the third-party service platform judges whether the service type is an extra service or not, if so, the third-party service platform does not respond to the request, waits for the middleware to process, and returns a processing result generated by the middleware to the user; and if the service request is not the additional service, the third-party service platform responds, and the middleware discards the service request.
In S104, if the service type is an additional service, the service request is responded to through the middleware.
In this embodiment, the middleware determines that the service request is an additional service according to the service type of the service request, and executes a corresponding service flow operation according to a different service type, thereby responding to the service request of the user.
It can be seen from the above that, in the service response method provided by the embodiment of the present invention, the user obtains the extra service permission of the third-party platform by registering in the middleware, and initiates a corresponding extra service request by using the third-party service platform, and after receiving the extra service request, the third-party service platform will be handed to the middleware for response, thereby providing more services for the user. Therefore, in the embodiment of the invention, the user does not need to install or use a new third-party service platform, only needs to perform related registration operation, and can perform various service requests through the original third-party service platform, thereby improving the user experience. On the other hand, the middleware is more flexible in service updating and adding, so that the service requirements of the user can be used in time, and the updating efficiency and the user experience of the third-party service platform are improved.
Fig. 2 is a flowchart illustrating a specific implementation of a service response method according to another embodiment of the present invention. Referring to fig. 2, with respect to the previous embodiment, the middleware-based service response method provided in this embodiment includes the following steps, which are detailed as follows:
further, as another embodiment of the present invention, the login information includes user identification information and user password information;
before responding to the service request through the middleware, the method further comprises the following steps:
in S204, the user identification information and the user password information included in the service request are extracted.
In this embodiment, the registration information sent by the user when registering in the middleware includes login information for logging in the third party service platform, where the login information includes user identification information and user password information. The user identification information includes, but is not limited to: user name, user identity number (ID number), associated phone number, mailbox, etc. User password information includes, but is not limited to: the system comprises user login password information, public key information and private key information of communication between the user and the third-party service platform, and the like.
In this embodiment, the user initiates the service request through the third-party service platform, and belongs to an interactive content between the user and the third-party service platform. Therefore, the service request will include the identification information of the user and the password information of the user, so as to mark the account of the user corresponding to the service request.
In this embodiment, the middleware will extract the user identification information and the user password information from the service request according to the preset user parameter extraction rule. The preset user parameter extraction rule may be: directly reading corresponding field content in the service request, and taking the field content as user identification information or user password information; if the service request is encrypted, the middleware can decrypt the service request through a preset decryption key, and then reads related information, wherein the decryption key is a key used for decrypting the information and agreed by the middleware and a third-party service platform.
In S205, the user identification information included in the service request is matched with the user identification information of the login information, and the user password information included in the service request is matched with the user password information included in the login information.
In this embodiment, the middleware matches the user identifier included in the service request with the user identifier information of the login information, matches the user password information included in the service request with the user password information of the login information, and determines that the service request is legal if both the user identifier and the user password information are successfully matched; otherwise, if any matching is unsuccessful, that is, the user identification information is not matched or the user password information is not matched, it is determined that the service request is wrong or illegal.
In this embodiment, the matching method includes, but is not limited to: and directly comparing whether the two pieces of information are consistent or not, or mapping the information through a corresponding mapping rule to obtain whether the results are consistent or not.
In S206, it is determined whether to respond to the service request through the middleware according to the matching result.
In this embodiment, if the user identification information and the user password information included in the service request are both successfully matched, the service request is responded; otherwise, if the user identification information or the user password information contained in the service request is unsuccessfully matched, an identity information error instruction is returned to inform the user that a correct service request needs to be generated again, or the service request is directly discarded without relevant processing.
In the embodiment of the invention, the middleware extracts the user identification information and the user password information in the service request and matches the user identification information and the user password information with the registered corresponding information, thereby determining whether the service request is legal or not, improving the safety of the middleware for responding to the service and avoiding lawless persons pretending to be legal users to initiate related service operation.
It should be noted that in the present embodiment, since the correlation operations of S201 and S101 are completed the same, the correlation operations of S202 and S102 are completely the same. The operations of S203 and S103 are completely the same, and the operations of S207 and S104 are completely the same, so the related contents of S201, S202, S203 and S207 can be referred to the related descriptions of S101 to S104, and are not described herein again.
Fig. 3a shows a flowchart of a specific implementation of S207 in a service response method according to another embodiment of the present invention. Referring to fig. 3a, compared to the previous embodiment, the step S207 of the service response method provided in this embodiment includes the following steps, which are detailed as follows:
further, as another embodiment of the present invention, the service request is an interactive service request;
the responding, by the middleware, the service request includes:
in S301, the interactive content and the interactive object identifier included in the interactive service request are obtained.
In this embodiment, the service request is an interactive service request, and the interactive service request requires information interaction between a user and an interactive party, so the interactive service request includes an interactive object identifier for indicating a corresponding interactive object.
In this embodiment, the user will extract the interactive content and the interactive object identifier included in the interactive service request information. Wherein the interactive object identifier includes but is not limited to: the network address of the interactive object, the user identification information of the interactive object or the identification of a third-party service platform, and the like. Optionally, there may be more than one interactive object identifier, in this case, that is, the interactive object includes a plurality of interactive objects, and the user interacts with the plurality of interactive objects simultaneously. For example, the service request of the multi-interaction user may be: multi-person video chat service requests, mass messaging service requests, and the like.
In this embodiment, the interactive objects of the users may be multiple users, where the multiple users may interact based on the same third-party service platform, or may be multiple users of different third-party service platforms, for example, the users may perform video chat with multiple wechat users through wechat, or perform video with the QQ users and the wechat users through wechat.
In this embodiment, the interactive object of the user may also be a third-party service platform, that is, the user may perform corresponding interactive operation with the third-party service platform, where the third-party service platform requesting interaction may be the same as or different from the third-party service platform operated by the user. For example, a user initiates an interactive operation to a WeChat service platform by using a WeChat, and also initiates an interactive operation to Taobao by using the WeChat.
Optionally, if the interactive object has an independent server, the middleware forwards the interactive service request to the corresponding independent server, and the independent server responds to the interactive service request.
In S302, the interactive content is sent to the interactive device corresponding to the interactive object identifier according to the interactive object identifier.
In this embodiment, the middleware determines the interactive device corresponding to the interactive object according to the interactive object identifier, and forwards the interactive content in the interactive service request to the interactive device. If the interactive objects comprise a plurality of interactive objects, the interactive devices corresponding to different interactive satellite identification marks are respectively determined, and the interactive contents are simultaneously sent to the plurality of interactive devices.
In S303, an interaction result returned by the interaction device according to the interaction content is received, and the interaction result is returned to the user through the third-party service platform.
In this embodiment, after receiving the interactive content sent by the middleware, the interactive device performs corresponding operation according to the interactive content to obtain an interactive result corresponding to the interactive content, and returns the result to the middleware. After receiving the interaction result, the middleware returns the interaction result to the user through the third-party service platform.
In this embodiment, the interaction result corresponds to the interaction content. For example, if the user only needs to send a certain file to the interactive device, the interactive device directly returns a successful receiving instruction after receiving the file; if the user needs to send certain data to the interactive equipment for operation processing, the interactive equipment performs corresponding operation after receiving the data to obtain a corresponding calculation result, and the interaction result comprises the calculation result.
In this embodiment, if the interaction request of the user relates to a plurality of interaction objects, the middleware can summarize the interaction results fed back by the interaction objects and then uniformly send the interaction results to the user; or directly forwarding the interaction result fed back by any interaction device after receiving the interaction result.
For example, fig. 3b is an interaction flow chart of a middleware responding to an interactive service request in a service response method according to an embodiment of the present invention, and referring to fig. 3b, an interaction flow of the middleware responding to the interactive service request is as follows:
in S31, the user will generate an interactive service request through the third-party service platform, where the interactive service request includes the interactive object identifier and the interactive content.
In S32, the third party service platform sends the interactive service request to the middleware.
In S33, the middleware determines whether the interactive service request belongs to an additional service, if yes, extracts the user login information and the user password information in the interactive service request, matches the two information with the registration information of the user, and if matching is successful, responds to the interactive service request.
In S34, the middleware determines a corresponding interactive device according to the interactive object identifier included in the interactive service request information, and sends the interactive content to the interactive device.
In S35, the interactive device generates an interactive result according to the interactive content and sends the interactive result to the middleware.
In S36, after receiving the interaction result, the middleware returns the interaction result to the user through the third-party service platform.
In the embodiment of the invention, the user initiates the interactive service request through the middleware, thereby realizing the response of the request of the user for the interactive service with other users or equipment. Because some third-party service platforms can only carry out information transmission in one direction and cannot realize the interactive function, the user can obtain additional service, namely the function of the interactive service, through the middleware. On the other hand, the middleware also expands interactive objects, and under a general condition, the interactive objects of the users can only be the users in the third-party service platform and cannot interact with other third-party service platforms or other users of the third-party service platforms, so that the experience degree of the users and the convenience of operation are improved.
Fig. 4a shows a flowchart of a specific implementation of S207 in a service response method according to another embodiment of the present invention. Referring to fig. 4a, compared to the previous embodiment, the step S207 of the service response method provided in this embodiment includes the following steps, which are detailed as follows:
further, as another embodiment of the present invention, the service request is an external link access service request;
the responding, by the middleware, the service request includes:
in S401, obtaining authorization information corresponding to the user from the third-party server, and returning an authorization confirmation instruction to the user through the third-party server; wherein the authorization confirmation instruction contains the authorization information.
In this embodiment, when the user uses the third-party service platform, if the corresponding external link needs to be opened, an external link access service request is generated, and the service request is sent to the middleware, and the middleware receives the service request and then performs the relevant operation of S401.
In this embodiment, before responding to the access service request of the user, the middleware determines, according to the address pointed by the external link, user information required to be used in response to the external link, and generates corresponding authorization information according to the user information required to be used, and after receiving the authorization information, the user can determine whether to apply the corresponding user information to the external link.
In this embodiment, since the middleware does not record the user information required in the authorization information, the middleware acquires the user information required by the external link through the third-party service platform, and acquires the corresponding authorization information according to the information registered by the user on the third-party service platform.
In this embodiment, after the middleware generates the corresponding authorization information, the middleware returns the authorization information to the user through the third-party service platform, and waits for the authorization confirmation of the user. If the user determines that the related user information can be applied to the external link, a confirmation instruction is sent to the middleware, and the middleware executes the related operation of S402; otherwise, if the user does not agree to apply the related user information to the external link, a service suspension instruction is returned to the middleware, and the middleware stops continuously responding to the external link access service request after receiving the service suspension instruction, so that the privacy of the user is protected.
In S402, a confirmation instruction returned by the user according to the authorization confirmation instruction is received.
In this embodiment, when the user confirms that the authorization information is applied to the external link access operation, a confirmation instruction is returned to the middleware, and the middleware performs the relevant operation of S403 after receiving the confirmation instruction; if the middleware does not receive the confirmation instruction sent by the user within the preset time, judging that the user does not agree to perform the authorization operation, and stopping the response flow of the external link access service request.
In S403, an external link page is generated based on the authorization information and the external link access service request, so that the user can interact through the external link page.
In this embodiment, the middleware determines that the user agrees to apply the authorization information to the external link, extracts the user information in the authorization information, uses the user information as an identity of the user accessing the external link, and produces a corresponding external link page.
In this embodiment, the user may interact in response in the generated external link page. For example, the external link is a web game, and therefore, the avatar information of the user and the nickname information of the user are required, and therefore, the information is used to generate an authorization message for asking the user whether to apply the avatar information and the nickname information to the web game. And if the user agrees to authorize after receiving the authorization confirmation instruction, returning the confirmation instruction to the middleware. After receiving the confirmation instruction, the middleware opens the corresponding external link and generates a webpage game page, wherein the game player of the webpage game is a new game player generated according to the nickname of the user and the head portrait of the user.
For example, fig. 4b is an interaction flow chart of a middleware responding to an interactive service request in a service response method according to an embodiment of the present invention, and referring to fig. 4b, an interaction flow of the middleware responding to the interactive service request is as follows:
in S41, the user sends an external link access service request to the middleware, where the external link access service request includes an external link address to be accessed by the user.
In S42, the middleware determines authorization information required for accessing the external link according to the access request, and obtains corresponding authorization information from the third-party service platform.
In S43, the middleware returns an authorization confirmation instruction to the user through the third-party service platform.
In S44, the user, after receiving the authorization confirmation command, determines whether to perform an authorization operation, and if the authorization is confirmed, returns a confirmation command to the middleware.
In S45, after receiving the confirmation instruction, the middleware generates an external link page according to the authorization information and the external link access service request.
In S46, the user can perform corresponding interactive operation in the external link page.
In the embodiment of the invention, the user can access the external link through the middleware and generate the corresponding external link page, and the interaction is carried out in the page, so that the service types of the user using the third-party service platform are enriched, and the use experience of the user is improved.
Fig. 5a shows a flowchart of a specific implementation of S104 in a service response method according to another embodiment of the present invention. Referring to fig. 5a, compared to the previous embodiment, the S104 in the service response method provided in this embodiment includes the following steps, which are detailed as follows:
further, as another embodiment of the present invention, the service request is a message push service request;
the responding, by the middleware, the service request includes:
in S501, receiving push setting information sent by the user; the push setting information comprises push content, push opportunity and a push object.
In this embodiment, the user may implement the function of pushing messages through the middleware. The user may be a registered user of the third-party service platform, or an unnatural user such as a micro store, a Taobao mall, or a WeChat public number.
In this embodiment, the user sends push setting information to the middleware, where the push setting information will include push content, push opportunity, and push object. The push content is information related to the message content, such as specific content, format, push template and the like of the message when the message is pushed; the push timing specifically refers to the time or trigger condition for pushing, that is, when a certain time is reached or a certain trigger condition is met, the message is pushed.
In this embodiment, after receiving the push setting information, the middleware stores the push setting information, and monitors whether the push setting information meets the corresponding push opportunity in real time, and if so, executes the relevant operation of S502; otherwise, the monitoring is continued.
In S502, when the push opportunity is satisfied, the push content is sent to the push object through the third-party service platform, and a sending result is returned to the user.
In this embodiment, when the middleware monitors that the corresponding push opportunity is met, the middleware executes the related operation of S502, invokes push content in the push setting information, generates a corresponding push message, and sends the push message to a push object corresponding to the push setting information through the third-party service platform, and after the push is completed, the middleware summarizes sending conditions, for example, the sending conditions include relevant information such as a delivery rate, a delivery duration, a viewing condition, and the like. And after the relevant sending conditions are summarized, generating a corresponding sending result and returning the sending result to the user.
For example, fig. 5b is an interaction flow diagram of a middleware response message pushing service request according to an embodiment of the present invention, and referring to fig. 5b, an interaction flow of the middleware responding to the interaction service request is as follows:
in S51, the user sends push setting information to the middleware.
In S52, the middleware monitors that the push opportunity is satisfied.
In S53, the middleware determines that the push opportunity is satisfied, and sends the push content to the third-party service platform and informs the third-party service platform of the target object to be forwarded.
In S54, after receiving the push content, the third party service platform forwards the push content to the corresponding target object, i.e. the above-mentioned push object.
In S55, after summarizing the push condition returned by the third-party service platform, the middleware returns the sending result to the user.
In the embodiment of the invention, the user can realize the function of message pushing through the middleware, thereby facilitating the timing sending of information and the one-time sending of information facing to multiple objects, reducing the operation steps of the user and improving the operation efficiency of the user.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 6 shows a schematic structural diagram of an intermediate part provided by an embodiment of the present invention, where the intermediate part includes units for performing the steps in the corresponding embodiment of fig. 1. Please refer to fig. 1 and fig. 1 for the corresponding description of the embodiment. For convenience of explanation, only the portions related to the present embodiment are shown.
Referring to fig. 6, the middleware includes:
a registration information receiving unit 61, configured to receive registration information sent by a user; the registration information comprises an identifier of a third-party service platform and login information of the user for logging in the third-party service platform;
an extra service adding unit 62, configured to add an extra service to a responsive service list corresponding to the third-party service platform for the user according to the identifier and the login information; wherein the additional service is another service outside the responsive service list;
a service receiving unit 63, configured to receive a service request sent by the user, and determine whether a service type corresponding to the service request is the additional service;
a service response unit 64, configured to respond to the service request through the middleware if the service type is an additional service.
Optionally, the login information includes user identification information and user password information;
the middleware further comprises:
a user parameter extraction unit, configured to extract user identification information and user password information included in the service request;
the user parameter matching unit is used for matching user identification information contained in the service request with user identification information of the login information and matching user password information contained in the service request with user password information contained in the login information;
and the response determining unit is used for determining whether to respond to the service request through the middleware according to the matching result.
Optionally, the service request is an interactive service request;
the service response unit 64 includes:
the interactive parameter acquisition unit is used for acquiring interactive contents and interactive object identifiers contained in the interactive service request;
the interactive content sending unit is used for sending the interactive content to the interactive equipment corresponding to the interactive object identifier according to the interactive object identifier;
and the interaction result returning unit is used for receiving the interaction result returned by the interaction equipment according to the interaction content and returning the interaction result to the user through the third-party service platform.
Optionally, the service request is an external link access service request;
the service response unit 64 includes:
the authorization information acquisition unit is used for acquiring authorization information corresponding to the user from the third-party server and returning an authorization confirmation instruction to the user through the third-party server; wherein the authorization confirmation instruction contains the authorization information;
the confirmation instruction receiving unit is used for receiving a confirmation instruction returned by the user according to the authorization confirmation instruction;
and the page generating unit is used for generating an external link page based on the authorization information and the external link access service request so that the user can interact through the external link page.
Optionally, the service request is a message push service request;
the service response unit 64 includes:
the push setting unit is used for receiving push setting information sent by the user; the push setting information comprises push content, push opportunity and a push object;
an information pushing unit, configured to send the pushed content to the pushed object through the third-party service platform when the pushing opportunity is met, and return a sending result to the user
Therefore, the middleware user provided by the embodiment of the invention can obtain the extra service authority of the third-party platform by registering in the middleware, and initiate a corresponding extra service request by using the third-party service platform, and the third-party service platform will give the middleware to respond after receiving the extra service request, thereby providing more services for the user. Therefore, in the embodiment of the invention, the user does not need to install or use a new third-party service platform, only needs to perform related registration operation, and can perform various service requests through the original third-party service platform, thereby improving the user experience. On the other hand, the middleware is more flexible in service updating and adding, so that the service requirements of the user can be used in time, and the updating efficiency and the user experience of the third-party service platform are improved.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention may be implemented in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (4)

1. A service response method, comprising:
receiving registration information sent by a user; the registration information comprises an identifier of a third-party service platform and login information of the user for logging in the third-party service platform;
adding additional services to a responsive service list corresponding to the third-party service platform of the user according to the identification and the login information; wherein the additional service is another service outside the responsive service list;
receiving a service request sent by the user, wherein the service type of the service request comprises normal services in the responsive service list and the additional service which is newly added; the normal service is a service enjoyed by a user before the user is not registered on the middleware;
judging whether the service type corresponding to the service request is the extra service or not;
if the service type is the additional service, responding the service request through middleware;
the service request includes: an interactive service request, an external link access service request and a message push service request;
if the service request is the interactive service request, acquiring interactive content and an interactive object identifier contained in the interactive service request; sending the interactive content to interactive equipment corresponding to the interactive object identifier according to the interactive object identifier; receiving an interaction result returned by the interaction equipment according to the interaction content, and returning the interaction result to the user through the third-party service platform;
if the service request is an external link access service request, obtaining authorization information corresponding to the user from the third-party service platform, and returning an authorization confirmation instruction to the user through the third-party service platform, wherein the authorization confirmation instruction comprises the authorization information; receiving a confirmation instruction returned by the user according to the authorization confirmation instruction; generating an external link page based on the authorization information and the external link access service request so that the user can interact through the external link page;
if the service request is a message push service request, receiving push setting information sent by the user; the push setting information comprises push content, push opportunity and a push object; and when the pushing opportunity is met, the pushing content is sent to the pushing object through the third-party service platform, and a sending result is returned to the user.
2. The service response method according to claim 1, wherein the login information includes user identification information and user password information;
before responding to the service request through the middleware, the method further comprises the following steps:
extracting user identification information and user password information contained in the service request;
matching user identification information contained in the service request with user identification information of the login information, and matching user password information contained in the service request with user password information contained in the login information;
and determining whether to respond to the service request through the middleware according to the matching result.
3. An intermediate piece, comprising:
the registration information receiving unit is used for receiving registration information sent by a user; the registration information comprises an identifier of a third-party service platform and login information of the user for logging in the third-party service platform;
an additional service adding unit, configured to add an additional service to a responsive service list corresponding to the third-party service platform by the user according to the identifier and the login information; wherein the additional service is another service outside the responsive service list;
a service receiving unit, configured to receive a service request sent by the user, and determine whether a service type corresponding to the service request is the additional service; the service types of the service request comprise normal services in the responsive service list and the additional services added; the normal service is a service enjoyed by a user before the user is not registered on the middleware;
a service response unit, configured to respond to the service request through a middleware if the service type is the additional service;
the service requests are interactive service requests, external link access service requests and message pushing service requests;
if the service request is the interactive service request, the service response unit includes:
the interactive parameter acquisition unit is used for acquiring interactive contents and interactive object identifiers contained in the interactive service request;
the interactive content sending unit is used for sending the interactive content to the interactive equipment corresponding to the interactive object identifier according to the interactive object identifier;
the interactive result returning unit is used for receiving an interactive result returned by the interactive equipment according to the interactive content and returning the interactive result to the user through the third-party service platform;
the service request is an external link access service request;
if the service request is an external link access service request, the service response unit includes:
the authorization information acquisition unit is used for acquiring authorization information corresponding to the user from the third-party service platform and returning an authorization confirmation instruction to the user through the third-party service platform; wherein the authorization confirmation instruction contains the authorization information;
the confirmation instruction receiving unit is used for receiving a confirmation instruction returned by the user according to the authorization confirmation instruction;
the page generating unit is used for generating an external link page based on the authorization information and the external link access service request so that the user can interact through the external link page;
if the service request is a message push service request, the service response unit includes:
the push setting unit is used for receiving push setting information sent by the user; the push setting information comprises push content, push opportunity and a push object;
and the information pushing unit is used for sending the pushed content to the pushed object through the third-party service platform and returning a sending result to the user when the pushing opportunity is met.
4. Middleware according to claim 3, wherein said login information comprises user identification information and user password information;
the middleware further comprises:
a user parameter extraction unit, configured to extract user identification information and user password information included in the service request;
the user parameter matching unit is used for matching user identification information contained in the service request with user identification information of the login information and matching user password information contained in the service request with user password information contained in the login information;
and the response determining unit is used for determining whether to respond to the service request through the middleware according to the matching result.
CN201710286520.7A 2017-04-27 2017-04-27 Service response method and middleware thereof Active CN107196917B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710286520.7A CN107196917B (en) 2017-04-27 2017-04-27 Service response method and middleware thereof
PCT/CN2018/083860 WO2018196686A1 (en) 2017-04-27 2018-04-20 Service response method and middleware thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710286520.7A CN107196917B (en) 2017-04-27 2017-04-27 Service response method and middleware thereof

Publications (2)

Publication Number Publication Date
CN107196917A CN107196917A (en) 2017-09-22
CN107196917B true CN107196917B (en) 2020-02-14

Family

ID=59873487

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710286520.7A Active CN107196917B (en) 2017-04-27 2017-04-27 Service response method and middleware thereof

Country Status (2)

Country Link
CN (1) CN107196917B (en)
WO (1) WO2018196686A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107196917B (en) * 2017-04-27 2020-02-14 威富通科技有限公司 Service response method and middleware thereof
CN108833265B (en) * 2018-06-28 2021-04-20 腾讯科技(深圳)有限公司 Message processing method, device, server and storage medium
CN110677496B (en) * 2019-10-18 2022-11-15 北京天融信网络安全技术有限公司 Middleware service scheduling method and device and readable storage medium
CN111064772B (en) * 2019-11-21 2022-08-02 深圳市优必选科技股份有限公司 Vehicle service response method and system
CN111552985B (en) * 2020-05-14 2023-01-20 支付宝(杭州)信息技术有限公司 Information verification method and device
CN112165467A (en) * 2020-09-16 2021-01-01 北京中关村银行股份有限公司 Cross-terminal access method, device, storage medium and system
CN113824795A (en) * 2021-10-21 2021-12-21 上海波顿诺华智能科技有限公司 Communication method, device and system of vehicle end and cloud end

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127743B (en) * 2007-09-29 2010-06-09 中国电信股份有限公司 Media push service method and system based on home gateway middleware
US8266104B2 (en) * 2008-08-26 2012-09-11 Sap Ag Method and system for cascading a middleware to a data orchestration engine
CN104113508B (en) * 2013-04-16 2015-11-25 腾讯科技(深圳)有限公司 Log in the method and system of third party's service platform
CN104918224A (en) * 2014-03-14 2015-09-16 中国移动通信集团江苏有限公司 Application service providing method and system and client service platform
CN104135063A (en) * 2014-08-15 2014-11-05 南车戚墅堰机车有限公司 Auxiliary diesel power generation device for internal combustion locomotive
CN104468518B (en) * 2014-11-10 2016-04-20 腾讯科技(深圳)有限公司 Business management method, device and system
CN105989070B (en) * 2015-02-10 2020-01-17 阿里巴巴集团控股有限公司 Method and system for requesting data from middleware and middleware client
CN104899817A (en) * 2015-06-26 2015-09-09 中国人民解放军第四五四医院 Mobile Internet hospital secure interaction method
CN106603462B (en) * 2015-10-13 2020-09-04 腾讯科技(深圳)有限公司 API calling method, device and system
CN105763538B (en) * 2016-01-29 2018-08-24 广州达讯网络科技有限公司 A kind of banking network method for interchanging data and its system
CN107196917B (en) * 2017-04-27 2020-02-14 威富通科技有限公司 Service response method and middleware thereof

Also Published As

Publication number Publication date
WO2018196686A1 (en) 2018-11-01
CN107196917A (en) 2017-09-22

Similar Documents

Publication Publication Date Title
CN107196917B (en) Service response method and middleware thereof
US10063547B2 (en) Authorization authentication method and apparatus
US10972908B2 (en) Wireless network connection method, apparatus, and system
US11764966B2 (en) Systems and methods for single-step out-of-band authentication
CN107302539B (en) Electronic identity registration and authentication login method and system
US10659226B2 (en) Data encryption method, decryption method, apparatus, and system
CN108337210B (en) Equipment configuration method, device and system
CN107241336B (en) Identity verification method and device
WO2019134303A1 (en) Live stream room popularity processing method and apparatus, server and storage medium
CN111723889B (en) Code scanning login method, graphic code display method, device, equipment and storage medium
US11177963B2 (en) Method for authenticating a user based on an image relation rule and corresponding first user device, server and system
CN106470145B (en) Instant messaging method and device
CN103036852A (en) Method and device for achieving network login
KR101379711B1 (en) Method for file encryption and decryption using telephone number
EP3079329B1 (en) Terminal application registration method, device and system
CN110601850B (en) Scenic spot information recording method, related equipment and storage medium
CN109460647B (en) Multi-device secure login method
CN115473655B (en) Terminal authentication method, device and storage medium for access network
US20150156173A1 (en) Communication system utilizing fingerprint information and use thereof
JP6325654B2 (en) Network service providing apparatus, network service providing method, and program
CN102065026A (en) Device and method for authenticating object to be loaded
CN108769989B (en) Wireless network connection method, wireless access device and equipment
CN112084485A (en) Data acquisition method, device, equipment and computer storage medium
CN111835734A (en) Information processing method, information processing device, electronic equipment, server and storage medium
Yeh et al. A robust NFC-based personalized IPTV service system

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
CB02 Change of applicant information

Address after: 518000 Guangdong city of Shenzhen province Nanshan District South Road No. 009 High Technology Park Building No. three on the 25 floor

Applicant after: Weifutong Technology Co., Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District South Road No. 009 High Technology Park Building No. three on the 25 floor

Applicant before: Shenzhen Technology Co., Ltd. Fortis Fortis

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant