WO2018196686A1 - Service response method and middleware thereof - Google Patents

Service response method and middleware thereof Download PDF

Info

Publication number
WO2018196686A1
WO2018196686A1 PCT/CN2018/083860 CN2018083860W WO2018196686A1 WO 2018196686 A1 WO2018196686 A1 WO 2018196686A1 CN 2018083860 W CN2018083860 W CN 2018083860W WO 2018196686 A1 WO2018196686 A1 WO 2018196686A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
user
service request
information
middleware
Prior art date
Application number
PCT/CN2018/083860
Other languages
French (fr)
Chinese (zh)
Inventor
鲜丹
Original Assignee
威富通科技有限公司
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 威富通科技有限公司 filed Critical 威富通科技有限公司
Publication of WO2018196686A1 publication Critical patent/WO2018196686A1/en

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present solution applies to the field of network technology and provides a service response method and middleware thereof. The method comprises: receiving registration information sent by a user; adding, according to an identifier and log-in information, an additional service to a corresponding responsive service list for the user on a third party service platform, wherein the additional service is a service in addition to those on the responsive service list; receiving a service request sent by the user, and determining whether the service type corresponding to the service request is the additional service; and if so, responding to the service request via middleware. According to the present invention, a user can register with middleware, obtain an additional service permission for a third party platform, and issue a respective additional service request using the third party service platform. The third party service platform receives the additional service request, and then assigns the same to the middleware to respond to. In this way, the present invention provides more services to a user, and solves problems of current third party service platforms such as failure to satisfy a large number of service requests from a user and poor user experience.

Description

