Method and client through the client login application program
Technical field
The present invention relates to the electronic product field, relate in particular to a kind of method and a kind of client through the client login application program.
Background technology
Macintosh (Macintosh is called for short MAC) is commonly called as MAC machine or Macintosh, is a series of PC of Apple.Much all need login at present in client based on the application program of MAC platform; When carrying out landing of client based on the application program of MAC platform; Need to trigger (switching to) safari (browser of the special use of MAC platform), carry out the loading and the demonstration of the log-in interface (promptly authorizing the interface) of application software through safari, the user fills in username and password information etc. in this mandate interface; After mandate is passed through, switch back current application program from safari again and carry out program running.
Hence one can see that; At present based on the login of the application program of MAC platform; After must triggering safari browser that the MAC platform that is independent of said application program supported and accomplishing subscriber authorisation, switch back current application program again and move, such mode makes the operation of application program must rely on the safari browser; Reduced the flexibility of application program use and the independence that user's application programs is used, user experience is relatively poor.
Summary of the invention
The problem that the present invention solves is, a kind of method and a kind of client through the client login application program is provided.Realized having increased the independence of application program, and having improved the tightness of user and application program in the checking of the inner user of the completion login of application program.
Concrete, the method for passing through the client login application program that the embodiment of the invention provides comprises:
The client terminal start-up application program, said client is for supporting the client of Macintosh MAC;
Said client triggers the webpage that presets in the said application program and loads control, and loads the login interface that presets in the said application program based on said webpage loading control;
On said client, obtain user account information through said login interface, and the user account information of obtaining is sent to server end by said client;
When said client receives after user that said server end sends logins authorization message, close said application program login interface, formally get into the said application program operation phase.
Preferable, the method for the embodiment of the invention also comprises: the webpage that the login interface of said application program is set in said application program in advance loads the login interface of control and said application program.
Preferable, the said webpage that the login interface of said application program is set in said application program in advance loads control, specifically comprises:
The web page address information that loads said application program login interface is set in said application program in advance.
Preferable, the said login interface that said application program is set in said application program in advance specifically comprises:
The login interface that application program is set in said application program in advance needs the display effect of items displayed and said project.
Accordingly, a kind of client that the embodiment of the invention provides comprises:
Start module, be used to start application program, said client is for supporting the client of Macintosh MAC;
Load-on module is used for triggering the webpage loading control that said application program presets, and loads the login interface that presets in the said application program based on said webpage loading control;
Login module is used to show the login interface of said application program, to obtain user account information through said login interface;
Transceiver module is used for the user account information that said login module is obtained is sent to server end, and receives the user that said server end sends and login authorization message;
The program running module is used for receiving after user that said server end sends logins authorization message when said transceiver module, closes said application program login interface, and formally gets into the operation of said application program.
Preferable, the client of the embodiment of the invention also comprises:
Module is set, is used in advance loading the login interface of control and said application program at the webpage that said application program is provided with the login interface of said application program.
Preferable,, specifically be used in said application program the web page address information that loads said application program login interface being set in advance when module being set said webpage being set loading control when said.
Preferable, when said when module being set the login interface of said application program being set, to need specifically to be used in advance the display effect of items displayed and said project at the login interface that said application program is provided with application program.
Embodiment of the present invention embodiment has following beneficial effect:
The embodiment of the invention is provided with the login interface of the said application program of login and the webpage control piece of said login interface in advance in application program; And when the said application program of client terminal start-up; Load the login interface of said application program at said application program intrinsic call webpage control piece; And by login and the authority checking of said login interface completion, and after checking is passed through, formally get into the operation phase of said application program to said application program.Hence one can see that, and the embodiment of the invention directly ejects login interface in application program, and whole login process is all accomplished in application program, has increased the independence of application program, and improved the tightness of user and application program.
Description of drawings
Fig. 1 is an embodiment schematic flow sheet that passes through the method for client login application program of the present invention;
Fig. 2 is the schematic flow sheet of an embodiment of client of the present invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention will be carried out clear, intactly description.
Fig. 1 embodiment schematic flow sheet that passes through the method for client login application program of the present invention.As shown in Figure 1, method of the present invention comprises:
Step S100, the webpage that the login interface of said application program is set in said application program in advance loads the login interface of control and said application program.In concrete the realization, said application program comprises the supported application programs of all clients such as facebook, microblogging, Net silver.And; Step S100 is the inessential step of login application program of the present invention; Be not when each logging on client starts application program, all to want operating procedure S100, it only need just need operating procedure S100 when login interface that application program is set and webpage loading control usually.At step S100, the webpage that the login interface of said application program is set in said application program in advance loads control, specifically comprises: the web page address information that loads said application program login interface is set in said application program in advance.Also be the web page address information that said webpage Loading Control is said application program login interface.And the login interface of said application program is set in said application program in advance, specifically comprise: the login interface that application program is set in said application program in advance needs the display effect of items displayed and said project.Such as, the display items display that can be provided with comprises: user name, user login code, user gradation etc.Said display effect is the design of the space of a whole page, the arranging etc. of display items display.
Step S101, the client terminal start-up application program, said client is for supporting the client of Macintosh MAC.In concrete the realization, can start application program through the application icon of clicking on the client, such as clicking the microblogging icon, clicking facebook icon etc. in step S101 client.
Step S102, said client triggers the webpage that presets in the said application program and loads control, and loads the login interface that presets in the said application program based on said webpage loading control.
Step S103 on said client, obtains user account information through said login interface, and by said client the user account information of obtaining is sent to server end.In concrete the realization, the user account information that step S103 obtains depends on the requirement of the display items of the login interface that step S100 is preset, and the user will be based on the information of the corresponding user's registration of said display items input.
Step S104 when said client receives after user that said server end sends logins authorization message, closes the login interface of said application program, formally gets into the said application program operation phase.
The above embodiments; The login interface of the said application program of login and the webpage control piece of said login interface are set in application program in advance; And when the said application program of client terminal start-up, load the login interface of said application program, and accomplish login and authority checking to said application program by said login interface at said application program intrinsic call webpage control piece; And after checking is passed through, formally get into the operation phase of said application program.Hence one can see that, and the embodiment of the invention directly ejects login interface in application program, and whole login process is all accomplished in application program, has increased the independence of application program, and improved the tightness of user and application program.
Accordingly, for cooperating the realization of said method, the embodiment of the invention provides a kind of client.As shown in Figure 2, one embodiment comprises of client of the present invention: module 21 is set, starts module 22, load-on module 23, login module 24, transceiver module 25 and program running module 26, wherein:
The said module 21 that is provided with is used in advance loading at the webpage that said application program is provided with the login interface of said application program the login interface of control and said application program.In concrete the realization, when module 21 being set said webpage being set loading control, specifically be used in said application program the web page address information that loads said application program login interface being set in advance when said.And when said when module 21 being set the login interface of said application program being set; To need specifically to be used in advance the display effect of items displayed and said project at the login interface that said application program is provided with application program; Such as, the display items display that can be provided with comprises: user name, user login code, user gradation etc.Said display effect is the design of the space of a whole page, the arranging etc. of display items display.In addition, module 21 is set in the embodiment of the invention only loads control when being provided with at the webpage of login interface that needs application programs and log-in interface, the side starts, other the time, it can not need to keep in real time work.
Said startup module 22 is used to start application program, and said client is for supporting the client of Macintosh MAC.In concrete the realization, said startup module 22 can start application program through the application icon that the induction user clicks on the client, such as, when the user clicks the microblogging icon, start module 22 and just start the microblogging application program on the said client; When the user clicked the facebook icon, said startup module 22 just started the facebook application program.
Said load-on module 23 is used for triggering the said module 21 that is provided with and loads control at the webpage that application program presets in advance, and loads the login interface that presets in the said application program based on said webpage loading control.
Said login module 24 is used for showing the login interface of said application program, to obtain user account information through said login interface.In concrete the realization, said login module 24 shows the login interface in the said application program according to said login interface display items display and the display effect that module 21 settings are set.
Said transceiver module 25 is used for the user account information that said login module 24 is obtained is sent to server end, and receives the user that said server end sends and login authorization message.
Said program running module 26 is used for receiving after user that said server end sends logins authorization message when said transceiver module 24, closes the login interface in the said application program, and formally gets into the operation of said application program.
The above embodiments; The login interface of the said application program of login and the webpage control piece of said login interface are set in application program in advance; And when the said application program of client terminal start-up, load the login interface of said application program, and accomplish login and authority checking to said application program by said login interface at said application program intrinsic call webpage control piece; And after checking is passed through, formally get into the operation phase of said application program.Hence one can see that, and the embodiment of the invention directly ejects login interface in application program, and whole login process is all accomplished in application program, has increased the independence of application program, and improved the tightness of user and application program.
Above disclosedly be merely preferred embodiment of the present invention, can not limit the present invention's interest field certainly with this, the equivalent variations of therefore doing according to claim of the present invention still belongs to the scope that the present invention is contained.