CN111200645A - Service request processing method, device, equipment and readable storage medium - Google Patents

Service request processing method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN111200645A
CN111200645A CN201911379099.XA CN201911379099A CN111200645A CN 111200645 A CN111200645 A CN 111200645A CN 201911379099 A CN201911379099 A CN 201911379099A CN 111200645 A CN111200645 A CN 111200645A
Authority
CN
China
Prior art keywords
string
service
identification
user
browser
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911379099.XA
Other languages
Chinese (zh)
Other versions
CN111200645B (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.)
Beijing Shuidi Technology Group Co ltd
Original Assignee
Beijing Absolute Health Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Absolute Health Ltd filed Critical Beijing Absolute Health Ltd
Priority to CN201911379099.XA priority Critical patent/CN111200645B/en
Publication of CN111200645A publication Critical patent/CN111200645A/en
Application granted granted Critical
Publication of CN111200645B publication Critical patent/CN111200645B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Abstract

The invention discloses a service request processing method, a device, equipment and a readable storage medium, which relate to the technical field of communication. The method comprises the following steps: when a first service request is received, extracting a universal identification string; determining that a first identification field string corresponding to the general identification string is added to the first service request; processing the first service request; when a second service request is received, determining that a second identification field string corresponding to the universal identification string is added to the second service request; and processing the second service request.

Description

