Disclosure of Invention
The application provides a business page display method, a business page display device and business page display equipment, which are used for solving the problems that the transformation is complex and the quick access of a user to a business page is difficult to realize.
In a first aspect, the present application provides a method for displaying a service page, where the method is applied to a first processor, where the first processor has a login platform, the login platform has an operation interface and a first module, the operation interface has at least one primary menu, and the primary menu corresponds to the service page, and the method includes:
responding to an access request of a user to the service page, and acquiring user information based on the primary menu;
encrypting the user information based on the first module, determining the encrypted user information, and generating a character string according to a uniform resource locator and the encrypted user information, wherein the uniform resource locator is pre-stored in the first-level menu and is used for a service website to determine first service page information;
and sending the character string to the service website, and receiving and displaying the service page fed back by the service website, wherein the service website is used for receiving the character string and feeding back the service page according to the character string.
In an optional implementation manner, in response to a request for accessing the service page by a user, obtaining user information based on the one-level menu includes:
responding to the access request, acquiring user login information and user role information based on the primary menu according to the access request, and determining the user information.
In an optional implementation manner, the user role information represents an access right of a user to the service page, the user login information is used by the service website to verify the user information, and the user role information is used by the service website to determine second service page information.
In an optional implementation manner, encrypting the user information based on the first module, determining the encrypted user information, and generating a character string according to a uniform resource locator and the encrypted user information includes:
acquiring a pre-stored private key, encrypting the user information based on the first module according to the private key, and determining the encrypted user information;
and combining the encrypted user information and the uniform resource locator to generate a character string.
In an optional implementation manner, sending the character string to a service website, and receiving and displaying the service page fed back by the service website includes:
sending the character string to a browser, wherein the browser is used for information communication between the login platform and the service website;
and receiving and displaying the service page fed back by the service website based on the browser.
In an optional implementation manner, the private key matches with a public key pre-stored in the service website, where the public key is used to decrypt the encrypted user information.
In a second aspect, the present application provides a service page display method, where the method is applied to a second processor, where the second processor has a service website, where the service website includes at least one service page, and the service website has a second module, where the method includes:
receiving a character string, decrypting encrypted user information in the character string based on the second module, and determining user information and a uniform resource locator, wherein the character string is sent by a login platform and comprises the encrypted user information and the uniform resource locator;
and feeding back a service page of the service website according to the user information and the uniform resource locator.
In an optional implementation manner, receiving a character string and performing decryption processing on the character string based on the second module to determine the user information and the uniform resource locator includes:
and acquiring a pre-stored public key, and decrypting the encrypted user information in the character string based on the second module according to the public key to determine the user information and the uniform resource locator.
In an optional embodiment, the user information includes user login information and user role information; feeding back a service page of the service website according to the user information and the uniform resource locator, wherein the step of feeding back the service page comprises the following steps:
and verifying the user login information according to the prestored login information, and if the user login information is confirmed to pass the verification, feeding back a service page of the service website according to the user role information and the uniform resource locator.
In an optional implementation manner, feeding back a service page of the service website according to the user role information and the uniform resource locator includes:
determining first service page information according to the uniform resource locator, wherein the first service page information represents the position information of the service page;
determining second service page information according to the user role information, wherein the second service page information represents content information of the service page;
and feeding back the service page of the service website to a browser according to the first service page information and the second service page information, wherein the browser is used for information communication between the login platform and the service website.
In an optional implementation manner, the public key is matched with a private key stored in the login platform in advance, where the private key is used to encrypt the user information.
In a third aspect, the present application provides a service page display apparatus, where the apparatus is applied to a first processor, where the first processor has a login platform, the login platform has an operation interface and a first module, the operation interface has at least one primary menu, and the primary menu corresponds to a service page, and the apparatus includes:
the acquisition unit is used for responding to an access request of a user to the service page and acquiring user information based on the primary menu;
the first processing unit is used for encrypting the user information based on the first module, determining the encrypted user information, and generating a character string according to a uniform resource locator and the encrypted user information, wherein the uniform resource locator is stored in the primary menu in advance, and the uniform resource locator is used for a service website to determine first service page information;
and the second processing unit is used for sending the character string to the service website and receiving and displaying the service page fed back by the service website, wherein the service website is used for receiving the character string and feeding back the service page according to the character string.
In an optional implementation manner, the obtaining unit is specifically configured to:
responding to the access request, acquiring user login information and user role information based on the primary menu according to the access request, and determining the user information.
In an optional implementation manner, the user role information represents an access right of a user to the service page, the user login information is used by the service website to verify the user information, and the user role information is used by the service website to determine second service page information.
In an alternative embodiment, the first processing unit includes:
the processing subunit is used for acquiring a pre-stored private key, encrypting the user information based on the first module according to the private key, and determining the encrypted user information;
and the generating subunit is used for combining the encrypted user information and the uniform resource locator to generate a character string.
In an optional embodiment, the second processing unit comprises:
the sending subunit is configured to send the character string to a browser, where the browser is used for information communication between the login platform and the service website;
and the receiving subunit is used for receiving and displaying the service page fed back by the service website based on the browser.
In an optional implementation manner, the private key matches with a public key pre-stored in the service website, where the public key is used to decrypt the encrypted user information.
In a fourth aspect, the present application provides a service page display apparatus, where the apparatus is applied to a second processor, where the second processor has a service website, where the service website includes at least one service page, and the service website has a second module, where the apparatus includes:
the processing unit is used for receiving a character string, decrypting encrypted user information in the character string based on the second module and determining user information and a uniform resource locator, wherein the character string is sent by a login platform and comprises the encrypted user information and the uniform resource locator;
and the feedback unit is used for feeding back the service page of the service website according to the user information and the uniform resource locator.
In an optional implementation manner, the processing unit is specifically configured to:
and acquiring a pre-stored public key, and decrypting the encrypted user information in the character string based on the second module according to the public key to determine the user information and the uniform resource locator.
In an optional embodiment, the user information includes user login information and user role information; the feedback unit includes:
and the verification subunit is used for verifying the user login information according to the prestored login information, and if the verification is determined to be passed, feeding back the service page of the service website according to the user role information and the uniform resource locator.
In an optional embodiment, the feedback unit further includes:
a first determining subunit, configured to determine first service page information according to the uniform resource locator, where the first service page information represents location information of the service page;
a second determining subunit, configured to determine second service page information according to the user role information, where the second service page information represents content information of the service page;
and the feedback subunit is used for feeding back the service page of the service website to a browser according to the first service page information and the second service page information, wherein the browser is used for carrying out information communication between the login platform and the service website.
In an optional implementation manner, the public key is matched with a private key stored in the login platform in advance, where the private key is used to encrypt the user information.
In a fifth aspect, the present application provides an electronic device, comprising: a memory, a first processor;
a memory; a memory for storing the first processor-executable instructions;
wherein the first processor is configured to perform the method according to the first aspect, the first processor has a login platform according to the first aspect, the login platform has an operation interface and a first module, the operation interface has at least one level-one menu, and the level-one menu corresponds to the service page.
In a sixth aspect, the present application provides an electronic device comprising: a memory, a second processor;
a memory; a memory for storing the second processor-executable instructions;
wherein the second processor is configured to perform the method of the second aspect, the second processor having a business website as described in the second aspect, the business website including at least one business page, the business website having a second module.
In a seventh aspect, the present application provides a non-transitory computer readable storage medium having stored therein computer executable instructions for implementing the method according to the first aspect when executed by a processor or for implementing the method according to the second aspect when executed by a processor.
In an eighth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method according to the first aspect, or which, when executed by a processor, implements the method according to the second aspect.
The method, the device and the equipment for displaying the service page provided by the application are characterized in that when a user needs to access the service page, a first-level menu in an operation interface of a login platform is triggered, after the user triggers the first-level menu, the user information in the access request is obtained based on the first-level menu, the user information is encrypted based on a first module to determine the encrypted user information, a character string is generated according to a uniform resource locator and the encrypted user information, the character string is sent to a service website affiliated to the service page, the service website decrypts the encrypted user information in the character string based on a second module to obtain the login information and the user role information of the user, and the service page corresponding to the login information, the user role information and the uniform resource locator of the user is fed back, and the first processor receives and displays the service page. In the process, the role management and login authentication scheme of the service website do not need to be modified in a complex way, so that the modification time is saved, and the user can quickly access the service page.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terms referred to in this application are explained first:
single sign-on: when a user uses a plurality of systems, the user can perceive that the user logs in by only logging in once.
The current single sign-on scheme commonly used in the industry needs to modify a login authentication system for a sub-service website, a new platform provides a unified single sign-on server, and a subsystem sends user information to the single sign-on server to obtain a unified login state or a certificate when authentication is needed.
Cookie: the small data which is sent to the browser of the user by the server and stored locally is carried and sent to the server when the browser sends a request to the same server next time. Generally, it is used to inform the server whether the two requests are from the same browser, for maintaining the user's login status.
The enterprise collaborative management platform is a unified login and management platform formed by connecting the existing sub-business websites and systems of an enterprise, and the platform can break a collaborative information island and realize information sharing and office automation.
The establishment of the enterprise collaborative management platform firstly needs to solve the problems of unified account number and unified login, and after the problems are solved, the realization can be realized: after the user logs in the collaborative management platform once, the user can conveniently access each service page according to the user role and the authority of the user and the design requirement of the platform, and repeated login and role selection in each website are not needed.
In the prior art, in order to achieve the purpose, the sub-service websites to be integrated are generally required to be subjected to unified transformation of user role management and login authentication schemes, and different management and authentication logics and actual deployment conditions of each sub-service website need to be considered in the process, so that the transformation process is complex, the time required for the transformation process is long, and the user is difficult to realize quick access of a service page.
The service page display method provided by the application aims to solve the technical problems in the prior art.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
According to the technical scheme, the data acquisition, storage, use, processing and the like meet relevant regulations of national laws and regulations.
Fig. 1 is a flowchart of a service page display method provided in an embodiment of the present application, where the method is applied to a first processor, where the first processor has a login platform, the login platform has an operation interface and a first module, the operation interface has at least one primary menu, and the primary menu corresponds to a service page, as shown in fig. 1, the method includes:
101. and responding to an access request of a user to the service page, and acquiring user information based on the primary menu.
Illustratively, when a user needs to access a service page, a first-level menu in an operation interface of a login platform is triggered first, wherein the operation interface may include a plurality of first-level menus, each first-level menu corresponds to a service page, and the service pages may belong to the same service website or different service websites. After a user triggers a primary menu, user information in the access request is read based on the primary menu, wherein the user information includes user login information and user role information, the user login information may include user name information of the user, login password information of the user, and the like, the user role information represents the page access permission of the user, and for example, the user role information may represent that the user is an information input person of the service page, a preliminary auditor of the service page, or a final auditor of the service page, and the like.
102. The method comprises the steps of encrypting user information based on a first module, determining the encrypted user information, and generating a character string according to a uniform resource locator and the encrypted user information, wherein the uniform resource locator is stored in a first-level menu in advance, and the uniform resource locator is used for a service website to determine first service page information.
Illustratively, the first processor encrypts the user information based on a first module, such as a management control module, in the login platform to ensure the security and integrity of the user information during transmission, so as to obtain encrypted user information; and combining the encrypted user information and the uniform resource locator to generate a character string, wherein the uniform resource locator is pre-stored in the primary menu, and the service website to which the service page belongs can determine first service page information of the service page, such as the position and type information of the service page, based on the uniform resource locator.
103. And sending the character string to a service website, and receiving and displaying a service page fed back by the service website, wherein the service website is used for receiving the character string and feeding back the service page according to the character string.
Illustratively, the character string is sent to a service website to which the service page belongs, the service website decrypts encrypted user information in the character string based on a second module, for example, a proxy module, to obtain login information and user role information of a user, and feeds back a service page corresponding to the user according to the login information and the user role information of the user, so that the first processor receives and displays the service page.
In this embodiment, when a user needs to access a service page, a first-level menu in an operation interface of a login platform is triggered, after the user triggers the first-level menu, user information in the access request is obtained based on the first-level menu, the user information is encrypted based on a first module, the encrypted user information is determined, a character string is generated according to a uniform resource locator and the encrypted user information, the character string is sent to a service website to which the service page is subordinate, the service website decrypts the encrypted user information in the character string based on a second module to obtain login information and user role information of the user, the service page corresponding to the login information, the user role information and the uniform resource locator of the user is fed back, and the first processor receives and displays the service page. In the process, the role management and login authentication scheme of the service website do not need to be modified in a complex way, so that the modification time is saved, and the user can quickly access the service page.
Fig. 2 is a flowchart of another service page display method provided in this embodiment of the present application, where the method is applied to a first processor, the first processor has a login platform, the login platform has an operation interface and a first module, the operation interface has at least one primary menu, and the primary menu corresponds to a service page, as shown in fig. 2, the method includes:
201. and responding to an access request of a user to the service page, and acquiring user information based on the primary menu.
In one example, step 201 includes the steps of:
and responding to the access request, acquiring user login information and user role information based on the primary menu according to the access request, and determining user information.
In one example, the user role information represents the access right of the user to the service page, the user login information is used for the service website to verify the user information, and the user role information is used for the service website to determine the second service page information.
Illustratively, when a user needs to access a service page, a first-level menu in an operation interface of a login platform is triggered first, wherein the operation interface may include a plurality of first-level menus, each first-level menu corresponds to a service page, and the service pages may belong to the same service website or different service websites. And after the user triggers the primary menu, the primary menu reads the user information in the access request, wherein the user information comprises user login information and user role information, the user login information is used for verifying the user information by the service website, and the user role information is used for determining second service page information by the service website. The user login information may include user name information of the user, login password information of the user, and the like, and the user role information represents the page access permission of the user, for example, the user role information may indicate that the user is an information inputter of the service page, a preliminary reviewer of the service page, or a final reviewer of the service page, and the like, and different user roles have different access permissions to the service page.
202. And acquiring a pre-stored private key, encrypting the user information based on the first module according to the private key, and determining the encrypted user information.
In one example, the private key matches a public key pre-stored in the business website, where the public key is used to decrypt the encrypted user information.
Exemplarily, in order to ensure the security and integrity of the user information in the transmission process, the user information needs to be encrypted, a pre-stored private key is obtained, signature encryption processing is performed on the user information based on the first module according to the private key, and the encrypted user information is determined. And the public key is also matched with the private key, and is pre-stored in the service website and used for decrypting the encrypted user information transmitted to the service website.
203. The encrypted user information and the uniform resource locator are combined to generate a character string; the uniform resource locator is pre-stored in the first-level menu, and is used for determining first service page information by the service website.
Illustratively, the encrypted user information and the uniform resource locator are combined to generate a character string, wherein the uniform resource locator is pre-stored in the first-level menu, and the service website to which the service page belongs can determine the first service page information of the service page, such as the position, the type information, and the like of the service page, based on the uniform resource locator.
204. And sending the character string to a service website, and receiving and displaying a service page fed back by the service website, wherein the service website is used for receiving the character string and feeding back the service page according to the character string.
In one example, step 204 includes the steps of:
and sending the character string to a browser, wherein the browser is used for carrying out information communication between the login platform and the service website.
And receiving and displaying the service page fed back by the service website based on the browser.
Exemplarily, a character string is sent to a browser, a business website acquires the character string based on the browser, firstly, a public key which is matched with a private key and is stored in advance is acquired, the encrypted user information in the character string is decrypted based on a second module according to the public key, user login information, user role information and a uniform resource locator are determined, the user login information is verified according to the prestored login information, if the user login information is verified, the user is an authenticated user, and then, according to the uniform resource locator, the position, type information and the like of a business page, namely first business page information, are determined; determining that the user is an information input person, a preliminary auditor and a final auditor according to the role information of the user, and further determining page content information corresponding to the role authority, namely second service page information according to the role of the user; and feeding back the service page of the service website to the browser according to the first service page information and the second service page information, and then receiving and displaying the service page fed back by the service website by the first processor based on the browser.
In the embodiment, when a user needs to access a service page, a first-level menu in an operation interface of a login platform is triggered, after the user triggers the first-level menu, user information in an access request, including user login information and user role information, is obtained based on the first-level menu, and is encrypted by using a pre-stored private key based on a first module to determine the encrypted user information, then a character string is generated according to a uniform resource locator and the encrypted user information, the character string is sent to a service website affiliated to the service page based on a browser, the service website is decrypted by using a public key matched with the private key based on a second module to obtain the user login information and the user role information, verifies the user login information, and feeds back the corresponding service page according to the uniform resource locator and the user role information after the verification is passed, and the first processor receives and displays the service page based on the browser. In the process, the role management and login authentication scheme of the service website do not need to be modified in a complex way, so that the modification time is saved, and the safe and quick access of the user to the service page is realized.
Fig. 3 is a flowchart of another service page display method provided in an embodiment of the present application, where the method is applied to a second processor, where the second processor has a service website, the service website includes at least one service page, and the service website has a second module, as shown in fig. 3, the method includes:
301. and receiving the character string, decrypting the encrypted user information in the character string based on the second module, and determining the user information and the uniform resource locator, wherein the character string is sent by the login platform and comprises the encrypted user information and the uniform resource locator.
302. And feeding back a service page of the service website according to the user information and the uniform resource locator.
For example, the present embodiment may refer to the above embodiments, and details are not described again.
Fig. 4 is a flowchart of another service page display method provided in an embodiment of the present application, where the method is applied to a second processor, where the second processor has a service website, the service website includes at least one service page, and the service website has a second module, as shown in fig. 4, the method includes:
401. and acquiring a pre-stored public key, decrypting the encrypted user information in the character string based on the second module according to the public key, and determining the user information and the uniform resource locator. The character string is sent by the login platform, and comprises encrypted user information and a uniform resource locator.
In one example, the public key is matched with a private key pre-stored in the login platform, wherein the private key is used for encrypting the user information.
402. The user information comprises user login information and user role information; and verifying the user login information according to the pre-stored login information.
403. And if the verification is passed, feeding back a service page of the service website according to the user role information and the uniform resource locator.
In one example, step 403 includes the steps of:
and determining first service page information according to the uniform resource locator, wherein the first service page information represents the position information of the service page.
And determining second service page information according to the user role information, wherein the second service page information represents the content information of the service page.
And feeding back the service page of the service website to the browser according to the first service page information and the second service page information, wherein the browser is used for carrying out information communication between the login platform and the service website.
For example, the present embodiment may refer to the above embodiments, and details are not described again.
Fig. 5 is a schematic structural diagram of a service page display apparatus according to an embodiment of the present application, where the apparatus is applied to a first processor, the first processor has a login platform, the login platform has an operation interface and a first module, the operation interface has at least one primary menu, and the primary menu corresponds to a service page, as shown in fig. 5, the apparatus includes:
the obtaining unit 31 is configured to obtain the user information based on the first-level menu in response to a request for accessing the service page by the user.
The first processing unit 32 is configured to encrypt the user information based on the first module, determine the encrypted user information, and generate a character string according to a uniform resource locator and the encrypted user information, where the uniform resource locator is pre-stored in the first-level menu, and the uniform resource locator is used by the service website to determine first service page information;
and the second processing unit 33 is configured to send the character string to a service website, and receive and display a service page fed back by the service website, where the service website is configured to receive the character string and feed back the service page according to the character string.
Fig. 6 is a schematic structural diagram of another service page display apparatus provided in this embodiment, where the apparatus is applied to a first processor, the first processor has a login platform, the login platform has an operation interface and a first module, the operation interface has at least one primary menu, and the primary menu corresponds to a service page, and based on the embodiment shown in fig. 5, as shown in fig. 6, the apparatus includes:
in an example, the obtaining unit 31 is specifically configured to:
and responding to the access request, acquiring user login information and user role information based on the primary menu according to the access request, and determining user information.
In one example, the user role information represents the access right of the user to the service page, the user login information is used for the service website to verify the user information, and the user role information is used for the service website to determine the second service page information.
In one example, the first processing unit 32 includes:
the processing subunit 321 is configured to obtain a pre-stored private key, perform encryption processing on the user information based on the first module according to the private key, and determine encrypted user information.
A generating subunit 322, configured to perform a combining process on the encrypted user information and the uniform resource locator to generate a character string.
In one example, the second processing unit 33 includes:
the sending subunit 331 is configured to send the character string to a browser, where the browser is configured to perform information communication between the login platform and the service website.
And the receiving subunit 332 is configured to receive and display the service page fed back by the service website based on the browser.
In one example, the private key matches a public key pre-stored in the business website, where the public key is used to decrypt the encrypted user information.
Fig. 7 is a schematic structural diagram of another service page display apparatus provided in an embodiment of the present application, where the apparatus is applied to a second processor, the second processor has a service website, the service website includes at least one service page, and the service website has a second module, as shown in fig. 7, the apparatus includes:
and the processing unit 51 is configured to receive a character string, decrypt the encrypted user information in the character string based on the second module, and determine the user information and the uniform resource locator, where the character string is sent by the login platform, and the character string includes the encrypted user information and the uniform resource locator.
And a feedback unit 52, configured to feed back a service page of the service website according to the user information and the uniform resource locator.
Fig. 8 is a schematic structural diagram of another service page display apparatus according to an embodiment of the present application, where the apparatus is applied to a second processor, the second processor has a service website, the service website includes at least one service page, and the service website has a second module, and based on the embodiment shown in fig. 7, as shown in fig. 8, the apparatus includes:
in one example, the processing unit 51 is specifically configured to:
and acquiring a pre-stored public key, decrypting the encrypted user information in the character string based on the second module according to the public key, and determining the user information and the uniform resource locator.
In one example, the user information includes user login information and user role information, and the feedback unit 52 includes:
and the verification subunit 521 is configured to verify the user login information according to the pre-stored login information, and if the user login information passes the verification, feed back the service page of the service website according to the user role information and the uniform resource locator.
In one example, the feedback unit 52 further includes:
the first determining subunit 522 is configured to determine first service page information according to the uniform resource locator, where the first service page information represents location information of a service page.
The second determining subunit 523 is configured to determine second service page information according to the user role information, where the second service page information represents content information of a service page.
And a feedback subunit 524, configured to feed back, according to the first service page information and the second service page information, a service page of the service website to the browser, where the browser is used for performing information communication between the login platform and the service website.
In one example, the public key is matched with a private key pre-stored in the login platform, wherein the private key is used for encrypting the user information.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 9, the electronic device includes: a memory 71, a first processor 72.
A memory 71; a memory for storing first processor-executable instructions.
The first processor is configured to execute the method provided in any one of the embodiments of fig. 1 and fig. 2, and has the login platform, the login platform operation interface and the first module provided in the above embodiments, where the operation interface has at least one level menu, and the level menu corresponds to the service page.
Fig. 10 is a schematic structural diagram of another electronic device provided in an embodiment of the present application, and as shown in fig. 10, the electronic device includes: a memory 91 and a second processor 92.
A memory 91; a memory for storing second processor-executable instructions.
The second processor is configured to execute the method provided in any one of the embodiments of fig. 3 and fig. 4, the first processor has the service website provided in the above embodiments, the service website includes at least one service page, and the service website has the second module.
Fig. 11 is a block diagram of a terminal device, which may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, etc., according to an embodiment of the present application.
The apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of the components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, communications component 816 further includes a Near Field Communications (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Embodiments of the present application also provide a non-transitory computer-readable storage medium, where instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method provided by the above embodiments.
An embodiment of the present application further provides a computer program product, where the computer program product includes: a computer program, stored in a readable storage medium, from which at least one processor of the electronic device can read the computer program, the at least one processor executing the computer program causing the electronic device to perform the solution provided by any of the embodiments described above.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.