CN109309728A - A kind of data processing method and relevant apparatus - Google Patents

A kind of data processing method and relevant apparatus Download PDF

Info

Publication number
CN109309728A
CN109309728A CN201811259568.XA CN201811259568A CN109309728A CN 109309728 A CN109309728 A CN 109309728A CN 201811259568 A CN201811259568 A CN 201811259568A CN 109309728 A CN109309728 A CN 109309728A
Authority
CN
China
Prior art keywords
identification information
enterprise
user
server
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811259568.XA
Other languages
Chinese (zh)
Inventor
李彬
谢子琪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN201811259568.XA priority Critical patent/CN109309728A/en
Publication of CN109309728A publication Critical patent/CN109309728A/en
Pending legal-status Critical Current

Links

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the present application discloses a kind of data processing method and relevant apparatus, for reducing the difficulty of enterprise's deployment light application.The embodiment of the present application method includes: the light application service request that websocket server receives the user that web server is sent, light application service request includes the identification information of Target Enterprise and the identification information of user, and the identification information of Target Enterprise refers to the identification information for the enterprise that user to be accessed;When there are when the identification information of Target Enterprise in websocket server, the corresponding target proxy client of the identification information that light application service request is sent to Target Enterprise by websocket server, so that target proxy client obtains the corresponding business datum of light application service request from data server;Websocket server receives the business datum that target proxy client is sent and the identification information of user;Business datum is sent to web server by websocket server, so that business datum is sent to terminal device corresponding with the identification information of user by web server.

Description