一种服务响应方法及其中间件Service response method and middleware thereof 技术领域Technical field
本发明属于网络技术领域,尤其涉及一种服务响应方法及其中间件。The invention belongs to the technical field of networks, and in particular relates to a service response method and a middleware thereof.
背景技术Background technique
随着网络服务的种类越来越多,用户常常需要通过第三方服务平台获取相应的网络服务。但由于第三方服务平台的开发周期长,以及更新成本较大,无法及时地更新该平台的服务种类。With the increasing variety of network services, users often need to obtain corresponding network services through third-party service platforms. However, due to the long development cycle of the third-party service platform and the large update cost, it is impossible to update the service types of the platform in time.
举例性地,当第三方服务平台为微信公众号平台时,用户只可以在该平台提供的服务按键中选择所需的服务,如群发图文信息、回答粉丝疑问等一般服务,但对于个性化服务或者特殊性服务等额外服务将无法进行响应,如用户的粉丝数逐渐增多,需要在管理该微信公众号中的粉丝并进行相关的粉丝分析,用户只可以手动获取粉丝资料并通过人工或其他软件完成,无法直接通过微信服务平台进行上述的操作。可见,现有第三方服务平台,无法满足用户多种类的服务请求,用户体验度低。For example, when the third-party service platform is the WeChat public number platform, the user can only select the required services in the service buttons provided by the platform, such as group messaging information, answering fan questions, and the like, but for personalization. Additional services such as services or special services will not be able to respond. For example, the number of fans of users is gradually increasing. Fans in the WeChat public account need to be managed and relevant fan analysis is performed. Users can only manually obtain fan data and manually or otherwise The software is completed and cannot be directly operated through the WeChat service platform. It can be seen that the existing third-party service platform cannot satisfy the user's multiple types of service requests, and the user experience is low.
技术问题technical problem
本发明实施例的目的在于提供一种基于中间件的服务响应方法及其中间件,旨在解决现有第三方服务平台,无法满足用户大量的服务请求,用户体验度低的问题。The purpose of the embodiments of the present invention is to provide a middleware-based service response method and a middleware thereof, which are intended to solve the problem that the existing third-party service platform cannot satisfy a large number of service requests of the user and has low user experience.
技术解决方案Technical solution
本发明实施例提供一种服务响应方法,所述服务响应方法包括:An embodiment of the present invention provides a service response method, where the service response method includes:
接收用户发送的注册信息;其中,所述注册信息包含第三方服务平台的标识以及所述用户登录所述第三方服务平台的登录信息;Receiving registration information sent by the user, where the registration information includes an identifier of the third-party service platform and login information of the user logging in to the third-party service platform;
根据所述标识以及登录信息,将额外服务添加至所述用户在所述第三方服务平台对应的可响应服务列表;其中,所述额外服务为所述可响应服务列表外的其他服务;Adding, according to the identifier and the login information, an additional service to the list of respondable services corresponding to the user on the third-party service platform; wherein the additional service is another service outside the list of respondable services;
接收所述用户发送的服务请求,并判断所述服务请求对应的服务类型是否为所述额外服务;Receiving a service request sent by the user, and determining whether the service type corresponding to the service request is the additional service;
若所述服务类型为额外服务,则通过中间件响应所述服务请求。If the service type is an additional service, the service request is responded to by the middleware.
有益效果Beneficial effect
实施本发明实施例提供的一种服务响应方法及其中间件具有以下有益效果:A service response method and an intermediate piece thereof provided by embodiments of the present invention have the following beneficial effects:
本发明实施例中用户通过在中间件进行注册,获得第三方平台的额外服务权限,并利用第三方服务平台发起相应的额外服务请求,第三方服务平台在接收到额外服务请求后,将交由中间件进行响应,从而为用户提供更多服务。可见,本发明实施例中,用户不需要安装或使用新的第三方服务平台,只需进行相关的注册操作,则可通过原有的第三方服务平台进行多样的服务请求,提高用户体验度。另一方面,由于中间件进行服务更新以及添加较为灵活,从而可及时使用用户的服务需求,提高了第三方服务平台的更新效率以及用户体验度。In the embodiment of the present invention, the user obtains additional service rights of the third-party platform by registering in the middleware, and uses the third-party service platform to initiate a corresponding additional service request, and the third-party service platform will hand over the additional service request after receiving the additional service request. The middleware responds to provide more services to the user. It can be seen that, in the embodiment of the present invention, the user does not need to install or use a new third-party service platform, and only needs to perform related registration operations, and then can perform various service requests through the original third-party service platform, thereby improving user experience. On the other hand, because the middleware performs service update and the addition is more flexible, the user's service demand can be used in time, and the update efficiency and user experience of the third-party service platform are improved.
附图说明DRAWINGS
图1是本发明实施例提供的一种服务响应方法的流程图;FIG. 1 is a flowchart of a service response method according to an embodiment of the present invention;
图2是本发明另一实施例提供的一种服务响应方法的流程图;2 is a flowchart of a service response method according to another embodiment of the present invention;
图3a是本发明另一实施例提供的一种服务响应方法中S207的具体实现示意图;FIG. 3 is a schematic diagram of a specific implementation of S207 in a service response method according to another embodiment of the present invention;
图3b是本发明另一实施例提供的一种服务响应方法中中间件响应互动服务请求的交互流程图;FIG. 3b is a flow chart of interaction of a middleware response interactive service request in a service response method according to another embodiment of the present invention; FIG.
图4a是本发明另一实施例提供的一种服务响应方法中S207的具体实现示意图;FIG. 4 is a schematic diagram of a specific implementation of S207 in a service response method according to another embodiment of the present invention;
图4b是本发明另一实施例提供的一种服务响应方法中中间件响应外部链接访问服务请求的交互流程图;4b is a flow chart of interaction of a middleware in response to an external link access service request in a service response method according to another embodiment of the present invention;
图5a是本发明另一实施例提供的一种服务响应方法中S104的具体实现示意图;FIG. 5 is a schematic diagram of a specific implementation of S104 in a service response method according to another embodiment of the present invention;
图5b是本发明另一实施例提供的一种服务响应方法中中间件响应消息推送服务请求的交互流程图;FIG. 5b is a flow chart of interaction of a middleware response message push service request in a service response method according to another embodiment of the present invention;
图6是本发明一实施例提供的一种中间件的结构示意图。FIG. 6 is a schematic structural diagram of an intermediate member according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
图1示出了本发明实施例提供的一种服务响应方法的实现流程图,详述如下:FIG. 1 is a flowchart of an implementation of a service response method according to an embodiment of the present invention, which is described in detail as follows:
在S101中,接收用户发送的注册信息;其中,所述注册信息包含第三方服务平台的标识以及所述用户登录所述第三方服务平台的登录信息。In S101, the registration information sent by the user is received; wherein the registration information includes an identifier of the third-party service platform and login information of the user logging in to the third-party service platform.
在本实施例中,用户通过通信网络向中间件发送注册消息,中间件在接收到该注册消息后,将提取注册信息包含的第三方服务平台的标识以及用户登录第三方服务平台的登录信息。In this embodiment, the user sends a registration message to the middleware through the communication network. 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 to 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, it is necessary to first determine the third-party service platform that the user needs to add the service according to the identifier of the third-party service platform, and according to the user. The related service addition operation is performed on the login information corresponding to the third service platform. For example, if the middleware can provide additional services on three third-party service platforms: WeChat, Alipay, and Weibo, the registration information sent by the user indicates a third-party service platform that needs to perform service extension, such as WeChat, and provides login WeChat. Login information.
可选地,在本实施例中,中间件的存储器内存储有可扩展服务列表,该可扩展服务列表中记载了该中间件已被授权对其添加额外服务的第三方服务平台的标识。中间件在接收到用户发送的注册信息后,将提取注册信息中包含的第三方服务平台的标识,并查询该可扩展服务列表中是否包含该注册信息中的标识。若可扩展服务列表中包含该标识,则执行S102的相关步骤;反之,若可扩展服务列表中不包含该标识,则返回不支持信息给用户或转发至其他可支持该标识对应的第三方服务平台的中间件,也可以直接忽略该注册信息,不进行响应。Optionally, in this embodiment, the middleware's memory stores an extensible service list, and the extensible service list records the identifier of the third-party service platform that the middleware has been authorized to add additional services to. After receiving the registration information sent by the user, the middleware extracts the identifier of the third-party service platform included in the registration information, and queries whether the identifier in the registration information is included in the extensible service list. If the identifier is included in the extensible service list, the relevant step of S102 is performed; otherwise, if the identifier is not included in the extensible service list, the unsupported information is returned to the user or forwarded to other third-party services that can support the identifier. The middleware of the platform can also directly ignore the registration information and not respond.
在本实施例中,中间件可与第三方服务器或用户的终端设备之间相连。若中间件部署于第三方服务器内,用户将注册信息发送给中间件服务器,中间件服务器根据注册信息中的第三方服务器平台标识,将该注册信息发送给对应的第三方服务器内的中间件,中间件通过中间件服务器接收到用户发送的注册信息,并执行相关的服务响应操作。若中间件部署于用户的终端设备内,则直接通过用户终端设备内部的通信信道,接收用户发送的注册信息。In this embodiment, the middleware can be connected to a third-party server or a user's terminal device. If the middleware is deployed in the third-party server, the user sends the registration information to the middleware server, and the middleware server sends the registration information to the middleware in the corresponding third-party server according to the third-party server platform identifier in the registration information. The middleware receives the registration information sent by the user through the middleware server, and performs related service response operations. If the middleware is deployed in the terminal device of the user, the registration information sent by the user is directly received through the communication channel inside the user terminal device.
在本实施例中,若中间件为独立网络设备部署于用户与第三方服务器的通信网络中,用户可基于中间件的网络地址或中间件的注册平台直接向其发送注册信息;也可以通过第三方服务平台,通过第三方服务平台转发至对应的中间件,可选地,在该情况下,用户在生成注册信息时不需要输入第三方服务平台的标识,第三方服务平台在接收到该注册信息后,将其对应的标识添加至该用户发送的注册信息内,并将该信息转发给中间件。In this embodiment, if the middleware is deployed in a communication network between the user and the third-party server, the user may directly send registration information to the user based on the network address of the middleware or the registration platform of the middleware; The three-party service platform is forwarded to the corresponding middleware through the third-party service platform. 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 the third-party service platform receives the registration. After the information, the corresponding identifier is added to the registration information sent by the user, and the information is forwarded to the middleware.
在S102中,根据所述标识以及登录信息,将额外服务添加至所述用户在所述第三方服务平台对应的可响应服务列表;其中,所述额外服务为所述可响应服务列表外的其他服务。In S102, adding, according to the identifier and the login information, an additional service to the list of respondable services corresponding to the user on the third-party service platform; wherein the additional service is other than the list of respondable services service.
在本实施例中,中间件在获取到用户发送的注册信息后,将提取注册信息中的第三方服务平台的标识以及对应的登录信息,并根据该标识确定所需扩展服务的第三方服务平台,根据用户的登录信息确定该用户在第三方平台中对应的账户信息。In this embodiment, after obtaining the registration information sent by the user, the middleware extracts the identifier of the third-party service platform in the registration information and the corresponding login information, and determines the third-party service platform of the extended service according to the identifier. And determining, according to the login information of the user, the account information corresponding to the user in the third-party platform.
在本实施例中,中间件根据第三方平台的标识,确定用户在该第三方服务平台的可响应服务列表,并根据该可响应服务列表确定对应的额外服务项。In this embodiment, the middleware determines a list of respondable services 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 list of respondable services.
在本实施例中,用户需使用第三方服务平台进行相关的服务操作,应具备对应的个人账户,而每个账户将对应一个可响应服务列表,其中,可响应服务列表用于指示该第三方服务平台可响应的服务请求种类。In this embodiment, the user needs to use a third-party service platform to perform related service operations, and should have a corresponding personal account, and each account will correspond to a list of respondable services, wherein the respondable service list is used to indicate the third party. The type of service request that the service platform can respond to.
在本实施例中,由于中间件用于为第三方服务平台提供额外的服务内容,而额外的服务内容为该用户在其对应的账户权限内无法进行操作的,为了使得第三方服务平台可处理相关的服务请求,并将对应的服务请求交由中间件进行响应操作,因此将额外服务添加至用户的可响应服务列表内。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 corresponding account authority, in order to enable the third-party service platform to process The related service request, and the corresponding service request is handed over to the middleware for response operation, so the additional service is added to the user's list of respondable services.
在S103中,接收所述用户发送的服务请求,并判断所述服务请求对应的服务类型是否为所述额外服务。In S103, a service request sent by the user is received, and it is determined whether the service type corresponding to the service request is the additional service.
在本实施例中,用户在获得额外服务的使用权限后,将可以在第三方服务平台中进行相应的额外服务操作。因而,用户在第三方服务平台中发起的服务种类包括原本可响应服务列表内的正常服务以及新增的额外服务两种,其中需要说明的是,正常服务具体为用户在未在中间件上进行注册前已享受的服务。In this embodiment, after obtaining the usage rights of the additional service, the user may perform corresponding additional service operations in the third-party service platform. Therefore, the types of services initiated by the user in the third-party service platform include two types of services that are originally responsive to the service list and additional services that are added, and it should be noted that the normal service is specifically that the user is not working on the middleware. Services that have been enjoyed before registration.
在本实施例中,中间件在接收到用户通过发送的服务请求后,将判断该服务请求是否属于额外服务,若是,则执行S104的相关操作,若不是,则不进行响应,交由第三方服务平台直接进行相关的服务响应。其中,用户可通过第三方服务平台发起相关的服务请求,也可以通过其他方式,如直接向中间件通信或通过其他第三方服务平台向中间件发送服务请求。In this embodiment, after receiving the service request sent by the user, the middleware determines whether the service request belongs to the additional service, and if yes, performs the related operation of S104, if not, does not respond, and is handed over to the third party. The service platform directly performs related service responses. The user may initiate a related service request through a third-party service platform, or may send a service request to the middleware through other means, such as directly communicating to the middleware or through other third-party service platforms.
在S104中,若所述服务类型为额外服务,则通过中间件响应所述服务请求。In S104, if the service type is an additional service, the service request is responded to by the middleware.
在本实施例中,中间件已根据服务请求的服务类型确定该服务请求为额外服务,则根据不同的服务类型,执行相应的服务流程操作,从而响应用户的服务请求。In this embodiment, the middleware has determined that the service request is an additional service according to the service type of the service request, and then performs a corresponding service flow operation according to different service types, thereby responding to the user's service request.
以上可以看出,本发明实施例提供的一种服务响应方法用户通过在中间件进行注册,获得第三方平台的额外服务权限,并利用第三方服务平台发起相应的额外服务请求,第三方服务平台在接收到额外服务请求后,将交由中间件进行响应,从而为用户提供更多服务。可见,本发明实施例中,用户不需要安装或使用新的第三方服务平台,只需进行相关的注册操作,则可通过原有的第三方服务平台进行多样的服务请求,提高用户体验度。另一方面,由于中间件进行服务更新以及添加较为灵活,从而可及时使用用户的服务需求,提高了第三方服务平台的更新效率以及用户体验度。It can be seen that the service response method provided by the embodiment of the present invention obtains the additional service authority of the third-party platform by registering in the middleware, and initiates the corresponding additional service request by using the third-party service platform, and the third-party service platform. After receiving an additional service request, it will be handed over to the middleware to respond, thus providing more services to the user. It can be seen that, in the embodiment of the present invention, the user does not need to install or use a new third-party service platform, and only needs to perform related registration operations, and then can perform various service requests through the original third-party service platform, thereby improving user experience. On the other hand, because the middleware performs service update and the addition is more flexible, the user's service demand can be used in time, and the update efficiency and user experience of the third-party service platform are improved.
图2示出了本发明另一实施例提供的一种服务响应方法的具体实现流程图。参见图2所述,相对于上一实施例,本实施例提供的一种基于中间件的服务响应方法包含以下步骤,详述如下:进一步地,作为本发明另一实施例,所述登录信息包含用户标识信息以及用户密码信息;所述通过中间件响应所述服务请求之前,还包括:FIG. 2 is a flowchart of 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, a middleware-based service response method provided by this embodiment includes the following steps, which are described in detail as follows: Further, as another embodiment of the present invention, the login information is used. The user identification information and the user password information are included; before the middleware responds to the service request, the method further includes:
在S204中,提取所述服务请求包含的用户标识信息以及用户密码信息。In S204, user identification information and user password information included in the service request are extracted.
在本实施例中,用户在中间件进行注册时发送的注册信息将包含登录第三方服务平台的登录信息,其中该登录信息将包含用户标识信息以及用户密码信息。用户标识信息包括但不限于:用户名称、用户身份号(identity,ID号)、关联手机号、邮箱等。用户密码信息包括但不限于:用户登录密码信息、用户与第三方服务平台通信的公钥信息以及私钥信息等。In this embodiment, the registration information sent by the user when the middleware is registered will include login information of the third-party service platform, wherein the login information will include the user identification information and the user password information. The user identification information includes, but is not limited to, a user name, a user identity number (identity, ID number), an associated mobile phone number, a mailbox, and the like. The user password information includes, but is not limited to, user login password information, public key information of the user communicating with the third party service platform, and private key information.
在本实施例中,由于用户是通过第三方服务平台发起服务请求的,属于用户与第三方服务平台之间的一种交互内容。因此该服务请求将包含有用户的标识信息以及用户的密码信息,以便于标示该服务请求对应的用户的账户。In this embodiment, since the user initiates the service request through the third-party service platform, it belongs to an interactive content between the user and the third-party service platform. Therefore, the service request will contain the user's identification information and the user's password information in order to indicate 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 by using a preset user parameter extraction rule. The preset user parameter extraction rule may be: directly reading the corresponding field content in the service request, and using the content of the field as the user identification information or the user password information; if the service request has been encrypted, the middleware may The service request is decrypted by a preset decryption key, and then the related information is read, the decryption key being a middleware and a key agreed by the third party service platform for decrypting the information.
在S205中,将所述服务请求包含的用户标识信息与所述登录信息的用户标识信息进行匹配,以及将所述服务请求包含的用户密码信息与所述登录信息包含的用户密码信息进行匹配。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, and matches the user password information included in the service request and the user password information of the login information, if both match successfully. If the matching request is unsuccessful, that is, if the user identification information does not match or the user password information does not match, it is determined that the service request is incorrect or illegal.
在本实施例中,匹配的方式包括但不限于:直接比较两个信息是否一致,或者通过对应的映射规则对信息进行映射后,得到的结果是否一致。In this embodiment, the matching manner includes, but is not limited to, directly comparing whether the two information are consistent, or mapping the information through the corresponding mapping rule, and whether the obtained result is consistent.
在S206中,根据匹配结果确定是否通过所述中间件响应所述服务请求。In S206, it is determined whether to respond to the service request by 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 all successfully matched, the service request is responded; otherwise, if the user identification information or the user password information included in the service request is unsuccessful, the identity information is returned. There is a misinformation to inform the user that the correct service request needs to be regenerated, or the service request is directly discarded, and no related processing is performed.
在本发明实施例中,中间件通过提取服务请求中的用户标识信息以及用户密码信息,将其与已登记的相应信息进行匹配,从而确定该服务请求是否合法,提高了中间件响应服务的安全性,避免不法分子冒充合法用户发起相关的服务操作。In the embodiment of the present invention, the middleware matches the user identification information and the user password information in the service request to match the registered corresponding information, thereby determining whether the service request is legal, and improving the security of the middleware response service. Sexuality, to avoid criminals posing as legitimate users to initiate related service operations.
需要说明的是,在本实施例中,由于S201与S101的相关操作完成相同,S202与S102的相关操作完全相同。S203与S103的相关操作完全相同,S207与S104的相关操作完全相同,因此S201、S202、S203以及S207的相关内容可参见S101至S104的相关阐述,在此不再赘述。It should be noted that, in this embodiment, since the related operations of S201 and S101 are completed identically, the related operations of S202 and S102 are completely the same. The related operations of S203 and S103 are exactly the same, and the related operations of S207 and S104 are completely the same. Therefore, the related content of S201, S202, S203, and S207 can be referred to the related descriptions of S101 to S104, and details are not described herein again.
图3a示出了本发明另一实施例提供的一种服务响应方法中S207的具体实现流程图。参见图3a所述,相对于上一实施例,本实施例提供的一种服务响应方法中S207包含以下多个步骤,详述如下:进一步地,作为本发明另一实施例,所述服务请求为互动服务请求;所述通过中间件响应所述服务请求,包括:FIG. 3a is a flowchart showing a specific implementation of S207 in a service response method according to another embodiment of the present invention. Referring to FIG. 3a, in the service response method provided by this embodiment, S207 includes the following multiple steps, which are described in detail as follows: Further, as another embodiment of the present invention, the service request Requesting for an interactive service; the responding to the service request by the middleware includes:
在S301中,获取所述互动服务请求包含的互动内容以及互动对象标识。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. Since the interactive service request requires the user and the interactive party to perform information interaction, the interactive service request includes an interactive object identifier for indicating the 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. The interactive object identifier includes, but is not limited to, a network address of the interactive object, a user identifier information of the interactive object, or a third-party service platform identifier.
在本实施例中,用户的互动对象可以为多个用户,其中,多个用户间可基于同一个第三方服务平台进行互动,也可以分别为不同第三方服务平台的多个用户。In this embodiment, the user's interactive object may be multiple users, wherein multiple users may interact based on the same third-party service platform, or may be multiple users of different third-party service platforms.
在本实施例中,用户的互动对象也可以为第三方服务平台,即用户可以与第三方服务平台进行相应的互动操作,其中,该请求互动的第三方服务平台可与用户操作的第三方服务平台一致或不同。In this embodiment, the interactive object of the user may also be a third-party service platform, that is, the user may perform corresponding interaction operations with the third-party service platform, wherein the third-party service platform that requests the interaction may be related to the third-party service operated by the user. The platform is consistent or different.
在S302中,根据所述互动对象标识,向所述互动对象标识对应的互动设备发送所述互动内容。In S302, the interactive content is sent to the interactive device corresponding to the interactive object identifier according to the interaction object identifier.
在本实施例中,中间件根据互动对象标识,确定互动对象对应的互动设备,并向该互动设备转发互动服务请求中的互动内容。其中,若互动对象包含多个,将分别确定不同互动对星标识对应的互动设备,并互动内容同时发送给多个互动设备。In this embodiment, the middleware determines the interactive device corresponding to the interactive object according to the interaction object identifier, and forwards the interactive content in the interactive service request to the interactive device. Wherein, if the interactive object comprises more than one, the interactive devices corresponding to the different interactive pairs of the star identifiers are respectively determined, and the interactive content is simultaneously sent to the plurality of interactive devices.
在S303中,接收所述互动设备根据所述互动内容返回的互动结果,并将所述互动结果通过所述第三方服务平台返回给所述用户。In S303, an interaction result returned by the interactive device according to the interactive 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 operations according to the interactive content, obtains an interaction result corresponding to the interactive content, and returns the result to the middleware. After receiving the interaction result, the middleware will return the interaction result to the user through the third-party service platform.
在本实施例中,互动结果与互动内容是相对应的。举例性地,若用户只是需要将某个文件发送给互动设备,则互动设备在接收到该文件后则直接返回成功接收指令即可;若用户是需要将某个数据发送给互动设备进行运算处理的,则互动设备在接收到该数据后将进行相应的操作,得到对应的计算结果,该互动结果将包含该计算结果。In this embodiment, the interaction result corresponds to the interactive content. For example, if the user only needs to send a file to the interactive device, the interactive device directly returns a successful receiving instruction after receiving the file; if the user needs to send a certain data to the interactive device for arithmetic processing After receiving the data, the interactive device will perform corresponding operations to obtain a corresponding calculation result, and the interaction result will include the calculation result.
在本实施例中,若用户的互动请求涉及多个互动对象,中间件可汇总各个互动对象反馈的互动结果后,再统一发送给用户;也可以在接收到任一互动设备反馈的互动结果,直接进行转发。In this embodiment, if the user's interaction request involves multiple interaction objects, the middleware may summarize the interaction results of the interactions of the interaction objects, and then uniformly send the results to the user; or may receive the interaction result of any interactive device feedback. Forward directly.
举例性地,图3b为本发明一实施例提供的一种服务响应方法中中间件响应互动服务请求的交互流程图,参见图3b所示,该中间件响应互动服务请求的交互流程如下:For example, FIG. 3b is a flow chart of interaction of a middleware response interactive service request in a service response method according to an embodiment of the present invention. Referring to FIG. 3b, the interaction process of the middleware response interactive service request is as follows:
在S31中,用户将通过第三方服务平台生成一个互动服务请求,该互动服务请求中包含互动对象标识以及互动内容。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.
在S32中,第三方服务平台将该互动服务请求发送给中间件。In S32, the third party service platform sends the interactive service request to the middleware.
在S33中,中间件判断该互动服务请求是否属于额外服务,若是,则提取互动服务请求中的用户登录信息以及用户密码信息,并将上述两个信息与用户的注册信息进行匹配,若匹配成功,则响应该互动服务请求。In S33, the middleware determines whether the interactive service request belongs to an additional service, and if so, extracts the user login information and the user password information in the interactive service request, and matches the two pieces of information with the user registration information, if the matching is successful. , in response to the interactive service request.
在S34中,中间件根据互动服务请求信息中包含的互动对象标识,确定对应的互动设备,并将互动内容发送给该互动设备。In S34, the middleware determines the 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.
在S35中,互动设备进行将根据互动内容,生成互动结果,并将该互动结果发送给中间件。In S35, the interactive device performs an interaction result based on the interactive content, and sends the interaction result to the middleware.
在S36中,中间件接收到该互动结果后,将通过第三方服务平台将该互动结果返回给用户。In S36, after receiving the interaction result, the middleware will return the interaction result to the user through the third party service platform.
在本发明实施例中,用户通过中间件发起互动服务请求,从而实现了响应用户与其他用户或设备进行互动服务的请求。由于某些第三方服务平台只能单向进行信息传递,无法实现互动的功能,而用户通过该中间件,将获得额外的服务,即互动服务的功能。另一方面,中间件也扩展了可互动的对象,一般情况下,用户的互动对象只可以为第三方服务平台中的用户,而无法与其他第三方服务平台或其他第三方服务平台的用户进行互动,可见,本发明实施例提高了用户的体验度以及操作的便捷性。In the embodiment of the present invention, the user initiates an interactive service request through the middleware, thereby implementing a request for the user to interact with other users or devices. Because some third-party service platforms can only transfer information in one direction, they can't realize the interactive function, and users can get additional services through the middleware, that is, the function of interactive services. On the other hand, the middleware also expands the interactive objects. In general, the user's interactive objects can only be used by users in the third-party service platform, but not with other third-party service platforms or other third-party service platforms. It can be seen that the embodiment of the invention improves the user experience and the convenience of operation.
图4a示出了本发明另一实施例提供的一种服务响应方法中S207的具体实现流程图。参见图4a所述,相对于上一实施例,本实施例提供的一种服务响应方法中S207包含以下多个步骤,详述如下:进一步地,作为本发明另一实施例,所述服务请求为外部链接访问服务请求;所述通过中间件响应所述服务请求,包括:FIG. 4a is a flowchart showing a specific implementation of S207 in a service response method according to another embodiment of the present invention. Referring to FIG. 4a, in the service response method provided by this embodiment, S207 includes the following multiple steps, which are described in detail as follows: Further, as another embodiment of the present invention, the service request Accessing a service request for an external link; the responding to the service request by the middleware includes:
在S401中,从所述第三方服务器获取所述用户对应的授权信息,并通过所述第三方服务器向所述用户返回授权确认指令;其中,所述授权确认指令包含所述授权信息。In S401, the authorization information corresponding to the user is obtained from the third-party server, and an authorization confirmation instruction is returned to the user by the third-party server; wherein the authorization confirmation instruction includes the authorization information.
在本实施例中,用户在使用第三方服务平台时,若需要打开对应的外部链接,则会生成一个外部链接访问服务请求,并将该服务请求发送给中间件,中间件在接收到该服务请求后,将执行S401的相关操作。In this embodiment, when the third-party service platform is used, if the user needs to open the corresponding external link, an external link access service request is generated, and the service request is sent to the middleware, and the middleware receives the service. After the request, the related operations of S401 will be performed.
在本实施例中,在响应用户的访问服务请求前,中间件会先根据该外部链接所指向的地址,确定响应该外部链接所需使用到的用户信息,并根据所需使用到的用户信息生成对应的授权信息,用户在接收到该授权信息后,可确定是否将对应的用户信息应用到该外部链接中。In this embodiment, before responding to the user's access service request, the middleware first determines the user information required to respond to the external link according to the address pointed to by the external link, and according to the user information required to be used. The corresponding authorization information is generated, and after receiving the authorization information, the user may determine whether the corresponding user information is applied to the external link.
在本实施例中,由于中间件并没有记录授权信息内所需的用户信息,因此,中间件将通过第三方服务平台,获取该外部链接所需的用户信息,并根据用户在第三方服务平台登记的信息,得到对应的授权信息。In this embodiment, since the middleware does not record the user information required in the authorization information, the middleware will obtain the user information required by the external link through the third-party service platform, and according to the user in the third-party service platform. The registered information is obtained with the corresponding authorization information.
在本实施例中,中间件在生成到对应的授权信息后,将该授权信息通过第三方服务平台,返回到该用户,等待用户的进行授权确认。若用户确定可将相关的用户信息应用到该外部链接中,则会发送确认指令到中间件,中间件则执行S402的相关操作;反之,若用户不同意将相关的用户信息应用到该外部链接中,则会返回服务中止指令到中间件,中间件在接收到该服务中止指令后,将停止继续响应该外部链接访问服务请求,从而保护用户的隐私。In this embodiment, after generating the corresponding authorization information, the middleware returns the authorization information to the user through the third-party service platform, and waits for the user to perform authorization confirmation. If the user determines that the relevant user information can be applied to the external link, the confirmation command is sent to the middleware, and the middleware performs the related operation of S402; otherwise, if the user does not agree to apply the related user information to the external link. In the middle, the service abort instruction is returned to the middleware, and after receiving the service abort instruction, the middleware will stop responding to the external link access service request, thereby protecting the privacy of the user.
在S402中,接收用户根据所述授权确认指令返回的确认指令。In S402, a confirmation instruction returned by the user according to the authorization confirmation instruction is received.
在本实施例中,用户在确认将上述的授权信息应用到该外部链接访问操作中时,将向中间件返回一个确认指令,中间件在接收到该确认指令后,将执行S403的相关操作;若中间件在预设的时间内,并没有收到用户发送的确认指令,则判断用户不同意进行授权操作,将中止该外部链接访问服务请求的响应流程。In this embodiment, when the user confirms that the authorization information is applied to the external link access operation, an acknowledgement instruction is returned to the middleware, and after receiving the confirmation instruction, the middleware performs the related operation of S403; If the middleware does not receive the confirmation command sent by the user within the preset time, it is judged that the user does not agree to perform the authorization operation, and the response process of the external link access service request is suspended.
在S403中,基于所述授权信息以及所述外部链接访问服务请求,生成外部链接页面,以便所述用户通过所述外部链接页面进行互动。In S403, an external link page is generated based on the authorization information and the external link access service request, so that the user interacts through the external link page.
在本实施例中,中间件确认用户同意将授权信息应用到该外部链接中,则提取授权信息中的用户信息,并将该用户信息作为用户的访问外部链接的身份标识,生产对应的外部链接页面。In this embodiment, the middleware confirms that the user agrees to apply the authorization information to the external link, extracts the user information in the authorization information, and uses the user information as the identity identifier of the user to access the external link, and generates the corresponding external link. page.
在本实施例中,用户可以在该生产的外部链接页面中进行响应的互动。举例性地,该外部链接为一网页游戏,因此需要用到用户的头像信息以及用户的昵称信息,因此将上述信息生成一个授权信息,用于询问用户是否将头像信息以及昵称信息应用到该网页游戏中。若用户在接收到该授权确认指令后,同意进行授权,将返回确认指令给到中间件。中间件在接收到该确认指令后,将打开对应的外部链接,并生产网页游戏页面,其中该网页游戏的游戏玩家为根据用户的昵称以及用户头像生产的一个新游戏玩家。In this embodiment, the user can interact in response to the external link page of the production. For example, the external link is a web game, so the user's avatar information and the user's nickname information are needed, so the above information is generated to generate an authorization information for asking the user whether to apply the avatar information and the nickname information to the webpage. in the game. If the user agrees to authorize after receiving the authorization confirmation command, a confirmation command will be returned to the middleware. After receiving the confirmation command, the middleware will open the corresponding external link and produce a web game page, wherein the game player of the web game is a new game player produced according to the user's nickname and the user's avatar.
举例性地,图4b为本发明一实施例提供的一种服务响应方法中中间件响应互动服务请求的交互流程图,参见图4b所示,该中间件响应互动服务请求的交互流程如下:For example, FIG. 4b is a flowchart of interaction of a middleware response interactive service request in a service response method according to an embodiment of the present invention. Referring to FIG. 4b, the interaction process of the middleware response interactive service request is as follows:
在S41中,用户将外部链接访问服务请求发送给中间件,该外部链接访问服务请求中将包含用户所需访问的外部链接地址。In S41, the user sends an external link access service request to the middleware, and the external link access service request will contain the external link address that the user needs to access.
在S42中,中间件将根据该访问请求,确定访问该外部链接时所需要的授权信息,并向第三方服务平台获取对应的授权信息。In S42, the middleware determines the authorization information required to access the external link according to the access request, and acquires the corresponding authorization information from the third-party service platform.
在S43中,中间件通过第三方服务平台向用户返回授权确认指令。In S43, the middleware returns an authorization confirmation instruction to the user through the third party service platform.
在S44中,用户在接收到该授权确认指令后,将判断是否进行授权操作,若确认授权,则返回确认指令给中间件。In S44, after receiving the authorization confirmation command, the user will judge whether to perform the authorization operation, and if the authorization is confirmed, return the confirmation command to the middleware.
在S45中,中间件在接收到该确认指令后,将根据所述授权信息以及所述外部链接访问服务请求,生成外部链接页面。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.
在S46中,用户可在该外部链接页面中进行相应的互动操作。In S46, the user can perform corresponding interaction operations in the external link page.
在本发明实施例中, 用户可通过中间件实现外部链接的访问,并生成对应的外部链接页面,在该页面中进行互动,丰富了用户在使用第三方服务平台的服务种类,从而提高了用户的使用体验度。In the embodiment of the present invention, the user can access the external link through the middleware, and generate a corresponding external link page, and interact in the page, enriching the service type of the user using the third-party service platform, thereby improving the user. The experience of using it.
图5a示出了本发明另一实施例提供的一种服务响应方法中S104的具体实现流程图。参见图5a所述,相对于上一实施例,本实施例提供的一种服务响应方法中S104包含以下多个步骤,详述如下:进一步地,作为本发明另一实施例,所述服务请求为消息推送服务请求;所述通过中间件响应所述服务请求,包括:FIG. 5a is a flowchart showing a specific implementation of S104 in a service response method according to another embodiment of the present invention. Referring to FIG. 5a, in the service response method provided by this embodiment, S104 includes the following multiple steps, which are described in detail as follows: Further, as another embodiment of the present invention, the service request Pushing a service request for the message; the responding to the service request by the middleware includes:
在S501中,接收所述用户发送的推送设置信息;其中,所述推送设置信息包括推送内容、推送时机以及推送对象。In S501, the push setting information sent by the user is received; wherein the push setting information includes a push content, a push timing, and a push object.
在本实施例中,用户可通过中间件实现消息推送的功能。需要说明的是,该用户可以为第三方服务平台的注册用户,也可以为微店、淘宝商城、微信公众号等非自然人用户。In this embodiment, the user can implement the function of message push through the middleware. It should be noted that the user may be a registered user of a third-party service platform, or may be a non-natural user such as a micro store, a Taobao mall, or a WeChat public account.
在本实施例中,用户将推送设置信息发送给中间件,其中该推送设置信息将包括推送内容、推送时机以及推送对象。推送内容具体为进行消息推送时,该消息的具体内容、格式、推送模板等与消息内容相关的信息;推送时机具体指进行推送的时间或触发条件,即当到达某一时刻或满足某个触发条件,则进行该消息推送。In this embodiment, the user sends the push setting information to the middleware, wherein the push setting information will include push content, push timing, and push object. The push content is specifically the information related to the message content, such as the specific content, format, and push template 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 trigger is satisfied. The condition is then pushed by the message.
在本实施例中,中间件在接收到该推送设置信息后,将进行存储,并实时监测是否满足对应的推送时机,若满足,则执行S502的相关操作;反之,则继续进行监测。In this embodiment, after receiving the push setting information, the middleware stores the information and monitors whether the corresponding push timing is satisfied in real time. If yes, the related operation of S502 is performed; otherwise, the monitoring is continued.
在S502中,当满足所述推送时机时,将所述推送内容通过所述第三方服务平台发送给所述推送对象,并将发送结果返回给所述用户。In S502, when the push timing is satisfied, the push content is sent to the push object through the third-party service platform, and the transmission result is returned to the user.
在本实施例中,当中间件监测到满足对应推送时机时,将执行S502的相关操作,将调取推送设置信息中的推送内容,生成对应的推送消息,并通过第三方服务平台,将该推送消息发送到推送设置信息对应的推送对象,在推送完成后,中间件将汇总发送情况,举例性地,该发送情况包括送达率、送达时长、查看情况等相关信息。在相关的发送情况汇总后,将生成对应的发送结果,并将该发送结果返回给用户。In this embodiment, when the middleware detects that the corresponding push timing is satisfied, the related operation of S502 is performed, the push content in the push setting information is retrieved, a corresponding push message is generated, and the third party service platform is used to The push message is sent to the push object corresponding to the push setting information. After the push is completed, the middleware will summarize the sending situation. For example, the sending situation includes information such as the delivery rate, the delivery time, and the viewing status. After the related transmission conditions are summarized, a corresponding transmission result is generated, and the transmission result is returned to the user.
举例性地,图5b为本发明一实施例提供的中间件响应消息推送服务请求的交互流程图,参见图5b所示,该中间件响应互动服务请求的交互流程如下:For example, FIG. 5b is an interaction flowchart of a middleware response message push service request according to an embodiment of the present invention. Referring to FIG. 5b, the interaction process of the middleware response interactive service request is as follows:
在S51中,用户向中间件发送推送设置信息。In S51, the user transmits push setting information to the middleware.
在S52中,中间件在监测到满足推送时机。In S52, the middleware is monitored to meet the push timing.
在S53中,中间件判断已满足推送时机,则将推送内容发给第三方服务平台,以及告知第三方服务平台所需转发的目标对象。In S53, if the middleware determines that the push timing has been met, the push content is sent to the third-party service platform, and the target object that the third-party service platform needs to forward is notified.
在S54中,第三方服务平台接收到该推送内容后,将转发给对应的目标对象,即上述的推送对象。In S54, after receiving the pushed content, the third-party service platform forwards the content to the corresponding target object, that is, the above-mentioned push object.
在S55中,中间件在汇总到第三方服务平台返回的推送情况后,将发送结果返回给用户。In S55, after the middleware summarizes the push situation returned by the third-party service platform, the middleware returns the result to the user.
在本发明实施例中,用户可通过中间件,实现消息推送的功能,从而便于进行信息的定时发送以及面向多对象进行一次性发送,减少了用户的操作步骤,提高了用户的操作效率。 In the embodiment of the present invention, the user can implement the function of message pushing through the middleware, thereby facilitating the timing transmission of information and one-time transmission for multiple objects, reducing the operation steps of the user and improving the operation efficiency of the user.
图6示出了本发明实施例提供的一种中间件的结构示意图,该中间件包括的各单元用于执行图1对应的实施例中的各步骤。具体请参阅图1与图1所对应的实施例中的相关描述。为了便于说明,仅示出了与本实施例相关的部分。参见图6,该中间件包括:FIG. 6 is a schematic structural diagram of an intermediate member according to an embodiment of the present invention. The intermediate unit includes units for performing the steps in the corresponding embodiment of FIG. 1. For details, please refer to the related description in the embodiment corresponding to FIG. 1 and FIG. For the convenience of explanation, only the parts related to the present embodiment are shown. Referring to Figure 6, the middleware includes:
注册信息接收单元61,用于接收用户发送的注册信息;其中,所述注册信息包含第三方服务平台的标识以及所述用户登录所述第三方服务平台的登录信息;The registration information receiving unit 61 is configured to receive the registration information sent by the user, where the registration information includes an identifier of the third-party service platform and login information of the user logging in to the third-party service platform;
额外服务添加单元62,用于根据所述标识以及登录信息,将额外服务添加至所述用户在所述第三方服务平台对应的可响应服务列表;其中,所述额外服务为所述可响应服务列表外的其他服务;An additional service adding unit 62, configured to add, according to the identifier and the login information, an additional service to the list of respondable services corresponding to the user on the third-party service platform; wherein the additional service is the respondable service Other services outside the list;
服务接收单元63,用于接收所述用户发送的服务请求,并判断所述服务请求对应的服务类型是否为所述额外服务;The service receiving unit 63 is configured to receive a service request sent by the user, and determine whether the service type corresponding to the service request is the additional service;
服务响应单元64,用于若所述服务类型为额外服务,则通过中间件响应所述服务请求。The service response unit 64 is configured to respond to the service request by using a middleware if the service type is an additional service.
可选地,所述登录信息包含用户标识信息以及用户密码信息;所述中间件还包括:Optionally, the login information includes user identification information and user password information; the middleware further includes:
用户参数提取单元,用于提取所述服务请求包含的用户标识信息以及用户密码信息;a user parameter extraction unit, configured to extract user identification information and user password information included in the service request;
用户参数匹配单元,用于将所述服务请求包含的用户标识信息与所述登录信息的用户标识信息进行匹配,以及将所述服务请求包含的用户密码信息与所述登录信息包含的用户密码信息进行匹配;a user parameter matching unit, configured to match user identification information included in the service request with user identification information of the login information, and user password information included in the service request and user password information included in the login information Matching;
响应确定单元,用于根据匹配结果确定是否通过所述中间件响应所述服务请求。And a response determining unit, configured to determine, according to the matching result, whether to respond to the service request by the middleware.
可选地,所述服务请求为互动服务请求;所述服务响应单元64包括:Optionally, the service request is an interactive service request; the service response unit 64 includes:
互动参数获取单元,用于获取所述互动服务请求包含的互动内容以及互动对象标识;An interaction parameter obtaining unit, configured to acquire an interaction content and an interaction object identifier included in the interaction service request;
互动内容发送单元,用于根据所述互动对象标识,向所述互动对象标识对应的互动设备发送所述互动内容;The interactive content sending unit is configured to send the interactive content to the interactive device corresponding to the interactive object identifier according to the interaction object identifier;
互动结果返回单元,用于接收所述互动设备根据所述互动内容返回的互动结果,并将所述互动结果通过所述第三方服务平台返回给所述用户。The interaction result returning unit is configured to receive an interaction result returned by the interactive device according to the interactive content, and return the interaction result to the user through the third-party service platform.
可选地,所述服务请求为外部链接访问服务请求;所述服务响应单元64包括:Optionally, the service request is an external link access service request; the service response unit 64 includes:
授权信息获取单元,用于从所述第三方服务器获取所述用户对应的授权信息,并通过所述第三方服务器向所述用户返回授权确认指令;其中,所述授权确认指令包含所述授权信息;An authorization information obtaining unit, configured to acquire authorization information corresponding to the user from the third-party server, and return an authorization confirmation instruction to the user by using the third-party server; wherein the authorization confirmation instruction includes the authorization information ;
确认指令接收单元,用于接收用户根据所述授权确认指令返回的确认指令;a confirmation instruction receiving unit, configured to receive a confirmation instruction returned by the user according to the authorization confirmation instruction;
页面生成单元,用于基于所述授权信息以及所述外部链接访问服务请求,生成外部链接页面,以便所述用户通过所述外部链接页面进行互动。And a page generating unit, configured to generate an external link page based on the authorization information and the external link access service request, so that the user interacts through the external link page.
可选地,所述服务请求为消息推送服务请求;所述服务响应单元64包括:Optionally, the service request is a message push service request; the service response unit 64 includes:
推送设置单元,用于接收所述用户发送的推送设置信息;其中,所述推送设置信息包括推送内容、推送时机以及推送对象;a push setting unit, configured to receive push setting information sent by the user, where the push setting information includes a push content, a push timing, and a push object;
信息推送单元,用于当满足所述推送时机时,将所述推送内容通过所述第三方服务平台发送给所述推送对象,并将发送结果返回给所述用户An information pushing unit, configured to send the pushed content to the push object through the third-party service platform when the push timing is satisfied, and return the sending result to the user
因此,本发明实施例提供的中间件用户同样可以通过在中间件进行注册,获得第三方平台的额外服务权限,并利用第三方服务平台发起相应的额外服务请求,第三方服务平台在接收到额外服务请求后,将交由中间件进行响应,从而为用户提供更多服务。可见,本发明实施例中,用户不需要安装或使用新的第三方服务平台,只需进行相关的注册操作,则可通过原有的第三方服务平台进行多样的服务请求,提高用户体验度。另一方面,由于中间件进行服务更新以及添加较为灵活,从而可及时使用用户的服务需求,提高了第三方服务平台的更新效率以及用户体验度。Therefore, the middleware user provided by the embodiment of the present invention can also obtain the additional service authority of the third-party platform by registering in the middleware, and use the third-party service platform to initiate the corresponding additional service request, and the third-party service platform receives the additional service. After the service request, it will be handed over to the middleware to respond, thus providing more services to the user. It can be seen that, in the embodiment of the present invention, the user does not need to install or use a new third-party service platform, and only needs to perform related registration operations, and then can perform various service requests through the original third-party service platform, thereby improving user experience. On the other hand, because the middleware performs service update and the addition is more flexible, the user's service demand can be used in time, and the update efficiency and user experience of the third-party service platform are improved.
以上所述实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围,均应包含在本发明的保护范围之内。The embodiments described above are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that The technical solutions described in the examples are modified, or some of the technical features are equivalently replaced; and the modifications or substitutions do not deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in Within the scope of protection of the present invention.

