CN117018627A - Multi-platform game login method, device, equipment and storage medium - Google Patents

Multi-platform game login method, device, equipment and storage medium Download PDF

Info

Publication number
CN117018627A
CN117018627A CN202311050632.4A CN202311050632A CN117018627A CN 117018627 A CN117018627 A CN 117018627A CN 202311050632 A CN202311050632 A CN 202311050632A CN 117018627 A CN117018627 A CN 117018627A
Authority
CN
China
Prior art keywords
login
subcommand
class
platform
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
CN202311050632.4A
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.)
Guangzhou Sanqi Jichuang Network Technology Co ltd
Original Assignee
Guangzhou Sanqi Jichuang Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Sanqi Jichuang Network Technology Co ltd filed Critical Guangzhou Sanqi Jichuang Network Technology Co ltd
Priority to CN202311050632.4A priority Critical patent/CN117018627A/en
Publication of CN117018627A publication Critical patent/CN117018627A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/71Game security or game management aspects using secure communication between game devices and game servers, e.g. by encrypting game data or authenticating players

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a multi-platform game login method, a device, equipment and a storage medium. According to the technical scheme provided by the embodiment of the application, when the user login request triggered based on the target platform and the target channel is received, the target step command class is determined according to the user login request, and a plurality of login flow steps in the target step command class are executed, so that the game account is logged in based on the target channel in the target platform, decoupling of the login logic and the business logic of the game is realized, the management difficulty of the multi-platform game login is reduced, and the management efficiency of the multi-platform game login is effectively improved.

Description