A kind of data processing method and relevant apparatus
Technical field
The invention relates to data processing field more particularly to data processing method and relevant apparatus.
Background technique
Light application refers to the mobile application directly opened without installation using the exploitation of network web technology.Due to light application With without downloading, search and use immediately with powerful characteristic, therefore, the light application is especially popular with users, then, enterprise's energy Enough smoothly deployment light applications are to realize that the interaction with user is most important.
Currently, the domain name for the server in station that user is built using enterprise is address when user needs to access the light application Service request is sent, then, which receives the service request of user, and handle to the service request of user To the corresponding business datum of the service request, then, which returns to the user for the business datum.
In such scheme, which is by configuring domain name so that the service request of user can be smooth Ground is sent to the server in station of the enterprise, since configuration domain name needs enterprise to be configured to protect Internet Information Service The data transmission of intranet and extranet is demonstrate,proved, however, the process of setting Internet Information Service is more complicated, therefore, increases enterprise's deployment The difficulty of light application.
Summary of the invention
The embodiment of the present application provides a kind of light application dispositions method and relevant apparatus, gently answers for reducing enterprise's deployment Difficulty, to promote the user experience of enterprise.
In a first aspect, the embodiment of the present application provides a kind of data processing method, comprising:
After the service request that user has sent light application to web server, web server is taken the service request The identification information of the user of band and the identification information of Target Enterprise are sent to websocket server, then the websocket Server can receive the light application service request of the user of web server transmission.Then, when in the websocket server There are when the identification information of the Target Enterprise, which is sent to the target for the light application service request and looks forward to The corresponding target proxy client of the identification information of industry, is gently answered so that the target proxy client obtains this from data server With the corresponding business datum of service request.The corresponding business number of the light application service request is got to the target proxy client According to when, the websocket server receive the target proxy client transmission the business datum and the user mark letter Breath.Then, which is sent to web server for the business datum, so that the web server is by the industry Business data are sent to terminal device corresponding with the identification information of the user.
It should be noted that the light application service request includes the identification information of Target Enterprise and the mark letter of user Breath, the identification information of the Target Enterprise refer to the identification information for the enterprise that user to be accessed.
In the embodiment of the present application, websocket server is looked forward to according to the target carried in the light application service request of user The identification information of industry searches the identification information of the Target Enterprise, and then, the websocket server is by the light application service request It is sent to the corresponding target proxy client of identification information of the Target Enterprise, this is got to the target proxy client and gently answers After the corresponding business datum of service request, the business which sends the target proxy client Data return to web server, so that the business datum is returned to the user by the web server.Due in this programme The identification information of the identification information of user and Target Enterprise is directly sent to websocket server by web server, when this When having the identification information of the Target Enterprise in websocket server, which uses the mark of Target Enterprise Know information to go to search the agent client of the light application service request of processing user, and websocket server does not need domain name The agent client can be found by only needing the identification information of the Target Enterprise, be therefore, there is no need to enterprise and bought and be arranged Domain name, therefore the difficulty of enterprise's deployment light application is reduced, improve user experience.
According in a first aspect, in the first embodiment of the embodiment of the present application first aspect, the websocket server Before the light application service request for receiving the user that web server is sent, this method further include:
The websocket server receives the identification information for multiple enterprises that multiple agent clients are sent;
The websocket server saves the identification information of multiple enterprise.
In the embodiment of the present application, proposing websocket server can receive identification information and the storage of multiple enterprises The embodiment of the identification information of multiple enterprise is looked into from the identification information of multiple enterprises for subsequent websocket server It looks for Target Enterprise identification information to lay a good foundation, therefore, enhances the feasibility of the program.
According to the first embodiment of first aspect, in second of embodiment of the embodiment of the present application first aspect, Before the server receives the identification information for multiple enterprises that multiple agent clients are sent, this method further include:
The long connection request of the websocket server Receiving Agent client, and keep long with the agent client and connect Connect road;
After the websocket server receives the business datum of agent client transmission, websocket clothes The long connecting path being engaged between device closing and the agent client.
In the embodiment of the present application, specify it is the long company used between websocket server and multiple agent clients Therefore the mode connect enhances the feasibility of the program.
According to the first embodiment of first aspect, in the third embodiment of the embodiment of the present application first aspect, The corresponding target proxy visitor of the identification information that the light application service request is sent to the Target Enterprise by the websocket server Before the end of family, this method further include:
The websocket server judges to believe in the identification information of multiple enterprise with the presence or absence of the mark of the Target Enterprise Breath;
If there are the identification informations of the Target Enterprise in the identification information of multiple enterprise, it is determined that websocket clothes Being engaged in device, there are the identification informations of the Target Enterprise.
In the embodiment of the present application, specify that websocket server determines target enterprise from the identification information of multiple enterprises Therefore the identification information of industry enhances the feasibility of the program.
According to the third embodiment of first aspect, in the 4th kind of embodiment of the embodiment of the present application first aspect, This method further include:
If the identification information of the Target Enterprise is not present in the identification information of multiple enterprise, websocket service Device sends prompting message to the web server, and the prompting message is for prompting the user not to be available the target proxy client.
In the embodiment of the present application, specify when the mark that the Target Enterprise is not present in the identification information of multiple enterprise is believed When breath, which prompts the user not to be available the mesh for directly prompting message is sent to the web server Agent client is marked, therefore increases the realization flexibility of scheme.
According in a first aspect, in the 5th kind of embodiment of the embodiment of the present application first aspect, the websocket server Before the light application service request for receiving the user that web server is sent, this method further include:
Websocket server receives the long connection request that web server is sent, and keeps long with the web server and connect Connect road;
After the business datum is sent to web server by the websocket server, the websocket server Close the long connecting path between the web server.
In the embodiment of the present application, specify it is the long side connected used between websocket server and web server Therefore formula enhances the feasibility of the program.
According to any one reality in the first the 5th kind of embodiment to first aspect of first aspect, first aspect Apply mode, in the 6th kind of embodiment of the embodiment of the present application first aspect, which includes being equipped with client generation Manage the enterprise terminal equipment of program.
In the embodiment of the present application, specifies in the agent client and be at least mounted with that the terminal of Client Agent program is set It is standby, therefore, enhance the feasibility of the program.
Second aspect, the embodiment of the present application provide a kind of websocket server, comprising:
First receiving module, the light application service request of the user for receiving web server transmission, the light application business Request includes that the identification information of Target Enterprise and the identification information of user, the identification information of the Target Enterprise refer to that user is intended to access Enterprise identification information;
First sending module, for when in the websocket server there are when the identification information of the Target Enterprise, by this Light application service request is sent to the corresponding target proxy client of identification information of the Target Enterprise, so that the target proxy Client obtains the corresponding business datum of light application service request from data server;
Second receiving module, for receiving the business datum of target proxy client transmission and the mark of the user Know information;
Second sending module, for the business datum to be sent to web server, so that the web server is by the industry Business data are sent to terminal device corresponding with the identification information of the user.
In the embodiment of the present application, websocket server is looked forward to according to the target carried in the light application service request of user The identification information of industry searches the identification information of the Target Enterprise, and then, the websocket server is by the light application service request It is sent to the corresponding target proxy client of identification information of the Target Enterprise, this is got to the target proxy client and gently answers After the corresponding business datum of service request, the business which sends the target proxy client Data return to web server, so that the business datum is returned to the user by the web server.Due in this programme The identification information of the identification information of user and Target Enterprise is directly sent to websocket server by web server, when this When having the identification information of the Target Enterprise in websocket server, which uses the mark of Target Enterprise Know information to go to search the agent client of the light application service request of processing user, and websocket server does not need domain name The agent client can be found by only needing the identification information of the Target Enterprise, be therefore, there is no need to enterprise and bought and be arranged Domain name, therefore the difficulty of enterprise's deployment light application is reduced, improve user experience.
According to second aspect, in the first embodiment of the embodiment of the present application second aspect, the websocket server Further include:
Third receiving module, for receiving the identification information for multiple enterprises that multiple agent clients are sent;
Preserving module, for saving the identification information of multiple enterprise.
In the embodiment of the present application, proposing websocket server can receive identification information and the storage of multiple enterprises The embodiment of the identification information of multiple enterprise is looked into from the identification information of multiple enterprises for subsequent websocket server It looks for Target Enterprise identification information to lay a good foundation, therefore, enhances the feasibility of the program.
According to the first embodiment of second aspect, in second of embodiment of the embodiment of the present application second aspect, The websocket server further include:
First long link control module is protected for the long connection request of Receiving Agent client, and with the agent client Hold long connecting path;
The first long link control module is also used to receive agent client transmission when the websocket server After the business datum, the long connecting path between the agent client is closed.
In the embodiment of the present application, specify it is the long company used between websocket server and multiple agent clients Therefore the mode connect enhances the feasibility of the program.
According to the first embodiment of second aspect, in the third embodiment of the embodiment of the present application second aspect, The websocket server further include:
Judgment module whether there is the identification information of the Target Enterprise in the identification information for judging multiple enterprise;
Determining module, for when there are when the identification information of the Target Enterprise, being determined in the identification information of multiple enterprise There are the identification informations of the Target Enterprise in the websocket server.
In the embodiment of the present application, specify that websocket server determines target enterprise from the identification information of multiple enterprises Therefore the identification information of industry enhances the feasibility of the program.
According to the third embodiment of second aspect, in the 4th kind of embodiment of the embodiment of the present application second aspect, The websocket server further include:
Third sending module, for when the identification information that the Target Enterprise is not present in the identification information of multiple enterprise When, prompting message is sent to the web server, the prompting message is for prompting the user not to be available target proxy client End.
In the embodiment of the present application, specify when the mark that the Target Enterprise is not present in the identification information of multiple enterprise is believed When breath, which prompts the user not to be available the mesh for directly prompting message is sent to the web server Agent client is marked, therefore increases the realization flexibility of scheme.
According to second aspect, in the 5th kind of embodiment of the embodiment of the present application second aspect, the websocket server Further include:
Second long link control module, for receive web server transmission long connection request, and with the web server Keep long connecting path;
The second long link control module is also used to that the business datum is sent to web clothes when the websocket server It is engaged in after device, closes the long connecting path between the web server.
In the embodiment of the present application, specify it is the long side connected used between websocket server and web server Therefore formula enhances the feasibility of the program.
According to any one reality in the first the 5th kind of embodiment to second aspect of second aspect, second aspect Apply mode, in the 6th kind of embodiment of the embodiment of the present application second aspect, which includes being equipped with client generation Manage the enterprise terminal equipment of program.
In the embodiment of the present application, specifies in the agent client and be at least mounted with that the terminal of Client Agent program is set It is standby, therefore, enhance the feasibility of the program.
The third aspect, the embodiment of the present application provide a kind of websocket server, which executes Such as the method in aforementioned first aspect, which includes:
Processor, memory, bus and input-output apparatus;
The processor, the memory and the input-output apparatus are connect with the bus;
The memory is for storing program and data;
The input-output apparatus is for executing following steps:
The light application service request for the user that web server is sent is received, which includes Target Enterprise Identification information and user identification information, the identification information of the Target Enterprise refer to the enterprise that user to be accessed mark letter Breath;
When there are when the identification information of the Target Enterprise, which is sent out in the websocket server The corresponding target proxy client of identification information of the Target Enterprise is given, so that the target proxy client is from data service Device obtains the corresponding business datum of light application service request;
Receive the business datum of target proxy client transmission and the identification information of the user;
The business datum is sent to web server, so that the business datum is sent to and the use by the web server The corresponding terminal device of the identification information at family.
In the embodiment of the present application, websocket server is looked forward to according to the target carried in the light application service request of user The identification information of industry searches the identification information of the Target Enterprise, and then, the websocket server is by the light application service request It is sent to the corresponding target proxy client of identification information of the Target Enterprise, this is got to the target proxy client and gently answers After the corresponding business datum of service request, the business which sends the target proxy client Data return to web server, so that the business datum is returned to the user by the web server.Due in this programme The identification information of the identification information of user and Target Enterprise is directly sent to websocket server by web server, when this When having the identification information of the Target Enterprise in websocket server, which uses the mark of Target Enterprise Know information to go to search the agent client of the light application service request of processing user, and websocket server does not need domain name The agent client can be found by only needing the identification information of the Target Enterprise, be therefore, there is no need to enterprise and bought and be arranged Domain name, therefore the difficulty of enterprise's deployment light application is reduced, improve user experience.
According to the third aspect, in the first embodiment of the embodiment of the present application third aspect,
The input-output apparatus is also used to receive the identification information for multiple enterprises that multiple agent clients are sent;
The processor is also used to save the identification information of multiple enterprise.
In the embodiment of the present application, proposing websocket server can receive identification information and the storage of multiple enterprises The embodiment of the identification information of multiple enterprise is looked into from the identification information of multiple enterprises for subsequent websocket server It looks for Target Enterprise identification information to lay a good foundation, therefore, enhances the feasibility of the program.
According to the first embodiment of the third aspect, in second of embodiment of the embodiment of the present application third aspect,
The input-output apparatus is also used to the long connection request of the websocket server Receiving Agent client, and Long connecting path is kept with the agent client;
The processor is also used to the long connecting path closed between the agent client.
In the embodiment of the present application, specify it is the long company used between websocket server and multiple agent clients Therefore the mode connect enhances the feasibility of the program.
According to the first embodiment of the third aspect, in the third embodiment of the embodiment of the present application third aspect, The processor is also used to:
Judge the identification information that whether there is the Target Enterprise in the identification information of multiple enterprise;
If when, there are when the identification information of the Target Enterprise, determining the websocket in the identification information of multiple enterprise There are the identification informations of the Target Enterprise in server.
In the embodiment of the present application, specify that websocket server determines target enterprise from the identification information of multiple enterprises Therefore the identification information of industry enhances the feasibility of the program.
According to the third embodiment of the third aspect, in the 4th kind of embodiment of the embodiment of the present application third aspect, The processor is also used to:
When the identification information of the Target Enterprise is not present in the identification information of multiple enterprise, sent out to the web server Prompting message is sent, the prompting message is for prompting the user not to be available the target proxy client.
In the embodiment of the present application, specify when the mark that the Target Enterprise is not present in the identification information of multiple enterprise is believed When breath, which prompts the user not to be available the mesh for directly prompting message is sent to the web server Agent client is marked, therefore increases the realization flexibility of scheme.
According to the third aspect, in the 5th kind of embodiment of the embodiment of the present application third aspect,
The input-output apparatus is also used to receive the long connection request of web server transmission, and protects with the web server Hold long connecting path;
The processor is also used to the long connecting path closed between the web server.
In the embodiment of the present application, specify it is the long side connected used between websocket server and web server Therefore formula enhances the feasibility of the program.
According to any one reality in the first the 5th kind of embodiment to the third aspect of the third aspect, the third aspect Apply mode, in the 6th kind of embodiment of the embodiment of the present application third aspect, which includes being equipped with client generation Manage the enterprise terminal equipment of program.
In the embodiment of the present application, specifies in the agent client and be at least mounted with that the terminal of Client Agent program is set It is standby, therefore, enhance the feasibility of the program.
Fourth aspect, the embodiment of the present application provide a kind of data processing method, comprising:
When the light application service request for the user that web server receiving terminal apparatus is sent, which can be to Websocket server sends the light application service request of the user, so that the websocket server is according to the user's The identification information of Target Enterprise in light application service request determines target proxy corresponding with the identification information of the Target Enterprise Client, then, the web server can receive the business datum and the user of websocket server transmission Identification information, finally, the business datum is sent to terminal device corresponding with the identification information of the user by the web server.
It should be noted that the light application service request includes the identification information of Target Enterprise and the mark letter of user Breath, the identification information of the Target Enterprise refer to the identification information for the enterprise that user to be accessed, which is used for from number The corresponding business datum of light application service request is obtained according to server.
It, should when the light application service request for the user that web server receiving terminal apparatus is sent in the embodiment of the present application The light application service request of the user is sent to websocket server by web server, so that the websocket is serviced Device is according to the determining identification information with the Target Enterprise of the identification information of the Target Enterprise in the light application service request of the user Corresponding target proxy client, then, the web server can receive the business number of websocket server transmission According to and the user identification information, finally, the business datum is sent to the identification information with the user by the web server Corresponding terminal device.Since web server is directly the identification information of the identification information of user and Target Enterprise in this programme It is sent to websocket server, it, should when having the identification information of the Target Enterprise in the websocket server Websocket server goes to search the proxy client of the light application service request of processing user using the identification information of Target Enterprise End, and websocket server does not need domain name and only needs the identification information of the Target Enterprise that can find agency visitor Family end therefore, there is no need to enterprise and buy and be arranged domain name, therefore reduce the difficulty of enterprise's deployment light application, improve user Experience.
5th aspect, the embodiment of the present application provide a kind of data processing method, comprising:
Terminal device sends the light application service request of user, which includes the mark letter of Target Enterprise Breath and the identification information of user, the identification information of the Target Enterprise refer to the identification information for the enterprise that user to be accessed, the target For determining target proxy client, which is used to obtain this from data server light the identification information of enterprise Applied business requests corresponding business datum;The terminal device receives the light application business with the user that web server is sent Corresponding business datum is requested, which is used to obtain being somebody's turn to do for target proxy client transmission from websocket server Business datum.
6th aspect, the embodiment of the present application provides a kind of computer readable storage medium, including instruction, when it is being calculated When being run on machine, so that computer executes the method such as first aspect.
7th aspect, the embodiment of the present application provides a kind of computer program product comprising instruction, when it is in computer When upper operation, so that computer executes the method such as first aspect.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that
In the embodiment of the present application, websocket server is looked forward to according to the target carried in the light application service request of user The identification information of industry searches the identification information of the Target Enterprise, and then, the websocket server is by the light application service request It is sent to the corresponding target proxy client of identification information of the Target Enterprise, this is got to the target proxy client and gently answers After the corresponding business datum of service request, the business which sends the target proxy client Data return to web server, so that the business datum is returned to the user by the web server.Due in this programme The identification information of the identification information of user and Target Enterprise is directly sent to websocket server by web server, when this When having the identification information of the Target Enterprise in websocket server, which uses the mark of Target Enterprise Know information to go to search the agent client of the light application service request of processing user, and websocket server does not need domain name The agent client can be found by only needing the identification information of the Target Enterprise, be therefore, there is no need to enterprise and bought and be arranged Domain name, therefore the difficulty of enterprise's deployment light application is reduced, improve user experience.
Detailed description of the invention
Fig. 1 is a network architecture diagram of data processing method in the embodiment of the present application;
A flow chart of data processing method in Fig. 2 the embodiment of the present application;
Another flow chart of data processing method in Fig. 3 the embodiment of the present application;
Fig. 4 is one embodiment schematic diagram of websocket server in the embodiment of the present application;
Fig. 5 is another embodiment schematic diagram of websocket server in the embodiment of the present application;
Fig. 6 is one embodiment schematic diagram of web server in the embodiment of the present application;
Fig. 7 is another embodiment schematic diagram of web server in the embodiment of the present application.
Specific embodiment
The embodiment of the present application provides a kind of light application dispositions method and relevant apparatus, gently answers for reducing enterprise's deployment Difficulty, to promote the user experience of enterprise.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so as to embodiments herein described herein can in addition to Here the sequence other than those of diagram or description is implemented.In addition, term " includes " and " having " and their any deformation, Be intended to cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, product or setting It is standby those of to be not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for these mistakes The intrinsic other step or units of journey, method, product or equipment.
Below to the invention relates to some terms be introduced:
Light application: refer to the mobile application directly opened without installation using web technology exploitation.
Web server (website server): publication, the application being mainly used in the internet of website, are that network is answered Underlying hardware facility.The cloud server of the service request of processing light application user is referred in the embodiment of the present application.
Websocket server: referring to the server using websocket protocol, which is based on transmission The new network protocol of one kind of (transmission control protocol, TCP) agreement is controlled, browser may be implemented It is communicated with server full duplex (full-duplex).
Full-duplex communication (full-duplex transmission): refer to that interchanger can also connect while sending data Data are received, the two is synchronous to be carried out, and is had and is delayed small, fireballing advantage.
Client Agent program: the embodiment of the present application middle finger has the related data of agency's processing light application service request Program.
Agent client: the embodiment of the present application middle finger be equipped with Client Agent program terminal device or other have The equipment of the function of the related data of agency's processing light application service request.
Long connection: multiple data packets can be continuously transmitted in a connection by referring to, during connecting holding, if do not counted It is sent according to packet, both sides is needed to send out link detecting packet.
The family of cloud: being a kind of mobile oa platform, family's platform of the cloud to organize, message, it is social be core, pass through application Third party is accessed at center, provides mobile office application abundant to enterprise and user, while it is existing to connect enterprise Business helps enterprise/team to break department and territory restriction, improves communication and cooperation efficiency.
The application scenarios adapted to below the embodiment of the present application are introduced:
The infrastructure service that the web application that the family that the method that the embodiment of the present application is proposed is mainly used in cloud provides can call Scene, the service be for the ease of enterprise cloud family's platform upper affix one's name to light application, thus make enterprise dispose please apply energy It enough incorporates among the frame of family of cloud, and then obtains the information of light application user, to realize some business functions.
It should be noted that the method that the embodiment of the present application is proposed is applicable not only to family's platform of cloud, can be also used for Others have the platform of the business such as similar mobile office, for example, nail nail etc., specifically herein without limitation.In the present embodiment And in subsequent embodiment, only it is introduced by taking family's platform of cloud as an example.
In the present embodiment, the method for the data processing is based on network frame as shown in Figure 1, wherein most important part It is two cloud servers: websocket server and web server.The two servers are connection agent clients and light Using the key of user, specifically, the web server can carry out data interaction directly between light application user, except this it Outside, it is used between the websocket server and web server and between websocket server and agent client Therefore websocket full-duplex communication can quickly complete the data exchange between each section.
For ease of understanding, the detailed process in the present embodiment is introduced below, as shown in Fig. 2, being that the present embodiment mentions The data processing method of confession, the websocket server in this method execute following steps, comprising:
When agent client is connect with Cloud Server for the first time, which can service to the websocket Device sends long connection request.If the websocket server has received the long connection request of the agent client, then should Websocket server forms long connecting path convenient for the agent client.Then, which can be to this Websocket server sends the identification information for the enterprise that the agent client is acted on behalf of, and the identification information of the enterprise can only be only One one business account of mark, that is to say, that the identification information of the enterprise and the business account correspond, then due to an enterprise Industry generally only applies for a business account, so the identification information of the enterprise can be corresponded with enterprise.So when this When websocket server receives and saves the identification information of the enterprise, which can determine that there are one The enterprise of a light application to be disposed.Then, which can continue to keep connecting with the long of the agent client Access, to wait the agent client to continue to send data to the websocket server.Certainly, the websocket server Can also be closed with regard to this with the agency can client long connecting path because retention time of the long connecting path can be by Operation maintenance personnel is configured in light of the circumstances, specifically herein without limitation.
It should be noted that since the websocket server is public cloud server, so the websocket takes Being engaged in device can be simultaneously with the long connecting path of multiple agent clients holding, and therefore, which may receive simultaneously The identification information for multiple enterprises that multiple agent clients are sent, and the mark letter of these multiple enterprises is stored in this In websocket server, when there is user to be intended to using the light application, which executes step 201.
201, websocket server receives the light application service request for the user that web server is sent;
In the present embodiment, after user sends light application service request to the web server, which can be with Long connection request is sent to the websocket server, then, websocket server receives the long company that web server is sent Request is connect, and keeps long connecting path with the web server.Then, which can be with the web services Device carries out data interaction, and therefore, which can be transmitted to the service request websocket server, then, should Websocket server can receive the light application service request of the user of web server transmission, wherein the light application business Request includes at least the identification information of Target Enterprise and the identification information of user, and the identification information of the Target Enterprise refers to that user is intended to The identification information of the enterprise of access.It should be noted that the websocket server is in the use for having received web server transmission After the light application service request at family, the long connecting path can be kept, to the websocket server by the service request pair After the business datum answered returns to the web server, which is turned off and the length between the web server Connecting path.It certainly, can also be between the holding of the long connecting path between the websocket server and the web server Specifically it is arranged by operation maintenance personnel, specifically herein without limitation.
202, when in the websocket server there are when the identification information of the Target Enterprise, the websocket server The corresponding target proxy client of the identification information that the light application service request is sent to the Target Enterprise, so that the target Agent client obtains the corresponding business datum of light application service request from data server;
Target Enterprise in the present embodiment, in the service request that the websocket server receives light application user Identification information after, the websocket server will judge the websocket server internal storage multiple enterprises mark Know the identification information that whether there is the Target Enterprise in information.If in the identification information of multiple enterprise, there are the Target Enterprises Identification information, it is determined that there are the identification informations of the Target Enterprise in the websocket server, and then the websocket takes The corresponding target proxy client of identification information that the light application service request is sent to the Target Enterprise by business device, so that should Target proxy client obtains the corresponding business datum of light application service request from data server.
In the present embodiment, when there is no should in the identification information of multiple enterprises of websocket server internal storage When the identification information of Target Enterprise, which executes step 205.
It should be noted that the target proxy client is because be equipped with Client Agent program, it is possible to parsing from The data that websocket server receives, and initial data is got from local database server, then, then pass through It crosses business logic processing and obtains the corresponding business datum of light application service request of the user, finally return to the business datum The websocket server.It should be understood that the target proxy client can be the end for being equipped with Client Agent program End equipment is also possible to the other equipment with agency and service processing function, specifically herein without limitation.
203, the websocket server receives the business datum and user of target proxy client transmission Identification information;
In the present embodiment, after the business datum is sent to the websocket server by the target proxy client, The websocket server can receive the business datum and the light application user of target proxy client transmission Identification information.
204, the business datum is sent to web server by the websocket server, so that the web server will The business datum is sent to terminal device corresponding with the identification information of the user.
In the present embodiment, when the websocket server receive the target proxy client transmission the business datum with And after the identification information of the user, which can be sent to web server for the business datum, so that It obtains the web server and the business datum is sent to terminal device corresponding with the identification information of the user.
205, the websocket server sends prompting message to the web server, and the prompting message is for prompting the use Family is not available the target proxy client.
In the present embodiment, when the identification information of the Target Enterprise is not present in the identification information of multiple enterprise, then should Websocket server sends prompting message to the web server, and the prompting message is for prompting the user not to be available the mesh Mark agent client.
In the embodiment of the present application, websocket server is looked forward to according to the target carried in the light application service request of user The identification information of industry searches the identification information of the Target Enterprise, and then, the websocket server is by the light application service request It is sent to the corresponding target proxy client of identification information of the Target Enterprise, this is got to the target proxy client and gently answers After the corresponding business datum of service request, the business which sends the target proxy client Data return to web server, so that the business datum is returned to the user by the web server.Due in this programme The identification information of the identification information of user and Target Enterprise is directly sent to websocket server by web server, when this When having the identification information of the Target Enterprise in websocket server, which uses the mark of Target Enterprise Know information to go to search the agent client of the light application service request of processing user, and websocket server does not need domain name The agent client can be found by only needing the identification information of the Target Enterprise, be therefore, there is no need to enterprise and bought and be arranged Domain name, therefore the difficulty of enterprise's deployment light application is reduced, improve user experience.
The data processing method in the present embodiment is described above, below to the data processing side in the present embodiment Another embodiment of method is introduced, as shown in figure 3, the data processing method in the present embodiment includes:
When enterprise prepares when family's platform upper of cloud affixes one's name to light application, which needs to install on the first terminal device of oneself Client Agent program, then, the terminal device just have the function of agency's processing business datum, when family's account of the cloud of the enterprise After family logs in the Client Agent program on the terminal device, which becomes the business that the enterprise is handled for agency The agent client of data.
It should be noted that family's platform that family's account of the cloud of the enterprise is cloud can uniquely be distinguished respectively to what enterprise distributed The identity account of a enterprise, certainly, number corresponding to the account can directly as the identification information of the enterprise, still, The account of the enterprise can be converted to the identification information with the enterprise ID by character string identification as the enterprise, specifically herein Without limitation.In the present embodiment and subsequent embodiment, only it is introduced by taking enterprise ID as an example.Certainly, if user wants to use The enterprise is in the light application of family's platform building of cloud, then the user is also required to one light application user account of registration, uniquely to mark Know the identity of the light application user, therefore, each light application user also has a unique user identity information.It is similar to In the identification information of enterprise, the present embodiment and subsequent embodiment, the identification information of user is only introduced by taking User ID as an example.
It should be understood that becoming agent client after the installing terminal equipment Client Agent program of enterprise Terminal device be just provided with the Cloud Server of Yun Zhijia carry out data interaction ability.Wherein, which includes Websocket server and web server, also, the websocket server uses websocket protocol, so, it should Between websocket server and agent client, it may be implemented between the websocket server and web server complete double Work communication, and then guarantee the data interaction between each section more quickly and efficiently.
In addition to this, when the business account logs on the agent client, which can be to enterprise's account Family carries out authentication, for example, verify the account to be logged in whether lawful registration etc..After the authentication passes through, the generation Reason client can know enterprise ID, and then, which can send long connect to the websocket server Request is connect, when the websocket server receives the long connection request of the agent client and keeps growing with the agent client After connecting path, which can continue to send enterprise ID to the websocket server.Then, should Websocket server can receive and save the enterprise ID of the transmission of the agent client, and keep and agency visitor The long connecting path at family end.
Similar, which can also receive other enterprises that the agent client of other enterprises is sent Enterprise ID multiple enterprise ID are therefore stored in the websocket server, these multiple enterprise ID respectively correspond difference Enterprise.
301, light application user sends light application service request to web server;
In the present embodiment, when light application user prepares to access certain enterprise in the family Platform deployment of the cloud in family's platform of cloud When light application, the light application user can using family's Account Logon of cloud cloud family's platform and click that this to be accessed and enterprise Link, at this point, terminal device used in the light application user can to web server send light application service request.
302, web server sends light application service request to websocket server;
In the present embodiment, after the web server receives the light application service request, which will be to this Websocket server sends long connection request, should after the websocket server has received the long connection request Websocket server keeps long connecting path convenient for the web server, and then, which can be to this Websocket server sends the light application service request of the user, which includes at least User ID and use The ID of the family Target Enterprise to be accessed, in addition, the service request is also possible to carry the content of the data of user request, specifically Herein without limitation.
303, websocket server judges whether there is Target Enterprise ID, and if it exists, 304 is thened follow the steps, if not depositing Thening follow the steps 311.
In the present embodiment, when the websocket server receive the web server transmission light application service request it Afterwards, which will judge to whether there is among multiple enterprise ID that each agent client receives in the past to be somebody's turn to do Target Enterprise ID, and if it exists, then follow the steps 304, then follow the steps 311 if it does not exist.
304, websocket server sends the light application service request to target proxy client;
In the present embodiment, when the websocket server in the past from each agent client receive multiple enterprise ID it When the middle ID there are the Target Enterprise, then illustrate there is target proxy client corresponding with Target Enterprise ID and be somebody's turn to do Websocket server remains long connecting path, and then, which can be directly to target proxy visitor Family end sends the light application service request.Also, the websocket server will still be kept and the target proxy client Long connecting path, and the target proxy client is waited to return to the corresponding business datum of light application service request.
305, target proxy client sends initial data request to data server;
In the present embodiment, after the target proxy client receives the light application service request, target proxy client End can send initial data request to local data server, with request original relevant to the light application service request Beginning data.
306, target proxy client receives the initial data that data server returns;
In the present embodiment, to the local data service device find business datum relevant to the light application service request it Afterwards, which can receive the initial data of data server return.
307, target proxy client carries out business logic processing to initial data and obtains business datum;
In the present embodiment, after the target proxy client receives the initial data of data server return, the mesh Mark agent client can carry out business logic processing to initial data and obtain business datum.It should be understood that for difference The logical process of request content, the target proxy client will be different, specifically herein without limitation.
308, the business datum and User ID are sent to websocket server by target proxy client;
In the present embodiment, after the target proxy client process complete light application service request, target proxy visitor The business datum handled well and User ID corresponding with the business datum can be sent to websocket server by family end.
309, the business datum and User ID are sent to web server by websocket server;
In the present embodiment, when the websocket server have received the target proxy client transmission business datum it Afterwards, which will close the long connecting path between the target proxy client.Also, the websocket Server will the business datum that receives of parsing, find the corresponding User ID of the business datum, and find according to User ID corresponding The business datum that the target proxy client received is sent is sent to Web server by the connection of light application user.
310, the business datum is sent to the light application user by web server;
It, can be according to User ID by the business number after web server receives the business datum in the present embodiment According to being sent to the light application user.
311, Target Enterprise ID is not present in websocket server prompts web server;
In the present embodiment, when in the past the websocket server determines the multiple enterprises received from each agent client There is no Target Enterprise ID among ID, then the websocket server can prompt web server that Target Enterprise ID is not present.
312, target proxy client is not present in web server prompt light application user.
In the present embodiment, when the web server receive websocket server transmission there is no Target Enterprise ID Prompt after, the web server will to this please using user prompt be not present the target proxy client.
In the embodiment of the present application, websocket server is looked forward to according to the target carried in the light application service request of user The identification information of industry searches the identification information of the Target Enterprise, and then, the websocket server is by the light application service request It is sent to the corresponding target proxy client of identification information of the Target Enterprise, this is got to the target proxy client and gently answers After the corresponding business datum of service request, the business which sends the target proxy client Data return to web server, so that the business datum is returned to the user by the web server.Due in this programme The identification information of the identification information of user and Target Enterprise is directly sent to websocket server by web server, when this When having the identification information of the Target Enterprise in websocket server, which uses the mark of Target Enterprise Know information to go to search the agent client of the light application service request of processing user, and websocket server does not need domain name The agent client can be found by only needing the identification information of the Target Enterprise, be therefore, there is no need to enterprise and bought and be arranged Domain name, therefore the difficulty of enterprise's deployment light application is reduced, improve user experience.
The websocket server 400 in the present embodiment is introduced below, as shown in figure 4, be the present embodiment provides A kind of 400 structural schematic diagram of websocket server, which can produce because configuration or performance are different Raw bigger difference, may include one or more processors (central processing units, CPU) 401 With memory 402, one or more storage application programs or data storage medium 403 (such as one or more Mass memory unit).Wherein, memory 402 and storage medium 403 can be of short duration storage or persistent storage.Further, Processor 401 can be set to communicate with storage medium 403, and processor 401 is used to execute the application journey in storage medium 403 Sequence.
In addition to this, which further includes the input-output apparatus 405, for executing following step It is rapid:
The light application service request for the user that web server is sent is received, which includes Target Enterprise Identification information and user identification information, the identification information of the Target Enterprise refer to the enterprise that user to be accessed mark letter Breath;
When in the websocket server 400 there are when the identification information of the Target Enterprise, by the light application service request It is sent to the corresponding target proxy client of identification information of the Target Enterprise, so that the target proxy client takes from data Business device obtains the corresponding business datum of light application service request;
Receive the business datum of target proxy client transmission and the identification information of the user;
The business datum is sent to web server, so that the business datum is sent to and the use by the web server The corresponding terminal device of the identification information at family.
Optionally, the input-output apparatus 405 is also used to receive the mark for multiple enterprises that multiple agent clients are sent Know information;
Optionally, the processor 401, is also used to save the identification information of multiple enterprise.
Optionally, the input-output apparatus 405, is also used to the long connection request of Receiving Agent client, and with the agency Client keeps long connecting path;
Optionally, the processor 401 is also used to the long connecting path closed between the agent client.
Optionally, which is also used to:
Judge the identification information that whether there is the Target Enterprise in the identification information of multiple enterprise;
If when, there are when the identification information of the Target Enterprise, determining the websocket in the identification information of multiple enterprise There are the identification informations of the Target Enterprise in server 400.
Optionally, which is also used to:
When the identification information of the Target Enterprise is not present in the identification information of multiple enterprise, sent out to the web server Prompting message is sent, the prompting message is for prompting the user not to be available the target proxy client.
Optionally, the input-output apparatus 405, be also used to receive web server transmission long connection request, and with this Web server keeps long connecting path;
Optionally, the processor 401 is also used to the long connecting path closed between the web server.
It should be understood that the websocket server 400 can also include one or more power supplys 404, and/or, one Or more than one operating system, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM Deng.
It should also be understood that in embodiment of the method corresponding to above-mentioned Fig. 2 or Fig. 3, performed by the websocket server 400 The step of can be based on 400 structure of websocket server shown in Fig. 4.
In the embodiment of the present application, websocket server 400 is according to the target carried in the light application service request of user The identification information of enterprise searches the identification information of the Target Enterprise, and then, the websocket server 400 is by the light application industry Business request is sent to the corresponding target proxy client of identification information of the Target Enterprise, gets to the target proxy client After the corresponding business datum of light application service request, which sends the target proxy client The business datum return to web server so that the business datum is returned to the user by the web server.Due to this The identification information of the identification information of user and Target Enterprise is directly sent to websocket server by web server in scheme 400, when having the identification information of the Target Enterprise in the websocket server 400, which is adopted The agent client of the light application service request of lookup processing user is removed with the identification information of Target Enterprise, and websocket takes Business device 400 does not need domain name and only needs the identification information of the Target Enterprise that can find the agent client, therefore, is not required to It wants enterprise to buy and domain name is set, therefore reduce the difficulty of enterprise's deployment light application, improve user experience.
Another embodiment of the websocket server 500 in the present embodiment is introduced below, as shown in figure 5, this Websocket server 500 includes: in embodiment
First receiving module 501, the light application service request of the user for receiving web server transmission, the light application Service request includes the identification information of Target Enterprise and the identification information of user, and the identification information of the Target Enterprise refers to that user is intended to The identification information of the enterprise of access;
First sending module 502, for when there are the identification informations of the Target Enterprise in the websocket server 500 When, the corresponding target proxy client of the identification information which is sent to the Target Enterprise, so that should Target proxy client obtains the corresponding business datum of light application service request from data server;
Second receiving module 503, for receiving the business datum and the user of target proxy client transmission Identification information;
Second sending module 504, for the business datum to be sent to web server, so that the web server should Business datum is sent to terminal device corresponding with the identification information of the user.
The websocket server 500 further include:
Third receiving module 505, for receiving the identification information for multiple enterprises that multiple agent clients are sent;
Preserving module 506, for saving the identification information of multiple enterprise.
The websocket server 500 further include:
First long link control module 507, for the long connection request of Receiving Agent client, and with the agent client Keep long connecting path;
The first long link control module 507 is also used to receive the agent client when the websocket server 500 After the business datum sent, the long connecting path between the agent client is closed.
The websocket server 500 further include:
Judgment module 508 is believed with the presence or absence of the mark of the Target Enterprise in the identification information for judging multiple enterprise Breath;
Determining module 509, for when in the identification information of multiple enterprise there are when the identification information of the Target Enterprise, really There are the identification informations of the Target Enterprise in the fixed websocket server 500.
The websocket server 500 further include:
Third sending module 510, for when there is no the marks of the Target Enterprise to believe in the identification information of multiple enterprise When breath, prompting message is sent to the web server, the prompting message is for prompting the user not to be available target proxy client End.
The websocket server 500 further include:
Second long link control module 511, for receive web server transmission long connection request, and with the web services Device keeps long connecting path;
The second long link control module 511 is also used to send the business datum when the websocket server 500 After web server, the long connecting path between the web server is closed.
In the embodiment of the present application, websocket server 500 is according to the target carried in the light application service request of user The identification information of enterprise searches the identification information of the Target Enterprise, and then, the websocket server 500 is by the light application industry Business request is sent to the corresponding target proxy client of identification information of the Target Enterprise, gets to the target proxy client After the corresponding business datum of light application service request, which sends the target proxy client The business datum return to web server so that the business datum is returned to the user by the web server.Due to this The identification information of the identification information of user and Target Enterprise is directly sent to websocket server by web server in scheme 500, when having the identification information of the Target Enterprise in the websocket server 500, which is adopted The agent client of the light application service request of lookup processing user is removed with the identification information of Target Enterprise, and websocket takes Business device 500 does not need domain name and only needs the identification information of the Target Enterprise that can find the agent client, therefore, is not required to It wants enterprise to buy and domain name is set, therefore reduce the difficulty of enterprise's deployment light application, improve user experience.
The web server 600 in the present embodiment is introduced below, as shown in fig. 6, being one kind provided in this embodiment 600 structural schematic diagram of web server, the web server 600 can generate bigger difference because configuration or performance are different, can To include one or more processors 601 and memory 602, one or more storage application programs or data are deposited Storage media 603 (such as one or more mass memory units).Wherein, memory 602 and storage medium 603 can be short Temporary storage or persistent storage.Further, processor 601 can be set to communicate with storage medium 603, and processor 601 is used Application program in execution storage medium 603.
In addition to this, which further includes input-output apparatus 605, for executing following steps:
The light application service request for the user that receiving terminal apparatus is sent, the light application service request includes Target Enterprise Identification information and user identification information, the identification information of the Target Enterprise refer to the enterprise that user to be accessed mark letter Breath;
The light application service request of the user is sent to websocket server, so that the websocket is serviced Device is according to the determining mark with the Target Enterprise of the identification information of the Target Enterprise in the light application service request of the user The corresponding target proxy client of information, the target proxy client are used to obtain the light application business from data server Request corresponding business datum;
Receive the identification information of the business datum and the user that the websocket server is sent;
The business datum is sent to terminal device corresponding with the identification information of the user.
It should be understood that the web server 600 can also include one or more power supplys 604, and/or, one or one Above operating system, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
It should also be understood that in embodiment of the method corresponding to above-mentioned Fig. 2 or Fig. 3, step performed by the web server 600 600 structure of web server shown in fig. 6 can be based on.
In the embodiment of the present application, when the light application service request for the user that 600 receiving terminal apparatus of web server is sent When, which is sent to websocket server for the light application service request of the user, so that should Websocket server is looked forward to according to the identification information of the Target Enterprise in the light application service request of the user is determining with the target The corresponding target proxy client of the identification information of industry, then, which can receive the websocket server Send the business datum and the user identification information, finally, the web server 600 by the business datum be sent to The corresponding terminal device of the identification information of the user.Since web server 600 is directly the identification information of user in this programme It is sent to websocket server with the identification information of Target Enterprise, when having the Target Enterprise in the websocket server Identification information when, the websocket server using Target Enterprise identification information go search processing user light application industry The agent client of business request, and websocket server does not need domain name and only needs the identification information of the Target Enterprise can To find the agent client, it therefore, there is no need to enterprise and buy and be arranged domain name, therefore reduce enterprise's deployment light application Difficulty improves user experience.
Another embodiment of the web server 700 in the present embodiment is introduced below, as shown in fig. 7, the present embodiment Middle web server 700 includes:
First receiving module 701, for the light application service request for the user that receiving terminal apparatus is sent, the light application Service request includes the identification information of Target Enterprise and the identification information of user, and the identification information of the Target Enterprise refers to user The identification information for the enterprise to be accessed;
First sending module 702, for sending the light application service request of the user to websocket server, with So that the websocket server is determined according to the identification information of the Target Enterprise in the light application service request of the user Target proxy client corresponding with the identification information of the Target Enterprise, the target proxy client are used for from data service Device obtains the corresponding business datum of the light application service request;
Second receiving module 703, the business datum sent for receiving the websocket server, Yi Jisuo State the identification information of user;
Second sending module 704, for the business datum to be sent to end corresponding with the identification information of the user End equipment.
In the embodiment of the present application, when the light application service request for the user that 700 receiving terminal apparatus of web server is sent When, which is sent to websocket server for the light application service request of the user, so that should Websocket server is looked forward to according to the identification information of the Target Enterprise in the light application service request of the user is determining with the target The corresponding target proxy client of the identification information of industry, then, which can receive the websocket server Send the business datum and the user identification information, finally, the web server 700 by the business datum be sent to The corresponding terminal device of the identification information of the user.Since web server 700 is directly the identification information of user in this programme It is sent to websocket server with the identification information of Target Enterprise, when having the Target Enterprise in the websocket server Identification information when, the websocket server using Target Enterprise identification information go search processing user light application industry The agent client of business request, and websocket server does not need domain name and only needs the identification information of the Target Enterprise can To find the agent client, it therefore, there is no need to enterprise and buy and be arranged domain name, therefore reduce enterprise's deployment light application Difficulty improves user experience.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit is drawn Point, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for The mutual coupling, direct-coupling or communication connection of opinion can be through some interfaces, the INDIRECT COUPLING of device or unit Or communication connection, it can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member for this, show as unit Component may or may not be physical unit, it can it is in one place, or may be distributed over multiple nets On network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product, It can store in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a storage medium, including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) execute each embodiment this method of the application whole or Part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (read-only memory, ROM), Random access memory (random access memory, RAM), magnetic or disk etc. be various to can store program code Medium.
Above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although with reference to the foregoing embodiments The application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each implementation Technical solution documented by example is modified or equivalent replacement of some of the technical features;And these modification or Replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (12)