Claims (10)

  1. 一种服务响应方法,其特征在于,包括:A service response method, comprising:
    接收用户发送的注册信息;其中,所述注册信息包含第三方服务平台的标识以及所述用户登录所述第三方服务平台的登录信息;Receiving registration information sent by the user, where the registration information includes an identifier of the third-party service platform and login information of the user logging in to the third-party service platform;
    根据所述标识以及登录信息,将额外服务添加至所述用户在所述第三方服务平台对应的可响应服务列表;其中,所述额外服务为所述可响应服务列表外的其他服务;Adding, according to the identifier and the login information, an additional service to the list of respondable services corresponding to the user on the third-party service platform; wherein the additional service is another service outside the list of respondable services;
    接收所述用户发送的服务请求,并判断所述服务请求对应的服务类型是否为所述额外服务;Receiving a service request sent by the user, and determining whether the service type corresponding to the service request is the additional service;
    若所述服务类型为额外服务,则通过中间件响应所述服务请求。If the service type is an additional service, the service request is responded to by the middleware.
  2. 根据权利要求1所述的服务响应方法,其特征在于,所述登录信息包含用户标识信息以及用户密码信息;The service response method according to claim 1, wherein the login information comprises user identification information and user password information;
    所述通过中间件响应所述服务请求之前,还包括:Before the middleware responds to the service request, the method further includes:
    提取所述服务请求包含的用户标识信息以及用户密码信息;Extracting user identification information and user password information included in the service request;
    将所述服务请求包含的用户标识信息与所述登录信息的用户标识信息进行匹配,以及将所述服务请求包含的用户密码信息与所述登录信息包含的用户密码信息进行匹配;Matching user identification information included in the service request with user identification information of the login information, and matching user password information included in the service request with user password information included in the login information;
    根据匹配结果确定是否通过所述中间件响应所述服务请求。Whether to respond to the service request by the middleware is determined according to the matching result.
  3. 根据权利要求2所述的服务响应方法,其特征在于,所述服务请求为互动服务请求;The service response method according to claim 2, wherein the service request is an interactive service request;
    所述通过中间件响应所述服务请求,包括:The responding to the service request by using the middleware includes:
    获取所述互动服务请求包含的互动内容以及互动对象标识;Obtaining the interactive content and the interactive object identifier included in the interactive service request;
    根据所述互动对象标识,向所述互动对象标识对应的互动设备发送所述互动内容;Sending the interactive content to the interactive device corresponding to the interactive object identifier according to the interaction object identifier;
    接收所述互动设备根据所述互动内容返回的互动结果,并将所述互动结果通过所述第三方服务平台返回给所述用户。Receiving an interaction result returned by the interactive device according to the interactive content, and returning the interaction result to the user through the third-party service platform.
  4. 根据权利要求2所述的服务响应方法,其特征在于,所述服务请求为外部链接访问服务请求;The service response method according to claim 2, wherein the service request is an external link access service request;
    所述通过中间件响应所述服务请求,包括:The responding to the service request by using the middleware includes:
    从所述第三方服务器获取所述用户对应的授权信息,并通过所述第三方服务器向所述用户返回授权确认指令;其中,所述授权确认指令包含所述授权信息;Acquiring the authorization information corresponding to the user from the third-party server, and returning an authorization confirmation instruction to the user by using the third-party server; wherein the authorization confirmation instruction includes the authorization information;
    接收用户根据所述授权确认指令返回的确认指令;Receiving a confirmation instruction returned by the user according to the authorization confirmation instruction;
    基于所述授权信息以及所述外部链接访问服务请求,生成外部链接页面,以便所述用户通过所述外部链接页面进行互动。An external link page is generated based on the authorization information and the external link access service request, so that the user interacts through the external link page.
  5. 根据权利要求1所述的服务响应方法,其特征在于,所述服务请求为消息推送服务请求;The service response method according to claim 1, wherein the service request is a message push service request;
    所述通过中间件响应所述服务请求,包括:The responding to the service request by using the middleware includes:
    接收所述用户发送的推送设置信息;其中,所述推送设置信息包括推送内容、推送时机以及推送对象;Receiving, by the user, the push setting information, where the push setting information includes a push content, a push timing, and a push object;
    当满足所述推送时机时,将所述推送内容通过所述第三方服务平台发送给所述推送对象,并将发送结果返回给所述用户。When the push timing is satisfied, the push content is sent to the push object through the third-party service platform, and the transmission result is returned to the user.
  6. 一种中间件,其特征在于,包括:A middleware, comprising:
    注册信息接收单元,用于接收用户发送的注册信息;其中,所述注册信息包含第三方服务平台的标识以及所述用户登录所述第三方服务平台的登录信息;a registration information receiving unit, configured to receive registration information sent by the user, where the registration information includes an identifier of the third-party service platform and login information of the user logging in to the third-party service platform;
    额外服务添加单元,用于根据所述标识以及登录信息,将额外服务添加至所述用户在所述第三方服务平台对应的可响应服务列表;其中,所述额外服务为所述可响应服务列表外的其他服务;An additional service adding unit, configured to add, according to the identifier and the login information, an additional service to the list of respondable services corresponding to the user on the third-party service platform; wherein the additional service is the list of the respondable services Other services;
    服务接收单元,用于接收所述用户发送的服务请求,并判断所述服务请求对应的服务类型是否为所述额外服务;a service receiving unit, configured to receive a service request sent by the user, and determine whether the service type corresponding to the service request is the additional service;
    服务响应单元,用于若所述服务类型为额外服务,则通过中间件响应所述服务请求。The service response unit is configured to respond to the service request by using a middleware if the service type is an additional service.
  7. 根据权利要求6所述的中间件,其特征在于,所述登录信息包含用户标识信息以及用户密码信息;The middleware according to claim 6, wherein the login information includes user identification information and user password information;
    所述中间件还包括:The middleware further includes:
    用户参数提取单元,用于提取所述服务请求包含的用户标识信息以及用户密码信息;a user parameter extraction unit, configured to extract user identification information and user password information included in the service request;
    用户参数匹配单元,用于将所述服务请求包含的用户标识信息与所述登录信息的用户标识信息进行匹配,以及将所述服务请求包含的用户密码信息与所述登录信息包含的用户密码信息进行匹配;a user parameter matching unit, configured to match user identification information included in the service request with user identification information of the login information, and user password information included in the service request and user password information included in the login information Matching;
    响应确定单元,用于根据匹配结果确定是否通过所述中间件响应所述服务请求。And a response determining unit, configured to determine, according to the matching result, whether to respond to the service request by the middleware.
  8. 根据权利要求7所述的中间件,其特征在于,所述服务请求为互动服务请求;The middleware according to claim 7, wherein the service request is an interactive service request;
    所述服务响应单元包括:The service response unit includes:
    互动参数获取单元,用于获取所述互动服务请求包含的互动内容以及互动对象标识;An interaction parameter obtaining unit, configured to acquire an interaction content and an interaction object identifier included in the interaction service request;
    互动内容发送单元,用于根据所述互动对象标识,向所述互动对象标识对应的互动设备发送所述互动内容;The interactive content sending unit is configured to send the interactive content to the interactive device corresponding to the interactive object identifier according to the interaction object identifier;
    互动结果返回单元,用于接收所述互动设备根据所述互动内容返回的互动结果,并将所述互动结果通过所述第三方服务平台返回给所述用户。The interaction result returning unit is configured to receive an interaction result returned by the interactive device according to the interactive content, and return the interaction result to the user through the third-party service platform.
  9. 根据权利要求7所述的中间件,其特征在于,所述服务请求为外部链接访问服务请求;The middleware according to claim 7, wherein the service request is an external link access service request;
    所述服务响应单元包括:The service response unit includes:
    授权信息获取单元,用于从所述第三方服务器获取所述用户对应的授权信息,并通过所述第三方服务器向所述用户返回授权确认指令;其中,所述授权确认指令包含所述授权信息;An authorization information obtaining unit, configured to acquire authorization information corresponding to the user from the third-party server, and return an authorization confirmation instruction to the user by using the third-party server; wherein the authorization confirmation instruction includes the authorization information ;
    确认指令接收单元,用于接收用户根据所述授权确认指令返回的确认指令;a confirmation instruction receiving unit, configured to receive a confirmation instruction returned by the user according to the authorization confirmation instruction;
    页面生成单元,用于基于所述授权信息以及所述外部链接访问服务请求,生成外部链接页面,以便所述用户通过所述外部链接页面进行互动。And a page generating unit, configured to generate an external link page based on the authorization information and the external link access service request, so that the user interacts through the external link page.
  10. 根据权利要求6所述的中间件,其特征在于,所述服务请求为消息推送服务请求;The middleware according to claim 6, wherein the service request is a message push service request;
    所述服务响应单元包括:The service response unit includes:
    推送设置单元,用于接收所述用户发送的推送设置信息;其中,所述推送设置信息包括推送内容、推送时机以及推送对象;a push setting unit, configured to receive push setting information sent by the user, where the push setting information includes a push content, a push timing, and a push object;
    信息推送单元,用于当满足所述推送时机时,将所述推送内容通过所述第三方服务平台发送给所述推送对象,并将发送结果返回给所述用户。The information pushing unit is configured to send the pushed content to the push object through the third-party service platform when the push timing is satisfied, and return the sending result to the user.