Multi-platform game login method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a multi-platform game login method, a device, equipment and a storage medium.
Background
With the development of internet technology and computer technology, application of client programs such as game programs and application programs is becoming wider and wider. Whether it be a game or an application, a user account needs to be logged in the game or application before it can experience its rich content.
The operation of clicking to enter after entering account number and password once is performed in the aspect of a player, and for a game client program, besides being responsible for interaction with a user, the game client program needs to be responsible for interaction with a game server side, a game platform website and the like, and different login processing flows are provided for different platforms and channels, so that the game account login is a process with higher complexity and logic requirements. With the increasing of game platforms and the increasing of data points involved in the login process, the login process of the multi-platform game becomes more and more huge and complicated, the login logic code of the login process of the multi-platform game is generally mixed with the business logic code at present, the login logic and the business logic are difficult to distinguish, the management difficulty of the login of the multi-platform game is high, and the management efficiency of the login of the multi-platform game is low.
Disclosure of Invention
The embodiment of the application provides a multi-platform game login method, device, equipment and storage medium, which are used for solving the technical problems that login logic and business logic are difficult to distinguish, the management difficulty of multi-platform game login is high, and the management efficiency of multi-platform game login is low in the related art, and effectively improving the management efficiency of multi-platform game login.
In a first aspect, an embodiment of the present application provides a multi-platform game login method, including:
receiving a user login request triggered based on a target platform and a target channel;
determining a target step command class according to the user login request, wherein different platforms and/or channels correspond to different step command classes, and the step command class is obtained by packaging based on login flow steps corresponding to the platforms and/or channels;
executing a plurality of login flow steps in the target step command class to log in a game account based on the target channel in the target platform, wherein the login flow steps are executed based on a single thread and a blocking queue policy.
In a second aspect, an embodiment of the present application provides a multi-platform game login device, including a request response module, a command class determination module, and a login execution module, where:
the request response module is configured to receive a user login request triggered based on the target platform and the target channel;
the command class determining module is configured to determine a target step command class according to the user login request, wherein different platforms and/or channels correspond to different synchronous command classes, and the step command class is obtained by packaging based on login flow steps corresponding to the platforms and/or channels;
the login execution module is configured to execute a plurality of login flow steps in the target step command class to log in a game account based on the target channel in the target platform, wherein the login flow steps are executed based on a single thread and a blocking queue policy.
In a third aspect, an embodiment of the present application provides a multi-platform game login device, including: a memory and one or more processors;
the memory is used for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the multi-platform game login method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a storage medium storing computer executable instructions which, when executed by a computer processor, are for performing the multi-platform game login method of the first aspect.
According to the embodiment of the application, when the user login request triggered based on the target platform and the target channel is received, the target step command class is determined according to the user login request, and a plurality of login flow steps in the target step command class are executed, so that the game account is logged in the target platform based on the target channel, decoupling of the login logic and the business logic of the game is realized, the management difficulty of the multi-platform game login is reduced, and the management efficiency of the multi-platform game login is effectively improved.
Drawings
FIG. 1 is a flow chart of a multi-platform game login method provided by an embodiment of the application;
FIG. 2 is a flow chart of another multi-platform game login method provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of a multi-platform game login device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a multi-platform game login device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the following detailed description of specific embodiments of the present application is given with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the matters related to the present application are shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The above-described process may be terminated when its operations are completed, but may have additional steps not included in the drawings. The processes described above may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart of a multi-platform game login method according to an embodiment of the present application, where the multi-platform game login method according to the embodiment of the present application may be implemented by a multi-platform game login device, and the multi-platform game login device may be implemented in hardware and/or software and integrated in a multi-platform game login device (e.g., a game client).
The following describes an example of a multi-platform game registration method performed by the multi-platform game registration device. Referring to fig. 1, the multi-platform game login method includes:
s110: and receiving a user login request triggered based on the target platform and the target channel.
When a user logs in a game through the multi-platform game login device, the user can log in a game account based on different platforms and channels. Alternatively, different platform and channel combinations may correspond to different game accounts, or may correspond to the same game account.
In one embodiment, the target platform and target channel to which the user is logged into the game account may be selected by the user or may be determined based on the type of client to which the multi-platform game login device is to be assigned. For example, the corresponding target platform and target channel may be configured by default for different multi-platform game logging devices, e.g., a combination of different platforms and channels such as a client, PC, web, applet, an Zhuoduan, IOS, different operators, agents, etc.
For example, when a user needs to log in a game account at the multi-platform game login device to play a game, a user login request can be triggered based on a target platform and a target channel selected or defaulted by the user, and after the platform game login device detects the user login request triggered based on the target platform and the target channel, corresponding login logic can be further executed according to the target platform and the target channel.
S120: determining a target step command class according to a user login request, wherein different platforms and/or channels correspond to different step command classes, and the step command class is obtained by packaging based on login flow steps corresponding to the platforms and/or channels.
It should be explained that, for different platforms and/or channels, there may be different situations in the login procedure steps of the game account, it is necessary to pre-determine that the corresponding step command class is configured for the login procedure steps corresponding to the different platforms and/or channels, and record the step command class corresponding to the combination of the different platforms and channels. After detecting a user login request triggered based on a target platform and a target channel, determining a corresponding step command class according to the target platform and the target channel, and determining the determined step command class as a target step command class corresponding to an execution login flow.
S130: executing a plurality of login procedure steps in the target step command class to log in the game account based on the target channel in the target platform, wherein the plurality of login procedure steps are executed based on the single thread and the blocking queue policy.
Illustratively, after determining the target platform and the target step command class corresponding to the target channel, sequentially executing a plurality of login procedure steps corresponding to the target step command class, thereby logging in the game account of the user based on the target channel in the target platform.
The steps of the login flow in the step command class provided by the scheme are executed based on a single-thread and blocking queue strategy. The multi-platform game login device controls different interactive performances and interaction control with external users, servers or platform websites in the login process step execution process. The multi-platform game login equipment separates data from performance to a certain extent, and performs necessary blocking processing on the execution flow when needed. The login process of the game has a plurality of associated steps and has stronger logic, and the single-thread execution characteristic can ensure orderly execution of a plurality of login process steps, so that the situation that the required data cannot be acquired because the previous login process step is not executed when the login process step is executed is reduced. In addition, the scheme can manage the interactive data of the whole login flow through the data center, separate the data from the step commands, effectively reduce the dependency relationship among the step commands and improve the login stability.
Based on the above, the method can start the step command class containing all login flow at the game entrance, thereby orderly executing each login flow step according to the set mode. Meanwhile, the blocking queue strategy is used for executing the login procedure step, so that special requirements under a single-thread driving mode can be met, for example, when a certain login procedure step is executed, if waiting for a certain time is needed and the next login procedure step can be continuously executed after the result feedback is obtained, the blocking queue strategy can ensure that the subsequent login procedure step can be continuously executed after the last login procedure step is obtained, and the correct and orderly execution of the multi-platform game login is ensured.
According to the method, when the user login request triggered based on the target platform and the target channel is received, the target step command class is determined according to the user login request, and a plurality of login flow steps in the target step command class are executed, so that a game account is logged in based on the target channel in the target platform, decoupling of login logic and business logic of a game is achieved, management difficulty of multi-platform game login is reduced, and management efficiency of multi-platform game login is effectively improved.
On the basis of the above embodiment, fig. 2 shows a flowchart of another multi-platform game login method according to an embodiment of the present application, where the multi-platform game login method is a specific implementation of the multi-platform game login method. Referring to fig. 2, the multi-platform game login method includes:
s210: and receiving a user login request triggered based on the target platform and the target channel.
S220: determining a target step command class according to a user login request, wherein different platforms and/or channels correspond to different step command classes, and the step command class is obtained by packaging based on login flow steps corresponding to the platforms and/or channels.
S230: determining a plurality of subcommand classes corresponding to the target step command class, and sequentially executing a plurality of login flow steps and an ending method of each subcommand class so as to log in a game account based on a target channel in a target platform.
The method comprises a plurality of login flow steps, a plurality of sub-command class calling end method and a plurality of login flow steps, wherein the login flow steps are executed based on a single thread and a blocking queue strategy, and the subsequent sub-command class continues to execute after receiving a task success notification sent by the last sub-command class calling end method. In one embodiment, the step command class provided by the scheme includes a plurality of subcommand classes, the subcommand classes correspond to a plurality of login flow steps and an ending method, wherein the subcommand classes call the ending method after the corresponding plurality of login flow steps are successfully executed, so as to inform the following subcommand classes to continue executing tasks. When the following subcommand class does not receive the notification of the ending method of the last subcommand class, the subcommand class enters a waiting state until the ending method of the last subcommand class notifies to continue executing tasks, the blocking of threads is realized, a plurality of subcommands of the step command class can flexibly link various actual judging requirements, and the correctness of a login flow is ensured.
When the multi-platform game login provided by the scheme executes a plurality of login flow steps in the target step command class, the multi-platform game login is configured to determine a plurality of subcommand classes corresponding to the target step command class, and sequentially execute the plurality of login flow steps and the ending method of each subcommand class. Each subcommand class can correspond to one or more login flow steps, and the subsequent subcommand class continues to execute after receiving a task success notification sent by the last subcommand class call ending method.
The subcommand class corresponding to each step command class and a plurality of login flows corresponding to the corresponding platform and/or channel can be determined, and different login flows are packaged into subcommand classes. Optionally, the subcommand class provided in the present solution may be a set language type step command class, an initialize CDN (Content Delivery Network ) step command class, an SDK (Software Development Kit ) initialize step command class, an open background interface step command class, a check whether it is a novice step command class, an open corner interface step command class, an open service page step command class, and the like. Optionally, because the new account is different from the old account in login process, subcommand classes such as a role command class, an old account command class and the like can be respectively configured for the new account and the old account.
After determining the target step command class corresponding to the user login request, determining a plurality of subcommand classes corresponding to the target step command class, and sequentially executing a plurality of login flow steps and an ending method corresponding to each subcommand class. After the execution of a plurality of login flow steps corresponding to each subcommand class is completed, the ending method of the subcommand class is called to inform the next subcommand class to continue to execute, and execution of the target step command based on the blocking queue strategy is realized.
In one possible embodiment, the subcommand class provided by the present solution may be a base command class based on a plurality of platform and/or channel configurations, or a dedicated command class based on a set platform and/or channel configuration. The basic command class can be applied to the login flow corresponding to the combination of different platforms and channels, and the special command class can be applied to the login flow corresponding to the combination of the appointed platform and channel. Optionally, corresponding special command classes can be configured for login flow steps corresponding to the combination of the designated platform and the channel, and the special command classes and the basic command classes are combined to obtain step command classes corresponding to the combination of different platforms and channels, so that the development efficiency and the management efficiency of multi-platform game login are effectively improved, and the login flow expansion efficiency of different platforms and channels is improved.
The game interaction is strong, and the game interaction not only occurs between the user and the client, but also exists between the client and the server and between the client and the platform, and is often accompanied by certain delay and waiting for response. For example, before a certain command needs to be executed, whether the execution condition is met or not needs to be judged, the data required by the judgment of the execution condition cannot be obtained immediately, the multi-platform game login device is required to send a request to a platform website, after the platform website responds and returns data, the returned data is judged, and if the condition is met, the execution is continued. The response and data return of the platform website are often delayed, but the existing game login thread does not stop to wait for the data return, so that the data required by the condition judgment logic arrives, the command is already executed, and the correctness of the condition judgment cannot be ensured. According to the scheme, the end method is added into each subcommand class to realize a blocking queue strategy for a login flow, whether the external current subcommand class finishes executing tasks or not is informed by calling the end method, the whole execution flow is suspended by the multiple commands comprising the corresponding subcommand before the subcommand finishes executing notification is received, the waiting state is entered, the next step is continuously executed only after the execution completion notification is received, thread blocking is realized, various actual judgment requirements can be flexibly linked, and the correctness of the game login flow is ensured.
In one possible embodiment, a plurality of subcommand classes corresponding to the step command class provided by the scheme are sequentially recorded in the command class list, and correspondingly, when the plurality of subcommand classes corresponding to the target step command class are determined, the subcommand classes can be sequentially taken out from the command class list corresponding to the target step command class.
The method includes the steps of determining a plurality of corresponding login flows based on combinations of different platforms and channels, respectively packaging the login flows into subcommand classes, sequentially recording the subcommand classes in a set command class list based on the execution sequence of the login flows, and determining step command classes corresponding to the command class list. When a login procedure step is required to be executed based on a plurality of subcommand classes corresponding to the target step command class, determining a command class list corresponding to the target step command class, sequentially taking out the subcommand classes from the command class list corresponding to the target step command class (firstly taking out the subcommand class which is put into the command class list), and sequentially executing a plurality of login procedure steps and an ending method corresponding to the subcommand classes according to the taking-out sequence, wherein the login procedure step corresponding to the subcommand class which is taken out later is in a waiting state before receiving a notification of continuing execution sent by the ending method of the last subcommand class, and continues to be executed downwards after receiving the notification of continuing execution sent by the ending method of the last subcommand class. The related subcommand classes of the flow are arranged and recorded in sequence and then sequentially taken out and executed, so that the subcommand classes with the sequence relation can effectively ensure the smooth initialization and acquisition of the required data and ensure the stability of the login flow.
When the command class is packaged, each step of the login flow is used as different requests, and each login flow step is packaged in a command form to form a subcommand class with a fixed structure. For example, the language type selection request is encapsulated into a set language type subcommand class, the CND initialization request is encapsulated into an initialization CDN subcommand class, the SDK initialization request is encapsulated into an SDK initialization subcommand class, and the like, so that the login flow can be parameterized through different requests, and the decoupling of the command request and the command execution can be realized. The step command class provided by the scheme corresponds to a plurality of subcommand classes, is a concept similar to a macro command, and the subcommand classes are commands comprising a plurality of commands.
In the login process, login process steps for processing a specific process or the same target can be divided into one class, commands corresponding to the login process steps are combined to be used as a subcommand class of a step command class, the step command class and the subcommand class can be used as multiple commands, the multiple commands are also one command, the multiple commands can also be used as subcommands of another multiple command, and the subcommands can be freely combined as required, so that a father-child relationship among the step commands is constructed. The multi-command internally stores sub-command classes with a list, and different sub-command classes can be filled according to different parameter types to execute different functions. When the method is initialized, the subcommand classes are sequentially placed in a command class list according to the logic sequence, and when the subcommand classes are needed to be executed, the subcommand classes are sequentially taken out one by one to be executed, so that a hierarchical structure among step commands is built, different executing step commands can be formulated according to different platforms or channels, the front-back logic relation before the step commands can be effectively controlled, different login flow steps are combined, and the flexibility of multi-platform game login is improved.
In one possible embodiment, the platform game login method provided in the present embodiment, when sequentially executing the steps of the multiple login flows of each subcommand class and the ending method, may be: and when the execution of the plurality of login flow steps of each sub command class is successful, executing the ending method.
For example, when a first subcommand class is fetched from the command class list, a plurality of login procedure steps corresponding to the first subcommand class are executed, and a subsequent subcommand list fetched from the command class list enters a waiting state. And when the login flow steps corresponding to the first subcommand class are successfully executed, calling an ending method corresponding to the first subcommand class to inform the next subcommand class to continue to execute. The scheme utilizes an event mechanism to dispatch the execution completion event to the external subcommand class through the ending method, and the external subcommand continues to execute the next subcommand class after receiving the completion event notification, for example, the current subcommand class acquires certain data from the platform website, and the next subcommand class is executed after finishing logic judgment of the data, thereby effectively ensuring the correct and orderly execution of the multi-platform game login.
In one possible embodiment, the multi-platform game login method provided in the present embodiment may be when executing the steps of the multiple login flows of each subcommand class and the ending method in sequence: and under the condition that the other subcommand classes do not depend on the successful execution of the current subcommand class, sequentially executing a plurality of login flow steps of each subcommand class, and calling an ending method after the execution of the login flow steps is completed.
For example, when the other subcommand class does not depend on the successful execution of the current subcommand class, the calling time of the ending method of the corresponding subcommand class is configured to call the ending method after the execution of a plurality of login flow steps of the subcommand class is completed. For example, when the calling time of the ending method of the subcommand class is configured to complete the execution of a plurality of login flow steps of the subcommand class, namely, when the ending method is called, a plurality of login flow steps of each subcommand class are sequentially executed, and after the execution of a plurality of login flow steps is completed, the ending method is called to inform the next subcommand class to continue to execute, when the external subcommand does not need to know whether each step command has been executed, whether interactive data is returned or not, the execution ending method is immediately called to inform the external subcommand flow to complete execution, the blocking of threads under the condition that the execution of the step command does not need to wait for the execution of other step commands to complete is reduced, and the correct and orderly execution of the multi-platform game login is effectively ensured.
According to the method, when the user login request triggered based on the target platform and the target channel is received, the target step command class is determined according to the user login request, and a plurality of login flow steps in the target step command class are executed, so that a game account is logged in based on the target channel in the target platform, decoupling of login logic and business logic of a game is achieved, management difficulty of multi-platform game login is reduced, and management efficiency of multi-platform game login is effectively improved. And when the following subcommand class does not receive the notification of the ending method of the last subcommand class, the subcommand class enters a waiting state until the ending method of the last subcommand class notifies to continue executing tasks, so that the blocking of threads is realized, a plurality of subcommands of the step command class can flexibly link various actual judging requirements, and the correctness of a login flow is ensured. When different platforms or channels carry out login flows, a unified trigger entrance is provided, login differentiation processing is guaranteed to be carried out in the frame, system stability is improved, when games enter from different platform channels, stable, smooth and orderly execution of the login flows can be guaranteed, steps which can be continuously executed after waiting for data feedback can be flexibly processed, packaged subcommand classes provide a method for blocking overall execution threads, and special requirements can be processed as required during blocking, so that the frame has flexible flow control capability.
Fig. 3 is a schematic structural diagram of a multi-platform game login device according to an embodiment of the present application. Referring to fig. 3, the multi-platform game logging device includes a request response module 31, a command class determination module 32, and a logging execution module 33.
Wherein, the request response module 31 is configured to receive a user login request triggered based on the target platform and the target channel; the command class determining module 32 is configured to determine a target step command class according to a user login request, wherein different platforms and/or channels correspond to different synchronous command classes, and the step command class is obtained by packaging based on login flow steps corresponding to the platforms and/or channels; the login execution module 33 is configured to execute a plurality of login procedure steps in the target step command class to login the game account based on the target channel in the target platform, wherein the plurality of login procedure steps are executed based on the single thread and the blocking queue policy.
According to the method, when the user login request triggered based on the target platform and the target channel is received, the target step command class is determined according to the user login request, and a plurality of login flow steps in the target step command class are executed, so that a game account is logged in based on the target channel in the target platform, decoupling of login logic and business logic of a game is achieved, management difficulty of multi-platform game login is reduced, and management efficiency of multi-platform game login is effectively improved.
In one possible embodiment, the step command class includes a plurality of subcommand classes, where the subcommand classes correspond to a plurality of login procedure steps and an ending method, and the subcommand classes call the ending method after the corresponding plurality of login procedure steps are successfully executed to notify the following subcommand classes to continue executing tasks.
In one possible embodiment, the login execution module 33, when executing a plurality of login procedure steps in the target step command class, includes:
determining a plurality of subcommand classes corresponding to the target step command class, and sequentially executing a plurality of login flow steps and an ending method of each subcommand class, wherein the subcommand class continues to execute after receiving a task success notification sent by a previous subcommand class calling ending method.
In one possible embodiment, the multiple subcommand classes corresponding to the step command class are sequentially recorded in the command class list, and the login execution module 33, when determining the multiple subcommand classes corresponding to the target step command class, includes: and sequentially taking out the subcommand classes from the command class list corresponding to the target step command class.
In one possible embodiment, the login execution module 33, when sequentially executing the plurality of login procedure steps of each subcommand class and the ending method, includes:
and when the execution of the plurality of login flow steps of each sub command class is successful, executing the ending method.
In one possible embodiment, the login execution module 33, when sequentially executing the plurality of login procedure steps of each subcommand class and the ending method, includes:
and under the condition that the other subcommand classes do not depend on the successful execution of the current subcommand class, sequentially executing a plurality of login flow steps of each subcommand class, and calling an ending method after the execution of the login flow steps is completed.
In one possible embodiment, the subcommand class is a base command class based on a plurality of platform and/or channel configurations, or a dedicated command class based on a set platform and/or channel configuration.
It should be noted that, in the embodiment of the multi-platform game login device, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the embodiments of the present application.
The embodiment of the application also provides a multi-platform game login device which can integrate the multi-platform game login device provided by the embodiment of the application. Fig. 4 is a schematic structural diagram of a multi-platform game login device according to an embodiment of the present application. Referring to fig. 4, the multi-platform game logging device includes: an input device 43, an output device 44, a memory 42, and one or more processors 41; a memory 42 for storing one or more programs; the one or more programs, when executed by the one or more processors 41, cause the one or more processors 41 to implement the multi-platform game login method as provided by the above embodiments. Wherein the input device 43, the output device 44, the memory 42 and the processor 41 may be connected by a bus or otherwise, for example in fig. 4 by a bus connection.
The memory 42 is a computer readable storage medium, and may be used to store software programs, computer executable programs, and modules, such as program instructions/modules corresponding to the multi-platform game login method provided in any embodiment of the present application (e.g., the request response module 31, the command class determination module 32, and the login execution module 33 in the multi-platform game login device). The memory 42 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for functions; the storage data area may store data created according to the use of the device, etc. In addition, memory 42 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 42 may further comprise memory located remotely from processor 41, which may be connected to the device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 43 may be used to receive entered numeric or character information and to generate key signal inputs related to user settings and function control of the device. The output device 44 may include a display device such as a display screen.
The processor 41 executes various functional applications of the device and data processing by running software programs, instructions and modules stored in the memory 42, i.e., implements the multi-platform game login method described above.
The multi-platform game login device, the multi-platform game login equipment and the multi-platform game login computer can be used for executing the multi-platform game login method provided by any embodiment, and have corresponding functions and beneficial effects.
The embodiment of the present application also provides a storage medium storing computer-executable instructions that when executed by a computer processor are used to perform the multi-platform game login method as provided in the embodiment, the multi-platform game login method comprising: receiving a user login request triggered based on a target platform and a target channel; determining a target step command class according to a user login request, wherein different platforms and/or channels correspond to different step command classes, and the step command class is obtained by packaging based on login flow steps corresponding to the platforms and/or channels; executing a plurality of login procedure steps in the target step command class to log in the game account based on the target channel in the target platform, wherein the plurality of login procedure steps are executed based on the single thread and the blocking queue policy.
Storage media-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, lanbas (Rambus) RAM, etc.; nonvolatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a second, different computer system connected to the first computer system through a network such as the internet. The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (e.g., in different computer systems connected by a network). The storage medium may store program instructions (e.g., embodied as a computer program) executable by one or more processors.
Of course, the storage medium storing the computer executable instructions provided in the embodiments of the present application is not limited to the multi-platform game login method provided above, and may also perform the related operations in the multi-platform game login method provided in any embodiment of the present application.
The multi-platform game registration device, the device and the storage medium provided in the above embodiments may execute the multi-platform game registration method provided in any embodiment of the present application, and technical details not described in detail in the above embodiments may be referred to the multi-platform game registration method provided in any embodiment of the present application.
The foregoing description is only of the preferred embodiments of the application and the technical principles employed. The present application is not limited to the specific embodiments provided herein, and various obvious changes, rearrangements and substitutions can be made by those skilled in the art without departing from the scope of the application. Therefore, while the application has been described in connection with the above embodiments, the application is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit of the application, the scope of which is set forth in the following claims.