Service request processing method, device, equipment and readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for processing a service request.
Background
With the rapid development of communication technology, various social platforms are integrated into people's daily life, and various aspects of people's life are involved, such as online stores, entertainment games, and the like, which are realized based on the social platforms. Since the social platform covers a large number of users and provides convenience for enterprises to popularize various information, many enterprises register services on the social platform, attract the attention of the users to the services by pushing articles, videos and the like, and interact with the users by processing service requests sent by the users to the services, so that the purposes of popularizing the services in the enterprises and activating the users are achieved.
In the related art, an enterprise usually registers one or more than one service on a social platform to provide an attention function for the outside, a user can pay attention to the service through the attention function, issue a service request to any service according to own requirements, and acquire feedback information returned by the enterprise based on the service after processing the service request.
In the process of implementing the invention, the inventor finds that the related art has at least the following problems:
the social platform allows the number of business registered by the enterprise to be limited, but business in the enterprise is increased rapidly, the limited registered business cannot meet business requirements of the enterprise, the enterprise may register other businesses on other platforms, but data between different platforms are not intercommunicated, so that many businesses in the enterprise are difficult to develop because whether users on different platforms are the same or not cannot be determined, the processing efficiency of business requests is low, and a large amount of processing resources are wasted.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, a device and a readable storage medium for processing a service request, and mainly aims to solve the problem that data between different platforms are not intercommunicated, so that many services in an enterprise are difficult to develop because it cannot be determined whether users on different platforms are the same, the processing efficiency of a service request is low, and a large amount of processing resources are wasted.
According to a first aspect of the present invention, a method for processing a service request is provided, the method comprising:
when a first service request sent by a browser to a first service is received, extracting a universal identification string in the browser, wherein the universal identification string is used for identifying the identity of a user in all services;
determining a first identification field string corresponding to the general identification string in the first service, and adding the first identification field string to the first service request, wherein the first identification field string is used for identifying the identity of the user in the first service;
sending the added first service request to the first service for processing;
when a second service request sent by the browser to a second service is received, determining a second identification field string corresponding to the general identification string in the second service, and adding the second identification field string to the second service request, wherein the second service and the first service do not belong to the same platform, and the second identification field string is used for identifying the identity of the user in the second service;
and sending the added second service request to the second service for processing.
In another embodiment, the extracting the universal identification string in the browser includes:
and acquiring a small data Cookie of the browser, and extracting the universal identification string from the Cookie.
In another embodiment, after extracting the generic identification string in the browser when receiving a first service request sent by the browser to the first service, the method further includes:
if the universal identification string is not extracted from the browser, acquiring the universal identification string and the first identification field string based on a service server;
storing the universal identification string in the browser;
and adding the first identification field string into the first service request, and sending the added first service request to the first service for processing.
In another embodiment, the obtaining the common identification string and the first identification field string based on the service server includes:
determining the user identification of the user, and inquiring the first identification field string corresponding to the user identification in the first service;
based on the service server, determining encryption information in the first identification field string, filtering the encryption information, and generating the universal identification string;
and correspondingly storing the universal identification string and the first identification field string.
In another embodiment, said querying said first identification field string corresponding to said user identification in said first service includes:
querying whether the first identification field string exists based on the user identification;
if the user identification has the corresponding first identification field string in the first service, extracting the first identification field string;
if the user identifier does not have the corresponding first identifier field string in the first service, adopting the user identifier to register in the first service, and allocating the first identifier field string to the first user identifier.
In another embodiment, the method further comprises:
setting an expiration time for the universal identification string in the browser;
and if the time for extracting the universal identification string in the browser exceeds the expiration time, determining that the universal identification string is invalid, acquiring the universal identification string based on the service server again, and storing the universal identification string in the browser.
According to a second aspect of the present invention, there is provided a service request processing apparatus, comprising:
the system comprises an extraction module, a service management module and a service management module, wherein the extraction module is used for extracting a universal identification string from a browser when a first service request sent to a first service by the browser is received, and the universal identification string is used for identifying the identity of a user in all services;
an adding module, configured to determine a first identification field string corresponding to the general identification string in the first service, and add the first identification field string to the first service request, where the first identification field string is used to identify an identity of the user in the first service;
the sending module is used for sending the added first service request to the first service for processing;
the adding module is further configured to determine a second identifier field string corresponding to the common identifier string in a second service when receiving the second service request sent by the browser to the second service, and add the second identifier field string to the second service request, where the second service and the first service do not belong to the same platform, and the second identifier field string is used for identifying the identity of the user in the second service;
the sending module is further configured to send the added second service request to the second service for processing.
In another embodiment, the extracting module is configured to obtain a Cookie for the browser, and extract the general identification string from the Cookie.
In another embodiment, the apparatus further comprises:
an obtaining module, configured to obtain the common identifier string and the first identifier field string based on a service server if the common identifier string is not extracted from the browser;
the storage module is used for storing the universal identification string into the browser;
the adding module is further configured to add the first identification field string to the first service request, and send the added first service request to the first service for processing.
In another embodiment, the obtaining module includes:
the query unit is used for determining the user identifier of the user and querying the first identifier field string corresponding to the user identifier in the first service;
a generating unit, configured to determine, based on the service server, encryption information in the first identifier field string, filter the encryption information, and generate the universal identifier string;
and the storage unit is used for correspondingly storing the universal identification string and the first identification field string.
In another embodiment, the querying unit is configured to query whether the first identification field string exists based on the user identification; if the user identification has the corresponding first identification field string in the first service, extracting the first identification field string; if the user identifier does not have the corresponding first identifier field string in the first service, adopting the user identifier to register in the first service, and allocating the first identifier field string to the first user identifier.
In another embodiment, the apparatus further comprises:
the setting module is used for setting expiration time for the universal identification string in the browser;
the obtaining module is further configured to determine that the universal identification string is invalid if the time for extracting the universal identification string in the browser exceeds the expiration time, obtain the universal identification string based on the service server again, and store the universal identification string in the browser.
According to a fourth aspect of the present invention, there is provided an apparatus comprising a memory storing a computer program and a processor implementing the steps of the method of the first aspect when the processor executes the computer program.
According to a fifth aspect of the present invention, there is provided a readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of the first aspect as set forth above.
By means of the technical scheme, the invention provides a service request processing method, a device, equipment and a readable storage medium, when a first service request sent by a browser to a first service is received, a universal identification string for identifying the identity of a user in all services is extracted from the browser, the first identification field string corresponding to the universal identification string in the first service is determined, the first identification field string is added into the first service request, the added first service request is sent to the first service for processing, and when a service request of a second service which does not belong to the same platform as the first service is received, the identity of the user is identified based on the universal identification string, and then the service request of the second service is processed, so that the identity identification of the user in all services can be realized based on the universal identification string, and the problem that the same user cannot be identified by the same platform due to the non-intercommunication of data is avoided, the difficulty of service development is reduced, the processing efficiency of the service request is improved, and a large amount of processing resources are saved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a schematic flow chart illustrating a service request processing method according to an embodiment of the present invention;
fig. 2A is a schematic flow chart illustrating a service request processing method according to an embodiment of the present invention;
fig. 2B is a schematic flowchart illustrating a service request processing method according to an embodiment of the present invention;
fig. 3A is a schematic structural diagram illustrating a service request processing apparatus according to an embodiment of the present invention;
fig. 3B is a schematic structural diagram illustrating a service request processing apparatus according to an embodiment of the present invention;
fig. 3C is a schematic structural diagram illustrating a service request processing apparatus according to an embodiment of the present invention;
fig. 3D is a schematic structural diagram illustrating a service request processing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating an apparatus structure of an apparatus according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
An embodiment of the present invention provides a method for processing a service request, as shown in fig. 1, the method includes:
101. when a first service request sent by a browser to a first service is received, extracting a universal identification string in the browser, wherein the universal identification string is used for identifying the identity of a user in all services.
102. And determining a first identification field string corresponding to the general identification string in the first service, and adding the first identification field string into the first service request, wherein the first identification field string is used for identifying the identity of the user in the first service.
103. And sending the added first service request to the first service for processing.
104. When a second service request sent by the browser to a second service is received, a second identification field string corresponding to the general identification string in the second service is determined, the second identification field string is added to the second service request, the second service and the first service do not belong to the same platform, and the second identification field string is used for identifying the identity of the user in the second service.
105. And sending the added second service request to a second service for processing.
The method provided by the embodiment of the invention extracts the universal identification string for identifying the identity of the user in all services in the browser when receiving the first service request sent by the browser to the first service, adds the first identification field string to the first service request by determining the corresponding first identification field string of the universal identification string in the first service, sends the added first service request to the first service for processing, identifies the identity of the user based on the universal identification string when receiving the service request of the second service which does not belong to the same platform as the first service, and further processes the service request of the second service, so that the identity identification of the user in all services can be realized based on the universal identification string, the problem that the same user cannot be identified by the same platform due to non-intercommunicating data is avoided, and the difficulty of service development is reduced, the processing efficiency of the service request is improved, and a large amount of processing resources are saved.
An embodiment of the present invention provides a method for processing a service request, as shown in fig. 2A, the method is applied to a service processing system, the service processing system relates to a front end and a service server, the front end is provided with a browser for receiving service requests of users for various services; the business server is used for managing the identity of the user, providing account service and setting a universal identification string capable of identifying the identity in all businesses for the user, so that when the embodiment of the invention is applied to a business processing system, the interaction between the front end and the business server is involved, and the method comprises the following steps:
201. when the front end receives a first service request sent by a browser to a first service, extracting a general identification string from the browser, and if the general identification string is extracted from the browser, executing the following step 202; if the universal identification string is not extracted in the browser, the following step 204 is performed.
The inventor realizes that when an enterprise manages services on different platforms at present, service development is difficult because the same user on different platforms cannot be identified. For example, suppose that the account M with three uses pays attention to the service 1 and the service 2 of the enterprise on the platform a, and the account N pays attention to the service 3 and the service 4 of the enterprise on the platform b, because data on the platform a and the platform b are not intercommunicated, it cannot be determined that the account M and the account N are both used by three, so that the account M and the account N can be considered as different users to be developed when the services are developed, not only are a lot of service resources wasted, but also data isolation is generated between the services, and the users cannot comprehensively refer to service data on different platforms, thereby reducing the user viscosity. Therefore, the invention provides a service request processing method, which sets a unique universal identification string capable of identifying the user identity in all services, uses the universal identification string to associate the user identities on different platforms, so that when the service request of the user is processed each time, the universal identification string is mapped to different identities of the user in different services, and then the services are developed based on the user identities, thereby realizing the intercommunication among the services. In the practical application process, the service mentioned in the invention can be in the form of public numbers, so that the identities of users in different public numbers are identified based on the universal identification strings, and the multiple public numbers of an enterprise are communicated.
In the actual application process, generally, a user uses a tool such as a browser to request a service, and in order to receive a service request from the user, the service processing system may provide a service page associated with a service domain name on the browser at the front end, where each service corresponds to a different service page, and different keys are displayed on the service page. When detecting that a user requests a certain service, displaying a service page corresponding to the service, and when detecting that the user triggers a certain key on the service page, determining that the front end receives the service request sent to the service by the browser, and further executing a subsequent processing process of the service request. In the embodiment of the present invention, it is described by taking an example that a current browser requests to make a request to a first service and sends a first service request to the first service, where the first service may be any service that an enterprise carries on any platform.
In consideration of the fact that in daily life, the frequency of requests of a user for a service is high, in order to enable the universal identification string to be conveniently applied to the service request process, the universal identification string is stored in a browser, and the universal identification string can be directly obtained from the browser to be used every time the user requests the service subsequently. Specifically, the universal identification string may be stored in a Cookie (small amount of data) of the browser, so that when a first service request sent by the browser to the first service is received, the Cookie of the browser may be directly obtained, and the universal identification string is extracted from the Cookie. In addition, some platforms installed in businesses in an enterprise may not provide a browser, such as an applet, and thus a small cache space needs to be set locally, the universal identification string of the user is stored based on the cache space, and whether the universal identification string exists or not is queried in the cache space. The manner in which the universal identification string is stored is not particularly limited.
It should be noted that some users may request for a service for the first time, and currently, the Cookie does not store the universal identification string of the user, so that the universal identification string is not obtained from the Cookie, and in order to implement the intercommunication of multiple services on the user identity, a universal identification string needs to be set for the user according to the user identity, and after the setting is completed, the universal identification string is applied to the current and subsequent other requests. Therefore, if the universal identification string is extracted from the browser, it indicates that the user already has the universal identification string that can be commonly used for all services in the service request processing system, and the first service request of the user may be directly processed, that is, the following step 202 is executed. If the universal identification string is not extracted from the browser, it indicates that the user may be making a service request for the first time, and there is no universal identification string that can be universally used for all services, and the universal identification string needs to be allocated to the user to make a service request processing, that is, the following step 204 is executed.
202. And if the universal identification string is extracted from the browser, the front end determines a first identification field string corresponding to the universal identification string in the first service, and adds the first identification field string to the first service request.
In the embodiment of the present invention, if the universal identification string is extracted from the browser, it indicates that the user already has the universal identification string that can be commonly used for all services in the service request processing system, and the first service request of the user may be directly processed. The universal identification string is used for identifying the identity of a user in all services, belongs to a link for associating a plurality of services in the invention, but does not relate to actual service processing, and the actual service processing still needs to be realized by depending on different identities of the user in different services, so that the front end needs to determine a first identification field string corresponding to the universal identification string in a first service, and the first identification field string is used for identifying the identity of the user in the first service, namely Token (Token) of the user in the service. Subsequently, the first identification field string is added to the first service request, so that the subsequent first service can process the service request of the user based on the identity data of the user in the first service.
203. And the front end sends the added first service request to the first service for processing.
In the embodiment of the present invention, after the first identification field string is added to the first service request, the added first service request may be sent to the first service for processing.
204. And if the universal identification string is not extracted from the browser, acquiring the universal identification string and the first identification field string based on the service server.
In the embodiment of the present invention, if the universal identification string is not extracted from the browser, it indicates that the user may be making a service request for the first time, and there is no universal identification string that can be universally used for all services yet, and the universal identification string needs to be allocated to the user to perform processing of the service request. In order to realize the calling of the service server, the domain name of the service server can be displayed when the universal identification string is not acquired, and the user uses the terminal to access the domain name, so that the calling of the service server is realized.
Specifically, when the universal identification string and the first identification field string are acquired, firstly, when the user enters the platform, the platform sets a user identification for the user, and provides the user identification for the enterprise to distinguish the user by the enterprise, so that the user identification of the user needs to be determined. Wherein the user identification may be Userid (user identifier) of the user. Further, when providing services for users, different services all need to rely on tokens of the users in the services, where the tokens are used to distinguish permissions of the different users in the services, and when processing a service request of a user, the Token needs to be executed strictly according to an instruction of the tokens, so that a first identification field string (that is, the tokens) corresponding to the user identifier in the first service is subsequently queried, so as to subsequently set a general identification string for the user based on the first identification field string. It should be noted that some users may use the first service for the first time, and these users have not been assigned the corresponding first identification field string by the first service, that is, there is no Token in the first service, and therefore, it is necessary to query whether there is the first identification field string based on the user identification. And if the user identifier has a corresponding first identifier field string in the first service, directly extracting the first identifier field string and using the first identifier field string in the subsequent process. If the user identifier does not have the corresponding first identifier field string in the first service, the user identifier is adopted to register in the first service, the first identifier field string is distributed to the first user identifier, and the first identifier field string which is just distributed is used in the follow-up process.
In the actual application process, the acquired first identification field string has the function of identifying the user and has uniqueness, so that the first identification field string can be directly used as the universal identification string of the user. However, considering that private data such as authority is involved in the first identification string and the like and the private data is directly used as general identification string data to cause a risk of leakage, the encryption information can be determined in the first identification string based on the service server, and the encryption information is filtered, so that a general identification string is generated, that is, information which can identify the user identity and can be disclosed in the first identification string is used as the general identification string. And after the universal labeling string is generated, correspondingly storing the universal identification string and the first identification field string, and associating the universal identification string and the first identification field string so as to obtain the first identification field string based on the universal identification string in the subsequent process.
It should be noted that, in order to represent the association relationship between the common identification string and the first identification field string, the service server may generate an iframe (web tag) including the common identification string and the first identification field string, and return the iframe to the front end, so that the front end may directly extract the common identification string from the iframe when receiving the iframe, thereby avoiding the front end from confusing the common identification string and the first identification field string that are separately sent.
205. And storing the general identification string in the browser, adding the first identification field string to the first service request, and sending the added first service request to the first service for processing.
In the embodiment of the invention, when the universal identification string and the first identification field string are obtained, the universal identification string is stored in the browser, so that the universal identification string can be directly obtained in the browser when other service requests are processed subsequently. And adding the first identification field string into the first service request, and sending the added first service request to the first service for processing, so that the first service executes processing of the service request for the user based on the first service request carrying the first identification field string.
In the practical application process, considering that the same general identification string is used for a long time and has the risk of embezzlement, and the general identification string is probably stolen by a malicious user for malicious operation, therefore, an expiration time can be set for the general identification string stored in the browser, if the time for extracting the general identification string in the browser exceeds the expiration time, the general identification string is determined to be invalid, the process for generating the general identification string needs to be executed again, the general identification string is generated again for the user, and the general identification string is stored in the browser. When the general identification string is stored, the previous general identification string in the Cookie can be covered by the newly generated general identification string, or the previous general identification string in the Cookie can be cleared first, and then the newly generated general identification string is stored in the Cookie. The expiration time can be 7 days, 15 days and the like, and the invention does not limit whether the expiration time is set or not and the specific value of the expiration time.
Through the operations in step 201 to step 205, a process of processing the service request is completed. In the actual application process, the user may also request other services of other platforms, that is, the subsequently requested service may not belong to the same platform as the first service mentioned above or belong to a different service on the same platform, and still needs to be implemented based on the universal identification string when accessing other services, and the method is as follows:
206. when a second service request sent by the browser to the second service is received, extracting the universal identification string from the browser, and if the universal identification string is extracted from the browser, executing the following step 207; if the universal identification string is not extracted from the browser, the above step 204 is performed.
In the embodiment of the invention, when a second service request sent by the browser to the second service is received, the universal identification string is still extracted from the browser. If the universal identification string is extracted from the browser, it indicates that the user already has the universal identification string that can be commonly used for all services in the service request processing system, and the second service request of the user may be directly processed, that is, the following step 207 is executed. If the universal identification string is not extracted from the browser, it indicates that the user may be making a service request for the first time, and there is no universal identification string that can be universally used for all services, and the user needs to be assigned the universal identification string to perform the processing of the service request, that is, the universal identification string may be generated by repeatedly executing the content in step 204. In the embodiment of the present invention, it is described that the second service and the first service do not belong to the same platform, and in the actual application process, for other services on the same platform as the first service, the request for other services may be implemented by executing steps 206 to 208.
207. And if the universal identification string is extracted from the browser, determining a second identification field string corresponding to the universal identification string in the second service, adding the second identification field string to the second service request, and sending the added second service request to the second service for processing.
In the embodiment of the present invention, if the universal identification string is extracted from the browser, it indicates that the user already has the universal identification string that can be universally used for all services in the service request processing system, and the second service request of the user is directly processed, so that a second identification field string corresponding to the universal identification string in the second service is determined, the second identification field string is added to the second service request, and the added second service request is sent to the second service for processing. The process of acquiring the first identification field in the second identification field string, that is, Token of the user in the second service, is the same as the process of acquiring the first identification field string in step 204, and is not described here again.
208. If the universal identification string is not extracted from the browser, the above processes from step 204 to step 205 are repeatedly executed.
In the embodiment of the present invention, if the universal identification string is not extracted from the browser, it indicates that the user may be making a service request for the first time, and there is no universal identification string that can be universally used for all services yet, and the universal identification string needs to be allocated to the user to perform processing of the service request. Specifically, first, based on the service server, the universal identification string and the second identification field string are obtained, and the universal identification string is stored in the browser. And then, adding the second identification field string into the second service request, and sending the added second service request to the second service for processing. The process of obtaining the common identification string based on the second identification field string is the same as the process of obtaining the common identification string based on the first identification field string in step 204, and is not repeated here.
In the actual application process, referring to fig. 2B, when the user makes a service request based on the service domain name of the first service, it is determined whether the browser used by the user contains a Cookie with a general identification string. And if the universal identification string exists, directly carrying the corresponding first identification field string of the universal identification string in the first service to carry out service request again on the service domain name of the first service. And if the identifier does not exist, requesting account services from the service server, receiving an iframe which is returned by the service server and contains the universal identifier string and the first identifier field string, storing the universal identifier string in the iframe in a browser, and extracting the first identifier field string in the iframe to perform service request again on the service domain name of the first service.
And then, if a service request of the user based on the service domain name of the second service is received, because the universal identification string is already stored in the browser, the universal identification string is directly carried in the service request of the user to the second service, so that a second identification field string of the universal identification string in the second service is determined, and the service request of the service domain name of the second service is carried out again by carrying the second identification field string.
The method provided by the embodiment of the invention extracts the universal identification string for identifying the identity of the user in all services in the browser when receiving the first service request sent by the browser to the first service, adds the first identification field string to the first service request by determining the corresponding first identification field string of the universal identification string in the first service, sends the added first service request to the first service for processing, identifies the identity of the user based on the universal identification string when receiving the service request of the second service which does not belong to the same platform as the first service, and further processes the service request of the second service, so that the identity identification of the user in all services can be realized based on the universal identification string, the problem that the same user cannot be identified by the same platform due to non-intercommunicating data is avoided, and the difficulty of service development is reduced, the processing efficiency of the service request is improved, and a large amount of processing resources are saved.
Further, as a specific implementation of the method shown in fig. 1, an embodiment of the present invention provides a service request processing apparatus, and as shown in fig. 3A, the apparatus includes: an extraction module 301, an addition module 302 and a sending module 303.
The extracting module 301 is configured to, when a first service request sent by a browser to a first service is received, extract a universal identification string from the browser, where the universal identification string is used to identify a user in all services;
the adding module 302 is configured to determine a first identification field string corresponding to the general identification string in the first service, and add the first identification field string to the first service request, where the first identification field string is used to identify the identity of the user in the first service;
the sending module 303 is configured to send the added first service request to the first service for processing;
the adding module 302 is further configured to, when a second service request sent by the browser to a second service is received, determine a second identification field string corresponding to the common identification string in the second service, and add the second identification field string to the second service request, where the second service and the first service do not belong to the same platform, and the second identification field string is used to identify the identity of the user in the second service;
the sending module 303 is further configured to send the added second service request to the second service for processing.
In a specific application scenario, the extraction module 301 is configured to obtain a small data Cookie of the browser, and extract the universal identification string from the Cookie.
In a specific application scenario, as shown in fig. 3B, the apparatus further includes: an acquisition module 304 and a storage module 305.
The obtaining module 304 is configured to, if the universal identification string is not extracted from the browser, obtain, based on a service server, the universal identification string and the first identification field string;
the storage module 305 is configured to store the universal identification string in the browser;
the adding module 302 is further configured to add the first identification field string to the first service request, and send the added first service request to the first service for processing.
In a specific application scenario, as shown in fig. 3C, the obtaining module 304 includes: an inquiring unit 3041, a generating unit 3042 and a storing unit 3043.
The querying unit 3041 is configured to determine a user identifier of the user, and query the first identifier field string corresponding to the user identifier in the first service;
the generating unit 3042, configured to determine, based on the service server, encryption information in the first identifier field string, filter the encryption information, and generate the universal identifier string;
the storage unit 3043 is configured to store the general identifier string and the first identifier field string correspondingly.
In a specific application scenario, the querying unit 3041 is configured to query whether the first identifier field string exists based on the user identifier; if the user identification has the corresponding first identification field string in the first service, extracting the first identification field string; if the user identifier does not have the corresponding first identifier field string in the first service, adopting the user identifier to register in the first service, and allocating the first identifier field string to the first user identifier.
In a specific application scenario, as shown in fig. 3D, the apparatus further includes: a setup module 306.
The setting module 306 is configured to set an expiration time for the universal identification string in the browser;
the obtaining module 304 is further configured to determine that the universal identification string is invalid if the time for extracting the universal identification string from the browser exceeds the expiration time, obtain the universal identification string based on the service server again, and store the universal identification string in the browser.
The device provided by the embodiment of the invention extracts the universal identification string for identifying the identity of the user in all services in the browser when receiving the first service request sent by the browser to the first service, adds the first identification field string to the first service request by determining the corresponding first identification field string of the universal identification string in the first service, sends the added first service request to the first service for processing, identifies the identity of the user based on the universal identification string when receiving the service request of the second service which does not belong to the same platform as the first service, and further processes the service request of the second service, so that the identity identification of the user in all services can be realized based on the universal identification string, the problem that the same user cannot be identified by the same platform due to non-intercommunicating data is avoided, and the difficulty of service development is reduced, the processing efficiency of the service request is improved, and a large amount of processing resources are saved.
It should be noted that other corresponding descriptions of the functional units related to the service request processing apparatus provided in the embodiment of the present invention may refer to the corresponding descriptions in fig. 1 and fig. 2A to fig. 2B, and are not described herein again.
In an exemplary embodiment, referring to fig. 4, there is further provided a device, where the device 400 includes a communication bus, a processor, a memory, and a communication interface, and may further include an input/output interface and a display device, where the functional units may communicate with each other through the bus. The memory stores computer programs, and the processor is used for executing the programs stored in the memory and executing the service request processing method in the embodiment.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the service request processing method.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present application can be implemented by hardware, and also by software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the implementation scenarios of the present application.
Those skilled in the art will appreciate that the figures are merely schematic representations of one preferred implementation scenario and that the blocks or flow diagrams in the figures are not necessarily required to practice the present application.
Those skilled in the art will appreciate that the modules in the devices in the implementation scenario may be distributed in the devices in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the present implementation scenario with corresponding changes. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above application serial numbers are for description purposes only and do not represent the superiority or inferiority of the implementation scenarios.
The above disclosure is only a few specific implementation scenarios of the present application, but the present application is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present application.