1. a kind of data processing method characterized by comprising
Websocket server receives the light application service request for the user that web server is sent, the light application service request The identification information of identification information and user including Target Enterprise, the identification information of the Target Enterprise refer to what user to be accessed The identification information of enterprise;
When, there are when the identification information of the Target Enterprise, the websocket server will in the websocket server The corresponding target proxy client of the identification information that the light application service request is sent to the Target Enterprise, so that described Target proxy client obtains the corresponding business datum of the light application service request from data server;
The websocket server receives the business datum and the user that the target proxy client is sent Identification information;
The business datum is sent to web server by the websocket server, so that the web server is by institute It states business datum and is sent to terminal device corresponding with the identification information of the user.
2. being sent the method according to claim 1, wherein the websocket server receives web server User light application service request before, the method also includes:
The websocket server receives the identification information for multiple enterprises that multiple agent clients are sent;
The websocket server saves the identification information of the multiple enterprise.
3. according to the method described in claim 2, it is characterized in that, the server receives the more of multiple agent clients transmissions Before the identification information of a enterprise, the method also includes:
The long connection request of the websocket server Receiving Agent client, and keep long with the agent client and connect Connect road;
It is described after the websocket server receives the business datum that the agent client is sent Long connecting path between websocket server closing and the agent client.
4. according to the method described in claim 2, it is characterized in that, the websocket server is by the light application business Request is sent to before the corresponding target proxy client of identification information of the Target Enterprise, the method also includes:
The websocket server judges the mark that whether there is the Target Enterprise in the identification information of the multiple enterprise Information;
If there are the identification informations of the Target Enterprise in the identification information of the multiple enterprise, it is determined that the websocket There are the identification informations of the Target Enterprise in server.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
If the identification information of the Target Enterprise is not present in the identification information of the multiple enterprise, the websocket clothes Device be engaged in web server transmission prompting message, the prompting message is for prompting the user not to be available the target Agent client.
6. being sent the method according to claim 1, wherein the websocket server receives web server User light application service request before, the method also includes:
Websocket server receives the long connection request that web server is sent, and keeps long connection with the web server Access;
After the business datum is sent to web server by the websocket server, the websocket service Device closes the long connecting path between the web server.
7. method as claimed in any of claims 1 to 6, which is characterized in that the agent client includes installation There is the enterprise terminal equipment of Client Agent program.
8. a kind of data processing method characterized by comprising
The light application service request for the user that web server receiving terminal apparatus is sent, the light application service request includes mesh It marks the identification information of enterprise and the identification information of user, the identification information of the Target Enterprise refers to the enterprise that user to be accessed Identification information;
The web server sends the light application service request of the user to websocket server, so that described Websocket server is according to the determination of the identification information of the Target Enterprise in the light application service request of the user and the mesh The corresponding target proxy client of identification information of enterprise is marked, the target proxy client is used to obtain institute from data server State the corresponding business datum of light application service request;
The web server receives the business datum that the websocket server is sent and the mark of the user Information;
The business datum is sent to terminal device corresponding with the identification information of the user by the web server.
9. a kind of data processing method characterized by comprising
Terminal device sends the light application service request of user, and the light application service request includes the identification information of Target Enterprise And the identification information of user, the identification information of the Target Enterprise refer to the identification information for the enterprise that user to be accessed, the mesh The identification information of mark enterprise is for determining that target proxy client, the target proxy client are used to obtain from data server The corresponding business datum of the light application service request;
The terminal device receives the business datum corresponding with the light application service request of the user that web server is sent, The web server is used to obtain the business datum that target proxy client is sent from websocket server.
10. a kind of websocket server characterized by comprising
First receiving module, the light application service request of the user for receiving web server transmission, the light application business are asked The identification information including Target Enterprise and the identification information of user are asked, the identification information of the Target Enterprise refers to that user is intended to access Enterprise identification information;
First sending module, for when in the websocket server there are when the identification information of the Target Enterprise, by institute The corresponding target proxy client of identification information that light application service request is sent to the Target Enterprise is stated, so that the mesh It marks agent client and obtains the corresponding business datum of the light application service request from data server;
Second receiving module, for receiving the business datum that the target proxy client is sent and the user Identification information;
Second sending module, for the business datum to be sent to web server, so that the web server will be described Business datum is sent to terminal device corresponding with the identification information of the user.
11. a kind of computer readable storage medium, which is characterized in that the computer storage medium is stored with computer program, The computer program includes program instruction, and described program instruction makes the processor execute such as right when being executed by a processor It is required that method described in any one of 1 to 9.
12. a kind of computer equipment, which is characterized in that the computer equipment includes:
Processor, memory, bus and input-output apparatus;
The processor, the memory and the input-output apparatus are connect with the bus;
The input-output apparatus is for sending or receiving instruction;
The memory is for storing program;
The processor specifically includes method as claimed in any one of claims 1-9 wherein for executing described program.
CN201811259568.XA 2018-10-26 2018-10-26 A kind of data processing method and relevant apparatus Pending CN109309728A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811259568.XA CN109309728A (en) 2018-10-26 2018-10-26 A kind of data processing method and relevant apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811259568.XA CN109309728A (en) 2018-10-26 2018-10-26 A kind of data processing method and relevant apparatus

