Disclosure of Invention
The embodiment of the invention provides a login method and device of a set top box, a set top box management system and a storage medium, which can simplify the user operation of login of the set top box and improve the user experience.
The embodiment of the invention provides a login method of a set top box, which comprises the following steps of
Receiving hardware identification information sent when the set top box is started;
generating a user token according to the hardware identification information and feeding the user token back to the set-top box, so that the set-top box sends the user token to a movie and television member management system after the set-top box is started successfully;
receiving a movie member verification request sent by the movie member management system; the verification request comprises a user token;
and after the user token is verified, sending hardware identification information corresponding to the user token to the movie member management system, so that the movie member system acquires movie member information corresponding to the hardware identification information and feeds the movie member information back to the set top box, and the set top box logs in movie members.
Further, the generating a user token according to the hardware identification information and feeding back the user token to the set-top box so that the set-top box sends the user token to the movie and television member management system after the set-top box is successfully booted specifically includes:
verifying the hardware identification information;
after the verification is passed, the hardware identification information is used as the unique identification of the user, a user token is generated and fed back to the set top box for caching, so that the set top box establishes a mechanism for refreshing the user token in real time, and the user token refreshed in real time is sent to the movie and television member management system after the startup is successful.
Further, the movie member verification request is a request generated by the movie member management system after the set top box sending the user token is verified to be the terminal type meeting the requirement.
Further, before the generating a user token according to the hardware identification information and feeding back the user token to the set top box, the method further includes:
and if the set top box is detected to send the hardware identification information for the first time, activating a flow package and a film and television member package of the set top box according to the hardware identification information.
Further, activating the flow package and the movie member package of the set top box according to the hardware identification information specifically includes:
binding the hardware identification information with flow card information, and acquiring film and television member package information corresponding to the set top box from a commodity ordering system;
sending a film and television member opening request to the film and television member management system according to the hardware identification information and the film and television member package information, enabling the film and television member management system to open a film and television member package of the set top box, and generating film and television member information;
and sending a flow opening request to a flow system according to the hardware identification information and the flow card information, so that the flow system opens the flow package of the set top box.
Correspondingly, the embodiment of the invention provides a login device of a set top box, which can realize all the processes of the login method of the set top box. The login device of the set-top box comprises:
the identification information receiving module is used for receiving hardware identification information sent when the set top box is started;
the token generation module is used for generating a user token according to the hardware identification information and feeding the user token back to the set top box, so that the set top box sends the user token to the movie and television member management system after the set top box is started successfully;
the verification request receiving module is used for receiving the movie member verification request sent by the movie member management system; the verification request comprises a user token;
and the identification information sending module is used for sending the hardware identification information corresponding to the user token to the movie member management system after the user token passes the verification, so that the movie member system obtains the movie member information corresponding to the hardware identification information and feeds the movie member information back to the set top box, and the set top box logs in the movie member.
Further, the token generation module specifically includes:
the checking unit is used for checking the hardware identification information;
the generating unit is used for generating a user token and feeding the user token back to the set top box for caching after the hardware identification information is used as the unique identification of the user after the hardware identification information passes the verification, so that the set top box establishes a mechanism for refreshing the user token in real time, and the user token refreshed in real time is sent to the movie and television member management system after the set top box is successfully started;
the video member verification request received by the verification request receiving module is a request generated by the video member management system after the set top box sending the user token is verified to be the terminal type meeting the requirement.
Further, the login device of the set-top box further comprises:
the package information acquisition module is used for binding the hardware identification information with the traffic card information when detecting that the set top box sends the hardware identification information for the first time, and acquiring movie and television member package information corresponding to the set top box from a commodity ordering system;
the movie member opening module is used for sending a movie member opening request to the movie member management system according to the hardware identification information and the movie member package information, so that the movie member management system opens the movie member package of the set top box and generates movie member information;
and the flow package opening module is used for sending a flow opening request to a flow system according to the hardware identification information and the flow card information so that the flow system opens the flow package of the set top box.
Correspondingly, the embodiment of the invention provides a set top box management system, which comprises the login device of the set top box.
Accordingly, further embodiments of the present invention also provide a computer-readable storage medium, including a stored computer program;
and when the computer program runs, controlling the equipment where the computer readable storage medium is located to execute the login method of the set top box.
The embodiment of the invention has the following beneficial effects:
the method comprises the steps that hardware identification information of the set top box is used as a unique identification of a user to generate a user token to be fed back to the set top box, so that the set top box is sent to a movie member management system after being started successfully, the movie member management system obtains corresponding hardware identification information according to the user token, and then obtains movie member information according to the hardware identification information to be fed back to the set top box, so that the set top box logs in movie members, user operation of logging in the set top box is simplified, and user experience is improved; verifying hardware identification information to ensure the safety of user data; flow package and movie and television member package functions are integrated, and set top box user functions are enriched.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, it is a schematic flow chart of a first embodiment of a login method of a set-top box provided by the present invention, including:
s1, receiving hardware identification information sent by the set-top box when the set-top box is started;
s2, generating a user token according to the hardware identification information and feeding the user token back to the set-top box, so that the set-top box sends the user token to a movie and television member management system after the set-top box is successfully started;
s3, receiving a movie and television member verification request sent by the movie and television member management system; the verification request comprises a user token;
and S4, after the user token is verified, sending hardware identification information corresponding to the user token to the movie member management system, so that the movie member system acquires movie member information corresponding to the hardware identification information and feeds the movie member information back to the set top box, and the set top box logs in movie members.
It should be noted that the present embodiment is described based on the set-top box management system side. A Software Development Kit (SDK) is arranged in the set-top box, and a movie and television member APP is installed in the set-top box.
When the set-top box is started, the SDK triggers the activation logic and displays an activation page, and a user can input a mobile phone number on the activation page and can directly skip the activation page without any operation. The SDK of the set-top box interacts with a hardware module of the set-top box and reads hardware identification information of the set-top box, such as SNCODE and IMSI of a network card. And then, the SDK sends the hardware identification information to a set-top box management system, and for the set-top box management system, the hardware identification information of the set-top box is the unique identification of the set-top box user. For the set-top box which is successfully activated, the set-top box management system generates a user TOKEN and feeds back the TOKEN to the set-top box SDK. And after the set top box is successfully started, the television member APP enters the television member APP, and the television member APP calls the set top box SDK to obtain TOKEN and sends the TOKEN to the television member management system. The movie and television member APP and the set top box are two independent systems, and data between the two systems are isolated.
And then, the movie and television member management system sends a movie and television member verification request carrying the TOKEN to the set top box management system, and the set top box management system identifies and verifies the accuracy and the validity of the TOKEN data and feeds back hardware identification information corresponding to the TOKEN to the movie and television member management system after the verification is passed. And the movie and television member management system acquires movie and television member information corresponding to the set top box according to the hardware identification information and feeds the movie and television member information back to the movie and television member APP, and the movie and television member APP displays the movie and television rights of the set top box so that a user can watch the movie at the best trip. In the embodiment, the hardware identification information of the set top box is used as the unique identification of the set top box user for interaction, the user does not need to participate, the user operation of the set top box login is greatly simplified, and the user experience is improved.
Further, in step S2, the generating a user token according to the hardware identification information and feeding back the user token to the set-top box so that the set-top box sends the user token to the movie member management system after the set-top box is successfully booted includes:
verifying the hardware identification information;
after the verification is passed, the hardware identification information is used as the unique identification of the user, a user token is generated and fed back to the set top box for caching, so that the set top box establishes a mechanism for refreshing the user token in real time, and the user token refreshed in real time is sent to the movie and television member management system after the startup is successful.
It should be noted that, after receiving the SNCODE and the IMSI of the set-top box, the set-top box management system first checks whether the SNCODE and the IMSI are in the local pool. The set-top box management system has set-top box hardware pool data, and only the set-top box data matched in the pool allows the set-top box to activate login, so that illegal set-top box data requests are isolated.
After the SNCODE and the IMSI are verified, the set top box management background generates a TOKEN and feeds the TOKEN back to the set top box SDK, the set top box SDK locally caches the TOKEN, and a mechanism for refreshing the TOKEN in real time is established.
Further, in step S3, the movie membership verification request is a request generated by the movie membership management system after verifying that the set-top box sending the user token is the terminal type meeting the requirement.
It should be noted that, after receiving the TOKEN sent by the movie member APP, the movie member management system verifies whether the movie member APP is a legitimate APP, and if the movie member APP is a terminal APP meeting the requirement, the verification passes. The movie and television member management system has strict verification on the APP, so that the use scenes and permissions of APP users at different terminals are limited.
Further, before the generating a user token according to the hardware identification information and feeding back the user token to the set top box, the method further includes:
and if the set top box is detected to send the hardware identification information for the first time, activating a flow package and a film and television member package of the set top box according to the hardware identification information.
It should be noted that, after the set-top box management system verifies the SNCODE and the IMSI, the set-top box management system activates the related traffic packages and movie and television member packages for the first request of the verified SNCODE and IMSI. The set top box management system is automatically in butt joint with the system according to package information opened when a set top box user purchases a member, and opens a flow package and a film and television member package, so that the user can directly enjoy the attached functions of the set top box after being activated.
Further, activating the flow package and the movie member package of the set top box according to the hardware identification information specifically includes:
binding the hardware identification information with flow card information, and acquiring film and television member package information corresponding to the set top box from a commodity ordering system;
sending a film and television member opening request to the film and television member management system according to the hardware identification information and the film and television member package information, enabling the film and television member management system to open a film and television member package of the set top box, and generating film and television member information;
and sending a flow opening request to a flow system according to the hardware identification information and the flow card information, so that the flow system opens the flow package of the set top box.
It should be noted that in the present embodiment, a movie member package is opened through the movie member system, and a flow package is opened through the flow system, so that package information of a set top box user, flow and a movie member is opened, all registration opening verification steps are automatically completed, and the set top box is freely and quickly used by the user.
Referring to fig. 2, it is a timing chart of a second embodiment of the login method of the set-top box provided by the present invention, which specifically includes:
1. the user starts up and activates the set top box SDK;
1.1, the set top box SDK transmits a set top box, a module and a built-in card information set top box management system to activate an account;
1.2, the set top box management system binds the account with the information of the flow card;
1.3, the set top box management system opens a movie member account in the movie member management system, and the movie member management system returns an opening result;
1.4, the set top box management system sets flow account information in the flow system, and the flow system returns opened flow package detail information;
1.5, the set top box management system updates package information currently effective in the account;
2. the set top box SDK logs in a set top box management system;
2.1, the set top box management system inquires account information, generates and caches TOKEN, and returns FZSTKEN to the SDK of the set top box;
3. the movie member management system checks and logs in the set top box management system;
and 3.1, the set top box management system inquires account information corresponding to the TOKEN from the cache and returns the account information to the movie and television member management system.
According to the embodiment of the invention, the set top box hardware system is used as the identifier, and the hardware system is identified as the user identifier, so that the login operation of the set top box user is simplified; TOKEN is used as an interactive certificate for user interaction among the systems, so that the complicated operation steps of the user are omitted; the data between systems is verified, the safety of the user data is enhanced, and the user data is effectively protected; the whole interaction system gets through the package information of the set top box user, the flow and the movie and television member, automatically completes all registration, opening and verification, and enables the user to freely and quickly use the set top box.
Correspondingly, the third embodiment of the present invention further provides a login device for a set top box, which can implement all the processes of the login method for the set top box.
Referring to fig. 3, it is a schematic structural diagram of a login apparatus of a set-top box according to a third embodiment of the present invention, including:
the identification information receiving module 1 is used for receiving hardware identification information sent when the set top box is started;
the token generation module 2 is used for generating a user token according to the hardware identification information and feeding the user token back to the set-top box, so that the set-top box sends the user token to a movie and television member management system after the set-top box is successfully started;
the verification request receiving module 3 is used for receiving the movie member verification request sent by the movie member management system; the verification request comprises a user token;
and the identification information sending module 4 is used for sending the hardware identification information corresponding to the user token to the movie member management system after the user token passes the verification, so that the movie member system obtains the movie member information corresponding to the hardware identification information and feeds the movie member information back to the set top box, and the set top box logs in the movie member.
Further, the token generation module specifically includes:
the checking unit is used for checking the hardware identification information;
the generating unit is used for generating a user token and feeding the user token back to the set top box for caching after the hardware identification information is used as the unique identification of the user after the hardware identification information passes the verification, so that the set top box establishes a mechanism for refreshing the user token in real time, and the user token refreshed in real time is sent to the movie and television member management system after the set top box is successfully started;
the video member verification request received by the verification request receiving module is a request generated by the video member management system after the set top box sending the user token is verified to be the terminal type meeting the requirement.
Further, the login device of the set-top box further comprises:
the package information acquisition module is used for binding the hardware identification information with the traffic card information when detecting that the set top box sends the hardware identification information for the first time, and acquiring the film and television member package information purchased by the set top box from a commodity ordering system;
the movie member opening module is used for sending a movie member opening request to the movie member management system according to the hardware identification information and the movie member package information, so that the movie member management system opens the movie member package of the set top box and generates movie member information;
and the flow package opening module is used for sending a flow opening request to a flow system according to the hardware identification information and the flow card information so that the flow system opens the flow package of the set top box.
According to the embodiment of the invention, the set top box hardware system is used as the identifier, and the hardware system is identified as the user identifier, so that the login operation of the set top box user is simplified; TOKEN is used as an interactive certificate for user interaction among the systems, so that the complicated operation steps of the user are omitted; the data between systems is verified, the safety of the user data is enhanced, and the user data is effectively protected; the whole interaction system gets through the package information of the set top box user, the flow and the movie and television member, automatically completes all registration, opening and verification, and enables the user to freely and quickly use the set top box.
Accordingly, a fourth embodiment of the present invention provides a set-top box management system, including the login apparatus of the set-top box of the third embodiment.
Accordingly, a fifth embodiment of the present invention provides a computer-readable storage medium including a stored computer program;
when the computer program runs, the device where the computer-readable storage medium is located is controlled to execute the login method of the set top box of the first embodiment or the second embodiment.
Illustratively, the computer programs described in the fourth and fifth embodiments of the present invention may be partitioned into one or more modules, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program in the login device implementing a set-top box.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center for the logging device of the set-top box, with various interfaces and lines connecting the various parts of the logging device of the entire set-top box.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the login device of the set-top box by operating or executing the computer programs and/or modules stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store collected data (e.g., a user token) and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein the implemented module, if implemented in the form of a software functional unit and sold or used as a stand-alone product, can be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.