Claims (14)

1. A service request processing method, characterized in that the method comprises:
when a first service request sent by a browser to a first service is received, extracting a universal identification string in the browser, wherein the universal identification string is used for identifying the identity of a user in all services;
determining a first identification field string corresponding to the general identification string in the first service, and adding the first identification field string to the first service request, wherein the first identification field string is used for identifying the identity of the user in the first service;
sending the added first service request to the first service for processing;
when a second service request sent by the browser to a second service is received, determining a second identification field string corresponding to the general identification string in the second service, and adding the second identification field string to the second service request, wherein the second service and the first service do not belong to the same platform, and the second identification field string is used for identifying the identity of the user in the second service;
and sending the added second service request to the second service for processing.
2. The method of claim 1, wherein extracting the universal identification string in the browser comprises:
and acquiring a small data Cookie of the browser, and extracting the universal identification string from the Cookie.
3. The method according to claim 1, wherein after extracting the generic identification string in the browser when receiving a first service request sent by the browser to a first service, the method further comprises:
if the universal identification string is not extracted from the browser, acquiring the universal identification string and the first identification field string based on a service server;
storing the universal identification string in the browser;
and adding the first identification field string into the first service request, and sending the added first service request to the first service for processing.
4. The method of claim 3, wherein obtaining the generic identification string and the first identification field string based on the service server comprises:
determining the user identification of the user, and inquiring the first identification field string corresponding to the user identification in the first service;
based on the service server, determining encryption information in the first identification field string, filtering the encryption information, and generating the universal identification string;
and correspondingly storing the universal identification string and the first identification field string.
5. The method of claim 4, wherein said querying the first identification field string corresponding to the user identification in the first service comprises:
querying whether the first identification field string exists based on the user identification;
if the user identification has the corresponding first identification field string in the first service, extracting the first identification field string;
if the user identifier does not have the corresponding first identifier field string in the first service, adopting the user identifier to register in the first service, and allocating the first identifier field string to the first user identifier.
6. The method of claim 3, further comprising:
setting an expiration time for the universal identification string in the browser;
and if the time for extracting the universal identification string in the browser exceeds the expiration time, determining that the universal identification string is invalid, acquiring the universal identification string based on the service server again, and storing the universal identification string in the browser.
7. A service request processing apparatus, characterized in that the apparatus comprises:
the system comprises an extraction module, a service management module and a service management module, wherein the extraction module is used for extracting a universal identification string from a browser when a first service request sent to a first service by the browser is received, and the universal identification string is used for identifying the identity of a user in all services;
an adding module, configured to determine a first identification field string corresponding to the general identification string in the first service, and add the first identification field string to the first service request, where the first identification field string is used to identify an identity of the user in the first service;
the sending module is used for sending the added first service request to the first service for processing;
the adding module is further configured to determine a second identifier field string corresponding to the common identifier string in a second service when receiving the second service request sent by the browser to the second service, and add the second identifier field string to the second service request, where the second service and the first service do not belong to the same platform, and the second identifier field string is used for identifying the identity of the user in the second service;
the sending module is further configured to send the added second service request to the second service for processing.
8. The apparatus of claim 7, wherein the extracting module is configured to obtain a Cookie for the browser, and extract the universal identification string from the Cookie.
9. The apparatus of claim 7, further comprising:
an obtaining module, configured to obtain the common identifier string and the first identifier field string based on a service server if the common identifier string is not extracted from the browser;
the storage module is used for storing the universal identification string into the browser;
the adding module is further configured to add the first identification field string to the first service request, and send the added first service request to the first service for processing.
10. The apparatus of claim 9, wherein the obtaining module comprises:
the query unit is used for determining the user identifier of the user and querying the first identifier field string corresponding to the user identifier in the first service;
a generating unit, configured to determine, based on the service server, encryption information in the first identifier field string, filter the encryption information, and generate the universal identifier string;
and the storage unit is used for correspondingly storing the universal identification string and the first identification field string.
11. The apparatus according to claim 10, wherein the querying unit is configured to query whether the first identification field string exists based on the user identification; if the user identification has the corresponding first identification field string in the first service, extracting the first identification field string; if the user identifier does not have the corresponding first identifier field string in the first service, adopting the user identifier to register in the first service, and allocating the first identifier field string to the first user identifier.
12. The apparatus of claim 9, further comprising:
the setting module is used for setting expiration time for the universal identification string in the browser;
the obtaining module is further configured to determine that the universal identification string is invalid if the time for extracting the universal identification string in the browser exceeds the expiration time, obtain the universal identification string based on the service server again, and store the universal identification string in the browser.
13. An apparatus comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
14. A readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201911379099.XA 2019-12-27 2019-12-27 Service request processing method, device, equipment and readable storage medium Active CN111200645B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911379099.XA CN111200645B (en) 2019-12-27 2019-12-27 Service request processing method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911379099.XA CN111200645B (en) 2019-12-27 2019-12-27 Service request processing method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111200645A true CN111200645A (en) 2020-05-26
CN111200645B CN111200645B (en) 2022-07-19

