A kind of database server reads the method and device that account form control user logs in
Technical field
The present invention relates to technical field of the computer network, more particularly to a kind of database server to read the control of account form
The method and apparatus that user logs in, suitable for the test and operation of online game.
Background technology
Online game is using internet as transmission medium, using gaming operators server and subscriber computer as processing end
End, using game client software aiming at amusement, leisure, exchange and acquirement invents having just for information exchange window
The individuality MMOG of sustainability.
With requirement more and more higher of the user to online game, the external test or formal after online game research and development finished product
Issue flow also becomes to become increasingly complex, and is typically necessary the true operation conditions in the complex environment Imitating game of outer net;
In addition, online game operator in order to shift to an earlier date pre- hot product, before external test or before formal release product, typically can all adopt
External disclosure server list in advance and server name mode are taken, commercial propaganda is carried out to user.Although general user can be with
The server list that can be logged in is seen in advance, but the not up to time of opening, game should not be allowed to general user
Game server.For this problem, it is by mainstream solution used by most of network game development companies at present
The mode configured using iptables, i.e., by the default IP white lists that can be logged in, and (such as online game is public in user
The close beta operation maintenance personnel of department, or limit the external testing personnel that scope is invited) check that its IP mode controls when logging in
User's logs in.But two in actual applications be present using iptables solutions:1st, account logs in control system
Maintenance cost of uniting is high, and is unfavorable for test operation maintenance personnel strange land and logs in inspection.Specifically, operation maintenance personnel gives tacit consent to iptables
Rule is preset as all access and all prevented, and then adds the IP address for allowing to log in again into white list.Tested for outer net
Personnel, after each ip addresses change, it is both needed to notify operation maintenance personnel to be added in white list the IP address of renewal, causes account to be stepped on
Land control system maintenance cost is high.2nd, it is usually the reasons such as Network Abnormal to give user and log in unsuccessfully prompting.Specifically, when general
When user's request logs in, game server refusal user logs in concurrent SCN Space Cable Network and unsuccessfully prompted.Can so user be set to misunderstand,
General user is easily misled, so as to reduce Consumer's Experience.
The content of the invention
Present invention aims to solve the deficiencies of the prior art, and provides a kind of a kind of database server reads the control of account form
The method and apparatus that user logs in, it more neatly controls the account of online game to log in by online game application layer, from
And solve online game testing process complexity and the bad technical problem of Consumer's Experience caused by the operation of game strange land and research and development.
To achieve these goals, the present invention uses following technical scheme:
A kind of database server reads the method that account form control user logs in, and comprises the following steps:
S100) database server imports and is loaded with open login user account information form;
S200) after game server receives user's log on request, database server performs limitation user and logs in function,
So as to read the information form having been introduced into;If the user account that the game server receives belongs in described information form
Opening login user account, then the game server allow user to log in;Otherwise, the game server refusal user steps on
Land.
It is further comprising the steps of after game server receives user's log on request in the above method of the present invention:
S101) game server checking user account data it is whether correct, if account data correctly if perform step S200,
Otherwise, the game server refusal user logs in.
It is further comprising the steps of after game server refusal user logs in the above method of the present invention:
S201) game server sends text prompt to user.
Further, it is further comprising the steps of before database server imports and is loaded with open login user information form:
S001) the open login user account letter of storage will be preset in the open account information write-in account form for logging in role
The row of breath.
The present invention is it is also proposed that a kind of database server reads the device that account form control user logs in, including following mould
Block:
Import modul, imported for database server and be loaded with open login user account information form;
Judge module, for after game server receives user's log on request, database server to perform limitation user
Function is logged in, so as to read the information form having been introduced into;If the account of the user belongs to opening in described information form
Login user account is put, then the game server allows user to log in;Otherwise, the game server refusal user logs in.
Execution module, for performing the request of user's game server.
Further, the device also includes authentication module, for verifying whether user account data are correct.
Further, the device also includes reminding module, for sending text prompt to user.
Further, the device also includes writing module, for open login user account information to be write into account form
In preset the row of the open login user account information of storage.
Present invention also offers a kind of computer-readable medium, comprising for performing database server reading account form
The instruction that control user logs in.
Beneficial effects of the present invention are:More neatly the account of online game is controlled to step on by online game application layer
Land, so as to the online game testing process challenge caused by strange land operation and research and development that solves to play, pass through account pilot angle
Color, which logs in, becomes more agile, can accomplish to run, research and develop, testing strange land different IP addresses and arbitrarily access;General user simultaneously
It can receive when logging in and more specifically prompt, and be more than prompting the technical problems such as Network Abnormal, so as to improve the body of user
Test.
Brief description of the drawings
Fig. 1 is shown proposed by the present invention controls the flow of the embodiment of user log-in method by reading account form
Figure;
Fig. 2 is shown proposed by the present invention controls the another embodiment of user log-in method by reading account form
Flow chart;
Fig. 3 is shown proposed by the present invention controls the another embodiment of user log-in method by reading account form
Flow chart;
Fig. 4 is shown proposed by the present invention controls the another embodiment of user log-in method by reading account form
Flow chart;
Fig. 5 is shown proposed by the present invention controls the module knot of user's game server device by reading account form
Composition.
Embodiment
Carried out below with reference to the design of embodiment and accompanying drawing to the present invention, concrete structure and caused technique effect clear
Chu, complete description, to be completely understood by the purpose of the present invention, scheme and effect.It should be noted that in situation about not conflicting
Under, the feature in embodiment and embodiment in the application can be mutually combined.The identical accompanying drawing mark used everywhere in accompanying drawing
Note indicates same or analogous part.
Database server read device that account form control user logs in by game server, database server,
User terminal is formed.When user logs in game server, game server requires that user inserts user account.Game server is received
After the information and log on request inserted to user, database server is transferred the information to.
Fig. 1 show the implementation that database server proposed by the present invention reads account form control user log-in method
The flow chart of example.Reference picture 1, for online game test, the database server reads account form control user and stepped on
Land player method comprises the following steps:
S100) database server imports and is loaded with open login user account information form.
S200) after game server receives user's log on request, database server performs limitation user and logs in function,
So as to read the information form having been introduced into.Specifically, the user account information for asking to log in will be delivered to database server.
Database server reads the opening login user accounts information form being loaded with having been introduced into;If the account category of the user
Opening login user account in described information form, then the game server allow user to log in;Otherwise, it is described to log in
Server refusal user logs in.
Database server shown in reference picture 2 reads the stream of the another embodiment of account form control user log-in method
Cheng Tu, according to this embodiment of the invention, after the game server receives account log on request, in addition to step S101:Step on
Whether land server authentication user account data correct, if account data correctly if perform step S200, it is otherwise, described to log in clothes
Business device refusal user logs in.Specifically, the game server is after the request of account Sign-On services is received, by described in first checking
Account data, such as including but not limited to account title, account roles, landing time, client ip address and client release
Number etc. information, if correctly pass to the game server, to confirm whether account abnormal, and be the game server
Step S200 is performed to be ready to inquire about account roles.Empirical tests, if the account data is correct, the game server is held
Row step S200, continues to verify account;If the account data mistake, the game server performs step S400,
Refusal account, which is logged in and exited, logs in flow.
Database server shown in reference picture 3 reads the stream of the another embodiment of account form control user log-in method
Cheng Tu, according to this embodiment of the invention, after game server refusal user logs in, in addition to step S201:Log in
Server sends text prompt to user.E.g., " server will be in 14 to user's transmission for game server:00 open, please in
14:The friendly text prompt of 00 game server ".
Database server with reference to shown in figure 4 reads the stream of the another embodiment of account form control user log-in method
Cheng Tu, according to this embodiment of the invention, before database server imports and is loaded with open login user information form, in addition to
Step S001, open login user account information is write in account form and presets the open login user account information of storage
Row, such as the row specified in the Excel tables of Microsoft.
Shown in reference picture 5 function structure chart of the device of user's game server is controlled by reading account form.
The invention provides a kind of by reading account form the device that controls user to log in.It is described to be controlled by reading account form
User's game server device processed includes following module:Import modul, imported for database server and be loaded with open log in
User profile form;Judge module, letter is logged in for after game server receives user's log on request, performing limitation user
Number, read have been introduced into be loaded with open login user account form and judge whether the user account belongs to the letter
Cease the opening login user account in form;Execution module, for performing the request of user's game server.
Specifically, it is loaded with the instruction of open login user information form in database server operation importing first.Data
Storehouse server performs limitation user and logs in function, read have been introduced into be loaded with open login user information form and according to information
Query Result judges whether to belong to open login user account in information form in form;According to Query Result (i.e. account roles
Whether in the user Biao Nei), being sent to the execution module allows user to log in (when account roles are in the user Biao Nei)
Or refusal user logs in the instruction of (when account roles are not in the user Biao Nei).Execution module receives the instruction of judge module
Afterwards, performing, which allows user to log in (when account roles are in the user Biao Nei) or refuse user, logs in (when account roles do not exist
The user Biao Nei) request.
According to one embodiment of present invention, after the receiving module checking account data is correct, just to the judgement mould
Block sends the instruction for inquiring about user's table.Specifically, the receiving module, will first after the request of account Sign-On services is received
Verify the account data, such as including but not limited to account title, account roles, landing time, client ip address and visitor
The information such as Hu Duan version numbers, if correctly pass to the receiving module, to confirm whether account is abnormal, and be the record
Module polls account roles are ready.Empirical tests, if the account data is correct, the log-in module will be to the judgement mould
Block sends the instruction for inquiring about user's table;If the account data mistake, the log-in module will be sent out to the judge module
Go out preset instructions, such as the information of empty account so that the judge module directly sends to account to the execution module and sent out
Send the prompting that refusal logs in.
A kind of computer-readable medium, it is characterised in that including for performing according to any item data of Claims 1-4
Storehouse server reads the instruction for the method that account form control user logs in
Although description of the invention is quite detailed and especially several embodiments are described, it is not
Any these details or embodiment or any specific embodiments are intended to be limited to, but it is by reference to appended that should be considered as
Claim considers that prior art provides the possibility explanation of broad sense for these claims, so as to effectively cover the present invention
Preset range.In addition, with the foreseeable embodiment of inventor, present invention is described above, its purpose is to be provided with
Description, and those unsubstantiality changes to the present invention still unforeseen at present can still represent the equivalent modifications of the present invention.