WO2017054735A1 - 异步登录方法和装置 - Google Patents

异步登录方法和装置 Download PDF

Info

Publication number
WO2017054735A1
WO2017054735A1 PCT/CN2016/100626 CN2016100626W WO2017054735A1 WO 2017054735 A1 WO2017054735 A1 WO 2017054735A1 CN 2016100626 W CN2016100626 W CN 2016100626W WO 2017054735 A1 WO2017054735 A1 WO 2017054735A1
Authority
WO
WIPO (PCT)
Prior art keywords
login
webpage
data
game
asynchronous
Prior art date
Application number
PCT/CN2016/100626
Other languages
English (en)
French (fr)
Inventor
雷明
邢岩
Original Assignee
北京奇虎科技有限公司
奇智软件(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京奇虎科技有限公司, 奇智软件(北京)有限公司 filed Critical 北京奇虎科技有限公司
Publication of WO2017054735A1 publication Critical patent/WO2017054735A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/42User authentication using separate channels for security data

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to an asynchronous communication method and apparatus.
  • the Internet has a variety of network resources, one of which is the web flash game.
  • the webpage flash game loads the flash component in the webpage opened in the client, and then runs the specific flash game content through the flash component, and the user can play the game in the flash component.
  • the present invention has been made in order to provide an asynchronous login device and a corresponding asynchronous login method that overcome the above problems or at least partially solve the above problems.
  • the present invention discloses an asynchronous login method, including:
  • the login request includes user identification information
  • the game data in the current state of the flash component of the webpage is asynchronously uploaded to the game server according to the user identification information; the game server updates the personalized data corresponding to the user identification information according to the current game data;
  • the local rendering data is obtained from the game server, and the webpage is locally rendered according to the partial rendering data to preserve the current state of the flash component; the local rendering data includes personalized data.
  • the present invention also discloses an asynchronous login device, including:
  • a login request receiving module adapted to receive a login request; the login request includes a user identification letter interest;
  • An asynchronous login module configured to perform login asynchronously according to the user identification information
  • the game data uploading module is adapted to asynchronously upload the game data in the current state of the flash component of the webpage to the game server according to the user identification information after the login is successful; the game server updates the user identifier according to the current game data. Personalized data corresponding to the information;
  • the local rendering module is adapted to obtain local rendering data from the game server, and locally render the webpage according to the local rendering data to preserve the current state of the flash component; the local rendering data includes personalized data.
  • the present invention also discloses an apparatus comprising:
  • the memory is for storing executable code
  • the processor is configured to execute the executable code, the executable code performing a method comprising the steps of:
  • the login request includes user identification information
  • the game data in the current state of the flash component of the webpage is asynchronously uploaded to the game server according to the user identification information; the game server updates the personalized data corresponding to the user identification information according to the current game data;
  • the local rendering data is obtained from the game server, and the webpage is locally rendered according to the partial rendering data to preserve the current state of the flash component; the local rendering data includes personalized data.
  • a computer program comprising computer readable code causing the terminal device to perform any of the asynchronous login methods described above when the computer readable code is run on a terminal device.
  • a computer readable medium storing a computer program for performing any of the asynchronous login methods described above.
  • the asynchronous login method and apparatus can be used in a flash game webpage opened by a user
  • the user receives the login request triggered by the user, and then logs in asynchronously; after the login is successful, the game data in the current state of the flash component of the webpage is asynchronous according to the user identification information.
  • Uploading to the game server the game server updates the personalized data corresponding to the user identification information stored in the game server according to the current game data, such as updating the leaderboard of the game score, etc.; then the webpage is acquired from the game server and includes the personality. Localizing data of the data, and locally rendering the webpage according to the local rendering data to preserve the current state of the flash component.
  • FIG. 1 is a flow chart showing the steps of an asynchronous login method according to an embodiment of the present invention
  • FIG. 1A shows an example of a flash game webpage according to an embodiment of the present invention
  • FIG. 2 is a flow chart showing the steps of an asynchronous login method according to an embodiment of the present invention
  • FIG. 3 is a flow chart showing the steps of an asynchronous login method according to an embodiment of the present invention
  • FIG. 4 is a structural block diagram of an asynchronous login device according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram of an asynchronous login device according to an embodiment of the present invention.
  • FIG. 6 is a block diagram showing the structure of an asynchronous login device according to an embodiment of the present invention.
  • FIG. 7 is a block diagram showing the structure of an apparatus according to an embodiment of the present invention.
  • Figure 8 shows a block diagram of a terminal device for performing the method according to the invention
  • Figure 9 shows a storage unit for holding or carrying program code implementing the method according to the invention.
  • FIG. 1 it is a flowchart of a step of an asynchronous login method according to an embodiment of the present invention, which may specifically include:
  • Step 110 Receive a login request, where the login request includes user identification information.
  • the user can open the flash game webpage in the client, and then the flash game webpage loads the flash component corresponding to the flash game, and if the user does not log in, the flash game is played as the visitor.
  • the client may be a browser or a specific first client, and the browser core is set in the first client, and the flash game webpage may be loaded.
  • a login window pops up, allowing the user to enter user identification information, such as a username and password, and trigger a login request after the user clicks to confirm.
  • Step 120 Perform login asynchronously according to the user identification information.
  • the user name and password such as the user AAA, the password 123, and then the asynchronous login server are extracted therefrom.
  • Step 130 After the login is successful, the game data in the current state of the flash component of the webpage is asynchronously uploaded to the game server according to the user identifier information; and the game server updates the personality corresponding to the user identifier information according to the current game data.
  • the flash component is first The game data in the state is asynchronously uploaded to the game server.
  • the game data such as the scores obtained by the user AAA playing the flash game, such as playing parkour games, scored 20,000 points.
  • the game server searches for the personalized data stored in the game server related to the flash game of the user, and then updates the personalized data with the game data.
  • the personalized data is, for example, various leaderboard data, user history score data, and the like.
  • the current ranking of the game server currently storing user AAA playing parkour is: 1, user A12, score 40000; 2, user wy1, score 19000; 3 user M11, score 18000; 4 user O00, score 17000, etc., and the above 20000 Points can be ranked 2nd in the total ranking, then the above is updated from the leaderboard to 1, user A12, score 40000; 2, user AAA, score 20000; 3, user wy1, score 19000; 4 user M11, score 18000; 5, user O00, score 17000 and so on.
  • other leaderboards can be similarly updated.
  • the server receives a low score and cannot enter the leaderboard, the leaderboard will not be updated.
  • the user history score data of the current storage user AAA playing parkour stored by the server is: 1, 19000 points; 2, 18000 points; 3, 17000 points, etc., then for the above 2000 points, the user history score data can be updated. For: 1, 20000 points; 2, 19,000 points; 3, 18,000 points; 4, 17,000 points.
  • Step 140 Acquire local rendering data from the game server, and locally render the webpage according to the local rendering data to preserve the current state of the flash component; the local rendering data includes personalized data.
  • the partial rendering data acquisition request is asynchronously sent to the game server.
  • the game server returns the local rendered data including the personalized data to the webpage after the personalized data is updated.
  • the webpage can locally render the webpage according to the local rendering data to preserve the current state of the flash component.
  • FIG. 1A which is an example of a flash game webpage according to an embodiment of the present invention
  • S11 is a webpage
  • S12 in the webpage S11 is an area where a flash component is located
  • a flash game is run in the flash component
  • S13 is a user.
  • Identity information display area S14 is the display area of the leaderboard information Domain
  • the display area of the S15 historical score In the embodiment of the present invention, a webpage area other than the flash component of the S12 can be rendered, and the leaderboard in the local rendering data, the identity information of the user (such as a user name, a level, a game of interest, and the history score) and the historical score are rendered into the webpage. In this way, the information of the user and the information related to the game data played by the user as the visitor identity can be synchronously displayed in the webpage.
  • the login request triggered by the user is received, and then the login is performed asynchronously; after the login is successful, according to the user
  • the identification information asynchronously uploads the game data in the current state of the flash component of the webpage to the game server, and the game server updates the personalized data corresponding to the user identification information stored in the game server according to the current game data, such as updating the game score.
  • FIG. 2 a flow chart of steps of an asynchronous login method according to an embodiment of the present invention is shown.
  • the client, the flash game webpage, the first server, and the game server are used as an application environment, and the step may specifically include:
  • Step 210 Receive a login request in a flash component of the webpage.
  • a login interface is set in the flash component.
  • the process proceeds to step 120.
  • the embodiment of the present invention may also set a login interface in addition to the flash in the webpage. After the user clicks the login interface, the webpage performs a login operation with the first server, and after the login is successful, all the webpage data is obtained from the server, and the webpage is completely refreshed.
  • Step 212 The first asynchronous login interface is invoked by the flash component to asynchronously send a first asynchronous login request to the webpage.
  • the first asynchronous login interface is set in the flash component, and after the flash component receives the login request in step 210, the first asynchronous login interface is invoked, and the username and password are first constructed.
  • the request is asynchronously logged in, and then the first asynchronous login request is sent to the web page.
  • Step 214 The second asynchronous login interface is invoked by the webpage to send a second asynchronous login request to the client where the webpage is located, according to the first asynchronous login request.
  • the second asynchronous login interface is set in the webpage, and after receiving the first asynchronous login request, the second asynchronous login interface is invoked, and the second asynchronous login request is constructed by using the username and password therein. The second asynchronous login request is then sent to the client.
  • the client may be a browser, or may be a specific first client.
  • the browser core is set in the first client, and the flash game webpage may be loaded.
  • Step 216 The client performs a login operation with the first server according to the second asynchronous login request, and returns a login success status to the webpage after the login succeeds.
  • the client After receiving the second asynchronous login request, the client extracts the user name and password, and constructs a third login request to be sent to the first server. After receiving the third login request, the first server determines whether the username and password are correct. If correct, the login success cookie is written to the client, and the cookie includes the user information of the user. So the client logs in successfully. At this time, the state of the client is set to the login success state, and then the client can call the callback function of the second asynchronous login interface to return the login success status to the webpage.
  • the account system is not set in the game server, but the account system of another system is shared, that is, the account system of the first server, such as the account system of the security guard server. Therefore, the present invention performs the login and confirmation of the user identification information, that is, the account information, in the first server.
  • Step 218 After receiving the login success status, the webpage obtains the user identification information and passes the Know the flash component to upload game data;
  • the webpage After receiving the login success status of the client, the webpage obtains the user identification information from the cookie of the client, such as the user name, and then invokes the callback function of the first asynchronous login interface, and writes the user identification information to the flash. Component, and notify the flash component to upload the game data in the current state.
  • Step 220 The flash component calls the upload interface to asynchronously upload the game data in the current state to the game server according to the identity identification information, and returns an upload success notification to the webpage after the game data is successfully uploaded.
  • the game server updates the personalized data corresponding to the user identification information according to the current game data.
  • the flash component After receiving the notification and identity information, the flash component calls the upload interface preset in the flash component, uploads the game data to the game server, and carries the user identification information when uploading, so that the game server searches for the user identifier information.
  • Related data for the game For example, upload the scores played by the user in the parkour flash game and the user AAA.
  • the game server searches for personalized data of the user AAA's parkour according to the user AAA and the game name parkour, and then updates the personalized data according to the received game data.
  • the interactive interface is continuously called to notify the webpage that the game data upload is successful.
  • Step 222 The local rendering data is obtained from the game server asynchronously by the webpage, and the webpage is locally rendered according to the local rendering data to preserve the current state of the flash component; the local rendering data includes personalized data.
  • the webpage After receiving the notification that the flash component is successfully uploaded, the webpage asynchronously sends a partial rendering data acquisition request to the game server, and after receiving the local rendering data acquisition request, the server extracts the local rendering data of the game corresponding to the user AAA from the database. Then return it to the web page.
  • the web page renders the web page according to the local rendering data. Since the flash component is not re-rendered, it can be reserved to preserve the current state of the flash component. For example, keep the state of the user AAA playing parkour 20,000 points.
  • the steps 218-220 for uploading game data may be replaced by the following steps:
  • Step A11 After asynchronously receiving the login success status returned by the client, the webpage acquires game data in the current state of the flash component and asynchronously uploads the game data to the game server.
  • the webpage after receiving the login success status of the client, the webpage obtains the user identification information from the cookie of the client, such as the user name, and then the flash game data acquisition interface is obtained from the flash component.
  • the game data in the current state of the flash component, and then the game data is asynchronously uploaded to the game server.
  • the partial rendering data is obtained asynchronously from the game server, and the webpage is locally rendered according to the partial rendering data to preserve the current state of the flash component; the local rendering data includes personalized data.
  • the webpage in the process of playing a flash game in a flash game webpage by a user as a visitor in the prior art, after clicking the login, the webpage is refreshed overall, and the flash component of the flash game is heavy. Loading, which causes the user to lose the game data as a tourist.
  • the state of the flash component can be guaranteed to be unchanged, and for the display area of the non-flash component in the flash game webpage, the game data obtained by the user playing the flash game as the visitor can be synchronously rendered into the display area of the non-flash component.
  • the interaction of the data is performed on the heterogeneous multi-end, it is difficult to implement the interaction process of the present invention by using the synchronous request.
  • the interaction between the terminals is implemented in an asynchronous manner.
  • FIG. 3 a flow chart of steps of an asynchronous login method according to an embodiment of the present invention is shown.
  • the flash game webpage and the game server are used as an application environment, and the account system and the game system are in a server, and the step may specifically include:
  • Step 310 Receive a login request in a flash component of the webpage.
  • Step 312 The first asynchronous login interface is invoked by the flash component to asynchronously send a first asynchronous login request to the webpage.
  • Step 314 Perform a login operation with the game server by the webpage according to the first asynchronous login request.
  • the webpage of the embodiment of the present invention After receiving the first asynchronous login request, the webpage of the embodiment of the present invention extracts the user name and password to construct a login request, and then performs a login operation with the game server.
  • the account system is also set in the game server.
  • Step 316 After receiving the login success status, the webpage acquires user identification information and notifies the flash component to upload game data.
  • the webpage After the webpage is successfully logged into the game server, its status is changed to the login success status, and then the webpage can obtain the user identification information and notify the flash component to upload the game data.
  • Step 318 The flash component calls the upload interface to asynchronously upload the game data in the current state to the game server according to the identity identification information, and returns an upload success notification to the webpage after the game data is successfully uploaded.
  • Step 320 Acquire partial rendering data from the game server asynchronously by the webpage, and locally render the webpage according to the partial rendering data to preserve the current state of the flash component; the local rendering data includes personalized data.
  • the webpage in the process of playing a flash game in a flash game webpage by a user as a visitor in the prior art, after clicking the login, the webpage is refreshed overall, and the flash component of the flash game is heavy. Loading, which causes the user to lose the game data as a tourist.
  • the state of the flash component can be guaranteed to be unchanged, and for the display area of the non-flash component in the flash game webpage, the game data obtained by the user playing the flash game as the visitor can be synchronously rendered into the display area of the non-flash component.
  • the interaction of the data is performed on the heterogeneous multi-end, it is difficult to implement the interaction process of the present invention by using the synchronous request.
  • the interaction between the terminals is implemented in an asynchronous manner.
  • FIG. 4 it is a structural block diagram of an asynchronous login device according to an embodiment of the present invention, which may specifically include:
  • the login request receiving module 410 is adapted to receive a login request; the login request includes user identification information;
  • the asynchronous login module 420 is adapted to perform login asynchronously according to the user identification information.
  • the game data uploading module 430 is adapted to asynchronously upload the game data in the current state of the flash component of the webpage to the game server according to the user identification information after the login is successful; the game server updates the user with the current game data according to the game data. Personalized data corresponding to the identification information;
  • the local rendering module 440 is adapted to obtain local rendering data from the game server, and locally render the webpage according to the local rendering data to preserve the current state of the flash component; the local rendering data includes personalized data.
  • the login request receiving module includes:
  • the first login request receiving submodule is adapted to receive a login request in a flash component of the webpage.
  • the asynchronous login module includes:
  • the first flash asynchronous login interface calls the sub-module, and is adapted to, by the flash component, invoke the first asynchronous login interface to asynchronously send the first asynchronous login request to the webpage;
  • the webpage asynchronous login interface invoking sub-module is adapted to send, by the webpage, the second asynchronous login interface to the client where the webpage is located to send the second asynchronous login request according to the first asynchronous login request;
  • the first physical login sub-module is adapted to perform a login operation with the first server by the client according to the second asynchronous login request, and return a login success status to the webpage after the login is successful.
  • the game data uploading module includes:
  • the uploading notification sub-module is adapted to obtain the user identification information and notify the flash component to upload the game data after receiving the login success status;
  • the first uploading submodule is adapted to the flash component to call the uploading interface to asynchronously upload the game data in the current state to the game server according to the identity identification information, and return an upload success notification to the webpage after the game data is successfully uploaded.
  • the game data uploading module includes:
  • the second uploading sub-module is adapted to obtain the game data in the current state of the flash component after asynchronously receiving the login success status returned by the client, and upload the game data to the game server asynchronously.
  • the asynchronous login module includes:
  • the second flash asynchronous login interface calls the sub-module, and is configured to: the first asynchronous login interface is invoked by the flash component to asynchronously send the first asynchronous login request to the webpage;
  • the second physical login module is adapted to perform a login operation with the game server according to the first asynchronous login request by the webpage, and return a login success status to the webpage after the login succeeds.
  • the personalized data includes various leaderboard data and user history score data. at least one.
  • the embodiment of the present invention can ensure that the state of the flash component is unchanged, and in the display area of the non-flash component in the flash game webpage, the game data obtained by the user playing the flash game as the visitor can be synchronously rendered into the display area of the non-flash component. . Moreover, since the interaction of the data is performed in a heterogeneous multi-end, it is difficult to implement the interaction process of the present invention by using a synchronous request, and the embodiment of the present invention implements the interaction between the ends in an asynchronous manner.
  • FIG. 5 it is a structural block diagram of an asynchronous login device according to an embodiment of the present invention, which may specifically include:
  • the login request receiving module 510 specifically includes:
  • the first login request receiving submodule 511 is adapted to receive a login request in a flash component of the webpage; the login request includes user identification information;
  • the asynchronous login module 520 specifically includes:
  • the first flash asynchronous login interface invokes the sub-module 521, and is adapted to, by the flash component, invoke the first asynchronous login interface to asynchronously send the first asynchronous login request to the webpage;
  • the webpage asynchronous login interface invoking sub-module 522 the webpage local login module is adapted to, by the webpage according to the first asynchronous login request, invoke the second asynchronous login interface to asynchronously send the second asynchronous login request to the client where the webpage is located;
  • the first substantial login sub-module 523 is adapted to perform a login operation with the first server by the client according to the second asynchronous login request, and return a login success status to the webpage after the login is successful.
  • the game data uploading module 530 specifically includes:
  • the upload notification sub-module 531 is adapted to obtain the user identification information and notify the flash component to upload the game data after receiving the login success status of the webpage;
  • the first uploading sub-module 532 is adapted to: the flash component, according to the identity identification information, invokes an uploading interface to asynchronously upload the game data in the current state to the game server, and returns an upload success notification to the webpage after the game data is successfully uploaded. .
  • the game server updates the personalized data corresponding to the user identification information according to the current game data;
  • a local rendering module 540 adapted to obtain local rendering data from the game server, and according to the The local rendering data locally renders the web page to preserve the current state of the flash component; the local rendering data includes personalized data.
  • the upload notification sub-module 531 and the first upload sub-module 532 can be replaced with a second upload sub-module, and is adapted to obtain a game in the current state of the flash component after the webpage asynchronously receives the login success status returned by the client.
  • the data is uploaded asynchronously to the game server.
  • the embodiment of the present invention can ensure that the state of the flash component is unchanged, and in the display area of the non-flash component in the flash game webpage, the game data obtained by the user playing the flash game as the visitor can be synchronously rendered into the display area of the non-flash component. . Moreover, since the interaction of the data is performed in a heterogeneous multi-end, it is difficult to implement the interaction process of the present invention by using a synchronous request, and the embodiment of the present invention implements the interaction between the ends in an asynchronous manner.
  • FIG. 6 is a structural block diagram of an asynchronous login device according to an embodiment of the present invention, which may specifically include:
  • the login request receiving module 610 specifically includes:
  • the first login request receiving submodule 611 is adapted to receive a login request in a flash component of the webpage; the login request includes user identification information;
  • the asynchronous login module 620 specifically includes:
  • the second flash asynchronous login interface invokes the sub-module 621, and is adapted to, by the flash component, invoke the first asynchronous login interface to asynchronously send the first asynchronous login request to the webpage;
  • the second substantial login module 622 is adapted to perform a login operation with the game server according to the first asynchronous login request by the webpage, and return a login success status to the webpage after the login is successful.
  • the game data uploading module 630 specifically includes:
  • the upload notification sub-module 631 is adapted to obtain the user identification information and notify the flash component to upload the game data after receiving the login success status of the webpage;
  • the first uploading sub-module 632 is adapted to: the flash component, according to the identity identification information, invokes an uploading interface to asynchronously upload the game data in the current state to the game server, and returns an upload success notification to the webpage after the game data is successfully uploaded. .
  • the game server updates the personalized data corresponding to the user identification information according to the current game data;
  • the local rendering module 640 is adapted to obtain local rendering data from the game server, and locally render the webpage according to the local rendering data to preserve the current state of the flash component; the local rendering data includes personalized data.
  • the upload notification sub-module 631 and the first upload sub-module 632 can be replaced with a second upload sub-module, which is adapted to obtain a game in the current state of the flash component after the webpage asynchronously receives the login success status returned by the client.
  • the data is uploaded asynchronously to the game server.
  • the embodiment of the present invention can ensure that the state of the flash component is unchanged, and in the display area of the non-flash component in the flash game webpage, the game data obtained by the user playing the flash game as the visitor can be synchronously rendered into the display area of the non-flash component. . Moreover, since the interaction of the data is performed in a heterogeneous multi-end, it is difficult to implement the interaction process of the present invention by using a synchronous request, and the embodiment of the present invention implements the interaction between the ends in an asynchronous manner.
  • the apparatus 700 may specifically include:
  • Memory 710 and processor 720
  • the memory 710 is configured to store executable code
  • the processor 720 is configured to execute the executable code, the executable code performing a method comprising the following steps:
  • the login request includes user identification information
  • the game data in the current state of the flash component of the webpage is asynchronously uploaded to the game server according to the user identification information; the game server updates the personalized data corresponding to the user identification information according to the current game data;
  • the local rendering data is obtained from the game server, and the webpage is locally rendered according to the partial rendering data to preserve the current state of the flash component; the local rendering data includes personalized data.
  • the embodiment of the invention can ensure that the state of the flash component is unchanged, and for the flash game webpage In the display area of the Central African flash component, the game data obtained by the user playing the flash game as a visitor can be synchronously rendered into the display area of the non-flash component. Moreover, since the interaction of the data is performed in a heterogeneous multi-end, it is difficult to implement the interaction process of the present invention by using a synchronous request, and the embodiment of the present invention implements the interaction between the ends in an asynchronous manner.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed or All processes or units of the device are combined.
  • Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of the asynchronous login device in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • Figure 8 illustrates a terminal device that can implement an asynchronous login in accordance with the present invention.
  • the terminal device conventionally includes a processor 810 and a computer program product or computer readable medium in the form of a memory 820.
  • the memory 820 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • Memory 820 has a memory space 830 for program code 831 for performing any of the method steps described above.
  • storage space 830 for program code may include various program code 831 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG.
  • the storage unit may have a storage segment similarly arranged to the memory 820 in the terminal device of FIG. 8, Storage space, etc.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes computer readable code 831', i.e., code readable by a processor, such as 810, that when executed by the terminal device causes the terminal device to perform each of the methods described above step.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种异步通信方法和装置,涉及计算机技术领域。所述方法包括:接收登录请求;所述登录请求包括用户标识信息;根据所述用户标识信息,异步进行登录;在登录成功后,依据所述用户标识信息将网页的flash组件当前状态下的游戏数据异步上传至游戏服务器;所述游戏服务器依据当前的游戏数据更新与所述用户标识信息对应的个性化数据;从游戏服务器获取局部渲染数据,并依据所述局部渲染数据对网页进行局部渲染,以保留flash组件当前的状态;所述局部渲染数据包括个性化数据。本发明可以保证flash组件的状态不变,并且对于flash游戏网页中非flash组件的展示区域中,可以将由用户以游客身份玩flash游戏得到的游戏数据同步渲染到非flash组件的展示区域中的有益效果。

Description

异步登录方法和装置 技术领域
本发明涉及计算机技术领域,具体涉及一种异步通信方法和装置。
背景技术
随着计算机技术的发展,互联网出现了各种各样的网络资源,其中一种就是网页flash游戏。
网页flash游戏,其是在客户端中打开的网页中加载flash组件,然后通过该flash组件运行具体的flash游戏内容,用户则可以在该flash组件中玩游戏。
目前技术中,当用户以游客的身份(未登录身份)玩flash游戏之后,如果点击登录按钮,则会将网页整个刷新,那么该网页中的flash游戏也会重新加载,导致用户在登录前玩游戏得到的游戏数据被刷新,网页中还是展示的用户玩游戏以前的相关数据,而flash组件则回到游戏的初始状态,遗漏了该用户在刷新前以游客身份玩flash游戏得到的游戏数据。
发明内容
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的异步登录装置和相应的异步登录方法。
依据本发明的一个方面,本发明公开了一种异步登录方法,包括:
接收登录请求;所述登录请求包括用户标识信息;
根据所述用户标识信息,异步进行登录;
在登录成功后,依据所述用户标识信息将网页的flash组件当前状态下的游戏数据异步上传至游戏服务器;所述游戏服务器依据当前的游戏数据更新与所述用户标识信息对应的个性化数据;
从游戏服务器获取局部渲染数据,并依据所述局部渲染数据对网页进行局部渲染,以保留flash组件当前的状态;所述局部渲染数据包括个性化数据。
依据本发明的另外一个方面,本发明还公开了一种异步登录装置,包括:
登录请求接收模块,适于接收登录请求;所述登录请求包括用户标识信 息;
异步登录模块,适于根据所述用户标识信息,异步进行登录;
游戏数据上传模块,适于在登录成功后,依据所述用户标识信息将网页的flash组件当前状态下的游戏数据异步上传至游戏服务器;所述游戏服务器依据当前的游戏数据更新与所述用户标识信息对应的个性化数据;
局部渲染模块,适于从游戏服务器获取局部渲染数据,并依据所述局部渲染数据对网页进行局部渲染,以保留flash组件当前的状态;所述局部渲染数据包括个性化数据。
依据本发明的另外一个方面,本发明还公开了一种设备,包括:
存储器和处理器;
所述存储器用于存储可执行代码;
所述处理器用于执行所述可执行代码,所述可执行代码执行包括以下步骤的方法:
接收登录请求;所述登录请求包括用户标识信息;
根据所述用户标识信息,异步进行登录;
在登录成功后,依据所述用户标识信息将网页的flash组件当前状态下的游戏数据异步上传至游戏服务器;所述游戏服务器依据当前的游戏数据更新与所述用户标识信息对应的个性化数据;
从游戏服务器获取局部渲染数据,并依据所述局部渲染数据对网页进行局部渲染,以保留flash组件当前的状态;所述局部渲染数据包括个性化数据。
根据本发明的又一个方面,提供了一种计算机程序,其包括计算机可读代码,当所述计算机可读代码在终端设备上运行时,导致所述终端设备执行上述的任一个异步登录方法。
根据本发明的再一个方面,提供了一种计算机可读介质,其中存储了执行上述的任一个异步登录方法的计算机程序。
根据本发明的异步登录方法和装置,可以在用户打开的flash游戏网页 中,以游客身份对网页中flash游戏的过程中,接收用户触发的登录请求,然后进行异步进行登录;在登录成功后,依据所述用户标识信息将网页的flash组件当前状态下的游戏数据异步上传至游戏服务器,而游戏服务器依据当前的游戏数据更新游戏服务器中存储的与所述用户标识信息对应的个性化数据,比如更新游戏分数的排行榜等;然后网页再从游戏服务器获取包括了个性化数据的局部渲染数据,并依据所述局部渲染数据对网页进行局部渲染,以保留flash组件当前的状态。由此解决了在先技术中,对于用户以游客身份在flash游戏网页中玩flash游戏的过程中,再点击登录后,会对网页进行整体刷新,导致flash游戏的flash组件被重加载,从而使得用户以游客身份玩的游戏数据丢失的问题,取得了可以保证flash组件的状态不变,并且对于flash游戏网页中非flash组件的展示区域中,可以将由用户以游客身份玩flash游戏得到的游戏数据同步渲染到非flash组件的展示区域中的有益效果。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
附图说明
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1示出了根据本发明一个实施例的一种异步登录方法的步骤流程图;
图1A示出了本发明实施例的一种flash游戏网页示例;
图2示出了根据本发明一个实施例的一种异步登录方法的步骤流程图;
图3示出了根据本发明一个实施例的一种异步登录方法的步骤流程图;
图4示出了根据本发明一个实施例的一种异步登录装置的结构框图;
图5示出了根据本发明一个实施例的一种异步登录装置的结构框图;
图6示出了根据本发明一个实施例的一种异步登录装置的结构框图;以 及
图7示出了根据本发明一个实施例的一种设备的结构框图;
图8示出了用于执行根据本发明的方法的终端设备的框图;
图9示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元。
具体实施方式
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
实施例一
参照图1,其示出了本发明实施例的一种异步登录方法的步骤流程图,具体可以包括:
步骤110,接收登录请求;所述登录请求包括用户标识信息;
在本发明实施例中,用户可以在客户端中打开flash游戏网页,然后flash游戏网页则加载对应flash游戏的flash组件,用户如果未登录,则会以游客的身份玩flash游戏。其中,所述客户端可以为浏览器,也可以为特定的第一客户端,该第一客户端中设置了浏览器内核,可以加载flash游戏网页。
用户点击了登录按钮后,则会弹出登录窗口,让用户输入用户标识信息,如用户名和密码,在用户点击确认后,则触发登录请求。
步骤120,根据所述用户标识信息,异步进行登录;
在本发明实施例中,接收到登录请求后,从中提取用户名和密码,比如用户AAA,密码123,然后与异步登录服务器。
步骤130,在登录成功后,依据所述用户标识信息将网页的flash组件当前状态下的游戏数据异步上传至游戏服务器;所述游戏服务器依据当前的游戏数据更新与所述用户标识信息对应的个性化数据;
在登录成功后,则确认不再以游客身份玩flash游戏,而是以其注册的用户名和密码的身份玩游戏。那么登录成功后,则首先将flash组件当前状 态下的游戏数据异步上传至游戏服务器。
该游戏数据比如用户AAA玩flash游戏得到的分数等数据,比如玩跑酷游戏,得了20000分。
那么游戏服务器接收到该游戏数据后,则查找游戏服务器中存储的与该用户的该flash游戏相关的个性化数据,然后以该游戏数据对该个性化数据进行更新。该个性化数据比如各种排行榜数据、用户历史分数数据等。比如游戏服务器当前存储用户AAA玩跑酷的总排行榜为:1、用户A12,分数40000;2、用户wy1,分数19000;3用户M11,分数18000;4用户O00,分数17000等,而上述20000分可以排在总排行榜第2名,则将上述从排行榜更新为1、用户A12,分数40000;2、用户AAA,分数20000;3、用户wy1,分数19000;4用户M11,分数18000;5、用户O00,分数17000等。当然,其他排行榜也可以类似更新。
需要说明的是,如果服务器收到的分数比较低,无法进入排行榜,则不对排行榜进行更新。
又比如,服务器存储的当前存储用户AAA玩跑酷的用户历史分数数据为:1、19000分;2、18000分;3、17000分等,那么对于上述2000分,则可以将用户历史分数数据更新为:1、20000分;2、19000分;3、18000分;4、17000分等。
步骤140,从游戏服务器获取局部渲染数据,并依据所述局部渲染数据对网页进行局部渲染,以保留flash组件当前的状态;所述局部渲染数据包括个性化数据。
在本发明实施例中,在上传完毕游戏数据后,则异步发送局部渲染数据获取请求至游戏服务器。游戏服务器则在个性化数据更新完毕后,将包括个性化数据的局部渲染数据返回给网页。网页则可以据所述局部渲染数据对网页进行局部渲染,以保留flash组件当前的状态。
在实际应用中,如图1A,其为本发明实施例flash游戏网页的一种示例,S11为网页,网页S11中的S12为flash组件所在区域,该flash组件中运行了flash游戏,S13为用户的身份信息展示区域,S14为排行榜信息的展示区 域,S15位历史分数的展示区域。本发明实施例则可以渲染S12的flash组件之外的网页区域,将局部渲染数据中的排行榜、用户的身份信息(如用户名,等级,关注游戏等)、历史分数等数据渲染到网页中,如此,网页中即可同步显示登录状态下,用户的身份信息和与用户以游客身份玩的游戏数据相关的信息。
根据本发明实施例,可以在用户打开的flash游戏网页中,以游客身份对网页中flash游戏的过程中,接收用户触发的登录请求,然后进行异步进行登录;在登录成功后,依据所述用户标识信息将网页的flash组件当前状态下的游戏数据异步上传至游戏服务器,而游戏服务器依据当前的游戏数据更新游戏服务器中存储的与所述用户标识信息对应的个性化数据,比如更新游戏分数的排行榜等;然后网页再从游戏服务器获取包括了个性化数据的局部渲染数据,并依据所述局部渲染数据对网页进行局部渲染,以保留flash组件当前的状态。由此解决了在先技术中,对于用户以游客身份在flash游戏网页中玩flash游戏的过程中,再点击登录后,会对网页进行整体刷新,导致flash游戏的flash组件被重加载,从而使得用户以游客身份玩的游戏数据丢失的问题。可以保证flash组件的状态不变,并且对于flash游戏网页中非flash组件的展示区域中,可以将由用户以游客身份玩flash游戏得到的游戏数据同步渲染到非flash组件的展示区域中。并且,由于数据的交互在异构的多端进行,很难采用同步请求的方式实现本发明的交互过程,本发明实施例则采用异步的方式实现各端之间的交互,
实施例二
参照图2,其示出了本发明实施例的一种异步登录方法的步骤流程图。
本发明实施例以客户端、flash游戏网页、第一服务器、游戏服务器为应用环境,所述步骤具体可以包括:
步骤210,在网页的flash组件中接收登录请求。
在本发明实施例中,在flash组件中会设置登录接口,当用户在flash组件中点击登录接口后,进入步骤120。
另外,本发明实施例在网页中的flash之外也可设置一个登录接口,当 用户点击该登录接口后,网页与第一服务器进行登录操作,并在登录成功后,从服务器获取全部网页数据,对网页进行全部刷新。
步骤212,由所述flash组件调用第一异步登录接口异步向网页发送第一异步登录请求;
在本发明实施例中,会在flash组件中设置第一异步登录接口,那么在flash组件接收到步骤210中的登录请求之后,则调用第一异步登录接口,将其中的用户名和密码构建第一异步登录请求,然后将该第一异步登录请求发送给网页。
步骤214,由所述网页根据所述第一异步登录请求,调用第二异步登录接口异步向网页所在客户端发送第二异步登录请求;
在本发明实施例中,会在网页中设置第二异步登录接口,那么在接收到第一异步登录请求之后,则调用第二异步登录接口,将其中的用户名和密码构建第二异步登录请求,然后将该第二异步登录请求发送给客户端。
其中所述客户端可以为浏览器,也可以为也可以为特定的第一客户端,该第一客户端中设置了浏览器内核,可以加载flash游戏网页。
步骤216,由所述客户端根据第二异步登录请求,与第一服务器进行登录操作,并在登录成功后向网页返回登录成功状态。
客户端接收到第二异步登录请求后,从中提取用户名和密码,构建第三登录请求发送到第一服务器。第一服务器则在收到第三登录请求后,判断其中的用户名和密码是否正确,如果正确,则向客户端写入登录成功cookie,该cookie包括了用户的用户信息。如此客户端则登录成功。此时,客户端的状态设置为登录成功状态,然后客户端可调用第二异步登录接口的回调函数,将登录成功状态返回给网页。
在本发明实施例中,账户系统并没有设置在游戏服务器中,而是公用另外一个系统的账户系统,即第一服务器的账户系统,比如安全卫士服务器的账户系统。因此本发明对用户标识信息,也即账户信息的登录和确认都在第一服务器中进行。
步骤218,所述网页在接收到登录成功状态后,获取用户标识信息并通 知flash组件上传游戏数据;
网页在收到客户端的登录成功状态后,则从客户端的cookie中获取用户标识信息,该用户标识信息比如用户名等,然后调用第一异步登录接口的回调函数,将该用户标识信息写入flash组件,并通知flash组件上传当前状态下的游戏数据。
步骤220,所述flash组件依据所述身份标识信息,调用上传接口以异步将当前状态下的游戏数据上传至游戏服务器,并在游戏数据上传成功后返回上传成功通知给网页。所述游戏服务器依据当前的游戏数据更新与所述用户标识信息对应的个性化数据。
flash组件在接收到上述通知和身份标识信息之后,调用预设在flash组件中的上传接口,上传游戏数据至游戏服务器,上传时还携带了用户标识信息,以便于游戏服务器根据用户标识信息查找该游戏的相关数据。比如上传用户在跑酷flash游戏中玩的分数和用户AAA。
所述游戏服务器依据用户AAA和游戏名跑酷,查找到用户AAA的跑酷的个性化数据,然后依据接收到的游戏数据更新该个性化数据。
在flash组件上传成功后,则继续调用交互接口通知网页游戏数据上传成功。
步骤222,由所述网页异步从游戏服务器获取局部渲染数据,并依据所述局部渲染数据对网页进行局部渲染,以保留flash组件当前的状态;所述局部渲染数据包括个性化数据。
网页接收到flash组件上传成功的通知后,则异步向游戏服务器发送局部渲染数据获取请求,服务器收到该局部渲染数据获取请求后,从数据库中提取对应该用户AAA的该游戏的局部渲染数据,然后返回其给网页。
网页则依据该局部渲染数据对网页进行渲染,由于不用重渲染flash组件,因此可以保留以保留flash组件当前的状态。比如保留用户AAA玩跑酷的20000分的状态。
当然,优选的,在本发明实施例中,对于上传游戏数据的步骤218-220可以替换为下述步骤:
步骤A11,网页在异步接收到客户端返回的登录成功状态后,获取flash组件当前状态下的游戏数据并异步上传至游戏服务器。
在本发明实施例中,网页在收到客户端的登录成功状态后,则从客户端的cookie中获取用户标识信息,该用户标识信息比如用户名等,然后flash游戏数据获取接口,从flash组件中获取flash组件当前状态下的游戏数据,然后将该游戏数据异步上传至游戏服务器。
然后网页上传游戏数据成功后,则异步从游戏服务器获取局部渲染数据,并依据所述局部渲染数据对网页进行局部渲染,以保留flash组件当前的状态;所述局部渲染数据包括个性化数据。
本发明实施例,相较于在先技术中,对于用户以游客身份在flash游戏网页中玩flash游戏的过程中,再点击登录后,会对网页进行整体刷新,导致flash游戏的flash组件被重加载,从而使得用户以游客身份玩的游戏数据丢失的问题。可以保证flash组件的状态不变,并且对于flash游戏网页中非flash组件的展示区域中,可以将由用户以游客身份玩flash游戏得到的游戏数据同步渲染到非flash组件的展示区域中。并且,由于数据的交互在异构的多端进行,很难采用同步请求的方式实现本发明的交互过程,本发明实施例则采用异步的方式实现各端之间的交互。
实施例三
参照图3,其示出了本发明实施例的一种异步登录方法的步骤流程图。
本发明实施例以flash游戏网页、游戏服务器为应用环境,其账户系统与游戏系统在一个服务器中,所述步骤具体可以包括:
步骤310,在网页的flash组件中接收登录请求。
步骤312,由所述flash组件调用第一异步登录接口异步向网页发送第一异步登录请求;
步骤314,由所述网页根据所述第一异步登录请求,与游戏服务器进行登录操作。
本发明实施例网页接收到第一异步登录请求后,从中提取用户名和密码构建登录请求,然后与游戏服务器进行登录操作。
本发明实施例中,账户系统也设置在游戏服务器中。
步骤316,所述网页在接收到登录成功状态后,获取用户标识信息并通知flash组件上传游戏数据;
在网页登录游戏服务器成功后,则其状态变更为登录成功状态,然后网页即可获取用户标识信息并通知flash组件上传游戏数据。
步骤318,所述flash组件依据所述身份标识信息,调用上传接口以异步将当前状态下的游戏数据上传至游戏服务器,并在游戏数据上传成功后返回上传成功通知给网页。
步骤320,由所述网页异步从游戏服务器获取局部渲染数据,并依据所述局部渲染数据对网页进行局部渲染,以保留flash组件当前的状态;所述局部渲染数据包括个性化数据。
本发明实施例,相较于在先技术中,对于用户以游客身份在flash游戏网页中玩flash游戏的过程中,再点击登录后,会对网页进行整体刷新,导致flash游戏的flash组件被重加载,从而使得用户以游客身份玩的游戏数据丢失的问题。可以保证flash组件的状态不变,并且对于flash游戏网页中非flash组件的展示区域中,可以将由用户以游客身份玩flash游戏得到的游戏数据同步渲染到非flash组件的展示区域中。并且,由于数据的交互在异构的多端进行,很难采用同步请求的方式实现本发明的交互过程,本发明实施例则采用异步的方式实现各端之间的交互。
实施例四
参照图4,其示出了本发明实施例的一种异步登录装置的结构框图,具体可以包括:
登录请求接收模块410,适于接收登录请求;所述登录请求包括用户标识信息;
异步登录模块420,适于根据所述用户标识信息,异步进行登录;
游戏数据上传模块430,适于在登录成功后,依据所述用户标识信息将网页的flash组件当前状态下的游戏数据异步上传至游戏服务器;所述游戏服务器依据当前的游戏数据更新与所述用户标识信息对应的个性化数据;
局部渲染模块440,适于从游戏服务器获取局部渲染数据,并依据所述局部渲染数据对网页进行局部渲染,以保留flash组件当前的状态;所述局部渲染数据包括个性化数据。
优选的,所述登录请求接收模块包括:
第一登录请求接收子模块,适于在网页的flash组件中接收登录请求。
优选的,所述异步登录模块包括:
第一flash异步登录接口调用子模块,适于由所述flash组件调用第一异步登录接口异步向网页发送第一异步登录请求;
网页异步登录接口调用子模块,网页局部登录模块,适于由所述网页根据所述第一异步登录请求,调用第二异步登录接口异步向网页所在客户端发送第二异步登录请求;
第一实质登录子模块,适于由所述客户端根据第二异步登录请求,与第一服务器进行登录操作,并在登录成功后向网页返回登录成功状态。
优选的,所述游戏数据上传模块包括:
上传通知子模块,适于所述网页在接收到登录成功状态后,获取用户标识信息并通知flash组件上传游戏数据;
第一上传子模块,适于所述flash组件依据所述身份标识信息,调用上传接口以异步将当前状态下的游戏数据上传至游戏服务器,并在游戏数据上传成功后返回上传成功通知给网页。
优选的,所述游戏数据上传模块包括:
第二上传子模块,适于网页在异步接收到客户端返回的登录成功状态后,获取flash组件当前状态下的游戏数据并异步上传至游戏服务器。
优选的,所述异步登录模块包括:
第二flash异步登录接口调用子模块,适于由所述flash组件调用第一异步登录接口异步向网页发送第一异步登录请求;
第二实质登录模块,适于由所述网页根据所述第一异步登录请求,与游戏服务器进行登录操作,并在登录成功后向网页返回登录成功状态。
优选的,所述个性化数据包括各种排行榜数据、用户历史分数数据其中 至少一个。
本发明实施例可以保证flash组件的状态不变,并且对于flash游戏网页中非flash组件的展示区域中,可以将由用户以游客身份玩flash游戏得到的游戏数据同步渲染到非flash组件的展示区域中。并且,由于数据的交互在异构的多端进行,很难采用同步请求的方式实现本发明的交互过程,本发明实施例则采用异步的方式实现各端之间的交互,
实施例五
参照图5,其示出了本发明实施例的一种异步登录装置的结构框图,具体可以包括:
登录请求接收模块510,具体包括:
第一登录请求接收子模块511,适于在网页的flash组件中接收登录请求;所述登录请求包括用户标识信息;
异步登录模块520,具体包括:
第一flash异步登录接口调用子模块521,适于由所述flash组件调用第一异步登录接口异步向网页发送第一异步登录请求;
网页异步登录接口调用子模块522,网页局部登录模块,适于由所述网页根据所述第一异步登录请求,调用第二异步登录接口异步向网页所在客户端发送第二异步登录请求;
第一实质登录子模块523,适于由所述客户端根据第二异步登录请求,与第一服务器进行登录操作,并在登录成功后向网页返回登录成功状态。
游戏数据上传模块530,具体包括:
上传通知子模块531,适于所述网页在接收到登录成功状态后,获取用户标识信息并通知flash组件上传游戏数据;
第一上传子模块532,适于所述flash组件依据所述身份标识信息,调用上传接口以异步将当前状态下的游戏数据上传至游戏服务器,并在游戏数据上传成功后返回上传成功通知给网页。所述游戏服务器依据当前的游戏数据更新与所述用户标识信息对应的个性化数据;
局部渲染模块540,适于从游戏服务器获取局部渲染数据,并依据所述 局部渲染数据对网页进行局部渲染,以保留flash组件当前的状态;所述局部渲染数据包括个性化数据。
优选的,所述上传通知子模块531和第一上传子模块532可以替换为第二上传子模块,适于网页在异步接收到客户端返回的登录成功状态后,获取flash组件当前状态下的游戏数据并异步上传至游戏服务器。
本发明实施例可以保证flash组件的状态不变,并且对于flash游戏网页中非flash组件的展示区域中,可以将由用户以游客身份玩flash游戏得到的游戏数据同步渲染到非flash组件的展示区域中。并且,由于数据的交互在异构的多端进行,很难采用同步请求的方式实现本发明的交互过程,本发明实施例则采用异步的方式实现各端之间的交互,
实施例六
参照图6,其示出了本发明实施例的一种异步登录装置的结构框图,具体可以包括:
登录请求接收模块610,具体包括:
第一登录请求接收子模块611,适于在网页的flash组件中接收登录请求;所述登录请求包括用户标识信息;
异步登录模块620,具体包括:
第二flash异步登录接口调用子模块621,适于由所述flash组件调用第一异步登录接口异步向网页发送第一异步登录请求;
第二实质登录模块622,适于由所述网页根据所述第一异步登录请求,与游戏服务器进行登录操作,并在登录成功后向网页返回登录成功状态。
游戏数据上传模块630,具体包括:
上传通知子模块631,适于所述网页在接收到登录成功状态后,获取用户标识信息并通知flash组件上传游戏数据;
第一上传子模块632,适于所述flash组件依据所述身份标识信息,调用上传接口以异步将当前状态下的游戏数据上传至游戏服务器,并在游戏数据上传成功后返回上传成功通知给网页。所述游戏服务器依据当前的游戏数据更新与所述用户标识信息对应的个性化数据;
局部渲染模块640,适于从游戏服务器获取局部渲染数据,并依据所述局部渲染数据对网页进行局部渲染,以保留flash组件当前的状态;所述局部渲染数据包括个性化数据。
优选的,所述上传通知子模块631和第一上传子模块632可以替换为第二上传子模块,适于网页在异步接收到客户端返回的登录成功状态后,获取flash组件当前状态下的游戏数据并异步上传至游戏服务器。
本发明实施例可以保证flash组件的状态不变,并且对于flash游戏网页中非flash组件的展示区域中,可以将由用户以游客身份玩flash游戏得到的游戏数据同步渲染到非flash组件的展示区域中。并且,由于数据的交互在异构的多端进行,很难采用同步请求的方式实现本发明的交互过程,本发明实施例则采用异步的方式实现各端之间的交互,
实施例七
参照图7,其示出了本发明实施例的一种设备,所述设备700具体可以包括:
存储器710和处理器720;
所述存储器710用于存储可执行代码;
所述处理器720用于执行所述可执行代码,所述可执行代码执行包括以下步骤的方法:
接收登录请求;所述登录请求包括用户标识信息;
根据所述用户标识信息,异步进行登录;
在登录成功后,依据所述用户标识信息将网页的flash组件当前状态下的游戏数据异步上传至游戏服务器;所述游戏服务器依据当前的游戏数据更新与所述用户标识信息对应的个性化数据;
从游戏服务器获取局部渲染数据,并依据所述局部渲染数据对网页进行局部渲染,以保留flash组件当前的状态;所述局部渲染数据包括个性化数据。
当然,本发明实施例的可执行代码可执行前述任意步骤的方法。
本发明实施例可以保证flash组件的状态不变,并且对于flash游戏网页 中非flash组件的展示区域中,可以将由用户以游客身份玩flash游戏得到的游戏数据同步渲染到非flash组件的展示区域中。并且,由于数据的交互在异构的多端进行,很难采用同步请求的方式实现本发明的交互过程,本发明实施例则采用异步的方式实现各端之间的交互,
对于装置实施方式而言,由于其与方法实施方式基本相似,所以描述的比较简单,相关之处参见方法实施方式的部分说明即可。
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或 者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的异步登录设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图8示出了可以实现根据本发明的一种异步登录的终端设备。该终端设备传统上包括处理器810和以存储器820形式的计算机程序产品或者计算机可读介质。存储器820可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器820具有用于执行上述方法中的任何方法步骤的程序代码831的存储空间830。例如,用于程序代码的存储空间830可以包括分别用于实现上面的方法中的各种步骤的各个程序代码831。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图9所述的便携式或者固定存储单元。该存储单元可以具有与图8的终端设备中的存储器820类似布置的存储段、 存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码831’,即可以由例如诸如810之类的处理器读取的代码,这些代码当由终端设备运行时,导致该终端设备执行上面所描述的方法中的各个步骤。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。

Claims (17)

  1. 一种异步登录方法,包括:
    接收登录请求;所述登录请求包括用户标识信息;
    根据所述用户标识信息,异步进行登录;
    在登录成功后,依据所述用户标识信息将网页的flash组件当前状态下的游戏数据异步上传至游戏服务器;所述游戏服务器依据当前的游戏数据更新与所述用户标识信息对应的个性化数据;
    从游戏服务器获取局部渲染数据,并依据所述局部渲染数据对网页进行局部渲染,以保留flash组件当前的状态;所述局部渲染数据包括个性化数据。
  2. 根据权利要求1所述的方法,其特征在于,所述接收登录请求的步骤包括:
    在网页的flash组件中接收登录请求。
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述用户标识信息,异步进行登录的步骤包括:
    由所述flash组件调用第一异步登录接口异步向网页发送第一异步登录请求;
    由所述网页根据所述第一异步登录请求,调用第二异步登录接口异步向网页所在客户端发送第二异步登录请求;
    由所述客户端根据第二异步登录请求,与第一服务器进行登录操作,并在登录成功后向网页返回登录成功状态。
  4. 根据权利要求3所述的方法,其特征在于,所述在登录成功后,依据所述用户标识信息将网页的flash组件当前状态下的游戏数据上传至游戏服务器的步骤包括:
    所述网页在接收到登录成功状态后,获取用户标识信息并通知flash组件上传游戏数据;
    所述flash组件依据所述身份标识信息,调用上传接口以异步将当前状态下的游戏数据上传至游戏服务器,并在游戏数据上传成功后返回上传成功通知给网页。
  5. 根据权利要求3所述的方法,其特征在于,所述在登录成功后,依据所述用户标识信息将网页的flash组件当前状态下的游戏数据上传至游戏服务器的步骤包括:
    网页在异步接收到客户端返回的登录成功状态后,获取flash组件当前状态下的游戏数据并异步上传至游戏服务器。
  6. 根据权利要求2所述的方法,其特征在于,所述根据所述用户标识信息,异步进行登录的步骤包括:
    由所述flash组件调用第一异步登录接口异步向网页发送第一异步登录请求;
    由所述网页根据所述第一异步登录请求,与游戏服务器进行登录操作。
  7. 根据权利要求1所述的方法,其特征在于,所述个性化数据包括各种排行榜数据、用户历史分数数据其中至少一个。
  8. 一种异步登录装置,包括:
    登录请求接收模块,适于接收登录请求;所述登录请求包括用户标识信息;
    异步登录模块,适于根据所述用户标识信息,异步进行登录;
    游戏数据上传模块,适于在登录成功后,依据所述用户标识信息将网页的flash组件当前状态下的游戏数据异步上传至游戏服务器;所述游戏服务器依据当前的游戏数据更新与所述用户标识信息对应的个性化数据;
    局部渲染模块,适于从游戏服务器获取局部渲染数据,并依据所述局部渲染数据对网页进行局部渲染,以保留flash组件当前的状态;所述局部渲染数据包括个性化数据。
  9. 根据权利要求7所述的装置,其特征在于,所述登录请求接收模块包括:
    第一登录请求接收子模块,适于在网页的flash组件中接收登录请求。
  10. 根据权利要求9所述的装置,其特征在于,所述异步登录模块包括:
    第一flash异步登录接口调用子模块,适于由所述flash组件调用第一异 步登录接口异步向网页发送第一异步登录请求;
    网页异步登录接口调用子模块,网页局部登录模块,适于由所述网页根据所述第一异步登录请求,调用第二异步登录接口异步向网页所在客户端发送第二异步登录请求;
    第一实质登录子模块,适于由所述客户端根据第二异步登录请求,与第一服务器进行登录操作,并在登录成功后向网页返回登录成功状态。
  11. 根据权利要求10所述的装置,其特征在于,所述游戏数据上传模块包括:
    上传通知子模块,适于所述网页在接收到登录成功状态后,获取用户标识信息并通知flash组件上传游戏数据;
    第一上传子模块,适于所述flash组件依据所述身份标识信息,调用上传接口以异步将当前状态下的游戏数据上传至游戏服务器,并在游戏数据上传成功后返回上传成功通知给网页。
  12. 根据权利要求10所述的装置,其特征在于,所述游戏数据上传模块包括:
    第二上传子模块,适于网页在异步接收到客户端返回的登录成功状态后,获取flash组件当前状态下的游戏数据并异步上传至游戏服务器。
  13. 根据权利要求8所述的装置,其特征在于,所述异步登录模块包括:
    第二flash异步登录接口调用子模块,适于由所述flash组件调用第一异步登录接口异步向网页发送第一异步登录请求;
    第二实质登录模块,适于由所述网页根据所述第一异步登录请求,与游戏服务器进行登录操作,并在登录成功后向网页返回登录成功状态。
  14. 根据权利要求7所述的装置,其特征在于,所述个性化数据包括各种排行榜数据、用户历史分数数据其中至少一个。
  15. 一种设备,包括:
    存储器和处理器;
    所述存储器用于存储可执行代码;
    所述处理器用于执行所述可执行代码,所述可执行代码执行包括以下步 骤的方法:
    接收登录请求;所述登录请求包括用户标识信息;
    根据所述用户标识信息,异步进行登录;
    在登录成功后,依据所述用户标识信息将网页的flash组件当前状态下的游戏数据异步上传至游戏服务器;所述游戏服务器依据当前的游戏数据更新与所述用户标识信息对应的个性化数据;
    从游戏服务器获取局部渲染数据,并依据所述局部渲染数据对网页进行局部渲染,以保留flash组件当前的状态;所述局部渲染数据包括个性化数据。
  16. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在终端设备上运行时,导致所述终端设备执行根据权利要求1-8中的任一个所述的异步登录方法。
  17. 一种计算机可读介质,其中存储了如权利要求16所述的计算机程序。
PCT/CN2016/100626 2015-09-30 2016-09-28 异步登录方法和装置 WO2017054735A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510642988.6 2015-09-30
CN201510642988.6A CN105208032B (zh) 2015-09-30 2015-09-30 异步登录方法和装置

Publications (1)

Publication Number Publication Date
WO2017054735A1 true WO2017054735A1 (zh) 2017-04-06

Family

ID=54955465

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/100626 WO2017054735A1 (zh) 2015-09-30 2016-09-28 异步登录方法和装置

Country Status (2)

Country Link
CN (1) CN105208032B (zh)
WO (1) WO2017054735A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111787111A (zh) * 2020-07-03 2020-10-16 珠海金山网络游戏科技有限公司 一种基于云游戏的数据传输方法及装置
WO2022022281A1 (zh) * 2020-07-29 2022-02-03 腾讯科技(深圳)有限公司 一种游戏数据处理方法、装置、计算机及可读存储介质
CN115469923A (zh) * 2022-10-28 2022-12-13 湖南映客互娱网络信息有限公司 一种通用的排行榜配置方法和装置

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208032B (zh) * 2015-09-30 2019-03-08 北京奇虎科技有限公司 异步登录方法和装置
CN107203576B (zh) * 2016-03-18 2020-06-05 北京京东尚科信息技术有限公司 信息同步方法和装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100029379A1 (en) * 2008-07-31 2010-02-04 International Games System Co., Ltd. System and method of playing online or webpage games via instant messaging software
CN101963984A (zh) * 2010-09-28 2011-02-02 北京伟库电子商务科技有限公司 页面局部区块渲染方法和系统
CN102647398A (zh) * 2011-02-16 2012-08-22 腾讯科技(深圳)有限公司 基于移动终端实现游戏的方法及装置
CN102970361A (zh) * 2012-11-14 2013-03-13 北京奇虎科技有限公司 页游业务服务器和消息分发方法及系统
CN105208032A (zh) * 2015-09-30 2015-12-30 北京奇虎科技有限公司 异步登录方法和装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102164112A (zh) * 2010-02-23 2011-08-24 腾讯科技(北京)有限公司 实现联网游戏的自动续玩的方法和装置
US9104851B2 (en) * 2011-11-02 2015-08-11 Zynga Inc. Methods and systems for enabling, tracking, and correlating anonymous user activity
CN105879393A (zh) * 2012-11-14 2016-08-24 北京奇虎科技有限公司 页游业务服务器和页游事件提醒方法及系统
CN103002018B (zh) * 2012-11-14 2017-05-10 北京奇虎科技有限公司 发送用户群组内消息的方法及页游业务服务器

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100029379A1 (en) * 2008-07-31 2010-02-04 International Games System Co., Ltd. System and method of playing online or webpage games via instant messaging software
CN101963984A (zh) * 2010-09-28 2011-02-02 北京伟库电子商务科技有限公司 页面局部区块渲染方法和系统
CN102647398A (zh) * 2011-02-16 2012-08-22 腾讯科技(深圳)有限公司 基于移动终端实现游戏的方法及装置
CN102970361A (zh) * 2012-11-14 2013-03-13 北京奇虎科技有限公司 页游业务服务器和消息分发方法及系统
CN105208032A (zh) * 2015-09-30 2015-12-30 北京奇虎科技有限公司 异步登录方法和装置

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111787111A (zh) * 2020-07-03 2020-10-16 珠海金山网络游戏科技有限公司 一种基于云游戏的数据传输方法及装置
WO2022022281A1 (zh) * 2020-07-29 2022-02-03 腾讯科技(深圳)有限公司 一种游戏数据处理方法、装置、计算机及可读存储介质
CN115469923A (zh) * 2022-10-28 2022-12-13 湖南映客互娱网络信息有限公司 一种通用的排行榜配置方法和装置
CN115469923B (zh) * 2022-10-28 2023-02-17 湖南映客互娱网络信息有限公司 一种通用的排行榜配置方法和装置

Also Published As

Publication number Publication date
CN105208032B (zh) 2019-03-08
CN105208032A (zh) 2015-12-30

Similar Documents

Publication Publication Date Title
WO2017054735A1 (zh) 异步登录方法和装置
US9606703B2 (en) Techniques for detecting inactive browser windows
US9225617B2 (en) Techniques for detecting new browser windows
US9396264B2 (en) Methods and systems for information matching
US9424062B1 (en) Virtualization infrastructure support
US9450883B2 (en) Managing redirected website login using a short address
US20180131643A1 (en) Application context aware chatbots
TW201737163A (zh) 問題預測方法及預測系統
WO2016155379A1 (zh) 动态获取app界面控件数据的方法、设备以及系统
US10032017B2 (en) Methods and systems for enabling, tracking, and correlating anonymous user activity
WO2014161455A1 (zh) 一种基于浏览器的数据访问控制方法和装置
WO2016155378A1 (zh) 应用程序内的视频播放方法及装置
US20140045596A1 (en) Methods and systems for determining the location of online gaming clients
WO2016091085A1 (zh) 数据传输方法、装置和服务器
WO2016101732A1 (zh) 跨网页的信息传输方法和网页浏览装置
US9626197B1 (en) User interface rendering performance
US10818056B2 (en) Enabling custom media overlay upon triggering event
CN110609966B (zh) 一种页面显示方法、装置及其设备
WO2014107489A2 (en) System and method for crowdsourcing map production
US20160162984A1 (en) Processing unstructured messages
US20140365469A1 (en) User address book data management system
WO2017215650A1 (zh) 微端的自动登录方法、装置、程序及介质
WO2016155626A1 (zh) 实现搜索提示的装置、系统及方法
WO2015102510A1 (en) Systems and methods for determining whether user is human
CN106390458B (zh) 网页游戏挂机方法及服务器、移动终端、浏览器客户端

Legal Events

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

Ref document number: 16850359

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16850359

Country of ref document: EP

Kind code of ref document: A1