Family

ID=70747493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911379099.XA Active CN111200645B (en) 2019-12-27 2019-12-27 Service request processing method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111200645B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112199659A (en) * 2020-12-03 2021-01-08 湖北亿咖通科技有限公司 Access method, system and electronic device for multi-service platform of vehicle
CN112540804A (en) * 2020-12-23 2021-03-23 北京百度网讯科技有限公司 Applet running method and device, electronic equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453328A (en) * 2007-12-06 2009-06-10 中国移动通信集团公司 Identity management system and identity authentication system
US20120144016A1 (en) * 2010-12-02 2012-06-07 Yahoo! Inc System and Method for Counting Network Users
CN107277049A (en) * 2017-07-27 2017-10-20 郑州云海信息技术有限公司 The access method and device of a kind of application system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453328A (en) * 2007-12-06 2009-06-10 中国移动通信集团公司 Identity management system and identity authentication system
US20120144016A1 (en) * 2010-12-02 2012-06-07 Yahoo! Inc System and Method for Counting Network Users
CN107277049A (en) * 2017-07-27 2017-10-20 郑州云海信息技术有限公司 The access method and device of a kind of application system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112199659A (en) * 2020-12-03 2021-01-08 湖北亿咖通科技有限公司 Access method, system and electronic device for multi-service platform of vehicle
WO2022116606A1 (en) * 2020-12-03 2022-06-09 亿咖通(湖北)科技有限公司 Multi service platform accessing method and system for vehicle, and electronic device
CN112540804A (en) * 2020-12-23 2021-03-23 北京百度网讯科技有限公司 Applet running method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN111200645B (en) 2022-07-19