Claims (10)

1. A multi-platform game logging method, comprising:
receiving a user login request triggered based on a target platform and a target channel;
determining a target step command class according to the user login request, wherein different platforms and/or channels correspond to different step command classes, and the step command class is obtained by packaging based on login flow steps corresponding to the platforms and/or channels;
executing a plurality of login flow steps in the target step command class to log in a game account based on the target channel in the target platform, wherein the login flow steps are executed based on a single thread and a blocking queue policy.
2. The multi-platform game logging method of claim 1 wherein the step command class includes a plurality of subcommand classes, the subcommand classes corresponding to a plurality of logging process steps and an ending method, the subcommand classes invoking the ending method upon successful execution of the corresponding plurality of logging process steps to inform the following subcommand classes to continue executing tasks.
3. The multi-platform game logging method of claim 2 wherein said executing a plurality of logging flow steps in said target step command class comprises:
and determining a plurality of subcommand classes corresponding to the target step command class, and sequentially executing a plurality of login flow steps and an ending method of each subcommand class, wherein the subsequent subcommand class continues to execute after receiving a task success notification sent by a last subcommand class calling ending method.
4. The multi-platform game logging method according to claim 3, wherein the plurality of subcommand classes corresponding to the step command class are sequentially recorded in a command class list, and the determining the plurality of subcommand classes corresponding to the target step command class comprises:
and sequentially taking out subcommand classes from the command class list corresponding to the target step command class.
5. A multi-platform game logging method according to claim 3, wherein said sequentially executing a plurality of logging steps and ending method of each of said subcommand classes comprises:
and under the condition that the execution of other subcommand classes depends on the current subcommand class is successful, sequentially executing a plurality of login flow steps of each subcommand class, and under the condition that the execution of a plurality of login flow steps is successful, executing the ending method.
6. A multi-platform game logging method according to claim 3, wherein said sequentially executing a plurality of logging steps and ending method of each of said subcommand classes comprises:
and under the condition that other subcommand classes do not depend on the successful execution of the subcommand class, sequentially executing a plurality of login flow steps of each subcommand class, and calling the ending method after the execution of the login flow steps is completed.
7. The multi-platform game logging method of any one of claims 2-6 wherein the subcommand class is a base command class based on a plurality of platform and/or channel configurations or a dedicated command class based on a set platform and/or channel configuration.
8. A multi-platform game login device, comprising a request response module, a command class determination module and a login execution module, wherein:
the request response module is configured to receive a user login request triggered based on the target platform and the target channel;
the command class determining module is configured to determine a target step command class according to the user login request, wherein different platforms and/or channels correspond to different synchronous command classes, and the step command class is obtained by packaging based on login flow steps corresponding to the platforms and/or channels;
the login execution module is configured to execute a plurality of login flow steps in the target step command class to log in a game account based on the target channel in the target platform, wherein the login flow steps are executed based on a single thread and a blocking queue policy.
9. A multi-platform game entry device, comprising: a memory and one or more processors;
the memory is used for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the multi-platform game login method of any of claims 1-7.
10. A storage medium storing computer executable instructions which, when executed by a computer processor, are for performing the multi-platform game logging method of any one of claims 1 to 7.
CN202311050632.4A 2023-08-18 2023-08-18 Multi-platform game login method, device, equipment and storage medium Pending CN117018627A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311050632.4A CN117018627A (en) 2023-08-18 2023-08-18 Multi-platform game login method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311050632.4A CN117018627A (en) 2023-08-18 2023-08-18 Multi-platform game login method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117018627A true CN117018627A (en) 2023-11-10