PCT/CN2018/083860 2017-04-27 2018-04-20 Service response method and middleware thereof WO2018196686A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2018196686A1 true WO2018196686A1 (en) 2018-11-01

Family

ID=59873487

Family Applications (1)

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

Country Status (2)

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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677496A (en) * 2019-10-18 2020-01-10 北京天融信网络安全技术有限公司 Middleware service scheduling method and device and readable storage medium
CN111552985A (en) * 2020-05-14 2020-08-18 支付宝(杭州)信息技术有限公司 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

Families Citing this family (4)

* 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
CN111064772B (en) * 2019-11-21 2022-08-02 深圳市优必选科技股份有限公司 Vehicle service response method and system
CN113965557B (en) * 2021-11-25 2024-04-26 杭州安恒信息技术股份有限公司 Service development method, device, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113508A (en) * 2013-04-16 2014-10-22 腾讯科技(深圳)有限公司 Method of logining third party service platform, and system of logining third party service platform
CN104135063A (en) * 2014-08-15 2014-11-05 南车戚墅堰机车有限公司 Auxiliary diesel power generation device for internal combustion locomotive
CN104468518A (en) * 2014-11-10 2015-03-25 腾讯科技(深圳)有限公司 Service management method, device and system
CN104918224A (en) * 2014-03-14 2015-09-16 中国移动通信集团江苏有限公司 Application service providing method and system and client service platform
CN106603462A (en) * 2015-10-13 2017-04-26 腾讯科技(深圳)有限公司 API calling method, device and system
CN107196917A (en) * 2017-04-27 2017-09-22 深圳市威富通科技有限公司 A kind of service response method and its middleware