Similar Documents

Publication Publication Date Title
CN109522735B (en) Data permission verification method and device based on intelligent contract
US20140289829A1 (en) Computer account management system and realizing method thereof
CN107527222B (en) Information processing method, device and system
CN108718337B (en) Website account login, verification and verification information processing method, device and system
CN105897704B (en) The methods, devices and systems of permission addition, permission addition request
CN101287018A (en) Integrated data-handling method and device based on multi-system user
CN111200645B (en) Service request processing method, device, equipment and readable storage medium
CN112468409A (en) Access control method, device, computer equipment and storage medium
CN111367945A (en) Report query method, device, equipment and computer readable storage medium
CN111506611A (en) Data query method, device, equipment and storage medium
CN108520401B (en) User list management method, device, platform and storage medium
CN111353136B (en) Method and device for processing operation request
CN104618388A (en) Quick registration and login method and corresponding reset server and information server
CN112150030A (en) Account management method based on multiple units and multiple identities, terminal equipment and storage medium
CN112087401A (en) Method and device for realizing service quality in distributed storage
CN114238879A (en) Data processing method and device
US10897462B2 (en) Systems and methods for encoding additional authentication data into an active directory security identifier
CN113221154A (en) Service password obtaining method and device, electronic equipment and storage medium
CN103326994A (en) Method and system for processing services
CN111324906A (en) Automatic access method and device based on data interface and electronic equipment
CN111027093A (en) Access right control method and device, electronic equipment and storage medium
CN108241732B (en) Electronic device, information processing method, and storage medium
CN115953119A (en) Form authority management method and device, storage medium and electronic equipment
CN115098738A (en) Service data extraction method and device, storage medium and electronic equipment
CN111988298B (en) Data processing method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CB03 Change of inventor or designer information

Inventor after: Nie Jiangnan

Inventor after: Du Chao

Inventor after: Shen Peng

Inventor before: Nie Jiangnan

Inventor before: Du Chao

CB03 Change of inventor or designer information
CP03 Change of name, title or address

Address after: 100102 201 / F, block C, 2 lizezhong 2nd Road, Chaoyang District, Beijing

Patentee after: Beijing Shuidi Technology Group Co.,Ltd.

Address before: Room 4103, room 101, floor 1, building 2, No. 208, Lize Zhongyuan, Chaoyang District, Beijing 100102

Patentee before: Beijing Health Home Technology Co.,Ltd.

CP03 Change of name, title or address