Publications (1)

Publication Number Publication Date
CN109309728A true CN109309728A (en) 2019-02-05

Family

ID=65222157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811259568.XA Pending CN109309728A (en) 2018-10-26 2018-10-26 A kind of data processing method and relevant apparatus

Country Status (1)

Country Link
CN (1) CN109309728A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109905293A (en) * 2019-03-12 2019-06-18 北京奇虎科技有限公司 A kind of terminal device recognition methods, system and storage medium
CN109995867A (en) * 2019-04-04 2019-07-09 深圳市喏喏网络科技有限公司 One-stop insurance service system, implementation method and computer readable storage medium
CN110225092A (en) * 2019-05-14 2019-09-10 无线生活(杭州)信息科技有限公司 A kind of communication means and WebSocket server
CN110275711A (en) * 2019-06-19 2019-09-24 珠海天燕科技有限公司 Method for processing business and device
CN111949918A (en) * 2020-08-23 2020-11-17 云知声智能科技股份有限公司 Websocket connection optimization method and system based on distributed environment
CN114666159A (en) * 2022-04-20 2022-06-24 青岛聚好联科技有限公司 Cloud service system, method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150256508A1 (en) * 2014-03-04 2015-09-10 Opendns, Inc. Transparent Proxy Authentication Via DNS Processing
CN106961469A (en) * 2017-02-28 2017-07-18 北京致远互联软件股份有限公司 Unaware orientation Proxy Method and system based on http proxy servers
CN107105033A (en) * 2017-04-21 2017-08-29 北京奇安信科技有限公司 Cloud application access method, cloud proxy server and cloud application access system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150256508A1 (en) * 2014-03-04 2015-09-10 Opendns, Inc. Transparent Proxy Authentication Via DNS Processing
CN106961469A (en) * 2017-02-28 2017-07-18 北京致远互联软件股份有限公司 Unaware orientation Proxy Method and system based on http proxy servers
CN107105033A (en) * 2017-04-21 2017-08-29 北京奇安信科技有限公司 Cloud application access method, cloud proxy server and cloud application access system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109905293A (en) * 2019-03-12 2019-06-18 北京奇虎科技有限公司 A kind of terminal device recognition methods, system and storage medium
CN109995867A (en) * 2019-04-04 2019-07-09 深圳市喏喏网络科技有限公司 One-stop insurance service system, implementation method and computer readable storage medium
CN110225092A (en) * 2019-05-14 2019-09-10 无线生活(杭州)信息科技有限公司 A kind of communication means and WebSocket server
CN110225092B (en) * 2019-05-14 2022-06-14 无线生活(杭州)信息科技有限公司 Communication method and WebSocket server
CN110275711A (en) * 2019-06-19 2019-09-24 珠海天燕科技有限公司 Method for processing business and device
CN110275711B (en) * 2019-06-19 2022-12-13 郑州阿帕斯科技有限公司 Service processing method and device
CN111949918A (en) * 2020-08-23 2020-11-17 云知声智能科技股份有限公司 Websocket connection optimization method and system based on distributed environment
CN111949918B (en) * 2020-08-23 2024-03-08 云知声智能科技股份有限公司 Websocket connection optimization method and system based on distributed environment
CN114666159A (en) * 2022-04-20 2022-06-24 青岛聚好联科技有限公司 Cloud service system, method, device, equipment and medium
CN114666159B (en) * 2022-04-20 2024-04-30 青岛聚好联科技有限公司 Cloud service system, method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN109309728A (en) A kind of data processing method and relevant apparatus
CN108595207B (en) Gray scale publishing method, rule engine, system, terminal and storage medium
EP3837604B1 (en) In situ triggered function as a service within a service mesh
CN100463469C (en) Method, device and system for sharing applied program conversation information on multichannels
US9854006B2 (en) System and methods for improving interaction routing performance
CN110489417A (en) A kind of data processing method and relevant device
CN102624650B (en) Discussion group creating method, and communication method, server and system based on discussion group
JP2005530372A5 (en)
CN108259425A (en) The determining method, apparatus and server of query-attack
CN105553999B (en) Application user behavioural analysis and method of controlling security and its corresponding device
CN102404367B (en) A kind of asynchronous communication method and system
WO2014194452A1 (en) Message publishing and subscribing method and apparatus
CN109815025A (en) Business model call method, device and storage medium
JP2011520169A (en) Method and device for accessing a directory
CN106550056A (en) A kind of domain name analytic method and device
CA2384066C (en) Remote assembly of messages for distributed applications
CN108965359A (en) Communication means, communication device, readable medium and electronic equipment
CN113329042B (en) Message processing method and system, internet of vehicles system, server and electronic equipment
CN107770203B (en) Service request forwarding method, device and system
CN110196732B (en) Local skill management method and device
JP6616452B2 (en) Adding a communication session via a host in a new denial of service mode
CN113542409B (en) Management system and processing method for instances of RocktMQ message queues
CN109788083A (en) Using method for down loading, device, storage medium and electronic device
CN101753561A (en) Business cluster processing method and cluster system
WO2012159531A1 (en) Method and system for inputting information to mobile terminal as well as mobile terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190205