Family Cites Families (5)

* 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
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
CN105763538B (en) * 2016-01-29 2018-08-24 广州达讯网络科技有限公司 A kind of banking network method for interchanging data and its system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113508A (en) * 2013-04-16 2014-10-22 腾讯科技(深圳)有限公司 Method of logining third party service platform, and system of logining third party 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
CN104468518A (en) * 2014-11-10 2015-03-25 腾讯科技(深圳)有限公司 Service management method, device and system
CN106603462A (en) * 2015-10-13 2017-04-26 腾讯科技(深圳)有限公司 API calling method, device and system
CN107196917A (en) * 2017-04-27 2017-09-22 深圳市威富通科技有限公司 A kind of service response method and its middleware

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677496A (en) * 2019-10-18 2020-01-10 北京天融信网络安全技术有限公司 Middleware service scheduling method and device and readable storage medium
CN110677496B (en) * 2019-10-18 2022-11-15 北京天融信网络安全技术有限公司 Middleware service scheduling method and device and readable storage medium
CN111552985A (en) * 2020-05-14 2020-08-18 支付宝(杭州)信息技术有限公司 Information verification method and device
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

Also Published As

Publication number Publication date
CN107196917B (en) 2020-02-14
CN107196917A (en) 2017-09-22

Similar Documents