Family

ID=88624303

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311050632.4A Pending CN117018627A (en) 2023-08-18 2023-08-18 Multi-platform game login method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117018627A (en)

Similar Documents

Publication Publication Date Title
US11765051B2 (en) Instantiation of cloud-hosted functions based on call to function graph
US9501319B2 (en) Method and apparatus for scheduling blocking tasks
US7552218B2 (en) Transparent session migration across servers
US7614059B2 (en) System and method for the discovery and usage of local resources by a mobile agent object
CN111625452A (en) Flow playback method and system
US20050234936A1 (en) Asynchronous database API
US20170185678A1 (en) Crawler system and method
CN111176803B (en) Service processing method, device, server and storage medium
US8156479B2 (en) System and method of monitoring dynamic scopes in synchronous and asynchronous calls
CN112836152B (en) Page rendering method, system, computer device and computer readable storage medium
CN111330280B (en) Method and device for processing data in game, storage medium and electronic equipment
CN109194986A (en) A kind of resource control method, smart television and storage medium
US20220038444A1 (en) Cloud device, application processing method, electronic device and storage medium
US20150236942A1 (en) Remotely Controlling Devices and Proscessing Asynchronous Events for Testing
CN112328362A (en) Method for realizing function calculation service based on container technology
CN111435382B (en) Login checking method of page and terminal
CN116414521A (en) Virtual machine remote command interaction method, device and medium for distributed heterogeneous shooting ranges
CN108984321B (en) Mobile terminal, limiting method for interprocess communication of mobile terminal and storage medium
EP1654650B1 (en) Transparent session migration across servers
CN117018627A (en) Multi-platform game login method, device, equipment and storage medium
CN108470125B (en) OLE redirection method and system based on virtual desktop
CN109933444A (en) A kind of instant communication method between applying of lodging
CN112860328B (en) Control method, device, computing equipment and medium of server
CN112764837B (en) Data reporting method, device, storage medium and terminal
CN113434234A (en) Page jump method, device, computer readable storage medium and processor

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