Publication Publication Date Title
WO2018196686A1 (en) Service response method and middleware thereof
EP3550783B1 (en) Internet of things device burning verification method and apparatus
US10667131B2 (en) Method for connecting network access device to wireless network access point, network access device, and application server
US10666642B2 (en) System and method for service assisted mobile pairing of password-less computer login
WO2019120091A1 (en) Identity authentication method and system, and computing device
US20220191016A1 (en) Methods, apparatuses, and computer program products for frictionless electronic signature management
WO2019184135A1 (en) Application login method and apparatus, and computer device and storage medium
EP2314090B1 (en) Portable device association
US20160269176A1 (en) Key Configuration Method, System, and Apparatus
US8099761B2 (en) Protocol for device to station association
JP2023166562A (en) First factor contactless card authentication system and method
US20120265996A1 (en) Permitting Access To A Network
EP2978192B1 (en) Peer to peer remote control method between one or more mobile devices
US20230344626A1 (en) Network connection management method and apparatus, readable medium, program product, and electronic device
CN113992346B (en) Implementation method of security cloud desktop based on national security reinforcement
US20160099919A1 (en) System and method for providing a secure one-time use capsule based personalized and encrypted on-demand communication platform
CN111405016A (en) User information acquisition method and related equipment
JP2020078067A (en) System and method for securely enabling user with mobile device to access capabilities of standalone computing device
WO2016190811A1 (en) Seamless unique user identification and management
CN109460647B (en) Multi-device secure login method
US9985947B1 (en) Method and system for communication of devices using dynamic routes encoded in security tokens and a dynamic optical label
CN115473655B (en) Terminal authentication method, device and storage medium for access network
US20210400148A1 (en) Techniques for managing phone number-based user accounts
JP2023509806A (en) MOBILE NETWORK ACCESS SYSTEM, METHOD, STORAGE MEDIUM AND ELECTRONIC DEVICE
CN112084485A (en) Data acquisition method, device, equipment and computer storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18791490

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18791490

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10.06.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18791490

Country of ref document: EP

Kind code of ref document: A1